assemblerjs 1.1.2 → 1.1.4
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 +29 -3
- package/dist/index11.js +2 -2
- package/dist/index11.mjs +2 -2
- package/dist/index13.js +2 -2
- package/dist/index13.mjs +2 -2
- package/dist/index16.js +1 -1
- package/dist/index16.mjs +1 -1
- package/dist/index17.js +1 -1
- package/dist/index17.mjs +1 -1
- package/dist/index18.js +1 -1
- package/dist/index18.mjs +1 -1
- package/dist/index19.js +1 -1
- package/dist/index19.mjs +1 -1
- package/dist/index2.js +2 -2
- package/dist/index2.mjs +2 -2
- package/dist/index20.js +1 -1
- package/dist/index20.mjs +1 -1
- package/dist/index21.js +1 -1
- package/dist/index21.mjs +1 -1
- package/dist/index22.js +2 -2
- package/dist/index22.mjs +2 -2
- package/dist/index23.js +2 -2
- package/dist/index23.mjs +2 -2
- package/dist/index24.js +2 -2
- package/dist/index24.mjs +2 -2
- package/dist/index25.js +1 -1
- package/dist/index25.mjs +1 -1
- package/dist/index26.js +1 -1
- package/dist/index26.mjs +1 -1
- package/dist/index27.js +1 -1
- package/dist/index27.mjs +1 -1
- package/dist/index29.js +15 -38
- package/dist/index29.mjs +12 -37
- package/dist/index3.js +1 -1
- package/dist/index3.mjs +1 -1
- package/dist/index30.js +100 -58
- package/dist/index30.mjs +98 -58
- package/dist/index31.js +63 -20
- package/dist/index31.mjs +63 -20
- package/dist/index32.js +23 -57
- package/dist/index32.mjs +23 -57
- package/dist/index33.js +75 -27
- package/dist/index33.mjs +75 -27
- package/dist/index34.js +39 -29
- package/dist/index34.mjs +39 -29
- package/dist/index35.js +32 -18
- package/dist/index35.mjs +32 -15
- package/dist/index36.js +128 -101
- package/dist/index36.mjs +128 -99
- package/dist/index37.js +35 -100
- package/dist/index37.mjs +34 -100
- package/dist/index38.js +18 -24
- package/dist/index38.mjs +18 -24
- package/dist/index39.js +101 -18
- package/dist/index39.mjs +101 -18
- package/dist/index4.js +23 -10
- package/dist/index4.mjs +23 -10
- package/dist/index40.js +25 -25
- package/dist/index40.mjs +25 -24
- package/dist/index41.js +44 -18
- package/dist/index41.mjs +44 -17
- package/dist/index42.js +18 -44
- package/dist/index42.mjs +17 -44
- package/dist/index43.js +26 -191
- package/dist/index43.mjs +25 -191
- package/dist/index44.js +192 -940
- package/dist/index44.mjs +192 -940
- package/dist/index45.js +942 -2
- package/dist/index45.mjs +942 -2
- package/dist/index46.js +2 -2
- package/dist/index46.mjs +2 -2
- package/dist/index47.js +2 -14
- package/dist/index47.mjs +2 -14
- package/dist/index48.js +9 -34
- package/dist/index48.mjs +9 -34
- package/dist/index49.js +32 -55
- package/dist/index49.mjs +32 -54
- package/dist/index50.js +67 -0
- package/dist/index50.mjs +62 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ export declare abstract class AbstractAssembler extends AbstractEventManager imp
|
|
|
56
56
|
abstract prepareInitHook<T = AbstractAssemblage>(instance: T, configuration?: Record<string, any>): unknown[];
|
|
57
57
|
abstract addGlobal(key: string, value: any): void;
|
|
58
58
|
abstract has<T>(identifier: Identifier<T>): boolean;
|
|
59
|
-
abstract require<T>(identifier: Identifier<T> | string | symbol, configuration?: Record<string, any>): T;
|
|
59
|
+
abstract require<T>(identifier: Identifier<T> | string | symbol, configuration?: Record<string, any>, caller?: Identifier<any>): T;
|
|
60
60
|
abstract concrete<T>(identifier: Identifier<T>): Concrete<T> | undefined;
|
|
61
61
|
abstract tagged(...tags: string[]): any[];
|
|
62
62
|
abstract global(key: string): any | undefined;
|
|
@@ -311,6 +311,14 @@ export declare interface AssemblageDefinition {
|
|
|
311
311
|
* `assembler.js` dependency injection container and handler.
|
|
312
312
|
*/
|
|
313
313
|
export declare class Assembler extends EventManager implements AbstractAssembler {
|
|
314
|
+
/**
|
|
315
|
+
* Enable debug mode with optional configuration
|
|
316
|
+
*/
|
|
317
|
+
static enableDebug(options?: AssemblerDebugOptions): void;
|
|
318
|
+
/**
|
|
319
|
+
* Disable debug mode
|
|
320
|
+
*/
|
|
321
|
+
static disableDebug(): void;
|
|
314
322
|
/**
|
|
315
323
|
* Build the dependencies tree from an assemblage as entry point.
|
|
316
324
|
*
|
|
@@ -337,7 +345,7 @@ export declare class Assembler extends EventManager implements AbstractAssembler
|
|
|
337
345
|
use<T>(identifier: string | symbol, object: T): T;
|
|
338
346
|
prepareInitHook<T = AbstractAssemblage>(instance: T, configuration?: Record<string, any>): unknown[];
|
|
339
347
|
has<T>(identifier: Identifier<T> | string | symbol): boolean;
|
|
340
|
-
require<T>(identifier: Identifier<T> | string | symbol, configuration?: Record<string, any>): T;
|
|
348
|
+
require<T>(identifier: Identifier<T> | string | symbol, configuration?: Record<string, any>, caller?: Identifier<any>): T;
|
|
341
349
|
concrete<T>(identifier: Identifier<T>): Concrete<T> | undefined;
|
|
342
350
|
tagged(...tags: string[]): unknown[];
|
|
343
351
|
addGlobal(key: string, value: any): void;
|
|
@@ -371,6 +379,24 @@ export declare interface AssemblerContext {
|
|
|
371
379
|
events: AbstractAssembler['channels'];
|
|
372
380
|
}
|
|
373
381
|
|
|
382
|
+
/**
|
|
383
|
+
* Debug options for Assembler build process
|
|
384
|
+
*/
|
|
385
|
+
export declare interface AssemblerDebugOptions {
|
|
386
|
+
enabled?: boolean;
|
|
387
|
+
logger?: (level: 'info' | 'warn' | 'error', message: string, data?: any) => void;
|
|
388
|
+
logPhases?: {
|
|
389
|
+
registration?: boolean;
|
|
390
|
+
resolution?: boolean;
|
|
391
|
+
construction?: boolean;
|
|
392
|
+
hooks?: boolean;
|
|
393
|
+
cache?: boolean;
|
|
394
|
+
};
|
|
395
|
+
logTimings?: boolean;
|
|
396
|
+
logDependencyTree?: boolean;
|
|
397
|
+
useColors?: boolean;
|
|
398
|
+
}
|
|
399
|
+
|
|
374
400
|
/**
|
|
375
401
|
* `Assembler` dispose method type.
|
|
376
402
|
*/
|
|
@@ -816,7 +842,7 @@ declare class InjectableManager {
|
|
|
816
842
|
setContexts(privateContext: AssemblerPrivateContext, publicContext: AssemblerContext): void;
|
|
817
843
|
register<T>(injection: Injection<T>, instance?: boolean): Injectable<T>;
|
|
818
844
|
has<T>(identifier: Identifier<T>): boolean;
|
|
819
|
-
require<T>(identifier: Identifier<T>, configuration?: Record<string, any>): T;
|
|
845
|
+
require<T>(identifier: Identifier<T>, configuration?: Record<string, any>, caller?: Identifier<any>): T;
|
|
820
846
|
concrete<T>(identifier: Identifier<T>): any | undefined;
|
|
821
847
|
tagged(...tags: string[]): unknown[];
|
|
822
848
|
dispose(): void;
|
package/dist/index11.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
5
|
const constants = require('./index28.js');
|
|
6
|
-
const reflection = require('./
|
|
6
|
+
const reflection = require('./index29.js');
|
|
7
7
|
const decorator = require('./index2.js');
|
|
8
|
-
const schema = require('./
|
|
8
|
+
const schema = require('./index30.js');
|
|
9
9
|
|
|
10
10
|
function isTransversal(e) {
|
|
11
11
|
try {
|
package/dist/index11.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReflectValue } from './index28.mjs';
|
|
2
|
-
import { getCustomMetadata, defineCustomMetadata } from './
|
|
2
|
+
import { getCustomMetadata, defineCustomMetadata } from './index29.mjs';
|
|
3
3
|
import { Assemblage } from './index2.mjs';
|
|
4
|
-
import { getDefinition } from './
|
|
4
|
+
import { getDefinition } from './index30.mjs';
|
|
5
5
|
|
|
6
6
|
function isTransversal(e) {
|
|
7
7
|
try {
|
package/dist/index13.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
5
|
const core = require('@assemblerjs/core');
|
|
6
|
-
const pointcutMatcher = require('./
|
|
6
|
+
const pointcutMatcher = require('./index40.js');
|
|
7
7
|
const affect = require('./index12.js');
|
|
8
|
-
const schema = require('./
|
|
8
|
+
const schema = require('./index30.js');
|
|
9
9
|
|
|
10
10
|
class TransversalManager {
|
|
11
11
|
static getInstance(e) {
|
package/dist/index13.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isClass } from '@assemblerjs/core';
|
|
2
|
-
import { PointcutMatcher } from './
|
|
2
|
+
import { PointcutMatcher } from './index40.mjs';
|
|
3
3
|
import { getAffectedMethods } from './index12.mjs';
|
|
4
|
-
import { getDefinition } from './
|
|
4
|
+
import { getDefinition } from './index30.mjs';
|
|
5
5
|
|
|
6
6
|
class TransversalManager {
|
|
7
7
|
static getInstance(e) {
|
package/dist/index16.js
CHANGED
package/dist/index16.mjs
CHANGED
package/dist/index17.js
CHANGED
package/dist/index17.mjs
CHANGED
package/dist/index18.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
5
|
const parameterDecoratorFactory = require('./index17.js');
|
|
6
|
-
const resolverStore = require('./
|
|
6
|
+
const resolverStore = require('./index38.js');
|
|
7
7
|
|
|
8
8
|
let ContextResolver = class ContextResolver {
|
|
9
9
|
resolve(e, r, t) {
|
package/dist/index18.mjs
CHANGED
package/dist/index19.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
5
|
const parameterDecoratorFactory = require('./index17.js');
|
|
6
|
-
const resolverStore = require('./
|
|
6
|
+
const resolverStore = require('./index38.js');
|
|
7
7
|
|
|
8
8
|
let ConfigurationResolver = class ConfigurationResolver {
|
|
9
9
|
resolve(r, o, e, n) {
|
package/dist/index19.mjs
CHANGED
package/dist/index2.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
5
|
const constants = require('./index28.js');
|
|
6
|
-
const reflection = require('./
|
|
7
|
-
const schema = require('./
|
|
6
|
+
const reflection = require('./index29.js');
|
|
7
|
+
const schema = require('./index30.js');
|
|
8
8
|
|
|
9
9
|
const Assemblage = (e)=>{
|
|
10
10
|
return (r)=>{
|
package/dist/index2.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReflectFlags, ReflectValue } from './index28.mjs';
|
|
2
|
-
import { defineCustomMetadata } from './
|
|
3
|
-
import { validateDefinition } from './
|
|
2
|
+
import { defineCustomMetadata } from './index29.mjs';
|
|
3
|
+
import { validateDefinition } from './index30.mjs';
|
|
4
4
|
|
|
5
5
|
const Assemblage = (e)=>{
|
|
6
6
|
return (r)=>{
|
package/dist/index20.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
5
|
const parameterDecoratorFactory = require('./index17.js');
|
|
6
|
-
const resolverStore = require('./
|
|
6
|
+
const resolverStore = require('./index38.js');
|
|
7
7
|
|
|
8
8
|
let DefinitionResolver = class DefinitionResolver {
|
|
9
9
|
resolve(e, r) {
|
package/dist/index20.mjs
CHANGED
package/dist/index21.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
5
|
const parameterDecoratorFactory = require('./index17.js');
|
|
6
|
-
const resolverStore = require('./
|
|
6
|
+
const resolverStore = require('./index38.js');
|
|
7
7
|
|
|
8
8
|
let DisposeResolver = class DisposeResolver {
|
|
9
9
|
resolve(e, r, s) {
|
package/dist/index21.mjs
CHANGED
package/dist/index22.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const reflection = require('./
|
|
5
|
+
const reflection = require('./index29.js');
|
|
6
6
|
const parameterDecoratorFactory = require('./index17.js');
|
|
7
7
|
const helpers = require('./index25.js');
|
|
8
|
-
const resolverStore = require('./
|
|
8
|
+
const resolverStore = require('./index38.js');
|
|
9
9
|
|
|
10
10
|
let UseResolver = class UseResolver {
|
|
11
11
|
resolve(r, o, t) {
|
package/dist/index22.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getOwnCustomMetadata } from './
|
|
1
|
+
import { getOwnCustomMetadata } from './index29.mjs';
|
|
2
2
|
import { ParameterDecoratorFactory } from './index17.mjs';
|
|
3
3
|
import { getParamValueKey } from './index25.mjs';
|
|
4
|
-
import { ResolverStore } from './
|
|
4
|
+
import { ResolverStore } from './index38.mjs';
|
|
5
5
|
|
|
6
6
|
let UseResolver = class UseResolver {
|
|
7
7
|
resolve(r, o, t) {
|
package/dist/index23.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const reflection = require('./
|
|
5
|
+
const reflection = require('./index29.js');
|
|
6
6
|
const parameterDecoratorFactory = require('./index17.js');
|
|
7
7
|
const helpers = require('./index25.js');
|
|
8
|
-
const resolverStore = require('./
|
|
8
|
+
const resolverStore = require('./index38.js');
|
|
9
9
|
|
|
10
10
|
let GlobalResolver = class GlobalResolver {
|
|
11
11
|
resolve(e, r, a) {
|
package/dist/index23.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getOwnCustomMetadata } from './
|
|
1
|
+
import { getOwnCustomMetadata } from './index29.mjs';
|
|
2
2
|
import { ParameterDecoratorFactory } from './index17.mjs';
|
|
3
3
|
import { getParamValueKey } from './index25.mjs';
|
|
4
|
-
import { ResolverStore } from './
|
|
4
|
+
import { ResolverStore } from './index38.mjs';
|
|
5
5
|
|
|
6
6
|
let GlobalResolver = class GlobalResolver {
|
|
7
7
|
resolve(e, r, a) {
|
package/dist/index24.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const reflection = require('./
|
|
5
|
+
const reflection = require('./index29.js');
|
|
6
6
|
const parameterDecoratorFactory = require('./index17.js');
|
|
7
7
|
const helpers = require('./index25.js');
|
|
8
|
-
const resolverStore = require('./
|
|
8
|
+
const resolverStore = require('./index38.js');
|
|
9
9
|
|
|
10
10
|
let OptionalResolver = class OptionalResolver {
|
|
11
11
|
resolve(o, t, n) {
|
package/dist/index24.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getParamTypes, getOwnCustomMetadata } from './
|
|
1
|
+
import { getParamTypes, getOwnCustomMetadata } from './index29.mjs';
|
|
2
2
|
import { ParameterDecoratorFactory } from './index17.mjs';
|
|
3
3
|
import { getParamValueKey } from './index25.mjs';
|
|
4
|
-
import { ResolverStore } from './
|
|
4
|
+
import { ResolverStore } from './index38.mjs';
|
|
5
5
|
|
|
6
6
|
let OptionalResolver = class OptionalResolver {
|
|
7
7
|
resolve(o, t, n) {
|
package/dist/index25.js
CHANGED
package/dist/index25.mjs
CHANGED
package/dist/index26.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
5
|
const constants = require('./index28.js');
|
|
6
|
-
const reflection = require('./
|
|
6
|
+
const reflection = require('./index29.js');
|
|
7
7
|
const helpers = require('./index25.js');
|
|
8
8
|
const parameterDecoratorFactory = require('./index17.js');
|
|
9
9
|
const decorator = require('./index2.js');
|
package/dist/index26.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReflectParamTypes, ReflectValue } from './index28.mjs';
|
|
2
|
-
import { getOwnCustomMetadata, defineCustomMetadata } from './
|
|
2
|
+
import { getOwnCustomMetadata, defineCustomMetadata } from './index29.mjs';
|
|
3
3
|
import { getDecoratedParametersIndexes, getParamValueKey, getParamIndexKey } from './index25.mjs';
|
|
4
4
|
import { ParameterDecoratorFactory } from './index17.mjs';
|
|
5
5
|
import { decorateAssemblage } from './index2.mjs';
|
package/dist/index27.js
CHANGED
package/dist/index27.mjs
CHANGED
package/dist/index29.js
CHANGED
|
@@ -2,45 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const constants = require('./index28.js');
|
|
6
6
|
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
if (o) {
|
|
10
|
-
const e = n;
|
|
11
|
-
const o = e.channels;
|
|
12
|
-
for (const n of t.events){
|
|
13
|
-
if (!o.has(n)) e.addChannels(n);
|
|
14
|
-
if (!t.privateContext.events.has(n)) t.privateContext.addChannels(n);
|
|
15
|
-
}
|
|
16
|
-
for (const e of t.events){
|
|
17
|
-
n.on(e, (...n)=>{
|
|
18
|
-
t.privateContext.emit(e, ...n);
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
} else {
|
|
22
|
-
for (const e of t.events){
|
|
23
|
-
if (!t.privateContext.events.has(e)) t.privateContext.addChannels(e);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
7
|
+
const defineCustomMetadata = (t, o, n)=>{
|
|
8
|
+
Reflect.defineMetadata(`${constants.ReflectPrefix}${t}${constants.ReflectSuffix}`, o, n);
|
|
26
9
|
};
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
t.privateContext.removeChannels(...t.events);
|
|
36
|
-
} else {
|
|
37
|
-
for (const e of t.events){
|
|
38
|
-
if (t.privateContext.events.has(e)) {
|
|
39
|
-
t.privateContext.removeChannels(e);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
10
|
+
const getCustomMetadata = (t, o)=>{
|
|
11
|
+
return Reflect.getMetadata(`${constants.ReflectPrefix}${t}${constants.ReflectSuffix}`, o);
|
|
12
|
+
};
|
|
13
|
+
const getOwnCustomMetadata = (t, o)=>{
|
|
14
|
+
return Reflect.getOwnMetadata(`${constants.ReflectPrefix}${t}${constants.ReflectSuffix}`, o);
|
|
15
|
+
};
|
|
16
|
+
const getParamTypes = (e)=>{
|
|
17
|
+
return Reflect.getMetadata(constants.ReflectParamTypes, e) || [];
|
|
43
18
|
};
|
|
44
19
|
|
|
45
|
-
exports.
|
|
46
|
-
exports.
|
|
20
|
+
exports.defineCustomMetadata = defineCustomMetadata;
|
|
21
|
+
exports.getCustomMetadata = getCustomMetadata;
|
|
22
|
+
exports.getOwnCustomMetadata = getOwnCustomMetadata;
|
|
23
|
+
exports.getParamTypes = getParamTypes;
|
package/dist/index29.mjs
CHANGED
|
@@ -1,41 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReflectPrefix, ReflectSuffix, ReflectParamTypes } from './index28.mjs';
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
if (o) {
|
|
6
|
-
const e = n;
|
|
7
|
-
const o = e.channels;
|
|
8
|
-
for (const n of t.events){
|
|
9
|
-
if (!o.has(n)) e.addChannels(n);
|
|
10
|
-
if (!t.privateContext.events.has(n)) t.privateContext.addChannels(n);
|
|
11
|
-
}
|
|
12
|
-
for (const e of t.events){
|
|
13
|
-
n.on(e, (...n)=>{
|
|
14
|
-
t.privateContext.emit(e, ...n);
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
} else {
|
|
18
|
-
for (const e of t.events){
|
|
19
|
-
if (!t.privateContext.events.has(e)) t.privateContext.addChannels(e);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
3
|
+
const defineCustomMetadata = (t, o, n)=>{
|
|
4
|
+
Reflect.defineMetadata(`${ReflectPrefix}${t}${ReflectSuffix}`, o, n);
|
|
22
5
|
};
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
t.privateContext.removeChannels(...t.events);
|
|
32
|
-
} else {
|
|
33
|
-
for (const e of t.events){
|
|
34
|
-
if (t.privateContext.events.has(e)) {
|
|
35
|
-
t.privateContext.removeChannels(e);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
6
|
+
const getCustomMetadata = (t, o)=>{
|
|
7
|
+
return Reflect.getMetadata(`${ReflectPrefix}${t}${ReflectSuffix}`, o);
|
|
8
|
+
};
|
|
9
|
+
const getOwnCustomMetadata = (t, o)=>{
|
|
10
|
+
return Reflect.getOwnMetadata(`${ReflectPrefix}${t}${ReflectSuffix}`, o);
|
|
11
|
+
};
|
|
12
|
+
const getParamTypes = (e)=>{
|
|
13
|
+
return Reflect.getMetadata(ReflectParamTypes, e) || [];
|
|
39
14
|
};
|
|
40
15
|
|
|
41
|
-
export {
|
|
16
|
+
export { defineCustomMetadata, getCustomMetadata, getOwnCustomMetadata, getParamTypes };
|
package/dist/index3.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
5
|
const constants = require('./index28.js');
|
|
6
|
-
const reflection = require('./
|
|
6
|
+
const reflection = require('./index29.js');
|
|
7
7
|
|
|
8
8
|
const isAssemblage = (s)=>{
|
|
9
9
|
return reflection.getOwnCustomMetadata(constants.ReflectFlags.IsAssemblage, s) || false;
|
package/dist/index3.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReflectFlags, ReflectValue } from './index28.mjs';
|
|
2
|
-
import { getOwnCustomMetadata } from './
|
|
2
|
+
import { getOwnCustomMetadata } from './index29.mjs';
|
|
3
3
|
|
|
4
4
|
const isAssemblage = (s)=>{
|
|
5
5
|
return getOwnCustomMetadata(ReflectFlags.IsAssemblage, s) || false;
|