@xylabs/static-implements 2.11.2 → 2.11.4

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/index.js CHANGED
@@ -1,8 +1,37 @@
1
- 'use strict';
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);
2
19
 
3
- var staticImplements = require('./staticImplements.js');
20
+ // src/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ staticImplements: () => staticImplements
24
+ });
25
+ module.exports = __toCommonJS(src_exports);
4
26
 
5
-
6
-
7
- exports.staticImplements = staticImplements.staticImplements;
8
- //# sourceMappingURL=index.js.map
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.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
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/index.mjs CHANGED
@@ -1,2 +1,10 @@
1
- export { staticImplements } from './staticImplements.mjs';
2
- //# sourceMappingURL=index.mjs.map
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 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"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
@@ -48,9 +48,9 @@
48
48
  "esm"
49
49
  ],
50
50
  "devDependencies": {
51
- "@xylabs/ts-scripts-yarn3": "^3.0.0-rc.27",
52
- "@xylabs/tsconfig": "^3.0.0-rc.27",
53
- "@xylabs/tsconfig-jest": "~2.19.12",
51
+ "@xylabs/ts-scripts-yarn3": "^3.0.20",
52
+ "@xylabs/tsconfig": "^3.0.20",
53
+ "@xylabs/tsconfig-jest": "^3.0.20",
54
54
  "typescript": "^5.2.2"
55
55
  },
56
56
  "publishConfig": {
@@ -61,5 +61,5 @@
61
61
  "url": "https://github.com/xylabs/sdk-js.git"
62
62
  },
63
63
  "sideEffects": false,
64
- "version": "2.11.2"
64
+ "version": "2.11.4"
65
65
  }
@@ -1,14 +0,0 @@
1
- 'use strict';
2
-
3
- /**
4
- * Annotation to decorate classes which implement static methods
5
- * @returns The decorated class requiring it to implement
6
- * the members of the the type as static properties/methods
7
- */
8
- function staticImplements() {
9
- return (constructor) => {
10
- };
11
- }
12
-
13
- exports.staticImplements = staticImplements;
14
- //# sourceMappingURL=staticImplements.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"staticImplements.js","sources":["../src/staticImplements.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;;AAIG;AACa,SAAA,gBAAA,GAAA;;;;;;;"}
@@ -1,12 +0,0 @@
1
- /**
2
- * Annotation to decorate classes which implement static methods
3
- * @returns The decorated class requiring it to implement
4
- * the members of the the type as static properties/methods
5
- */
6
- function staticImplements() {
7
- return (constructor) => {
8
- };
9
- }
10
-
11
- export { staticImplements };
12
- //# sourceMappingURL=staticImplements.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"staticImplements.mjs","sources":["../src/staticImplements.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;AAIG;AACa,SAAA,gBAAA,GAAA;;;;;;;"}