Skip to content

Commit 8871852

Browse files
committed
move inrupt to dev
1 parent f6e0fbf commit 8871852

File tree

5 files changed

+271
-320
lines changed

5 files changed

+271
-320
lines changed

dist/cjs/NoAuthSession.js

Lines changed: 1 addition & 121 deletions
Original file line numberDiff line numberDiff line change
@@ -1,120 +1,5 @@
11
"use strict";
22

3-
var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
4-
function adopt(value) {
5-
return value instanceof P ? value : new P(function (resolve) {
6-
resolve(value);
7-
});
8-
}
9-
return new (P || (P = Promise))(function (resolve, reject) {
10-
function fulfilled(value) {
11-
try {
12-
step(generator.next(value));
13-
} catch (e) {
14-
reject(e);
15-
}
16-
}
17-
function rejected(value) {
18-
try {
19-
step(generator["throw"](value));
20-
} catch (e) {
21-
reject(e);
22-
}
23-
}
24-
function step(result) {
25-
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
26-
}
27-
step((generator = generator.apply(thisArg, _arguments || [])).next());
28-
});
29-
};
30-
var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
31-
var _ = {
32-
label: 0,
33-
sent: function () {
34-
if (t[0] & 1) throw t[1];
35-
return t[1];
36-
},
37-
trys: [],
38-
ops: []
39-
},
40-
f,
41-
y,
42-
t,
43-
g;
44-
return g = {
45-
next: verb(0),
46-
"throw": verb(1),
47-
"return": verb(2)
48-
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
49-
return this;
50-
}), g;
51-
function verb(n) {
52-
return function (v) {
53-
return step([n, v]);
54-
};
55-
}
56-
function step(op) {
57-
if (f) throw new TypeError("Generator is already executing.");
58-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
59-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
60-
if (y = 0, t) op = [op[0] & 2, t.value];
61-
switch (op[0]) {
62-
case 0:
63-
case 1:
64-
t = op;
65-
break;
66-
case 4:
67-
_.label++;
68-
return {
69-
value: op[1],
70-
done: false
71-
};
72-
case 5:
73-
_.label++;
74-
y = op[1];
75-
op = [0];
76-
continue;
77-
case 7:
78-
op = _.ops.pop();
79-
_.trys.pop();
80-
continue;
81-
default:
82-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
83-
_ = 0;
84-
continue;
85-
}
86-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
87-
_.label = op[1];
88-
break;
89-
}
90-
if (op[0] === 6 && _.label < t[1]) {
91-
_.label = t[1];
92-
t = op;
93-
break;
94-
}
95-
if (t && _.label < t[2]) {
96-
_.label = t[2];
97-
_.ops.push(op);
98-
break;
99-
}
100-
if (t[2]) _.ops.pop();
101-
_.trys.pop();
102-
continue;
103-
}
104-
op = body.call(thisArg, _);
105-
} catch (e) {
106-
op = [6, e];
107-
y = 0;
108-
} finally {
109-
f = t = 0;
110-
}
111-
if (op[0] & 5) throw op[1];
112-
return {
113-
value: op[0] ? op[1] : void 0,
114-
done: true
115-
};
116-
}
117-
};
1183
Object.defineProperty(exports, "__esModule", {
1194
value: true
1205
});
@@ -138,12 +23,7 @@ var NoAuthSession = /** @class */function () {
13823
};
13924
}
14025
NoAuthSession.prototype._fetch = function (url, options) {
141-
return __awaiter(this, void 0, void 0, function () {
142-
return __generator(this, function (_a) {
143-
if (url.startsWith('file')) return [2 /*return*/, this.fileHandler.fetch(url, options)];else return [2 /*return*/, this.httpFetch(url, options)];
144-
return [2 /*return*/];
145-
});
146-
});
26+
if (url.startsWith('file')) return this.fileHandler.fetch(url, options);else return this.httpFetch(url, options);
14727
};
14828
return NoAuthSession;
14929
}();

dist/esm/NoAuthSession.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export declare class NoAuthSession implements IAuthSession {
77
httpFetch: any;
88
createServerlessPod: any;
99
constructor(options?: INoAuthOptions);
10-
_fetch(url: string, options: any): Promise<any>;
10+
_fetch(url: string, options: any): any;
1111
}
1212
interface INoAuthOptions {
1313
fileHandler?: any;

dist/esm/NoAuthSession.js

Lines changed: 4 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,4 @@
11
"use strict";
2-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4-
return new (P || (P = Promise))(function (resolve, reject) {
5-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8-
step((generator = generator.apply(thisArg, _arguments || [])).next());
9-
});
10-
};
11-
var __generator = (this && this.__generator) || function (thisArg, body) {
12-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14-
function verb(n) { return function (v) { return step([n, v]); }; }
15-
function step(op) {
16-
if (f) throw new TypeError("Generator is already executing.");
17-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
18-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19-
if (y = 0, t) op = [op[0] & 2, t.value];
20-
switch (op[0]) {
21-
case 0: case 1: t = op; break;
22-
case 4: _.label++; return { value: op[1], done: false };
23-
case 5: _.label++; y = op[1]; op = [0]; continue;
24-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
25-
default:
26-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30-
if (t[2]) _.ops.pop();
31-
_.trys.pop(); continue;
32-
}
33-
op = body.call(thisArg, _);
34-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36-
}
37-
};
382
Object.defineProperty(exports, "__esModule", { value: true });
393
exports.NoAuthSession = void 0;
404
var NoAuthSession = /** @class */ (function () {
@@ -52,15 +16,10 @@ var NoAuthSession = /** @class */ (function () {
5216
};
5317
}
5418
NoAuthSession.prototype._fetch = function (url, options) {
55-
return __awaiter(this, void 0, void 0, function () {
56-
return __generator(this, function (_a) {
57-
if (url.startsWith('file'))
58-
return [2 /*return*/, this.fileHandler.fetch(url, options)];
59-
else
60-
return [2 /*return*/, this.httpFetch(url, options)];
61-
return [2 /*return*/];
62-
});
63-
});
19+
if (url.startsWith('file'))
20+
return this.fileHandler.fetch(url, options);
21+
else
22+
return this.httpFetch(url, options);
6423
};
6524
return NoAuthSession;
6625
}());

0 commit comments

Comments
 (0)