Comparing version 1.0.0-alpha.6 to 1.0.0-alpha.7
@@ -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'; |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
305825