cgserver 8.6.5 → 8.6.6
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/README.md
CHANGED
|
@@ -27,12 +27,13 @@ function SyncCall2(param_index) {
|
|
|
27
27
|
return (target, propertyName, descriptor) => {
|
|
28
28
|
let method = descriptor.value;
|
|
29
29
|
descriptor.value = function () {
|
|
30
|
+
let self = this;
|
|
30
31
|
let key = propertyName;
|
|
31
32
|
if (param_index != undefined && param_index < arguments.length) {
|
|
32
33
|
key = propertyName + "_" + arguments[param_index];
|
|
33
34
|
}
|
|
34
35
|
let ret = SyncQueueTool_1.GSyncQueueTool.add(key, async () => {
|
|
35
|
-
return await method.apply(
|
|
36
|
+
return await method.apply(self, arguments);
|
|
36
37
|
});
|
|
37
38
|
return ret;
|
|
38
39
|
};
|
package/dist/lib/test/test.js
CHANGED
|
@@ -8,14 +8,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
const Framework_1 = require("../Framework");
|
|
10
10
|
class Test {
|
|
11
|
-
test() {
|
|
12
|
-
console.log("test");
|
|
11
|
+
test(str) {
|
|
12
|
+
console.log(str + ":test");
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
__decorate([
|
|
16
|
-
Framework_1.
|
|
16
|
+
(0, Framework_1.SyncCall2)(0)
|
|
17
17
|
], Test.prototype, "test", null);
|
|
18
18
|
let test = new Test();
|
|
19
|
-
test.test();
|
|
19
|
+
test.test("111");
|
|
20
20
|
let str = Framework_1.core.format(Date.now(), "yyyy-MM-dd hh:mm:ss");
|
|
21
21
|
console.log(str);
|