@xylabs/static-implements 3.6.11 → 4.0.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/neutral/index.d.ts +3 -2
- package/package.json +6 -14
- package/xy.config.ts +12 -0
- package/dist/browser/index.cjs +0 -33
- package/dist/browser/index.cjs.map +0 -1
- package/dist/browser/index.d.cts +0 -2
- package/dist/browser/index.d.cts.map +0 -1
- package/dist/browser/index.d.mts +0 -2
- package/dist/browser/index.d.mts.map +0 -1
- package/dist/browser/index.d.ts +0 -2
- package/dist/browser/index.d.ts.map +0 -1
- package/dist/browser/index.mjs +0 -10
- package/dist/browser/index.mjs.map +0 -1
- package/dist/browser/staticImplements.d.cts +0 -2
- package/dist/browser/staticImplements.d.cts.map +0 -1
- package/dist/browser/staticImplements.d.mts +0 -2
- package/dist/browser/staticImplements.d.mts.map +0 -1
- package/dist/browser/staticImplements.d.ts +0 -2
- package/dist/browser/staticImplements.d.ts.map +0 -1
- package/dist/neutral/index.cjs +0 -33
- package/dist/neutral/index.cjs.map +0 -1
- package/dist/neutral/index.d.cts +0 -2
- package/dist/neutral/index.d.cts.map +0 -1
- package/dist/neutral/index.d.mts +0 -2
- package/dist/neutral/index.d.mts.map +0 -1
- package/dist/neutral/index.d.ts.map +0 -1
- package/dist/neutral/staticImplements.d.cts +0 -2
- package/dist/neutral/staticImplements.d.cts.map +0 -1
- package/dist/neutral/staticImplements.d.mts +0 -2
- package/dist/neutral/staticImplements.d.mts.map +0 -1
- package/dist/neutral/staticImplements.d.ts +0 -2
- package/dist/neutral/staticImplements.d.ts.map +0 -1
- package/dist/node/index.cjs +0 -37
- package/dist/node/index.cjs.map +0 -1
- package/dist/node/index.d.cts +0 -2
- package/dist/node/index.d.cts.map +0 -1
- package/dist/node/index.d.mts +0 -2
- package/dist/node/index.d.mts.map +0 -1
- package/dist/node/index.d.ts +0 -2
- package/dist/node/index.d.ts.map +0 -1
- package/dist/node/index.mjs +0 -10
- package/dist/node/index.mjs.map +0 -1
- package/dist/node/staticImplements.d.cts +0 -2
- package/dist/node/staticImplements.d.cts.map +0 -1
- package/dist/node/staticImplements.d.mts +0 -2
- package/dist/node/staticImplements.d.mts.map +0 -1
- package/dist/node/staticImplements.d.ts +0 -2
- package/dist/node/staticImplements.d.ts.map +0 -1
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
declare function staticImplements<T>(): <U extends T>(constructor: U) => void;
|
|
2
|
+
|
|
3
|
+
export { staticImplements };
|
package/package.json
CHANGED
|
@@ -13,18 +13,11 @@
|
|
|
13
13
|
"description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
"default": "./dist/neutral/index.cjs"
|
|
19
|
-
},
|
|
20
|
-
"import": {
|
|
21
|
-
"types": "./dist/neutral/index.d.ts",
|
|
22
|
-
"default": "./dist/neutral/index.mjs"
|
|
23
|
-
}
|
|
16
|
+
"types": "./dist/neutral/index.d.ts",
|
|
17
|
+
"default": "./dist/neutral/index.mjs"
|
|
24
18
|
},
|
|
25
19
|
"./package.json": "./package.json"
|
|
26
20
|
},
|
|
27
|
-
"main": "./dist/neutral/index.cjs",
|
|
28
21
|
"types": "./dist/neutral/index.d.ts",
|
|
29
22
|
"module": "./dist/neutral/index.mjs",
|
|
30
23
|
"homepage": "https://xylabs.com",
|
|
@@ -37,10 +30,9 @@
|
|
|
37
30
|
"esm"
|
|
38
31
|
],
|
|
39
32
|
"devDependencies": {
|
|
40
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
41
|
-
"@xylabs/tsconfig": "^
|
|
42
|
-
"@xylabs/tsconfig-jest": "^
|
|
43
|
-
"tslib": "^2.6.3",
|
|
33
|
+
"@xylabs/ts-scripts-yarn3": "^4.0.0-rc.15",
|
|
34
|
+
"@xylabs/tsconfig": "^4.0.0-rc.15",
|
|
35
|
+
"@xylabs/tsconfig-jest": "^4.0.0-rc.15",
|
|
44
36
|
"typescript": "^5.5.4"
|
|
45
37
|
},
|
|
46
38
|
"engines": {
|
|
@@ -54,6 +46,6 @@
|
|
|
54
46
|
"url": "https://github.com/xylabs/sdk-js.git"
|
|
55
47
|
},
|
|
56
48
|
"sideEffects": false,
|
|
57
|
-
"version": "
|
|
49
|
+
"version": "4.0.0",
|
|
58
50
|
"type": "module"
|
|
59
51
|
}
|
package/xy.config.ts
ADDED
package/dist/browser/index.cjs
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
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
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/staticImplements.ts"],"sourcesContent":["export * from './staticImplements.ts'\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 // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n constructor\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACKO,SAAS,mBAAsB;AACpC,SAAO,CAAc,gBAAmB;AAEtC;AAAA,EACF;AACF;","names":[]}
|
package/dist/browser/index.d.cts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA"}
|
package/dist/browser/index.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA"}
|
package/dist/browser/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA"}
|
package/dist/browser/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 // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n constructor\n }\n}\n"],"mappings":";AAKO,SAAS,mBAAsB;AACpC,SAAO,CAAc,gBAAmB;AAEtC;AAAA,EACF;AACF;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"staticImplements.d.ts","sourceRoot":"","sources":["../../src/staticImplements.ts"],"names":[],"mappings":"AAKA,wBAAgB,gBAAgB,CAAC,CAAC,MACxB,CAAC,SAAS,CAAC,eAAe,CAAC,UAIpC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"staticImplements.d.ts","sourceRoot":"","sources":["../../src/staticImplements.ts"],"names":[],"mappings":"AAKA,wBAAgB,gBAAgB,CAAC,CAAC,MACxB,CAAC,SAAS,CAAC,eAAe,CAAC,UAIpC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"staticImplements.d.ts","sourceRoot":"","sources":["../../src/staticImplements.ts"],"names":[],"mappings":"AAKA,wBAAgB,gBAAgB,CAAC,CAAC,MACxB,CAAC,SAAS,CAAC,eAAe,CAAC,UAIpC"}
|
package/dist/neutral/index.cjs
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
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
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/staticImplements.ts"],"sourcesContent":["export * from './staticImplements.ts'\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 // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n constructor\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACKO,SAAS,mBAAsB;AACpC,SAAO,CAAc,gBAAmB;AAEtC;AAAA,EACF;AACF;","names":[]}
|
package/dist/neutral/index.d.cts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA"}
|
package/dist/neutral/index.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"staticImplements.d.ts","sourceRoot":"","sources":["../../src/staticImplements.ts"],"names":[],"mappings":"AAKA,wBAAgB,gBAAgB,CAAC,CAAC,MACxB,CAAC,SAAS,CAAC,eAAe,CAAC,UAIpC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"staticImplements.d.ts","sourceRoot":"","sources":["../../src/staticImplements.ts"],"names":[],"mappings":"AAKA,wBAAgB,gBAAgB,CAAC,CAAC,MACxB,CAAC,SAAS,CAAC,eAAe,CAAC,UAIpC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"staticImplements.d.ts","sourceRoot":"","sources":["../../src/staticImplements.ts"],"names":[],"mappings":"AAKA,wBAAgB,gBAAgB,CAAC,CAAC,MACxB,CAAC,SAAS,CAAC,eAAe,CAAC,UAIpC"}
|
package/dist/node/index.cjs
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
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
|
package/dist/node/index.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/staticImplements.ts"],"sourcesContent":["export * from './staticImplements.ts'\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 // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n constructor\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACKO,SAAS,mBAAsB;AACpC,SAAO,CAAc,gBAAmB;AAEtC;AAAA,EACF;AACF;","names":[]}
|
package/dist/node/index.d.cts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA"}
|
package/dist/node/index.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA"}
|
package/dist/node/index.d.ts
DELETED
package/dist/node/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA"}
|
package/dist/node/index.mjs
DELETED
package/dist/node/index.mjs.map
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 // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n constructor\n }\n}\n"],"mappings":";AAKO,SAAS,mBAAsB;AACpC,SAAO,CAAc,gBAAmB;AAEtC;AAAA,EACF;AACF;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"staticImplements.d.ts","sourceRoot":"","sources":["../../src/staticImplements.ts"],"names":[],"mappings":"AAKA,wBAAgB,gBAAgB,CAAC,CAAC,MACxB,CAAC,SAAS,CAAC,eAAe,CAAC,UAIpC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"staticImplements.d.ts","sourceRoot":"","sources":["../../src/staticImplements.ts"],"names":[],"mappings":"AAKA,wBAAgB,gBAAgB,CAAC,CAAC,MACxB,CAAC,SAAS,CAAC,eAAe,CAAC,UAIpC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"staticImplements.d.ts","sourceRoot":"","sources":["../../src/staticImplements.ts"],"names":[],"mappings":"AAKA,wBAAgB,gBAAgB,CAAC,CAAC,MACxB,CAAC,SAAS,CAAC,eAAe,CAAC,UAIpC"}
|