@utiliread/http 1.10.0 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/.vscode/settings.json +2 -2
  2. package/dist/cjs/http-builder.js.map +1 -1
  3. package/dist/cjs/http.js +2 -1
  4. package/dist/cjs/http.js.map +1 -1
  5. package/dist/cjs/msgpack.js +12 -0
  6. package/dist/cjs/msgpack.js.map +1 -1
  7. package/dist/esm/http-builder.d.ts +3 -0
  8. package/dist/esm/http-builder.js.map +1 -1
  9. package/dist/esm/http.d.ts +1 -1
  10. package/dist/esm/http.js +2 -1
  11. package/dist/esm/http.js.map +1 -1
  12. package/dist/esm/msgpack.d.ts +1 -0
  13. package/dist/esm/msgpack.js +13 -1
  14. package/dist/esm/msgpack.js.map +1 -1
  15. package/karma.config.js +30 -30
  16. package/package.json +1 -1
  17. package/src/event-aggregator.ts +31 -31
  18. package/src/helpers.ts +13 -13
  19. package/src/http-builder.ts +254 -253
  20. package/src/http-error.ts +25 -25
  21. package/src/http-response.ts +55 -55
  22. package/src/http.spec.ts +104 -104
  23. package/src/http.ts +121 -120
  24. package/src/index.ts +16 -16
  25. package/src/json.ts +138 -138
  26. package/src/mapping.ts +42 -42
  27. package/src/msgpack.ts +63 -48
  28. package/src/pagination.ts +25 -25
  29. package/src/problem-details.ts +7 -7
  30. package/src/query-string.spec.ts +62 -62
  31. package/src/query-string.ts +69 -69
  32. package/src/timeout-error.ts +10 -10
  33. package/tsconfig.cjs.json +8 -8
  34. package/tsconfig.json +13 -13
  35. package/dist/cjs/events.js +0 -89
  36. package/dist/cjs/events.js.map +0 -1
  37. package/dist/cjs/settings.js +0 -3
  38. package/dist/cjs/settings.js.map +0 -1
  39. package/dist/cjs/utils.js +0 -8
  40. package/dist/cjs/utils.js.map +0 -1
  41. package/dist/esm/events.d.ts +0 -25
  42. package/dist/esm/events.js +0 -86
  43. package/dist/esm/events.js.map +0 -1
  44. package/dist/esm/settings.d.ts +0 -6
  45. package/dist/esm/settings.js +0 -2
  46. package/dist/esm/settings.js.map +0 -1
  47. package/dist/esm/utils.d.ts +0 -3
  48. package/dist/esm/utils.js +0 -4
  49. package/dist/esm/utils.js.map +0 -1
