Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@travetto/di

Package Overview
Dependencies
Maintainers
1
Versions
313
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@travetto/di - npm Package Compare versions

Comparing version 0.0.29 to 0.0.30

2

package.json

@@ -33,3 +33,3 @@ {

},
"version": "0.0.29"
"version": "0.0.30"
}

@@ -102,15 +102,10 @@ import { Dependency, InjectableConfig, ClassTarget, InjectableFactoryConfig } from '../types';

async initialInstall() {
const finalizing = this.pendingFinalize;
this.pendingFinalize = [];
for (const cls of finalizing) {
this.install(cls, { type: 'added', curr: cls });
}
processAutocreate() {
// Unblock auto created
if (this.autoCreate.length && !AppEnv.test) {
const items = this.autoCreate.slice(0).sort((a, b) => a.priority - b.priority);
this.autoCreate = [];
setTimeout(async () => { // Run after initialization finishes
console.debug('Auto-creating', this.autoCreate.map(x => x.target.name));
const items = this.autoCreate.slice(0).sort((a, b) => a.priority - b.priority);
for (const i of items) {

@@ -123,2 +118,13 @@ await this.getInstance(i.target, i.qualifier);

async initialInstall() {
const finalizing = this.pendingFinalize;
this.pendingFinalize = [];
for (const cls of finalizing) {
this.install(cls, { type: 'added', curr: cls });
}
this.processAutocreate();
}
createPending(cls: Class) {

@@ -320,2 +326,4 @@ if (!this.resolved) {

}
this.processAutocreate();
}

@@ -322,0 +330,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc