@xylabs/static-implements 2.10.17 → 2.11.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/index.d.mts +2 -8
- package/dist/index.d.mts.map +1 -0
- package/dist/index.d.ts +2 -8
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -34
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -8
- package/dist/index.mjs.map +1 -1
- package/dist/staticImplements.d.ts +7 -0
- package/dist/staticImplements.d.ts.map +1 -0
- package/package.json +3 -9
- package/tsup.config.ts +0 -16
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* @returns The decorated class requiring it to implement
|
|
4
|
-
* the members of the the type as static properties/methods
|
|
5
|
-
*/
|
|
6
|
-
declare function staticImplements<T>(): <U extends T>(constructor: U) => void;
|
|
7
|
-
|
|
8
|
-
export { staticImplements };
|
|
1
|
+
export * from './staticImplements';
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* @returns The decorated class requiring it to implement
|
|
4
|
-
* the members of the the type as static properties/methods
|
|
5
|
-
*/
|
|
6
|
-
declare function staticImplements<T>(): <U extends T>(constructor: U) => void;
|
|
7
|
-
|
|
8
|
-
export { staticImplements };
|
|
1
|
+
export * from './staticImplements';
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,37 +1,14 @@
|
|
|
1
|
-
|
|
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);
|
|
1
|
+
'use strict';
|
|
19
2
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
module.exports = __toCommonJS(src_exports);
|
|
26
|
-
|
|
27
|
-
// src/staticImplements.ts
|
|
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
|
+
*/
|
|
28
8
|
function staticImplements() {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
};
|
|
9
|
+
return (constructor) => {
|
|
10
|
+
};
|
|
32
11
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
});
|
|
37
|
-
//# sourceMappingURL=index.js.map
|
|
12
|
+
|
|
13
|
+
exports.staticImplements = staticImplements;
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/staticImplements.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;;AAIG;AACa,SAAA,gBAAA,GAAA;;;;;;;"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
|
|
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
|
+
*/
|
|
2
6
|
function staticImplements() {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
7
|
+
return (constructor) => {
|
|
8
|
+
};
|
|
6
9
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
//# sourceMappingURL=index.mjs.map
|
|
10
|
+
|
|
11
|
+
export { staticImplements };
|
|
12
|
+
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/staticImplements.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../src/staticImplements.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;AAIG;AACa,SAAA,gBAAA,GAAA;;;;;;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
+
export declare function staticImplements<T>(): <U extends T>(constructor: U) => void;
|
|
7
|
+
//# sourceMappingURL=staticImplements.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"staticImplements.d.ts","sourceRoot":"","sources":["../src/staticImplements.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,2CAIjC"}
|
package/package.json
CHANGED
|
@@ -40,10 +40,6 @@
|
|
|
40
40
|
},
|
|
41
41
|
"main": "dist/index.js",
|
|
42
42
|
"module": "dist/index.mjs",
|
|
43
|
-
"scripts": {
|
|
44
|
-
"package-compile": "tsup && publint",
|
|
45
|
-
"package-recompile": "tsup && publint"
|
|
46
|
-
},
|
|
47
43
|
"homepage": "https://xylabs.com",
|
|
48
44
|
"keywords": [
|
|
49
45
|
"xylabs",
|
|
@@ -52,11 +48,9 @@
|
|
|
52
48
|
"esm"
|
|
53
49
|
],
|
|
54
50
|
"devDependencies": {
|
|
55
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
56
|
-
"@xylabs/tsconfig": "^
|
|
51
|
+
"@xylabs/ts-scripts-yarn3": "^3.0.0-rc.15",
|
|
52
|
+
"@xylabs/tsconfig": "^3.0.0-rc.15",
|
|
57
53
|
"@xylabs/tsconfig-jest": "~2.19.12",
|
|
58
|
-
"publint": "^0.2.2",
|
|
59
|
-
"tsup": "^7.2.0",
|
|
60
54
|
"typescript": "^5.2.2"
|
|
61
55
|
},
|
|
62
56
|
"publishConfig": {
|
|
@@ -67,5 +61,5 @@
|
|
|
67
61
|
"url": "https://github.com/xylabs/sdk-js.git"
|
|
68
62
|
},
|
|
69
63
|
"sideEffects": false,
|
|
70
|
-
"version": "2.
|
|
64
|
+
"version": "2.11.0"
|
|
71
65
|
}
|
package/tsup.config.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'tsup'
|
|
2
|
-
|
|
3
|
-
// eslint-disable-next-line import/no-default-export
|
|
4
|
-
export default defineConfig({
|
|
5
|
-
bundle: true,
|
|
6
|
-
cjsInterop: true,
|
|
7
|
-
clean: false,
|
|
8
|
-
dts: {
|
|
9
|
-
entry: ['src/index.ts'],
|
|
10
|
-
},
|
|
11
|
-
entry: ['src/index.ts'],
|
|
12
|
-
format: ['cjs', 'esm'],
|
|
13
|
-
sourcemap: true,
|
|
14
|
-
splitting: false,
|
|
15
|
-
tsconfig: 'tsconfig.build.json',
|
|
16
|
-
})
|