@@ -1,70 +1,70 @@
1
- import { DateTime } from "luxon";
2
-
3
- export class QueryString {
4
- static serialize(params: any) {
5
- if (!params) {
6
- return "";
7
- }
8
- const serialized = this._serializeQueryString(params);
9
- if (!serialized.length) {
10
- return "";
11
- }
12
- return "?" + serialized;
13
- }
14
-
15
- static append(url: string, params: any) {
16
- if (!params) {
17
- return url;
18
- }
19
- const any = url.indexOf("?") >= 0;
20
- const separator = any ? "&" : "?";
21
-
22
- return url + separator + this._serializeQueryString(params);
23
- }
24
-
25
- static getParameter(name: string) {
26
- const regex = new RegExp(`[?&]${name}(=([^&#]*)|&|#|$)`);
27
- const match = regex.exec(window.location.href);
28
- if (match) {
29
- if (match[1].length > 0) {
30
- return decodeURIComponent(match[2]);
31
- }
32
- else {
33
- return null;
34
- }
35
- }
36
- }
37
-
38
- private static _serializeQueryString(source: any, prefix?: string) {
39
- const parts: string[] = [];
40
- for (const propertyName in source) {
41
- if (source.hasOwnProperty(propertyName)) {
42
- const key = prefix != null
43
- ? prefix + (
44
- Array.isArray(source)
45
- ? "[" + encodeURIComponent(propertyName) + "]"
46
- : "." + encodeURIComponent(propertyName)
47
- )
48
- : encodeURIComponent(propertyName);
49
- const value = source[propertyName];
50
-
51
- if (value instanceof DateTime) {
52
- parts.push(key + "=" + encodeURIComponent(value.toISO()));
53
- }
54
- else if (value === null) {
55
- parts.push(key);
56
- }
57
- else if (value !== undefined) {
58
- if (typeof value === "object") {
59
- parts.push(this._serializeQueryString(value, key));
60
- }
61
- else {
62
- parts.push(key + "=" + encodeURIComponent(value));
63
- }
64
- }
65
- }
66
- }
67
-
68
- return parts.join("&");
69
- }
1
+ import { DateTime } from "luxon";
2
+
3
+ export class QueryString {
4
+ static serialize(params: any) {
5
+ if (!params) {
6
+ return "";
7
+ }
8
+ const serialized = this._serializeQueryString(params);
9
+ if (!serialized.length) {
10
+ return "";
11
+ }
12
+ return "?" + serialized;
13
+ }
14
+
15
+ static append(url: string, params: any) {
16
+ if (!params) {
17
+ return url;
18
+ }
19
+ const any = url.indexOf("?") >= 0;
20
+ const separator = any ? "&" : "?";
21
+
22
+ return url + separator + this._serializeQueryString(params);
23
+ }
24
+
25
+ static getParameter(name: string) {
26
+ const regex = new RegExp(`[?&]${name}(=([^&#]*)|&|#|$)`);
27
+ const match = regex.exec(window.location.href);
28
+ if (match) {
29
+ if (match[1].length > 0) {
30
+ return decodeURIComponent(match[2]);
31
+ }
32
+ else {
33
+ return null;
34
+ }
35
+ }
36
+ }
37
+
38
+ private static _serializeQueryString(source: any, prefix?: string) {
39
+ const parts: string[] = [];
40
+ for (const propertyName in source) {
41
+ if (source.hasOwnProperty(propertyName)) {
42
+ const key = prefix != null
43
+ ? prefix + (
44
+ Array.isArray(source)
45
+ ? "[" + encodeURIComponent(propertyName) + "]"
46
+ : "." + encodeURIComponent(propertyName)
47
+ )
48
+ : encodeURIComponent(propertyName);
49
+ const value = source[propertyName];
50
+
51
+ if (value instanceof DateTime) {
52
+ parts.push(key + "=" + encodeURIComponent(value.toISO()));
53
+ }
54
+ else if (value === null) {
55
+ parts.push(key);
56
+ }
57
+ else if (value !== undefined) {
58
+ if (typeof value === "object") {
59
+ parts.push(this._serializeQueryString(value, key));
60
+ }
61
+ else {
62
+ parts.push(key + "=" + encodeURIComponent(value));
63
+ }
64
+ }
65
+ }
66
+ }
67
+
68
+ return parts.join("&");
69
+ }
70
70
  }
@@ -1,10 +1,10 @@
1
- export class TimeoutError extends Error {
2
- constructor() {
3
- super("Timeout: The request was not successful");
4
- this.name = 'TimeoutError';
5
-
6
- // Set the prototype explicitly to allow for "... instanceof TimeoutError",
7
- // see https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work
8
- Object.setPrototypeOf(this, TimeoutError.prototype);
9
- }
10
- }
1
+ export class TimeoutError extends Error {
2
+ constructor() {
3
+ super("Timeout: The request was not successful");
4
+ this.name = 'TimeoutError';
5
+
6
+ // Set the prototype explicitly to allow for "... instanceof TimeoutError",
7
+ // see https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work
8
+ Object.setPrototypeOf(this, TimeoutError.prototype);
9
+ }
10
+ }
package/tsconfig.cjs.json CHANGED
@@ -1,9 +1,9 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "target": "es5",
5
- "module": "commonjs",
6
- "outDir": "dist/cjs",
7
- "declaration": false
8
- }
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "target": "es5",
5
+ "module": "commonjs",
6
+ "outDir": "dist/cjs",
7
+ "declaration": false
8
+ }
9
9
  }
package/tsconfig.json CHANGED
@@ -1,14 +1,14 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es5",
4
- "module": "esnext",
5
- "moduleResolution": "node",
6
- "declaration": true,
7
- "sourceMap": true,
8
- "strict": true,
9
- "rootDir": "src",
10
- "outDir": "dist/esm",
11
- "lib": [ "es2017", "dom" ],
12
- "stripInternal": true,
13
- }
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es5",
4
+ "module": "esnext",
5
+ "moduleResolution": "node",
6
+ "declaration": true,
7
+ "sourceMap": true,
8
+ "strict": true,
9
+ "rootDir": "src",
10
+ "outDir": "dist/esm",
11
+ "lib": [ "es2017", "dom" ],
12
+ "stripInternal": true,
13
+ }
14
14
  }
