@xylabs/static-implements 2.11.24 → 2.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.
- package/dist/node/index.cjs +37 -0
- package/dist/node/index.cjs.map +1 -0
- package/dist/node/index.js +2 -29
- package/dist/node/index.js.map +1 -1
- package/dist/node/staticImplements.cjs +35 -0
- package/dist/node/{index.mjs.map → staticImplements.cjs.map} +1 -1
- package/dist/node/staticImplements.js +2 -27
- package/dist/node/staticImplements.js.map +1 -1
- package/package.json +4 -6
- package/dist/node/index.mjs +0 -10
- package/dist/node/staticImplements.mjs +0 -10
- package/dist/node/staticImplements.mjs.map +0 -1
|
@@ -0,0 +1,37 @@
|
|
|
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/index.ts
|
|
21
|
+
var src_exports = {};
|
|
22
|
+
__export(src_exports, {
|
|
23
|
+
staticImplements: () => staticImplements
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(src_exports);
|
|
26
|
+
|
|
27
|
+
// src/staticImplements.ts
|
|
28
|
+
function staticImplements() {
|
|
29
|
+
return (constructor) => {
|
|
30
|
+
constructor;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
34
|
+
0 && (module.exports = {
|
|
35
|
+
staticImplements
|
|
36
|
+
});
|
|
37
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/staticImplements.ts"],"sourcesContent":["export * from './staticImplements'\n","/**\n * Annotation to decorate classes which implement static methods\n * @returns The decorated class requiring it to implement\n * the members of the the type as static properties/methods\n */\nexport function staticImplements<T>() {\n return <U extends T>(constructor: U) => {\n constructor\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACKO,SAAS,mBAAsB;AACpC,SAAO,CAAc,gBAAmB;AACtC;AAAA,EACF;AACF;","names":[]}
|
package/dist/node/index.js
CHANGED
|
@@ -1,37 +1,10 @@
|
|
|
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/index.ts
|
|
21
|
-
var src_exports = {};
|
|
22
|
-
__export(src_exports, {
|
|
23
|
-
staticImplements: () => staticImplements
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(src_exports);
|
|
26
|
-
|
|
27
1
|
// src/staticImplements.ts
|
|
28
2
|
function staticImplements() {
|
|
29
3
|
return (constructor) => {
|
|
30
4
|
constructor;
|
|
31
5
|
};
|
|
32
6
|
}
|
|
33
|
-
|
|
34
|
-
0 && (module.exports = {
|
|
7
|
+
export {
|
|
35
8
|
staticImplements
|
|
36
|
-
}
|
|
9
|
+
};
|
|
37
10
|
//# sourceMappingURL=index.js.map
|
package/dist/node/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/
|
|
1
|
+
{"version":3,"sources":["../../src/staticImplements.ts"],"sourcesContent":["/**\n * Annotation to decorate classes which implement static methods\n * @returns The decorated class requiring it to implement\n * the members of the the type as static properties/methods\n */\nexport function staticImplements<T>() {\n return <U extends T>(constructor: U) => {\n constructor\n }\n}\n"],"mappings":";AAKO,SAAS,mBAAsB;AACpC,SAAO,CAAc,gBAAmB;AACtC;AAAA,EACF;AACF;","names":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
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/staticImplements.ts
|
|
21
|
+
var staticImplements_exports = {};
|
|
22
|
+
__export(staticImplements_exports, {
|
|
23
|
+
staticImplements: () => staticImplements
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(staticImplements_exports);
|
|
26
|
+
function staticImplements() {
|
|
27
|
+
return (constructor) => {
|
|
28
|
+
constructor;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
+
0 && (module.exports = {
|
|
33
|
+
staticImplements
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=staticImplements.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/staticImplements.ts"],"sourcesContent":["/**\n * Annotation to decorate classes which implement static methods\n * @returns The decorated class requiring it to implement\n * the members of the the type as static properties/methods\n */\nexport function staticImplements<T>() {\n return <U extends T>(constructor: U) => {\n constructor\n }\n}\n"],"mappings":";AAKO,SAAS,mBAAsB;AACpC,SAAO,CAAc,gBAAmB;AACtC;AAAA,EACF;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/staticImplements.ts"],"sourcesContent":["/**\n * Annotation to decorate classes which implement static methods\n * @returns The decorated class requiring it to implement\n * the members of the the type as static properties/methods\n */\nexport function staticImplements<T>() {\n return <U extends T>(constructor: U) => {\n constructor\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKO,SAAS,mBAAsB;AACpC,SAAO,CAAc,gBAAmB;AACtC;AAAA,EACF;AACF;","names":[]}
|
|
@@ -1,35 +1,10 @@
|
|
|
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
1
|
// src/staticImplements.ts
|
|
21
|
-
var staticImplements_exports = {};
|
|
22
|
-
__export(staticImplements_exports, {
|
|
23
|
-
staticImplements: () => staticImplements
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(staticImplements_exports);
|
|
26
2
|
function staticImplements() {
|
|
27
3
|
return (constructor) => {
|
|
28
4
|
constructor;
|
|
29
5
|
};
|
|
30
6
|
}
|
|
31
|
-
|
|
32
|
-
0 && (module.exports = {
|
|
7
|
+
export {
|
|
33
8
|
staticImplements
|
|
34
|
-
}
|
|
9
|
+
};
|
|
35
10
|
//# sourceMappingURL=staticImplements.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/staticImplements.ts"],"sourcesContent":["/**\n * Annotation to decorate classes which implement static methods\n * @returns The decorated class requiring it to implement\n * the members of the the type as static properties/methods\n */\nexport function staticImplements<T>() {\n return <U extends T>(constructor: U) => {\n constructor\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/staticImplements.ts"],"sourcesContent":["/**\n * Annotation to decorate classes which implement static methods\n * @returns The decorated class requiring it to implement\n * the members of the the type as static properties/methods\n */\nexport function staticImplements<T>() {\n return <U extends T>(constructor: U) => {\n constructor\n }\n}\n"],"mappings":";AAKO,SAAS,mBAAsB;AACpC,SAAO,CAAc,gBAAmB;AACtC;AAAA,EACF;AACF;","names":[]}
|
package/package.json
CHANGED
|
@@ -12,16 +12,15 @@
|
|
|
12
12
|
},
|
|
13
13
|
"description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
|
|
14
14
|
"docs": "dist/docs.json",
|
|
15
|
-
"types": "dist/node/index.d.ts",
|
|
16
15
|
"exports": {
|
|
17
16
|
".": {
|
|
18
17
|
"require": {
|
|
19
18
|
"types": "./dist/node/index.d.ts",
|
|
20
|
-
"default": "./dist/node/index.
|
|
19
|
+
"default": "./dist/node/index.cjs"
|
|
21
20
|
},
|
|
22
21
|
"import": {
|
|
23
22
|
"types": "./dist/node/index.d.mts",
|
|
24
|
-
"default": "./dist/node/index.
|
|
23
|
+
"default": "./dist/node/index.js"
|
|
25
24
|
}
|
|
26
25
|
},
|
|
27
26
|
"./docs": {
|
|
@@ -29,8 +28,6 @@
|
|
|
29
28
|
},
|
|
30
29
|
"./package.json": "./package.json"
|
|
31
30
|
},
|
|
32
|
-
"main": "dist/node/index.js",
|
|
33
|
-
"module": "dist/node/index.mjs",
|
|
34
31
|
"homepage": "https://xylabs.com",
|
|
35
32
|
"keywords": [
|
|
36
33
|
"xylabs",
|
|
@@ -52,5 +49,6 @@
|
|
|
52
49
|
"url": "https://github.com/xylabs/sdk-js.git"
|
|
53
50
|
},
|
|
54
51
|
"sideEffects": false,
|
|
55
|
-
"version": "2.
|
|
52
|
+
"version": "2.12.0",
|
|
53
|
+
"type": "module"
|
|
56
54
|
}
|
package/dist/node/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/staticImplements.ts"],"sourcesContent":["/**\n * Annotation to decorate classes which implement static methods\n * @returns The decorated class requiring it to implement\n * the members of the the type as static properties/methods\n */\nexport function staticImplements<T>() {\n return <U extends T>(constructor: U) => {\n constructor\n }\n}\n"],"mappings":";AAKO,SAAS,mBAAsB;AACpC,SAAO,CAAc,gBAAmB;AACtC;AAAA,EACF;AACF;","names":[]}
|