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

@travetto/registry

Package Overview
Dependencies
Maintainers
1
Versions
290
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@travetto/registry - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

2

package.json

@@ -18,3 +18,3 @@ {

"scripts": {},
"version": "0.0.5"
"version": "0.0.6"
}

@@ -11,8 +11,13 @@ import { Class } from '../model/types';

protected descendents: Registry[] = [];
protected parents: ClassSource[] = [];
constructor(protected parent?: ClassSource) {
if (parent) {
this.listen(parent);
if (parent instanceof Registry) {
parent.descendents.push(this);
constructor(...parents: ClassSource[]) {
this.parents = parents;
if (this.parents.length) {
for (let parent of this.parents) {
this.listen(parent);
if (parent instanceof Registry) {
parent.descendents.push(this);
}
}

@@ -37,5 +42,4 @@ }

if (this.parent && !(this.parent instanceof Registry)) {
await this.parent.init();
}
let waitFor = this.parents.filter(x => !(x instanceof Registry));
await Promise.all(waitFor);

@@ -42,0 +46,0 @@ let classes = await this.initialInstall();

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