@@ -1,89 +0,0 @@
1
- "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 (_) 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
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.DefaultEventHub = exports.HttpEvent = void 0;
40
- var HttpEvent = /** @class */ (function () {
41
- function HttpEvent() {
42
- }
43
- return HttpEvent;
44
- }());
45
- exports.HttpEvent = HttpEvent;
46
- var DefaultEventHub = /** @class */ (function () {
47
- function DefaultEventHub() {
48
- this.subscribers = [];
49
- }
50
- DefaultEventHub.prototype.publish = function (event) {
51
- return __awaiter(this, void 0, void 0, function () {
52
- var subscribers, _i, subscribers_1, subscriber;
53
- return __generator(this, function (_a) {
54
- switch (_a.label) {
55
- case 0:
56
- subscribers = this.subscribers.slice();
57
- _i = 0, subscribers_1 = subscribers;
58
- _a.label = 1;
59
- case 1:
60
- if (!(_i < subscribers_1.length)) return [3 /*break*/, 4];
61
- subscriber = subscribers_1[_i];
62
- return [4 /*yield*/, Promise.resolve(subscriber(event))];
63
- case 2:
64
- _a.sent();
65
- _a.label = 3;
66
- case 3:
67
- _i++;
68
- return [3 /*break*/, 1];
69
- case 4: return [2 /*return*/];
70
- }
71
- });
72
- });
73
- };
74
- DefaultEventHub.prototype.subscribe = function (callback) {
75
- var subscribers = this.subscribers;
76
- subscribers.push(callback);
77
- return {
78
- dispose: function () {
79
- var index = subscribers.indexOf(callback);
80
- if (index !== -1) {
81
- subscribers.splice(index, 1);
82
- }
83
- },
84
- };
85
- };
86
- return DefaultEventHub;
87
- }());
88
- exports.DefaultEventHub = DefaultEventHub;
89
- //# sourceMappingURL=events.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/events.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA;IAAA;IAQA,CAAC;IAAD,gBAAC;AAAD,CAAC,AARD,IAQC;AARY,8BAAS;AAetB;IAAA;QACU,gBAAW,GAAiB,EAAE,CAAC;IAqBzC,CAAC;IAnBO,iCAAO,GAAb,UAAc,KAAgB;;;;;;wBACtB,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;8BACT,EAAX,2BAAW;;;6BAAX,CAAA,yBAAW,CAAA;wBAAzB,UAAU;wBACnB,qBAAM,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,EAAA;;wBAAxC,SAAwC,CAAC;;;wBADlB,IAAW,CAAA;;;;;;KAGrC;IAED,mCAAS,GAAT,UAAU,QAAoB;QAC5B,IAAM,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QACrC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC3B,OAAO;YACL,OAAO,EAAE;gBACP,IAAM,KAAK,GAAG,WAAW,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;gBAC5C,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE;oBAChB,WAAW,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;iBAC9B;YACH,CAAC;SACF,CAAC;IACJ,CAAC;IACH,sBAAC;AAAD,CAAC,AAtBD,IAsBC;AAtBY,0CAAe"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=settings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../src/settings.ts"],"names":[],"mappings":""}
package/dist/cjs/utils.js DELETED
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isZeroArgumentFunction = void 0;
4
- function isZeroArgumentFunction(typeCtor) {
5
- return typeCtor.length === 0;
6
- }
7
- exports.isZeroArgumentFunction = isZeroArgumentFunction;
8
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":";;;AAAA,SAAgB,sBAAsB,CAAI,QAAkB;IACxD,OAAO,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC;AACjC,CAAC;AAFD,wDAEC"}
@@ -1,25 +0,0 @@
1
- import { HttpMethod } from "./http-builder";
2
- import { HttpResponse } from "./http-response";
3
- declare type CallbackFn = (event: HttpEvent) => void | Promise<void>;
4
- export declare class HttpEvent {
5
- hook: "sent" | "received";
6
- method: HttpMethod;
7
- url: string;
8
- reducer: Function;
9
- params: any[];
10
- response: HttpResponse;
11
- value?: any;
12
- }
13
- export interface EventHub {
14
- publish(event: HttpEvent): Promise<void>;
15
- subscribe(callback: CallbackFn): Subscription;
16
- }
17
- export declare class DefaultEventHub implements EventHub {
18
- private subscribers;
19
- publish(event: HttpEvent): Promise<void>;
20
- subscribe(callback: CallbackFn): Subscription;
21
- }
22
- export interface Subscription {
23
- dispose(): void;
24
- }
25
- export {};
@@ -1,86 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- var __generator = (this && this.__generator) || function (thisArg, body) {
11
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
12
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
- function verb(n) { return function (v) { return step([n, v]); }; }
14
- function step(op) {
15
- if (f) throw new TypeError("Generator is already executing.");
16
- while (_) try {
17
- 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;
18
- if (y = 0, t) op = [op[0] & 2, t.value];
19
- switch (op[0]) {
20
- case 0: case 1: t = op; break;
21
- case 4: _.label++; return { value: op[1], done: false };
22
- case 5: _.label++; y = op[1]; op = [0]; continue;
23
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
24
- default:
25
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
26
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
27
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
28
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
29
- if (t[2]) _.ops.pop();
30
- _.trys.pop(); continue;
31
- }
32
- op = body.call(thisArg, _);
33
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
34
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
- }
36
- };
37
- var HttpEvent = /** @class */ (function () {
38
- function HttpEvent() {
39
- }
40
- return HttpEvent;
41
- }());
42
- export { HttpEvent };
43
- var DefaultEventHub = /** @class */ (function () {
44
- function DefaultEventHub() {
45
- this.subscribers = [];
46
- }
47
- DefaultEventHub.prototype.publish = function (event) {
48
- return __awaiter(this, void 0, void 0, function () {
49
- var subscribers, _i, subscribers_1, subscriber;
50
- return __generator(this, function (_a) {
51
- switch (_a.label) {
52
- case 0:
53
- subscribers = this.subscribers.slice();
54
- _i = 0, subscribers_1 = subscribers;
55
- _a.label = 1;
56
- case 1:
57
- if (!(_i < subscribers_1.length)) return [3 /*break*/, 4];
58
- subscriber = subscribers_1[_i];
59
- return [4 /*yield*/, Promise.resolve(subscriber(event))];
60
- case 2:
61
- _a.sent();
62
- _a.label = 3;
63
- case 3:
64
- _i++;
65
- return [3 /*break*/, 1];
66
- case 4: return [2 /*return*/];
67
- }
68
- });
69
- });
70
- };
71
- DefaultEventHub.prototype.subscribe = function (callback) {
72
- var subscribers = this.subscribers;
73
- subscribers.push(callback);
74
- return {
75
- dispose: function () {
76
- var index = subscribers.indexOf(callback);
77
- if (index !== -1) {
78
- subscribers.splice(index, 1);
79
- }
80
- },
81
- };
82
- };
83
- return DefaultEventHub;
84
- }());
85
- export { DefaultEventHub };
86
- //# sourceMappingURL=events.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/events.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA;IAAA;IAQA,CAAC;IAAD,gBAAC;AAAD,CAAC,AARD,IAQC;;AAOD;IAAA;QACU,gBAAW,GAAiB,EAAE,CAAC;IAqBzC,CAAC;IAnBO,iCAAO,GAAb,UAAc,KAAgB;;;;;;wBACtB,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;8BACT,EAAX,2BAAW;;;6BAAX,CAAA,yBAAW,CAAA;wBAAzB,UAAU;wBACnB,qBAAM,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,EAAA;;wBAAxC,SAAwC,CAAC;;;wBADlB,IAAW,CAAA;;;;;;KAGrC;IAED,mCAAS,GAAT,UAAU,QAAoB;QAC5B,IAAM,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QACrC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC3B,OAAO;YACL,OAAO,EAAE;gBACP,IAAM,KAAK,GAAG,WAAW,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;gBAC5C,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE;oBAChB,WAAW,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;iBAC9B;YACH,CAAC;SACF,CAAC;IACJ,CAAC;IACH,sBAAC;AAAD,CAAC,AAtBD,IAsBC"}
@@ -1,6 +0,0 @@
1
- import { Fetch } from "./http";
2
- export interface Settings {
3
- fetch?: Fetch;
4
- corsMode?: RequestMode;
5
- baseUrl?: string;
6
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=settings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../src/settings.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- export declare function isZeroArgumentFunction<T>(typeCtor: Function): typeCtor is {
2
- new (): T;
3
- };
package/dist/esm/utils.js DELETED
@@ -1,4 +0,0 @@
1
- export function isZeroArgumentFunction(typeCtor) {
2
- return typeCtor.length === 0;
3
- }
4
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,sBAAsB,CAAI,QAAkB;IACxD,OAAO,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC;AACjC,CAAC"}