assemblerjs 1.1.23 → 1.1.25
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.ts +122 -0
- package/dist/index.js +15 -13
- package/dist/index.mjs +14 -13
- package/dist/index11.js +3 -3
- package/dist/index11.mjs +3 -3
- package/dist/index12.js +2 -2
- package/dist/index12.mjs +2 -2
- package/dist/index13.js +2 -2
- package/dist/index13.mjs +2 -2
- package/dist/index14.js +144 -3
- package/dist/index14.mjs +144 -3
- package/dist/index15.js +4 -22
- package/dist/index15.mjs +4 -22
- package/dist/index16.js +20 -9
- package/dist/index16.mjs +20 -9
- package/dist/index17.js +9 -87
- package/dist/index17.mjs +9 -87
- package/dist/index18.js +88 -16
- package/dist/index18.mjs +88 -16
- package/dist/index19.js +10 -10
- package/dist/index19.mjs +10 -10
- package/dist/index2.js +3 -3
- package/dist/index2.mjs +3 -3
- package/dist/index20.js +10 -10
- package/dist/index20.mjs +10 -10
- package/dist/index21.js +10 -10
- package/dist/index21.mjs +10 -10
- package/dist/index22.js +11 -26
- package/dist/index22.mjs +11 -25
- package/dist/index23.js +22 -22
- package/dist/index23.mjs +21 -21
- package/dist/index24.js +25 -19
- package/dist/index24.mjs +24 -19
- package/dist/index25.js +23 -25
- package/dist/index25.mjs +23 -21
- package/dist/index26.js +26 -46
- package/dist/index26.mjs +22 -45
- package/dist/index27.js +50 -2
- package/dist/index27.mjs +47 -2
- package/dist/index28.js +2 -19
- package/dist/index28.mjs +2 -15
- package/dist/index29.js +17 -159
- package/dist/index29.mjs +15 -158
- package/dist/index3.js +2 -2
- package/dist/index3.mjs +2 -2
- package/dist/index30.js +34 -44
- package/dist/index30.mjs +33 -44
- package/dist/index31.js +145 -66
- package/dist/index31.mjs +145 -67
- package/dist/index32.js +45 -50
- package/dist/index32.mjs +45 -50
- package/dist/index33.js +76 -28
- package/dist/index33.mjs +76 -28
- package/dist/index34.js +50 -170
- package/dist/index34.mjs +50 -170
- package/dist/index35.js +28 -60
- package/dist/index35.mjs +28 -60
- package/dist/index36.js +174 -16
- package/dist/index36.mjs +174 -13
- package/dist/index37.js +57 -16
- package/dist/index37.mjs +57 -16
- package/dist/index38.js +13 -103
- package/dist/index38.mjs +10 -101
- package/dist/index39.js +18 -101
- package/dist/index39.mjs +18 -101
- package/dist/index4.js +7 -7
- package/dist/index4.mjs +7 -7
- package/dist/index40.js +101 -22
- package/dist/index40.mjs +99 -22
- package/dist/index41.js +24 -36
- package/dist/index41.mjs +24 -35
- package/dist/index45.js +6 -6
- package/dist/index45.mjs +6 -6
- package/dist/index49.js +1 -1
- package/dist/index49.mjs +1 -1
- package/dist/index50.js +2 -2
- package/dist/index50.mjs +2 -2
- package/dist/index51.js +2 -2
- package/dist/index51.mjs +2 -2
- package/package.json +1 -1
package/dist/index16.js
CHANGED
|
@@ -2,15 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
const Await = (t, e = 25)=>{
|
|
6
|
+
return (n, s, a)=>{
|
|
7
|
+
const i = a.value;
|
|
8
|
+
a.value = async function() {
|
|
9
|
+
return new Promise((n)=>{
|
|
10
|
+
if (this[t]) {
|
|
11
|
+
i.apply(this);
|
|
12
|
+
n();
|
|
13
|
+
} else {
|
|
14
|
+
const s = setInterval(()=>{
|
|
15
|
+
if (this[t]) {
|
|
16
|
+
clearInterval(s);
|
|
17
|
+
i.apply(this);
|
|
18
|
+
n();
|
|
19
|
+
}
|
|
20
|
+
}, e);
|
|
21
|
+
}
|
|
22
|
+
});
|
|
12
23
|
};
|
|
13
24
|
};
|
|
14
|
-
|
|
25
|
+
};
|
|
15
26
|
|
|
16
|
-
exports.
|
|
27
|
+
exports.Await = Await;
|
package/dist/index16.mjs
CHANGED
|
@@ -1,12 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
const Await = (t, e = 25)=>{
|
|
2
|
+
return (n, s, a)=>{
|
|
3
|
+
const i = a.value;
|
|
4
|
+
a.value = async function() {
|
|
5
|
+
return new Promise((n)=>{
|
|
6
|
+
if (this[t]) {
|
|
7
|
+
i.apply(this);
|
|
8
|
+
n();
|
|
9
|
+
} else {
|
|
10
|
+
const s = setInterval(()=>{
|
|
11
|
+
if (this[t]) {
|
|
12
|
+
clearInterval(s);
|
|
13
|
+
i.apply(this);
|
|
14
|
+
n();
|
|
15
|
+
}
|
|
16
|
+
}, e);
|
|
17
|
+
}
|
|
18
|
+
});
|
|
8
19
|
};
|
|
9
20
|
};
|
|
10
|
-
|
|
21
|
+
};
|
|
11
22
|
|
|
12
|
-
export {
|
|
23
|
+
export { Await };
|
package/dist/index17.js
CHANGED
|
@@ -2,93 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const reflection = require('./
|
|
5
|
+
const reflection = require('./index38.js');
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
const s = `assemblage:${r.toLowerCase()}.param.index`;
|
|
14
|
-
const o = `assemblage:${r.toLowerCase()}.param.value`;
|
|
15
|
-
const c = this.createDecoratorFunction(s, o, t);
|
|
16
|
-
this.registeredDecorators.set(r, {
|
|
17
|
-
name: r,
|
|
18
|
-
valueType: t,
|
|
19
|
-
handler: a
|
|
20
|
-
});
|
|
21
|
-
return c;
|
|
22
|
-
}
|
|
23
|
-
static createDecoratorFunction(e, r, t) {
|
|
24
|
-
return (a)=>{
|
|
25
|
-
return (s, o, c)=>{
|
|
26
|
-
this.storeParameterData(a, s, c, e, r, t);
|
|
27
|
-
};
|
|
7
|
+
const t = (t)=>()=>{
|
|
8
|
+
return (e, c, n)=>{
|
|
9
|
+
const a = reflection.getOwnCustomMetadata(t, e) || [];
|
|
10
|
+
a.push(n);
|
|
11
|
+
reflection.defineCustomMetadata(t, a, e);
|
|
28
12
|
};
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
for (const s of this.registeredDecorators.keys()){
|
|
32
|
-
const o = `assemblage:${s.toLowerCase()}.param.index`;
|
|
33
|
-
if (o === a) {
|
|
34
|
-
continue;
|
|
35
|
-
}
|
|
36
|
-
const c = reflection.getOwnCustomMetadata(o, r) || [];
|
|
37
|
-
if (c.includes(t)) {
|
|
38
|
-
throw new Error(`Parameter at index ${t} already has decorator @${s}. ` + `Multiple decorators per parameter are not allowed.`);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
static storeParameterData(t, a, s, o, c, i) {
|
|
43
|
-
this.validateSingleDecoratorPerParameter(a, s, o);
|
|
44
|
-
const n = reflection.getOwnCustomMetadata(o, a) || [];
|
|
45
|
-
n.push(s);
|
|
46
|
-
reflection.defineCustomMetadata(o, n, a);
|
|
47
|
-
switch(i){
|
|
48
|
-
case 'single':
|
|
49
|
-
{
|
|
50
|
-
reflection.defineCustomMetadata(c, t, a);
|
|
51
|
-
break;
|
|
52
|
-
}
|
|
53
|
-
case 'array':
|
|
54
|
-
{
|
|
55
|
-
const o = reflection.getOwnCustomMetadata(c, a) || [];
|
|
56
|
-
o[s] = t;
|
|
57
|
-
reflection.defineCustomMetadata(c, o, a);
|
|
58
|
-
break;
|
|
59
|
-
}
|
|
60
|
-
case 'map':
|
|
61
|
-
{
|
|
62
|
-
const o = reflection.getOwnCustomMetadata(c, a) || {};
|
|
63
|
-
o[s] = t;
|
|
64
|
-
reflection.defineCustomMetadata(c, o, a);
|
|
65
|
-
break;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
static createParameterIndexGetter(r) {
|
|
70
|
-
return (t)=>{
|
|
71
|
-
return reflection.getOwnCustomMetadata(r, t) || [];
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
static createParameterValueGetter(r, t) {
|
|
75
|
-
return (t)=>{
|
|
76
|
-
return reflection.getOwnCustomMetadata(r, t);
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
static getRegisteredDecorators() {
|
|
80
|
-
return Array.from(this.registeredDecorators.keys());
|
|
81
|
-
}
|
|
82
|
-
static isRegistered(e) {
|
|
83
|
-
return this.registeredDecorators.has(e);
|
|
84
|
-
}
|
|
85
|
-
static getDecoratorMetadata(e) {
|
|
86
|
-
return this.registeredDecorators.get(e);
|
|
87
|
-
}
|
|
88
|
-
static getDecoratorHandler(e) {
|
|
89
|
-
return this.registeredDecorators.get(e)?.handler;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
ParameterDecoratorFactory.registeredDecorators = new Map();
|
|
13
|
+
};
|
|
14
|
+
const createParamIndexDecorator = t;
|
|
93
15
|
|
|
94
|
-
exports.
|
|
16
|
+
exports.createParamIndexDecorator = createParamIndexDecorator;
|
package/dist/index17.mjs
CHANGED
|
@@ -1,90 +1,12 @@
|
|
|
1
|
-
import { getOwnCustomMetadata, defineCustomMetadata } from './
|
|
1
|
+
import { getOwnCustomMetadata, defineCustomMetadata } from './index38.mjs';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
const s = `assemblage:${r.toLowerCase()}.param.index`;
|
|
10
|
-
const o = `assemblage:${r.toLowerCase()}.param.value`;
|
|
11
|
-
const c = this.createDecoratorFunction(s, o, t);
|
|
12
|
-
this.registeredDecorators.set(r, {
|
|
13
|
-
name: r,
|
|
14
|
-
valueType: t,
|
|
15
|
-
handler: a
|
|
16
|
-
});
|
|
17
|
-
return c;
|
|
18
|
-
}
|
|
19
|
-
static createDecoratorFunction(e, r, t) {
|
|
20
|
-
return (a)=>{
|
|
21
|
-
return (s, o, c)=>{
|
|
22
|
-
this.storeParameterData(a, s, c, e, r, t);
|
|
23
|
-
};
|
|
3
|
+
const t = (t)=>()=>{
|
|
4
|
+
return (e, c, n)=>{
|
|
5
|
+
const a = getOwnCustomMetadata(t, e) || [];
|
|
6
|
+
a.push(n);
|
|
7
|
+
defineCustomMetadata(t, a, e);
|
|
24
8
|
};
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
for (const s of this.registeredDecorators.keys()){
|
|
28
|
-
const o = `assemblage:${s.toLowerCase()}.param.index`;
|
|
29
|
-
if (o === a) {
|
|
30
|
-
continue;
|
|
31
|
-
}
|
|
32
|
-
const c = getOwnCustomMetadata(o, r) || [];
|
|
33
|
-
if (c.includes(t)) {
|
|
34
|
-
throw new Error(`Parameter at index ${t} already has decorator @${s}. ` + `Multiple decorators per parameter are not allowed.`);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
static storeParameterData(t, a, s, o, c, i) {
|
|
39
|
-
this.validateSingleDecoratorPerParameter(a, s, o);
|
|
40
|
-
const n = getOwnCustomMetadata(o, a) || [];
|
|
41
|
-
n.push(s);
|
|
42
|
-
defineCustomMetadata(o, n, a);
|
|
43
|
-
switch(i){
|
|
44
|
-
case 'single':
|
|
45
|
-
{
|
|
46
|
-
defineCustomMetadata(c, t, a);
|
|
47
|
-
break;
|
|
48
|
-
}
|
|
49
|
-
case 'array':
|
|
50
|
-
{
|
|
51
|
-
const o = getOwnCustomMetadata(c, a) || [];
|
|
52
|
-
o[s] = t;
|
|
53
|
-
defineCustomMetadata(c, o, a);
|
|
54
|
-
break;
|
|
55
|
-
}
|
|
56
|
-
case 'map':
|
|
57
|
-
{
|
|
58
|
-
const o = getOwnCustomMetadata(c, a) || {};
|
|
59
|
-
o[s] = t;
|
|
60
|
-
defineCustomMetadata(c, o, a);
|
|
61
|
-
break;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
static createParameterIndexGetter(r) {
|
|
66
|
-
return (t)=>{
|
|
67
|
-
return getOwnCustomMetadata(r, t) || [];
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
static createParameterValueGetter(r, t) {
|
|
71
|
-
return (t)=>{
|
|
72
|
-
return getOwnCustomMetadata(r, t);
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
static getRegisteredDecorators() {
|
|
76
|
-
return Array.from(this.registeredDecorators.keys());
|
|
77
|
-
}
|
|
78
|
-
static isRegistered(e) {
|
|
79
|
-
return this.registeredDecorators.has(e);
|
|
80
|
-
}
|
|
81
|
-
static getDecoratorMetadata(e) {
|
|
82
|
-
return this.registeredDecorators.get(e);
|
|
83
|
-
}
|
|
84
|
-
static getDecoratorHandler(e) {
|
|
85
|
-
return this.registeredDecorators.get(e)?.handler;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
ParameterDecoratorFactory.registeredDecorators = new Map();
|
|
9
|
+
};
|
|
10
|
+
const createParamIndexDecorator = t;
|
|
89
11
|
|
|
90
|
-
export {
|
|
12
|
+
export { createParamIndexDecorator };
|
package/dist/index18.js
CHANGED
|
@@ -2,21 +2,93 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
const resolverStore = require('./index37.js');
|
|
5
|
+
const reflection = require('./index38.js');
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
7
|
+
class ParameterDecoratorFactory {
|
|
8
|
+
static create(e) {
|
|
9
|
+
const { name: r, valueType: t = 'single', handler: a } = e;
|
|
10
|
+
if (this.registeredDecorators.has(r)) {
|
|
11
|
+
throw new Error(`Decorator ${r} already exists`);
|
|
12
|
+
}
|
|
13
|
+
const s = `assemblage:${r.toLowerCase()}.param.index`;
|
|
14
|
+
const o = `assemblage:${r.toLowerCase()}.param.value`;
|
|
15
|
+
const c = this.createDecoratorFunction(s, o, t);
|
|
16
|
+
this.registeredDecorators.set(r, {
|
|
17
|
+
name: r,
|
|
18
|
+
valueType: t,
|
|
19
|
+
handler: a
|
|
20
|
+
});
|
|
21
|
+
return c;
|
|
22
|
+
}
|
|
23
|
+
static createDecoratorFunction(e, r, t) {
|
|
24
|
+
return (a)=>{
|
|
25
|
+
return (s, o, c)=>{
|
|
26
|
+
this.storeParameterData(a, s, c, e, r, t);
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
static validateSingleDecoratorPerParameter(r, t, a) {
|
|
31
|
+
for (const s of this.registeredDecorators.keys()){
|
|
32
|
+
const o = `assemblage:${s.toLowerCase()}.param.index`;
|
|
33
|
+
if (o === a) {
|
|
34
|
+
continue;
|
|
35
|
+
}
|
|
36
|
+
const c = reflection.getOwnCustomMetadata(o, r) || [];
|
|
37
|
+
if (c.includes(t)) {
|
|
38
|
+
throw new Error(`Parameter at index ${t} already has decorator @${s}. ` + `Multiple decorators per parameter are not allowed.`);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
static storeParameterData(t, a, s, o, c, i) {
|
|
43
|
+
this.validateSingleDecoratorPerParameter(a, s, o);
|
|
44
|
+
const n = reflection.getOwnCustomMetadata(o, a) || [];
|
|
45
|
+
n.push(s);
|
|
46
|
+
reflection.defineCustomMetadata(o, n, a);
|
|
47
|
+
switch(i){
|
|
48
|
+
case 'single':
|
|
49
|
+
{
|
|
50
|
+
reflection.defineCustomMetadata(c, t, a);
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
case 'array':
|
|
54
|
+
{
|
|
55
|
+
const o = reflection.getOwnCustomMetadata(c, a) || [];
|
|
56
|
+
o[s] = t;
|
|
57
|
+
reflection.defineCustomMetadata(c, o, a);
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
case 'map':
|
|
61
|
+
{
|
|
62
|
+
const o = reflection.getOwnCustomMetadata(c, a) || {};
|
|
63
|
+
o[s] = t;
|
|
64
|
+
reflection.defineCustomMetadata(c, o, a);
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
static createParameterIndexGetter(r) {
|
|
70
|
+
return (t)=>{
|
|
71
|
+
return reflection.getOwnCustomMetadata(r, t) || [];
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
static createParameterValueGetter(r, t) {
|
|
75
|
+
return (t)=>{
|
|
76
|
+
return reflection.getOwnCustomMetadata(r, t);
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
static getRegisteredDecorators() {
|
|
80
|
+
return Array.from(this.registeredDecorators.keys());
|
|
81
|
+
}
|
|
82
|
+
static isRegistered(e) {
|
|
83
|
+
return this.registeredDecorators.has(e);
|
|
84
|
+
}
|
|
85
|
+
static getDecoratorMetadata(e) {
|
|
86
|
+
return this.registeredDecorators.get(e);
|
|
87
|
+
}
|
|
88
|
+
static getDecoratorHandler(e) {
|
|
89
|
+
return this.registeredDecorators.get(e)?.handler;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
ParameterDecoratorFactory.registeredDecorators = new Map();
|
|
21
93
|
|
|
22
|
-
exports.
|
|
94
|
+
exports.ParameterDecoratorFactory = ParameterDecoratorFactory;
|
package/dist/index18.mjs
CHANGED
|
@@ -1,18 +1,90 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ResolverStore } from './index37.mjs';
|
|
1
|
+
import { getOwnCustomMetadata, defineCustomMetadata } from './index38.mjs';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
3
|
+
class ParameterDecoratorFactory {
|
|
4
|
+
static create(e) {
|
|
5
|
+
const { name: r, valueType: t = 'single', handler: a } = e;
|
|
6
|
+
if (this.registeredDecorators.has(r)) {
|
|
7
|
+
throw new Error(`Decorator ${r} already exists`);
|
|
8
|
+
}
|
|
9
|
+
const s = `assemblage:${r.toLowerCase()}.param.index`;
|
|
10
|
+
const o = `assemblage:${r.toLowerCase()}.param.value`;
|
|
11
|
+
const c = this.createDecoratorFunction(s, o, t);
|
|
12
|
+
this.registeredDecorators.set(r, {
|
|
13
|
+
name: r,
|
|
14
|
+
valueType: t,
|
|
15
|
+
handler: a
|
|
16
|
+
});
|
|
17
|
+
return c;
|
|
18
|
+
}
|
|
19
|
+
static createDecoratorFunction(e, r, t) {
|
|
20
|
+
return (a)=>{
|
|
21
|
+
return (s, o, c)=>{
|
|
22
|
+
this.storeParameterData(a, s, c, e, r, t);
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
static validateSingleDecoratorPerParameter(r, t, a) {
|
|
27
|
+
for (const s of this.registeredDecorators.keys()){
|
|
28
|
+
const o = `assemblage:${s.toLowerCase()}.param.index`;
|
|
29
|
+
if (o === a) {
|
|
30
|
+
continue;
|
|
31
|
+
}
|
|
32
|
+
const c = getOwnCustomMetadata(o, r) || [];
|
|
33
|
+
if (c.includes(t)) {
|
|
34
|
+
throw new Error(`Parameter at index ${t} already has decorator @${s}. ` + `Multiple decorators per parameter are not allowed.`);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
static storeParameterData(t, a, s, o, c, i) {
|
|
39
|
+
this.validateSingleDecoratorPerParameter(a, s, o);
|
|
40
|
+
const n = getOwnCustomMetadata(o, a) || [];
|
|
41
|
+
n.push(s);
|
|
42
|
+
defineCustomMetadata(o, n, a);
|
|
43
|
+
switch(i){
|
|
44
|
+
case 'single':
|
|
45
|
+
{
|
|
46
|
+
defineCustomMetadata(c, t, a);
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
case 'array':
|
|
50
|
+
{
|
|
51
|
+
const o = getOwnCustomMetadata(c, a) || [];
|
|
52
|
+
o[s] = t;
|
|
53
|
+
defineCustomMetadata(c, o, a);
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
case 'map':
|
|
57
|
+
{
|
|
58
|
+
const o = getOwnCustomMetadata(c, a) || {};
|
|
59
|
+
o[s] = t;
|
|
60
|
+
defineCustomMetadata(c, o, a);
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
static createParameterIndexGetter(r) {
|
|
66
|
+
return (t)=>{
|
|
67
|
+
return getOwnCustomMetadata(r, t) || [];
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
static createParameterValueGetter(r, t) {
|
|
71
|
+
return (t)=>{
|
|
72
|
+
return getOwnCustomMetadata(r, t);
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
static getRegisteredDecorators() {
|
|
76
|
+
return Array.from(this.registeredDecorators.keys());
|
|
77
|
+
}
|
|
78
|
+
static isRegistered(e) {
|
|
79
|
+
return this.registeredDecorators.has(e);
|
|
80
|
+
}
|
|
81
|
+
static getDecoratorMetadata(e) {
|
|
82
|
+
return this.registeredDecorators.get(e);
|
|
83
|
+
}
|
|
84
|
+
static getDecoratorHandler(e) {
|
|
85
|
+
return this.registeredDecorators.get(e)?.handler;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
ParameterDecoratorFactory.registeredDecorators = new Map();
|
|
17
89
|
|
|
18
|
-
export {
|
|
90
|
+
export { ParameterDecoratorFactory };
|
package/dist/index19.js
CHANGED
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const parameterDecoratorFactory = require('./
|
|
6
|
-
const resolverStore = require('./
|
|
5
|
+
const parameterDecoratorFactory = require('./index18.js');
|
|
6
|
+
const resolverStore = require('./index39.js');
|
|
7
7
|
|
|
8
|
-
let
|
|
9
|
-
resolve(
|
|
10
|
-
return
|
|
8
|
+
let ContextResolver = class ContextResolver {
|
|
9
|
+
resolve(e, r, t) {
|
|
10
|
+
return r.publicContext;
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
|
-
const
|
|
14
|
-
resolverStore.ResolverStore.register('
|
|
13
|
+
const Context = (()=>{
|
|
14
|
+
resolverStore.ResolverStore.register('Context', ContextResolver);
|
|
15
15
|
return parameterDecoratorFactory.ParameterDecoratorFactory.create({
|
|
16
|
-
name: '
|
|
16
|
+
name: 'Context',
|
|
17
17
|
valueType: 'array',
|
|
18
|
-
resolver:
|
|
18
|
+
resolver: ContextResolver
|
|
19
19
|
});
|
|
20
20
|
})();
|
|
21
21
|
|
|
22
|
-
exports.
|
|
22
|
+
exports.Context = Context;
|
package/dist/index19.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ParameterDecoratorFactory } from './
|
|
2
|
-
import { ResolverStore } from './
|
|
1
|
+
import { ParameterDecoratorFactory } from './index18.mjs';
|
|
2
|
+
import { ResolverStore } from './index39.mjs';
|
|
3
3
|
|
|
4
|
-
let
|
|
5
|
-
resolve(
|
|
6
|
-
return
|
|
4
|
+
let ContextResolver = class ContextResolver {
|
|
5
|
+
resolve(e, r, t) {
|
|
6
|
+
return r.publicContext;
|
|
7
7
|
}
|
|
8
8
|
};
|
|
9
|
-
const
|
|
10
|
-
ResolverStore.register('
|
|
9
|
+
const Context = (()=>{
|
|
10
|
+
ResolverStore.register('Context', ContextResolver);
|
|
11
11
|
return ParameterDecoratorFactory.create({
|
|
12
|
-
name: '
|
|
12
|
+
name: 'Context',
|
|
13
13
|
valueType: 'array',
|
|
14
|
-
resolver:
|
|
14
|
+
resolver: ContextResolver
|
|
15
15
|
});
|
|
16
16
|
})();
|
|
17
17
|
|
|
18
|
-
export {
|
|
18
|
+
export { Context };
|
package/dist/index2.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const constants = require('./
|
|
6
|
-
const reflection = require('./
|
|
7
|
-
const schema = require('./
|
|
5
|
+
const constants = require('./index29.js');
|
|
6
|
+
const reflection = require('./index38.js');
|
|
7
|
+
const schema = require('./index40.js');
|
|
8
8
|
|
|
9
9
|
const Assemblage = (e)=>{
|
|
10
10
|
return (r)=>{
|
package/dist/index2.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReflectFlags, ReflectValue } from './
|
|
2
|
-
import { defineCustomMetadata } from './
|
|
3
|
-
import { validateDefinition } from './
|
|
1
|
+
import { ReflectFlags, ReflectValue } from './index29.mjs';
|
|
2
|
+
import { defineCustomMetadata } from './index38.mjs';
|
|
3
|
+
import { validateDefinition } from './index40.mjs';
|
|
4
4
|
|
|
5
5
|
const Assemblage = (e)=>{
|
|
6
6
|
return (r)=>{
|
package/dist/index20.js
CHANGED
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const parameterDecoratorFactory = require('./
|
|
6
|
-
const resolverStore = require('./
|
|
5
|
+
const parameterDecoratorFactory = require('./index18.js');
|
|
6
|
+
const resolverStore = require('./index39.js');
|
|
7
7
|
|
|
8
|
-
let
|
|
9
|
-
resolve(e,
|
|
10
|
-
return
|
|
8
|
+
let ConfigurationResolver = class ConfigurationResolver {
|
|
9
|
+
resolve(r, o, e, n) {
|
|
10
|
+
return n || o.configuration;
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
|
-
const
|
|
14
|
-
resolverStore.ResolverStore.register('
|
|
13
|
+
const Configuration = (()=>{
|
|
14
|
+
resolverStore.ResolverStore.register('Configuration', ConfigurationResolver);
|
|
15
15
|
return parameterDecoratorFactory.ParameterDecoratorFactory.create({
|
|
16
|
-
name: '
|
|
16
|
+
name: 'Configuration',
|
|
17
17
|
valueType: 'array',
|
|
18
|
-
resolver:
|
|
18
|
+
resolver: ConfigurationResolver
|
|
19
19
|
});
|
|
20
20
|
})();
|
|
21
21
|
|
|
22
|
-
exports.
|
|
22
|
+
exports.Configuration = Configuration;
|
package/dist/index20.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ParameterDecoratorFactory } from './
|
|
2
|
-
import { ResolverStore } from './
|
|
1
|
+
import { ParameterDecoratorFactory } from './index18.mjs';
|
|
2
|
+
import { ResolverStore } from './index39.mjs';
|
|
3
3
|
|
|
4
|
-
let
|
|
5
|
-
resolve(e,
|
|
6
|
-
return
|
|
4
|
+
let ConfigurationResolver = class ConfigurationResolver {
|
|
5
|
+
resolve(r, o, e, n) {
|
|
6
|
+
return n || o.configuration;
|
|
7
7
|
}
|
|
8
8
|
};
|
|
9
|
-
const
|
|
10
|
-
ResolverStore.register('
|
|
9
|
+
const Configuration = (()=>{
|
|
10
|
+
ResolverStore.register('Configuration', ConfigurationResolver);
|
|
11
11
|
return ParameterDecoratorFactory.create({
|
|
12
|
-
name: '
|
|
12
|
+
name: 'Configuration',
|
|
13
13
|
valueType: 'array',
|
|
14
|
-
resolver:
|
|
14
|
+
resolver: ConfigurationResolver
|
|
15
15
|
});
|
|
16
16
|
})();
|
|
17
17
|
|
|
18
|
-
export {
|
|
18
|
+
export { Configuration };
|
package/dist/index21.js
CHANGED
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const parameterDecoratorFactory = require('./
|
|
6
|
-
const resolverStore = require('./
|
|
5
|
+
const parameterDecoratorFactory = require('./index18.js');
|
|
6
|
+
const resolverStore = require('./index39.js');
|
|
7
7
|
|
|
8
|
-
let
|
|
9
|
-
resolve(e, r
|
|
10
|
-
return r.
|
|
8
|
+
let DefinitionResolver = class DefinitionResolver {
|
|
9
|
+
resolve(e, r) {
|
|
10
|
+
return r.definition;
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
|
-
const
|
|
14
|
-
resolverStore.ResolverStore.register('
|
|
13
|
+
const Definition = (()=>{
|
|
14
|
+
resolverStore.ResolverStore.register('Definition', DefinitionResolver);
|
|
15
15
|
return parameterDecoratorFactory.ParameterDecoratorFactory.create({
|
|
16
|
-
name: '
|
|
16
|
+
name: 'Definition',
|
|
17
17
|
valueType: 'array',
|
|
18
|
-
resolver:
|
|
18
|
+
resolver: DefinitionResolver
|
|
19
19
|
});
|
|
20
20
|
})();
|
|
21
21
|
|
|
22
|
-
exports.
|
|
22
|
+
exports.Definition = Definition;
|