@wixc3/engine-core
Advanced tools
Comparing version 3.1.6 to 4.0.0
@@ -447,6 +447,6 @@ "use strict"; | ||
const defaultWorkerFactory = (envName, instanceId, publicPath = '/') => { | ||
return new Worker(`${publicPath}${envName}-webworker.js${location.search}`, { name: instanceId }); | ||
return new Worker(`${publicPath}${envName}.webworker.js${location.search}`, { name: instanceId }); | ||
}; | ||
const defaultSourceFactory = (envName, _instanceId, publicPath = '/') => { | ||
return `${publicPath}${envName}-web.js${location.search}`; | ||
return `${publicPath}${envName}.web.js${location.search}`; | ||
}; | ||
@@ -453,0 +453,0 @@ const removeMessageArgs = (message) => { |
@@ -6,3 +6,4 @@ export * from './com'; | ||
export * from './event-emitter'; | ||
export * from './run'; | ||
export * from './flatten-tree'; | ||
export * from './run-engine-app'; | ||
export * from './runtime-engine'; | ||
@@ -9,0 +10,0 @@ export * from './symbols'; |
@@ -13,3 +13,4 @@ "use strict"; | ||
__export(require("./event-emitter")); | ||
__export(require("./run")); | ||
__export(require("./flatten-tree")); | ||
__export(require("./run-engine-app")); | ||
__export(require("./runtime-engine")); | ||
@@ -16,0 +17,0 @@ __export(require("./symbols")); |
@@ -7,3 +7,3 @@ import { RuntimeFeature } from './entities/feature'; | ||
private topLevelConfigMap; | ||
constructor(topLevelConfig: TopLevelConfig); | ||
constructor(topLevelConfig?: TopLevelConfig); | ||
get<T extends SomeFeature>(feature: T): RuntimeFeature<T, T['dependencies'], T['api']>; | ||
@@ -10,0 +10,0 @@ run(features: SomeFeature | SomeFeature[]): RuntimeEngine; |
@@ -9,3 +9,3 @@ "use strict"; | ||
class RuntimeEngine { | ||
constructor(topLevelConfig) { | ||
constructor(topLevelConfig = []) { | ||
this.features = new Map(); | ||
@@ -12,0 +12,0 @@ this.running = false; |
{ | ||
"name": "@wixc3/engine-core", | ||
"version": "3.1.6", | ||
"version": "4.0.0", | ||
"main": "cjs/index.js", | ||
@@ -5,0 +5,0 @@ "types": "cjs/index.d.ts", |
@@ -518,7 +518,7 @@ import { | ||
const defaultWorkerFactory = (envName: string, instanceId: string, publicPath: string = '/') => { | ||
return new Worker(`${publicPath}${envName}-webworker.js${location.search}`, { name: instanceId }); | ||
return new Worker(`${publicPath}${envName}.webworker.js${location.search}`, { name: instanceId }); | ||
}; | ||
const defaultSourceFactory = (envName: string, _instanceId: string, publicPath: string = '/') => { | ||
return `${publicPath}${envName}-web.js${location.search}`; | ||
return `${publicPath}${envName}.web.js${location.search}`; | ||
}; | ||
@@ -525,0 +525,0 @@ |
@@ -6,3 +6,4 @@ export * from './com'; | ||
export * from './event-emitter'; | ||
export * from './run'; | ||
export * from './flatten-tree'; | ||
export * from './run-engine-app'; | ||
export * from './runtime-engine'; | ||
@@ -9,0 +10,0 @@ export * from './symbols'; |
@@ -10,3 +10,3 @@ import COM from './communication.feature'; | ||
private topLevelConfigMap: Record<string, object[]>; | ||
constructor(topLevelConfig: TopLevelConfig) { | ||
constructor(topLevelConfig: TopLevelConfig = []) { | ||
this.topLevelConfigMap = this.createConfigMap(topLevelConfig); | ||
@@ -13,0 +13,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
256815
157
4384