@ntangled/kit 0.0.0-alpha.4 → 0.0.0-alpha.5
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.
- package/dist/chunk-2CGRX3O2.mjs +59 -0
- package/dist/main.d.mts +2 -0
- package/dist/main.d.ts +2 -2
- package/dist/main.js +76 -2
- package/dist/main.mjs +6 -0
- package/dist/safe.d.mts +24 -0
- package/dist/safe.d.ts +17 -7
- package/dist/safe.js +67 -54
- package/dist/safe.mjs +10 -0
- package/dist/types.d.mts +3 -0
- package/dist/types.d.ts +3 -2
- package/dist/types.js +18 -2
- package/dist/types.mjs +0 -0
- package/package.json +24 -8
- package/dist/main.d.ts.map +0 -1
- package/dist/main.js.map +0 -1
- package/dist/safe.d.ts.map +0 -1
- package/dist/safe.js.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js.map +0 -1
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __export = (target, all) => {
|
|
3
|
+
for (var name in all)
|
|
4
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
// src/safe.ts
|
|
8
|
+
var safe_exports = {};
|
|
9
|
+
__export(safe_exports, {
|
|
10
|
+
NullError: () => NullError,
|
|
11
|
+
w: () => w,
|
|
12
|
+
x: () => x
|
|
13
|
+
});
|
|
14
|
+
var NullError = class _NullError extends Error {
|
|
15
|
+
constructor() {
|
|
16
|
+
super("null");
|
|
17
|
+
this.name = "NullError";
|
|
18
|
+
Object.setPrototypeOf(this, _NullError.prototype);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
function x(callback) {
|
|
22
|
+
return (...params) => {
|
|
23
|
+
try {
|
|
24
|
+
const result = callback(...params);
|
|
25
|
+
if (result && typeof result.then === "function") {
|
|
26
|
+
return result.then((value) => [null, value]).catch((error) => {
|
|
27
|
+
if (error === null) return [new NullError(), null];
|
|
28
|
+
return [error, null];
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
return [null, result];
|
|
32
|
+
} catch (error) {
|
|
33
|
+
if (error === null) return [new NullError(), null];
|
|
34
|
+
return [error, null];
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function w(callback, ...params) {
|
|
39
|
+
try {
|
|
40
|
+
const result = callback(...params);
|
|
41
|
+
if (result && typeof result.then === "function") {
|
|
42
|
+
return result.then((value) => [null, value]).catch((error) => {
|
|
43
|
+
if (error === null) return [new NullError(), null];
|
|
44
|
+
return [error, null];
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
return [null, result];
|
|
48
|
+
} catch (error) {
|
|
49
|
+
if (error === null) return [new NullError(), null];
|
|
50
|
+
return [error, null];
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export {
|
|
55
|
+
NullError,
|
|
56
|
+
x,
|
|
57
|
+
w,
|
|
58
|
+
safe_exports
|
|
59
|
+
};
|
package/dist/main.d.mts
ADDED
package/dist/main.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
1
|
+
export { s } from './safe.js';
|
|
2
|
+
import './types.js';
|
package/dist/main.js
CHANGED
|
@@ -1,2 +1,76 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/main.ts
|
|
21
|
+
var main_exports = {};
|
|
22
|
+
__export(main_exports, {
|
|
23
|
+
s: () => safe_exports
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(main_exports);
|
|
26
|
+
|
|
27
|
+
// src/safe.ts
|
|
28
|
+
var safe_exports = {};
|
|
29
|
+
__export(safe_exports, {
|
|
30
|
+
NullError: () => NullError,
|
|
31
|
+
w: () => w,
|
|
32
|
+
x: () => x
|
|
33
|
+
});
|
|
34
|
+
var NullError = class _NullError extends Error {
|
|
35
|
+
constructor() {
|
|
36
|
+
super("null");
|
|
37
|
+
this.name = "NullError";
|
|
38
|
+
Object.setPrototypeOf(this, _NullError.prototype);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
function x(callback) {
|
|
42
|
+
return (...params) => {
|
|
43
|
+
try {
|
|
44
|
+
const result = callback(...params);
|
|
45
|
+
if (result && typeof result.then === "function") {
|
|
46
|
+
return result.then((value) => [null, value]).catch((error) => {
|
|
47
|
+
if (error === null) return [new NullError(), null];
|
|
48
|
+
return [error, null];
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
return [null, result];
|
|
52
|
+
} catch (error) {
|
|
53
|
+
if (error === null) return [new NullError(), null];
|
|
54
|
+
return [error, null];
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function w(callback, ...params) {
|
|
59
|
+
try {
|
|
60
|
+
const result = callback(...params);
|
|
61
|
+
if (result && typeof result.then === "function") {
|
|
62
|
+
return result.then((value) => [null, value]).catch((error) => {
|
|
63
|
+
if (error === null) return [new NullError(), null];
|
|
64
|
+
return [error, null];
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
return [null, result];
|
|
68
|
+
} catch (error) {
|
|
69
|
+
if (error === null) return [new NullError(), null];
|
|
70
|
+
return [error, null];
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
74
|
+
0 && (module.exports = {
|
|
75
|
+
s
|
|
76
|
+
});
|
package/dist/main.mjs
ADDED
package/dist/safe.d.mts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { NonNull } from './types.mjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Error thrown when a null value is encountered where not expected.
|
|
5
|
+
* @class NullError
|
|
6
|
+
* @extends Error
|
|
7
|
+
*/
|
|
8
|
+
declare class NullError extends Error {
|
|
9
|
+
constructor();
|
|
10
|
+
}
|
|
11
|
+
declare function x<Callback extends (...params: any[]) => Promise<any>>(callback: Callback): (...params: Parameters<Callback>) => Promise<[NonNull, null] | [null, Awaited<ReturnType<Callback>>]>;
|
|
12
|
+
declare function x<Callback extends (...params: any[]) => any>(callback: Callback): (...params: Parameters<Callback>) => [NonNull, null] | [null, ReturnType<Callback>];
|
|
13
|
+
declare function w<Callback extends (...params: any[]) => Promise<any>>(callback: Callback, ...params: Parameters<Callback>): Promise<[NonNull, null] | [null, Awaited<ReturnType<Callback>>]>;
|
|
14
|
+
declare function w<Callback extends (...params: any[]) => any>(callback: Callback, ...params: Parameters<Callback>): [NonNull, null] | [null, ReturnType<Callback>];
|
|
15
|
+
|
|
16
|
+
type safe_NullError = NullError;
|
|
17
|
+
declare const safe_NullError: typeof NullError;
|
|
18
|
+
declare const safe_w: typeof w;
|
|
19
|
+
declare const safe_x: typeof x;
|
|
20
|
+
declare namespace safe {
|
|
21
|
+
export { safe_NullError as NullError, safe_w as w, safe_x as x };
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { NullError, safe as s, w, x };
|
package/dist/safe.d.ts
CHANGED
|
@@ -1,14 +1,24 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { NonNull } from './types.js';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
* Error thrown when a null value is encountered where not expected.
|
|
4
5
|
* @class NullError
|
|
5
6
|
* @extends Error
|
|
6
7
|
*/
|
|
7
|
-
|
|
8
|
+
declare class NullError extends Error {
|
|
8
9
|
constructor();
|
|
9
10
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
declare function x<Callback extends (...params: any[]) => Promise<any>>(callback: Callback): (...params: Parameters<Callback>) => Promise<[NonNull, null] | [null, Awaited<ReturnType<Callback>>]>;
|
|
12
|
+
declare function x<Callback extends (...params: any[]) => any>(callback: Callback): (...params: Parameters<Callback>) => [NonNull, null] | [null, ReturnType<Callback>];
|
|
13
|
+
declare function w<Callback extends (...params: any[]) => Promise<any>>(callback: Callback, ...params: Parameters<Callback>): Promise<[NonNull, null] | [null, Awaited<ReturnType<Callback>>]>;
|
|
14
|
+
declare function w<Callback extends (...params: any[]) => any>(callback: Callback, ...params: Parameters<Callback>): [NonNull, null] | [null, ReturnType<Callback>];
|
|
15
|
+
|
|
16
|
+
type safe_NullError = NullError;
|
|
17
|
+
declare const safe_NullError: typeof NullError;
|
|
18
|
+
declare const safe_w: typeof w;
|
|
19
|
+
declare const safe_x: typeof x;
|
|
20
|
+
declare namespace safe {
|
|
21
|
+
export { safe_NullError as NullError, safe_w as w, safe_x as x };
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { NullError, safe as s, w, x };
|
package/dist/safe.js
CHANGED
|
@@ -1,59 +1,72 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
export function w(callback, ...params) {
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/safe.ts
|
|
21
|
+
var safe_exports = {};
|
|
22
|
+
__export(safe_exports, {
|
|
23
|
+
NullError: () => NullError,
|
|
24
|
+
w: () => w,
|
|
25
|
+
x: () => x
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(safe_exports);
|
|
28
|
+
var NullError = class _NullError extends Error {
|
|
29
|
+
constructor() {
|
|
30
|
+
super("null");
|
|
31
|
+
this.name = "NullError";
|
|
32
|
+
Object.setPrototypeOf(this, _NullError.prototype);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
function x(callback) {
|
|
36
|
+
return (...params) => {
|
|
38
37
|
try {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
// Synchronous
|
|
51
|
-
return [null, result];
|
|
38
|
+
const result = callback(...params);
|
|
39
|
+
if (result && typeof result.then === "function") {
|
|
40
|
+
return result.then((value) => [null, value]).catch((error) => {
|
|
41
|
+
if (error === null) return [new NullError(), null];
|
|
42
|
+
return [error, null];
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
return [null, result];
|
|
46
|
+
} catch (error) {
|
|
47
|
+
if (error === null) return [new NullError(), null];
|
|
48
|
+
return [error, null];
|
|
52
49
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function w(callback, ...params) {
|
|
53
|
+
try {
|
|
54
|
+
const result = callback(...params);
|
|
55
|
+
if (result && typeof result.then === "function") {
|
|
56
|
+
return result.then((value) => [null, value]).catch((error) => {
|
|
57
|
+
if (error === null) return [new NullError(), null];
|
|
56
58
|
return [error, null];
|
|
59
|
+
});
|
|
57
60
|
}
|
|
61
|
+
return [null, result];
|
|
62
|
+
} catch (error) {
|
|
63
|
+
if (error === null) return [new NullError(), null];
|
|
64
|
+
return [error, null];
|
|
65
|
+
}
|
|
58
66
|
}
|
|
59
|
-
|
|
67
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
68
|
+
0 && (module.exports = {
|
|
69
|
+
NullError,
|
|
70
|
+
w,
|
|
71
|
+
x
|
|
72
|
+
});
|
package/dist/safe.mjs
ADDED
package/dist/types.d.mts
ADDED
package/dist/types.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
type NonNull = NonNullable<unknown>;
|
|
2
|
+
|
|
3
|
+
export type { NonNull };
|
package/dist/types.js
CHANGED
|
@@ -1,2 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/types.ts
|
|
17
|
+
var types_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(types_exports);
|
package/dist/types.mjs
ADDED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,20 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ntangled/kit",
|
|
3
|
-
"version": "0.0.0-alpha.
|
|
3
|
+
"version": "0.0.0-alpha.5",
|
|
4
4
|
"description": "A TypeScript utility package for safe function execution and other helpers.",
|
|
5
5
|
"author": "Stephan D. <stephan.mdd@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/ntangled/kit#readme",
|
|
7
7
|
"license": "MIT",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"types": "dist/main.d.ts",
|
|
8
|
+
"main": "./dist/main.js",
|
|
9
|
+
"module": "./dist/main.mjs",
|
|
10
|
+
"types": "./dist/main.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/main.d.ts",
|
|
14
|
+
"import": "./dist/main.mjs",
|
|
15
|
+
"require": "./dist/main.js"
|
|
16
|
+
},
|
|
17
|
+
"./*": {
|
|
18
|
+
"types": "./dist/*.d.ts",
|
|
19
|
+
"import": "./dist/*.mjs",
|
|
20
|
+
"require": "./dist/*.js"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
11
23
|
"files": [
|
|
12
24
|
"dist"
|
|
13
25
|
],
|
|
14
|
-
"scripts": {
|
|
15
|
-
"build": "tsc",
|
|
16
|
-
"prepublishOnly": "npm run build"
|
|
17
|
-
},
|
|
18
26
|
"repository": {
|
|
19
27
|
"type": "git",
|
|
20
28
|
"url": "https://github.com/ntangled/kit.git"
|
|
@@ -30,8 +38,16 @@
|
|
|
30
38
|
"bugs": {
|
|
31
39
|
"url": "https://github.com/ntangled/kit/issues"
|
|
32
40
|
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"dev": "tsx src/main.ts",
|
|
43
|
+
"watch": "tsx watch src/main.ts",
|
|
44
|
+
"build": "tsup src/**/*.ts --format cjs,esm --dts --clean",
|
|
45
|
+
"prepublishOnly": "yarn build"
|
|
46
|
+
},
|
|
33
47
|
"devDependencies": {
|
|
34
48
|
"ts-node": "^10.9.2",
|
|
49
|
+
"tsup": "^8.5.1",
|
|
50
|
+
"tsx": "^4.21.0",
|
|
35
51
|
"typescript": "^5.9.3"
|
|
36
52
|
}
|
|
37
53
|
}
|
package/dist/main.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC"}
|
package/dist/main.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,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E,CAAC;YAChB,IAAI,KAAK,KAAK,IAAI;gBAAE,OAAO,CAAC,IAAI,SAAS,EAAE,EAAE,IAAI,CAAC,CAAC;YACnD,OAAO,CAAC,KAAgB,EAAE,IAAI,CAAC,CAAC;QACjC,CAAC;IACF,CAAC,CAAC;AACH,CAAC;AAaD,MAAM,UAAU,CAAC,CAChB,QAAkB,EAClB,GAAG,MAA4B;IAE/B,IAAI,CAAC;QACJ,MAAM,MAAM,GAAG,QAAQ,CAAC,GAAG,MAAM,CAAC,CAAC;QACnC,IAAI,MAAM,IAAI,OAAO,MAAM,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;YACjD,yBAAyB;YACzB,OAAO,MAAM;iBACX,IAAI,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,KAAK,CAA0C,CAAC;iBAC5E,KAAK,CAAC,CAAC,KAAU,EAAE,EAAE;gBACrB,IAAI,KAAK,KAAK,IAAI;oBAAE,OAAO,CAAC,IAAI,SAAS,EAAE,EAAE,IAAI,CAAoB,CAAC;gBACtE,OAAO,CAAC,KAAgB,EAAE,IAAI,CAAoB,CAAC;YACpD,CAAC,CAAC,CAAC;QACL,CAAC;QACD,cAAc;QACd,OAAO,CAAC,IAAI,EAAE,MAA8B,CAAC,CAAC;IAC/C,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,IAAI,KAAK,KAAK,IAAI;YAAE,OAAO,CAAC,IAAI,SAAS,EAAE,EAAE,IAAI,CAAC,CAAC;QACnD,OAAO,CAAC,KAAgB,EAAE,IAAI,CAAC,CAAC;IACjC,CAAC;AACF,CAAC"}
|
package/dist/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC"}
|
package/dist/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
|