memserver
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -24,7 +24,9 @@ "use strict"; | ||
window.MemserverModel = Model; | ||
window.MemServer = this; | ||
if (initializerReturn instanceof Promise) { | ||
initializerReturn.then(() => { | ||
if (options.globalizeModels) { | ||
window.MemServer.Models = {}; | ||
Object.keys(Model._modelDefinitions).forEach((modelName) => { | ||
window[modelName] = Model._modelDefinitions[modelName]; | ||
window.MemServer.Models[modelName] = Model._modelDefinitions[modelName]; | ||
}); | ||
@@ -36,4 +38,5 @@ } | ||
if (options.globalizeModels) { | ||
window.MemServer.Models = {}; | ||
Object.keys(Model._modelDefinitions).forEach((modelName) => { | ||
window[modelName] = Model._modelDefinitions[modelName]; | ||
window.MemServer.Models[modelName] = Model._modelDefinitions[modelName]; | ||
}); | ||
@@ -40,0 +43,0 @@ } |
{ | ||
"name": "memserver", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "in-memory database/ORM and http mock server you can run in-browser and node environments. Built for large frontend teams, fast tests and rapid prototyping", | ||
@@ -5,0 +5,0 @@ "author": "Izel Nakri", |
Sorry, the diff of this file is too big to display
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
737020
18837
9