assemblerjs 1.1.22 → 1.1.24
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 +4 -0
- package/dist/index11.js +1 -1
- package/dist/index11.mjs +1 -1
- package/dist/index13.js +1 -1
- package/dist/index13.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 +1 -1
- package/dist/index2.mjs +1 -1
- 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 +1 -1
- package/dist/index22.mjs +1 -1
- package/dist/index23.js +1 -1
- package/dist/index23.mjs +1 -1
- package/dist/index24.js +1 -1
- package/dist/index24.mjs +1 -1
- package/dist/index32.js +1 -1
- package/dist/index32.mjs +1 -1
- package/dist/index37.js +18 -103
- package/dist/index37.mjs +18 -101
- package/dist/index38.js +103 -18
- package/dist/index38.mjs +101 -18
- package/dist/index40.js +92 -74
- package/dist/index40.mjs +92 -74
- package/dist/index45.js +27 -27
- package/dist/index45.mjs +27 -27
- package/dist/index49.js +1 -1
- package/dist/index49.mjs +1 -1
- package/package.json +1 -1
package/dist/index45.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import { unregisterEvents } from './index39.mjs';
|
|
|
8
8
|
import { HookManager } from './index31.mjs';
|
|
9
9
|
import { isAssemblage } from './index3.mjs';
|
|
10
10
|
import { isFactory } from './index43.mjs';
|
|
11
|
-
import { getDefinition } from './
|
|
11
|
+
import { getDefinition } from './index38.mjs';
|
|
12
12
|
import { isTransversal } from './index11.mjs';
|
|
13
13
|
import { TransversalManager } from './index13.mjs';
|
|
14
14
|
|
|
@@ -131,6 +131,32 @@ class Injectable {
|
|
|
131
131
|
if (this.concrete) {
|
|
132
132
|
const t = DebugLogger.getInstance();
|
|
133
133
|
defineCustomMetadata(ReflectValue.AssemblageContext, this.publicContext, this.concrete);
|
|
134
|
+
if (this.globals) {
|
|
135
|
+
const e = Object.keys(this.globals);
|
|
136
|
+
const i = e.map((t)=>{
|
|
137
|
+
const e = this.globals[t];
|
|
138
|
+
return {
|
|
139
|
+
key: t,
|
|
140
|
+
value: e
|
|
141
|
+
};
|
|
142
|
+
});
|
|
143
|
+
if (e.length > 0) {
|
|
144
|
+
t.logPhaseStart('registrationGlobals', {
|
|
145
|
+
target: this.concrete?.name ?? String(this.identifier),
|
|
146
|
+
count: e.length,
|
|
147
|
+
keys: e,
|
|
148
|
+
values: i
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
for(const t in this.globals){
|
|
152
|
+
this.privateContext.addGlobal(t, this.globals[t]);
|
|
153
|
+
}
|
|
154
|
+
if (e.length > 0) {
|
|
155
|
+
t.logPhaseEnd('registrationGlobals', undefined, {
|
|
156
|
+
target: this.concrete?.name ?? String(this.identifier)
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
}
|
|
134
160
|
for (const t of this.transversals){
|
|
135
161
|
const e = this.resolveTransversalToInjection(t);
|
|
136
162
|
this.privateContext.register(e);
|
|
@@ -204,32 +230,6 @@ class Injectable {
|
|
|
204
230
|
}
|
|
205
231
|
}
|
|
206
232
|
this.dependenciesIds = this.concrete ? resolveDependencies(this.concrete) : [];
|
|
207
|
-
if (this.globals) {
|
|
208
|
-
const e = Object.keys(this.globals);
|
|
209
|
-
const i = e.map((t)=>{
|
|
210
|
-
const e = this.globals[t];
|
|
211
|
-
return {
|
|
212
|
-
key: t,
|
|
213
|
-
value: e
|
|
214
|
-
};
|
|
215
|
-
});
|
|
216
|
-
if (e.length > 0) {
|
|
217
|
-
t.logPhaseStart('registrationGlobals', {
|
|
218
|
-
target: this.concrete?.name ?? String(this.identifier),
|
|
219
|
-
count: e.length,
|
|
220
|
-
keys: e,
|
|
221
|
-
values: i
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
for(const t in this.globals){
|
|
225
|
-
this.privateContext.addGlobal(t, this.globals[t]);
|
|
226
|
-
}
|
|
227
|
-
if (e.length > 0) {
|
|
228
|
-
t.logPhaseEnd('registrationGlobals', undefined, {
|
|
229
|
-
target: this.concrete?.name ?? String(this.identifier)
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
233
|
}
|
|
234
234
|
if (t.instance) {
|
|
235
235
|
this.singletonInstance = t.instance;
|
package/dist/index49.js
CHANGED
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.24",
|
|
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",
|