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

modelsafe

Package Overview
Dependencies
Maintainers
3
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

modelsafe - npm Package Compare versions

Comparing version 1.0.0-alpha.6 to 1.0.0-alpha.7

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 1.0.0-alpha.7
* [FIX] `isLazyLoad()` should only match functions, not any object that's not a model constructor
# 1.0.0-alpha.6

@@ -2,0 +6,0 @@

@@ -0,0 +0,0 @@ import { Model, ModelConstructor } from './model';

2

dist/association.js

@@ -33,5 +33,5 @@ "use strict";

// will catch that because it requires a model decorator to be associated.
return !metadata_1.hasModelOptions(target);
return typeof (target) === 'function' && !metadata_1.hasModelOptions(target);
}
exports.isLazyLoad = isLazyLoad;
//# sourceMappingURL=association.js.map

@@ -0,0 +0,0 @@ import { Model } from './model';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { ValidationFunction } from './validation';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { Model } from './model';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export * from './association';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /** Contains getters/setters for the model metadata. */

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /** Options for constructing a model instance. */

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { Model, ModelConstructor } from './model';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

{
"name": "modelsafe",
"version": "1.0.0-alpha.6",
"version": "1.0.0-alpha.7",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "bugs": "https://github.com/creativecuriositystudio/modelsafe/issues",

@@ -61,3 +61,3 @@ /** Contains the association types. */

// will catch that because it requires a model decorator to be associated.
return !hasModelOptions(target);
return typeof (target) === 'function' && !hasModelOptions(target);
}

Sorry, the diff of this file is not supported yet

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