@worldsibu/convector-core-model
Advanced tools
Comparing version 1.2.1-0-alpha.38c096fa to 1.2.1-0-alpha.6a6c8371
@@ -11,2 +11,3 @@ import * as yup from 'yup'; | ||
export declare abstract class ConvectorModel<T extends ConvectorModel<any>> { | ||
private static type; | ||
static schema<T extends ConvectorModel<any>>(this: Function & { | ||
@@ -13,0 +14,0 @@ prototype: T; |
@@ -51,3 +51,3 @@ "use strict"; | ||
type = this; | ||
if (args[0] && args[0].prototype.__proto__.constructor === ConvectorModel) { | ||
if (args[0] && 'type' in args[0] && args[0].type === ConvectorModel.type) { | ||
type = args.shift(); | ||
@@ -206,2 +206,3 @@ } | ||
}; | ||
ConvectorModel.type = 'io.convector.model'; | ||
tslib_1.__decorate([ | ||
@@ -208,0 +209,0 @@ required_decorator_1.Required(), |
{ | ||
"name": "@worldsibu/convector-core-model", | ||
"version": "1.2.1-0-alpha.38c096fa", | ||
"version": "1.2.1-0-alpha.6a6c8371", | ||
"description": "Convector Model base class", | ||
@@ -35,4 +35,4 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@worldsibu/convector-core-errors": "1.2.1-0-alpha.38c096fa", | ||
"@worldsibu/convector-core-storage": "1.2.1-0-alpha.38c096fa", | ||
"@worldsibu/convector-core-errors": "1.2.1-0-alpha.6a6c8371", | ||
"@worldsibu/convector-core-storage": "1.2.1-0-alpha.6a6c8371", | ||
"tslib": "^1.9.0", | ||
@@ -39,0 +39,0 @@ "yup": "^0.26.10" |
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
40579
399
+ Added@worldsibu/convector-core-errors@1.2.1-0-alpha.6a6c8371(transitive)
+ Added@worldsibu/convector-core-storage@1.2.1-0-alpha.6a6c8371(transitive)
- Removed@worldsibu/convector-core-errors@1.2.1-0-alpha.38c096fa(transitive)
- Removed@worldsibu/convector-core-storage@1.2.1-0-alpha.38c096fa(transitive)
Updated@worldsibu/convector-core-errors@1.2.1-0-alpha.6a6c8371
Updated@worldsibu/convector-core-storage@1.2.1-0-alpha.6a6c8371