@tsed/core 6.114.5-rc.1 → 6.114.5
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.
|
@@ -1,28 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.decorateMethodsOf = void 0;
|
|
4
|
-
const Store_1 = require("../../domain/Store");
|
|
5
4
|
const classOf_1 = require("../objects/classOf");
|
|
6
|
-
const descriptorOf_1 = require("../objects/descriptorOf");
|
|
7
5
|
const methodsOf_1 = require("../objects/methodsOf");
|
|
8
6
|
const prototypeOf_1 = require("../objects/prototypeOf");
|
|
7
|
+
const descriptorOf_1 = require("../objects/descriptorOf");
|
|
8
|
+
const Store_1 = require("../../domain/Store");
|
|
9
9
|
function decorateMethodsOf(klass, decorator) {
|
|
10
10
|
(0, methodsOf_1.methodsOf)(klass).forEach(({ target, propertyKey }) => {
|
|
11
|
-
const proto = (0, prototypeOf_1.prototypeOf)(klass);
|
|
12
11
|
if (target !== (0, classOf_1.classOf)(klass)) {
|
|
13
|
-
Object.defineProperty(
|
|
12
|
+
Object.defineProperty((0, prototypeOf_1.prototypeOf)(klass), propertyKey, {
|
|
14
13
|
writable: true,
|
|
15
|
-
configurable: true,
|
|
16
14
|
value(...args) {
|
|
17
15
|
return (0, prototypeOf_1.prototypeOf)(target)[propertyKey].apply(this, args);
|
|
18
16
|
}
|
|
19
17
|
});
|
|
20
18
|
Store_1.Store.mergeStoreMethodFrom(klass, target, propertyKey);
|
|
21
19
|
}
|
|
22
|
-
|
|
23
|
-
if (newDescriptor) {
|
|
24
|
-
Object.defineProperty(proto, propertyKey, newDescriptor);
|
|
25
|
-
}
|
|
20
|
+
decorator((0, prototypeOf_1.prototypeOf)(klass), propertyKey, (0, descriptorOf_1.descriptorOf)(klass, propertyKey));
|
|
26
21
|
});
|
|
27
22
|
}
|
|
28
23
|
exports.decorateMethodsOf = decorateMethodsOf;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorateMethodsOf.js","sourceRoot":"","sources":["../../../../src/utils/decorators/decorateMethodsOf.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"decorateMethodsOf.js","sourceRoot":"","sources":["../../../../src/utils/decorators/decorateMethodsOf.ts"],"names":[],"mappings":";;;AAAA,gDAA2C;AAC3C,oDAA+C;AAC/C,wDAAmD;AACnD,0DAAqD;AACrD,8CAAyC;AAEzC,SAAgB,iBAAiB,CAAC,KAAU,EAAE,SAAc;IAC1D,IAAA,qBAAS,EAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,EAAC,MAAM,EAAE,WAAW,EAAC,EAAE,EAAE;QACjD,IAAI,MAAM,KAAK,IAAA,iBAAO,EAAC,KAAK,CAAC,EAAE;YAC7B,MAAM,CAAC,cAAc,CAAC,IAAA,yBAAW,EAAC,KAAK,CAAC,EAAE,WAAW,EAAE;gBACrD,QAAQ,EAAE,IAAI;gBACd,KAAK,CAAC,GAAG,IAAW;oBAClB,OAAO,IAAA,yBAAW,EAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;gBAC5D,CAAC;aACF,CAAC,CAAC;YAEH,aAAK,CAAC,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;SACxD;QAED,SAAS,CAAC,IAAA,yBAAW,EAAC,KAAK,CAAC,EAAE,WAAW,EAAE,IAAA,2BAAY,EAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC;IAC/E,CAAC,CAAC,CAAC;AACL,CAAC;AAfD,8CAeC","sourcesContent":["import {classOf} from \"../objects/classOf\";\nimport {methodsOf} from \"../objects/methodsOf\";\nimport {prototypeOf} from \"../objects/prototypeOf\";\nimport {descriptorOf} from \"../objects/descriptorOf\";\nimport {Store} from \"../../domain/Store\";\n\nexport function decorateMethodsOf(klass: any, decorator: any) {\n methodsOf(klass).forEach(({target, propertyKey}) => {\n if (target !== classOf(klass)) {\n Object.defineProperty(prototypeOf(klass), propertyKey, {\n writable: true,\n value(...args: any[]) {\n return prototypeOf(target)[propertyKey].apply(this, args);\n }\n });\n\n Store.mergeStoreMethodFrom(klass, target, propertyKey);\n }\n\n decorator(prototypeOf(klass), propertyKey, descriptorOf(klass, propertyKey));\n });\n}\n"]}
|
|
@@ -1,25 +1,20 @@
|
|
|
1
|
-
import { Store } from "../../domain/Store.js";
|
|
2
1
|
import { classOf } from "../objects/classOf.js";
|
|
3
|
-
import { descriptorOf } from "../objects/descriptorOf.js";
|
|
4
2
|
import { methodsOf } from "../objects/methodsOf.js";
|
|
5
3
|
import { prototypeOf } from "../objects/prototypeOf.js";
|
|
4
|
+
import { descriptorOf } from "../objects/descriptorOf.js";
|
|
5
|
+
import { Store } from "../../domain/Store.js";
|
|
6
6
|
export function decorateMethodsOf(klass, decorator) {
|
|
7
7
|
methodsOf(klass).forEach(({ target, propertyKey }) => {
|
|
8
|
-
const proto = prototypeOf(klass);
|
|
9
8
|
if (target !== classOf(klass)) {
|
|
10
|
-
Object.defineProperty(
|
|
9
|
+
Object.defineProperty(prototypeOf(klass), propertyKey, {
|
|
11
10
|
writable: true,
|
|
12
|
-
configurable: true,
|
|
13
11
|
value(...args) {
|
|
14
12
|
return prototypeOf(target)[propertyKey].apply(this, args);
|
|
15
13
|
}
|
|
16
14
|
});
|
|
17
15
|
Store.mergeStoreMethodFrom(klass, target, propertyKey);
|
|
18
16
|
}
|
|
19
|
-
|
|
20
|
-
if (newDescriptor) {
|
|
21
|
-
Object.defineProperty(proto, propertyKey, newDescriptor);
|
|
22
|
-
}
|
|
17
|
+
decorator(prototypeOf(klass), propertyKey, descriptorOf(klass, propertyKey));
|
|
23
18
|
});
|
|
24
19
|
}
|
|
25
20
|
//# sourceMappingURL=decorateMethodsOf.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorateMethodsOf.js","sourceRoot":"","sources":["../../../../src/utils/decorators/decorateMethodsOf.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"decorateMethodsOf.js","sourceRoot":"","sources":["../../../../src/utils/decorators/decorateMethodsOf.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAC,WAAW,EAAC,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAC,YAAY,EAAC,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAC,KAAK,EAAC,MAAM,oBAAoB,CAAC;AAEzC,MAAM,UAAU,iBAAiB,CAAC,KAAU,EAAE,SAAc;IAC1D,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,EAAC,MAAM,EAAE,WAAW,EAAC,EAAE,EAAE;QACjD,IAAI,MAAM,KAAK,OAAO,CAAC,KAAK,CAAC,EAAE;YAC7B,MAAM,CAAC,cAAc,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,WAAW,EAAE;gBACrD,QAAQ,EAAE,IAAI;gBACd,KAAK,CAAC,GAAG,IAAW;oBAClB,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;gBAC5D,CAAC;aACF,CAAC,CAAC;YAEH,KAAK,CAAC,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;SACxD;QAED,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,WAAW,EAAE,YAAY,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC;IAC/E,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import {classOf} from \"../objects/classOf\";\nimport {methodsOf} from \"../objects/methodsOf\";\nimport {prototypeOf} from \"../objects/prototypeOf\";\nimport {descriptorOf} from \"../objects/descriptorOf\";\nimport {Store} from \"../../domain/Store\";\n\nexport function decorateMethodsOf(klass: any, decorator: any) {\n methodsOf(klass).forEach(({target, propertyKey}) => {\n if (target !== classOf(klass)) {\n Object.defineProperty(prototypeOf(klass), propertyKey, {\n writable: true,\n value(...args: any[]) {\n return prototypeOf(target)[propertyKey].apply(this, args);\n }\n });\n\n Store.mergeStoreMethodFrom(klass, target, propertyKey);\n }\n\n decorator(prototypeOf(klass), propertyKey, descriptorOf(klass, propertyKey));\n });\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/core",
|
|
3
|
-
"version": "6.114.5
|
|
3
|
+
"version": "6.114.5",
|
|
4
4
|
"description": "Core module for Ts.ED Framework",
|
|
5
5
|
"private": false,
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -32,8 +32,5 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/tsedio/tsed/tree/production/packages/core",
|
|
34
34
|
"author": "Romain Lenzotti",
|
|
35
|
-
"license": "MIT"
|
|
36
|
-
"publishConfig": {
|
|
37
|
-
"tag": "rc"
|
|
38
|
-
}
|
|
35
|
+
"license": "MIT"
|
|
39
36
|
}
|