@xylabs/static-implements 3.6.12 → 4.0.1

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 (48) hide show
  1. package/dist/neutral/index.d.ts +3 -2
  2. package/package.json +6 -13
  3. package/xy.config.ts +12 -0
  4. package/dist/browser/index.cjs +0 -33
  5. package/dist/browser/index.cjs.map +0 -1
  6. package/dist/browser/index.d.cts +0 -2
  7. package/dist/browser/index.d.cts.map +0 -1
  8. package/dist/browser/index.d.mts +0 -2
  9. package/dist/browser/index.d.mts.map +0 -1
  10. package/dist/browser/index.d.ts +0 -2
  11. package/dist/browser/index.d.ts.map +0 -1
  12. package/dist/browser/index.mjs +0 -10
  13. package/dist/browser/index.mjs.map +0 -1
  14. package/dist/browser/staticImplements.d.cts +0 -2
  15. package/dist/browser/staticImplements.d.cts.map +0 -1
  16. package/dist/browser/staticImplements.d.mts +0 -2
  17. package/dist/browser/staticImplements.d.mts.map +0 -1
  18. package/dist/browser/staticImplements.d.ts +0 -2
  19. package/dist/browser/staticImplements.d.ts.map +0 -1
  20. package/dist/neutral/index.cjs +0 -33
  21. package/dist/neutral/index.cjs.map +0 -1
  22. package/dist/neutral/index.d.cts +0 -2
  23. package/dist/neutral/index.d.cts.map +0 -1
  24. package/dist/neutral/index.d.mts +0 -2
  25. package/dist/neutral/index.d.mts.map +0 -1
  26. package/dist/neutral/index.d.ts.map +0 -1
  27. package/dist/neutral/staticImplements.d.cts +0 -2
  28. package/dist/neutral/staticImplements.d.cts.map +0 -1
  29. package/dist/neutral/staticImplements.d.mts +0 -2
  30. package/dist/neutral/staticImplements.d.mts.map +0 -1
  31. package/dist/neutral/staticImplements.d.ts +0 -2
  32. package/dist/neutral/staticImplements.d.ts.map +0 -1
  33. package/dist/node/index.cjs +0 -37
  34. package/dist/node/index.cjs.map +0 -1
  35. package/dist/node/index.d.cts +0 -2
  36. package/dist/node/index.d.cts.map +0 -1
  37. package/dist/node/index.d.mts +0 -2
  38. package/dist/node/index.d.mts.map +0 -1
  39. package/dist/node/index.d.ts +0 -2
  40. package/dist/node/index.d.ts.map +0 -1
  41. package/dist/node/index.mjs +0 -10
  42. package/dist/node/index.mjs.map +0 -1
  43. package/dist/node/staticImplements.d.cts +0 -2
  44. package/dist/node/staticImplements.d.cts.map +0 -1
  45. package/dist/node/staticImplements.d.mts +0 -2
  46. package/dist/node/staticImplements.d.mts.map +0 -1
  47. package/dist/node/staticImplements.d.ts +0 -2
  48. package/dist/node/staticImplements.d.ts.map +0 -1
@@ -1,2 +1,3 @@
1
- export * from './staticImplements.ts';
2
- //# sourceMappingURL=index.d.ts.map
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
- "require": {
17
- "types": "./dist/neutral/index.d.cts",
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,9 +30,9 @@
37
30
  "esm"
38
31
  ],
39
32
  "devDependencies": {
40
- "@xylabs/ts-scripts-yarn3": "^3.15.14",
41
- "@xylabs/tsconfig": "^3.15.14",
42
- "@xylabs/tsconfig-jest": "^3.15.14",
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",
43
36
  "typescript": "^5.5.4"
44
37
  },
45
38
  "engines": {
@@ -53,6 +46,6 @@
53
46
  "url": "https://github.com/xylabs/sdk-js.git"
54
47
  },
55
48
  "sideEffects": false,
56
- "version": "3.6.12",
49
+ "version": "4.0.1",
57
50
  "type": "module"
58
51
  }
package/xy.config.ts ADDED
@@ -0,0 +1,12 @@
1
+ import { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
2
+ const config: XyTsupConfig = {
3
+ compile: {
4
+ browser: {},
5
+ neutral: {
6
+ src: true,
7
+ },
8
+ node: {},
9
+ },
10
+ }
11
+
12
+ export default config
@@ -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":[]}
@@ -1,2 +0,0 @@
1
- export * from './staticImplements.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './staticImplements.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './staticImplements.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA"}
@@ -1,10 +0,0 @@
1
- // src/staticImplements.ts
2
- function staticImplements() {
3
- return (constructor) => {
4
- constructor;
5
- };
6
- }
7
- export {
8
- staticImplements
9
- };
10
- //# sourceMappingURL=index.mjs.map
@@ -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,2 +0,0 @@
1
- export declare function staticImplements<T>(): <U extends T>(constructor: U) => void;
2
- //# sourceMappingURL=staticImplements.d.ts.map
@@ -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,2 +0,0 @@
1
- export declare function staticImplements<T>(): <U extends T>(constructor: U) => void;
2
- //# sourceMappingURL=staticImplements.d.ts.map
@@ -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,2 +0,0 @@
1
- export declare function staticImplements<T>(): <U extends T>(constructor: U) => void;
2
- //# sourceMappingURL=staticImplements.d.ts.map
@@ -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,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":[]}
@@ -1,2 +0,0 @@
1
- export * from './staticImplements.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './staticImplements.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -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,2 +0,0 @@
1
- export declare function staticImplements<T>(): <U extends T>(constructor: U) => void;
2
- //# sourceMappingURL=staticImplements.d.ts.map
@@ -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,2 +0,0 @@
1
- export declare function staticImplements<T>(): <U extends T>(constructor: U) => void;
2
- //# sourceMappingURL=staticImplements.d.ts.map
@@ -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,2 +0,0 @@
1
- export declare function staticImplements<T>(): <U extends T>(constructor: U) => void;
2
- //# sourceMappingURL=staticImplements.d.ts.map
@@ -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,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
@@ -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":[]}
@@ -1,2 +0,0 @@
1
- export * from './staticImplements.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './staticImplements.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './staticImplements.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA"}
@@ -1,10 +0,0 @@
1
- // src/staticImplements.ts
2
- function staticImplements() {
3
- return (constructor) => {
4
- constructor;
5
- };
6
- }
7
- export {
8
- staticImplements
9
- };
10
- //# sourceMappingURL=index.mjs.map
@@ -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,2 +0,0 @@
1
- export declare function staticImplements<T>(): <U extends T>(constructor: U) => void;
2
- //# sourceMappingURL=staticImplements.d.ts.map
@@ -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,2 +0,0 @@
1
- export declare function staticImplements<T>(): <U extends T>(constructor: U) => void;
2
- //# sourceMappingURL=staticImplements.d.ts.map
@@ -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,2 +0,0 @@
1
- export declare function staticImplements<T>(): <U extends T>(constructor: U) => void;
2
- //# sourceMappingURL=staticImplements.d.ts.map
@@ -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"}