@xylabs/static-implements 2.12.9 → 2.12.11

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.
@@ -3,6 +3,10 @@ var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
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
+ };
6
10
  var __copyProps = (to, from, except, desc) => {
7
11
  if (from && typeof from === "object" || typeof from === "function") {
8
12
  for (let key of __getOwnPropNames(from))
@@ -11,9 +15,19 @@ var __copyProps = (to, from, except, desc) => {
11
15
  }
12
16
  return to;
13
17
  };
14
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
16
21
  var src_exports = {};
22
+ __export(src_exports, {
23
+ staticImplements: () => staticImplements
24
+ });
17
25
  module.exports = __toCommonJS(src_exports);
18
- __reExport(src_exports, require("./staticImplements"), module.exports);
26
+
27
+ // src/staticImplements.ts
28
+ function staticImplements() {
29
+ return (constructor) => {
30
+ constructor;
31
+ };
32
+ }
19
33
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from './staticImplements'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,+BAAd;","names":[]}
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":[]}
@@ -16,6 +16,8 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/staticImplements.ts
19
21
  var staticImplements_exports = {};
20
22
  __export(staticImplements_exports, {
21
23
  staticImplements: () => staticImplements
@@ -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":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;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":[]}
package/package.json CHANGED
@@ -39,9 +39,9 @@
39
39
  "esm"
40
40
  ],
41
41
  "devDependencies": {
42
- "@xylabs/ts-scripts-yarn3": "^3.0.75",
43
- "@xylabs/tsconfig": "^3.0.75",
44
- "@xylabs/tsconfig-jest": "^3.0.75",
42
+ "@xylabs/ts-scripts-yarn3": "^3.0.78",
43
+ "@xylabs/tsconfig": "^3.0.78",
44
+ "@xylabs/tsconfig-jest": "^3.0.78",
45
45
  "typescript": "^5.2.2"
46
46
  },
47
47
  "publishConfig": {
@@ -52,6 +52,6 @@
52
52
  "url": "https://github.com/xylabs/sdk-js.git"
53
53
  },
54
54
  "sideEffects": false,
55
- "version": "2.12.9",
55
+ "version": "2.12.11",
56
56
  "type": "module"
57
57
  }