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/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 './index37.mjs';
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const resolverStore = require('./index38.js');
5
+ const resolverStore = require('./index37.js');
6
6
 
7
7
  class ParameterResolverFactory {
8
8
  static getResolver(r) {
package/dist/index49.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { ResolverStore } from './index38.mjs';
1
+ import { ResolverStore } from './index37.mjs';
2
2
 
3
3
  class ParameterResolverFactory {
4
4
  static getResolver(r) {
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.22",
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",