dmn-js-shared
Advanced tools
Comparing version
@@ -87,46 +87,2 @@ var _excluded = ["modules"]; | ||
function bootstrap(bootstrapModules) { | ||
var modules = [], | ||
components = []; | ||
function hasModule(m) { | ||
return modules.indexOf(m) >= 0; | ||
} | ||
function addModule(m) { | ||
modules.push(m); | ||
} | ||
function visit(m) { | ||
if (hasModule(m)) { | ||
return; | ||
} | ||
(m.__depends__ || []).forEach(visit); | ||
if (hasModule(m)) { | ||
return; | ||
} | ||
addModule(m); | ||
(m.__init__ || []).forEach(function (c) { | ||
components.push(c); | ||
}); | ||
} | ||
bootstrapModules.forEach(visit); | ||
var injector = new Injector(modules); | ||
components.forEach(function (c) { | ||
try { | ||
// eagerly resolve component (fn or string) | ||
injector[typeof c === 'string' ? 'get' : 'invoke'](c); | ||
} catch (e) { | ||
console.error('Failed to instantiate component'); | ||
console.error(e.stack); | ||
throw e; | ||
} | ||
}); | ||
return injector; | ||
} | ||
function createInjector(config, modules) { | ||
@@ -136,4 +92,6 @@ var bootstrapModules = [{ | ||
}, core].concat(modules || []); | ||
return bootstrap(bootstrapModules); | ||
var injector = new Injector(bootstrapModules); | ||
injector.init(); | ||
return injector; | ||
} | ||
//# sourceMappingURL=Viewer.js.map |
{ | ||
"name": "dmn-js-shared", | ||
"description": "Shared components used by dmn-js", | ||
"version": "12.2.0", | ||
"version": "12.3.0", | ||
"files": [ | ||
@@ -23,7 +23,7 @@ "assets", | ||
"devDependencies": { | ||
"didi": "^5.2.1", | ||
"inferno-test-utils": "~5.6.2" | ||
}, | ||
"dependencies": { | ||
"diagram-js": "^8.7.0", | ||
"diagram-js": "^8.8.0", | ||
"didi": "^8.0.1", | ||
"dmn-moddle": "^10.0.0", | ||
@@ -36,5 +36,5 @@ "ids": "^0.2.0", | ||
"selection-update": "^0.1.2", | ||
"table-js": "^7.2.0" | ||
"table-js": "^7.3.0" | ||
}, | ||
"gitHead": "90d9cba44e1eb0e073d386c166c2f249fedf5d5c" | ||
"gitHead": "18b238579d070d41109debc8d5609d0ad96c8cb9" | ||
} |
Sorry, the diff of this file is not supported yet
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
1
-50%303197
-0.94%10
11.11%3252
-1.03%+ Added
Updated
Updated