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

@travetto/model

Package Overview
Dependencies
Maintainers
1
Versions
371
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@travetto/model - npm Package Compare versions

Comparing version 0.0.34 to 0.0.35

2

package.json

@@ -23,3 +23,3 @@ {

},
"version": "0.0.34"
"version": "0.0.35"
}

@@ -33,3 +33,3 @@ import { Class } from '@travetto/registry';

if (this.source.onSchemaChange) {
SchemaRegistry.onSchemaChange(this.source.onSchemaChange.bind(this.source));
ModelRegistry.onSchemaChange(this.source.onSchemaChange.bind(this.source));
}

@@ -36,0 +36,0 @@ if (this.source.onChange) {

@@ -1,2 +0,2 @@

import { SchemaRegistry } from '@travetto/schema';
import { SchemaRegistry, SchemaChangeEvent } from '@travetto/schema';
import { MetadataRegistry, Class } from '@travetto/registry';

@@ -19,4 +19,12 @@ import { DependencyRegistry } from '@travetto/di';

}
onSchemaChange(cb: (x: SchemaChangeEvent) => void) {
SchemaRegistry.onSchemaChange((e) => {
if (this.has(e.cls)) {
cb(e);
}
});
}
}
export const ModelRegistry = new $ModelRegistry();
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