assemblerjs 1.1.0 → 1.1.2
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 +27 -8
- 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/index29.js +33 -56
- package/dist/index29.mjs +32 -56
- package/dist/index3.js +1 -1
- package/dist/index3.mjs +1 -1
- package/dist/index30.js +54 -20
- package/dist/index30.mjs +54 -20
- package/dist/index31.js +23 -57
- package/dist/index31.mjs +23 -57
- package/dist/index32.js +61 -27
- package/dist/index32.mjs +61 -27
- package/dist/index33.js +29 -29
- package/dist/index33.mjs +29 -29
- package/dist/index34.js +32 -18
- package/dist/index34.mjs +32 -15
- package/dist/index35.js +18 -23
- package/dist/index35.mjs +15 -23
- package/dist/index36.js +100 -33
- package/dist/index36.mjs +98 -32
- package/dist/index37.js +100 -96
- package/dist/index37.mjs +100 -94
- package/dist/index38.js +24 -96
- package/dist/index38.mjs +24 -96
- package/dist/index39.js +18 -24
- package/dist/index39.mjs +18 -24
- package/dist/index4.js +5 -5
- package/dist/index4.mjs +5 -5
- package/dist/index41.js +18 -4
- package/dist/index41.mjs +18 -5
- package/dist/index43.js +92 -70
- package/dist/index43.mjs +92 -70
- package/dist/index47.js +1 -1
- package/dist/index47.mjs +1 -1
- package/dist/index48.js +18 -7
- package/dist/index48.mjs +18 -7
- package/dist/index49.js +1 -1
- package/dist/index49.mjs +1 -1
- package/package.json +1 -5
package/dist/index48.js
CHANGED
|
@@ -3,17 +3,28 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
5
|
const dependencies = require('./index49.js');
|
|
6
|
-
const transversalWeaver = require('./
|
|
7
|
-
const helpers = require('./
|
|
6
|
+
const transversalWeaver = require('./index37.js');
|
|
7
|
+
const helpers = require('./index29.js');
|
|
8
8
|
|
|
9
9
|
class InjectableBuilder {
|
|
10
10
|
build(i) {
|
|
11
11
|
const r = this.mergeConfiguration(i);
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
let c;
|
|
13
|
+
if (this.injectable.singletonInstance) {
|
|
14
|
+
return this.injectable.singletonInstance;
|
|
15
|
+
}
|
|
16
|
+
if (this.injectable.factory) {
|
|
17
|
+
c = this.injectable.factory();
|
|
18
|
+
} else if (this.injectable.concrete) {
|
|
19
|
+
const e = dependencies.resolveInjectableParameters(this.injectable, r);
|
|
20
|
+
c = new this.injectable.concrete(...e);
|
|
21
|
+
} else {
|
|
22
|
+
throw new Error(`Injectable with identifier '${String(this.injectable.identifier)}' has neither concrete class nor factory.`);
|
|
23
|
+
}
|
|
24
|
+
const s = this.injectable.concrete || c.constructor;
|
|
25
|
+
const o = transversalWeaver.TransversalWeaver.weave(c, s, this.injectable.publicContext);
|
|
26
|
+
helpers.registerEvents(this.injectable, o);
|
|
27
|
+
return o;
|
|
17
28
|
}
|
|
18
29
|
mergeConfiguration(e) {
|
|
19
30
|
const t = this.injectable.configuration || {};
|
package/dist/index48.mjs
CHANGED
|
@@ -1,15 +1,26 @@
|
|
|
1
1
|
import { resolveInjectableParameters } from './index49.mjs';
|
|
2
|
-
import { TransversalWeaver } from './
|
|
3
|
-
import { registerEvents } from './
|
|
2
|
+
import { TransversalWeaver } from './index37.mjs';
|
|
3
|
+
import { registerEvents } from './index29.mjs';
|
|
4
4
|
|
|
5
5
|
class InjectableBuilder {
|
|
6
6
|
build(i) {
|
|
7
7
|
const r = this.mergeConfiguration(i);
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
let c;
|
|
9
|
+
if (this.injectable.singletonInstance) {
|
|
10
|
+
return this.injectable.singletonInstance;
|
|
11
|
+
}
|
|
12
|
+
if (this.injectable.factory) {
|
|
13
|
+
c = this.injectable.factory();
|
|
14
|
+
} else if (this.injectable.concrete) {
|
|
15
|
+
const e = resolveInjectableParameters(this.injectable, r);
|
|
16
|
+
c = new this.injectable.concrete(...e);
|
|
17
|
+
} else {
|
|
18
|
+
throw new Error(`Injectable with identifier '${String(this.injectable.identifier)}' has neither concrete class nor factory.`);
|
|
19
|
+
}
|
|
20
|
+
const s = this.injectable.concrete || c.constructor;
|
|
21
|
+
const o = TransversalWeaver.weave(c, s, this.injectable.publicContext);
|
|
22
|
+
registerEvents(this.injectable, o);
|
|
23
|
+
return o;
|
|
13
24
|
}
|
|
14
25
|
mergeConfiguration(e) {
|
|
15
26
|
const t = this.injectable.configuration || {};
|
package/dist/index49.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const reflection = require('./
|
|
5
|
+
const reflection = require('./index35.js');
|
|
6
6
|
const helpers = require('./index25.js');
|
|
7
7
|
const parameterResolver_factory = require('./index47.js');
|
|
8
8
|
const decorators = require('./index11.js');
|
package/dist/index49.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "assemblerjs",
|
|
3
3
|
"description": "A general purpose Dependency Injection library for node and browser.",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.2",
|
|
5
5
|
"author": "Benoît LAHOZ <info@benoitlahoz.io>",
|
|
6
6
|
"bugs": "https://github.com/benoitlahoz/assemblerjs/issues",
|
|
7
7
|
"homepage": "https://github.com/benoitlahoz/assemblerjs#README",
|
|
@@ -54,9 +54,5 @@
|
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@assemblerjs/core": "^0.9.6",
|
|
56
56
|
"reflect-metadata": "0.2.2"
|
|
57
|
-
},
|
|
58
|
-
"devDependencies": {
|
|
59
|
-
"istanbul-badges-readme": "^1.9.0",
|
|
60
|
-
"vitest": "^3.0.0"
|
|
61
57
|
}
|
|
62
58
|
}
|