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 3.3.4 to 3.3.5

2

package.json
{
"name": "@travetto/model",
"version": "3.3.4",
"version": "3.3.5",
"description": "Datastore abstraction for core operations.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -78,13 +78,10 @@ import { RootIndex } from '@travetto/manifest';

delete view[schema.subTypeField].required; // Allow type to be optional
let parent = this.getParentClass(cls);
let from = cls;
// Merge inherited prepersist/postload
while (parent && from !== parent) {
const pCfg = this.get(parent);
config.prePersist = [...pCfg.prePersist ?? [], ...config.prePersist ?? []];
config.postLoad = [...pCfg.postLoad ?? [], ...config.postLoad ?? []];
from = parent;
parent = this.getParentClass(from);
}
}
const parent = this.getParentClass(cls);
if (parent && parent !== cls) {
const pCfg = this.get(parent) ?? this.pending.get(MetadataRegistry.id(parent));
config.prePersist = [...pCfg.prePersist ?? [], ...config.prePersist ?? []];
config.postLoad = [...pCfg.postLoad ?? [], ...config.postLoad ?? []];
}
return config;

@@ -91,0 +88,0 @@ }

@@ -94,2 +94,3 @@ import assert from 'assert';

assert(doc instanceof Doctor);
assert(doc.updatedDate !== undefined);

@@ -96,0 +97,0 @@ await assert.rejects(

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