@vyr/engine 0.0.3 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@vyr/engine","version":"0.0.3","description":"","main":"./src/index.ts","author":"","license":"MIT","dependencies":{"@vyr/locale":"0.0.3","tinycolor2":"1.6.0"},"devDependencies":{"@types/tinycolor2":"1.4.6"},"files":["package.json","src/"]}
1
+ {"name":"@vyr/engine","version":"0.0.5","description":"","main":"./src/index.ts","author":"","license":"MIT","dependencies":{"@vyr/locale":"0.0.5","tinycolor2":"1.6.0"},"devDependencies":{"@types/tinycolor2":"1.4.6"},"files":["package.json","src/"]}
package/src/Engine.ts CHANGED
@@ -80,7 +80,7 @@ class Engine extends Listener<EngineListener> {
80
80
  switch(scheduler: ServiceSchedulerDescriptor) {
81
81
  const url = Asset.getUrlByUuid(scheduler.uuid)
82
82
 
83
- if (!url) throw '切换失败,无法获资产地址!'
83
+ if (!url) throw language.get('engine.switch.url.notFound')
84
84
 
85
85
  const current = Asset.get<ServiceSchedulerDescriptor>(this.active)
86
86
  if (current) this.compilation.unlisten(current)
@@ -13,6 +13,7 @@ interface ZhCNLanguageProvider extends LanguageProvider {
13
13
  'graphics.interpreter.notRegister': string
14
14
  'graphics.unit.notFound': string
15
15
  'engine.run.container.notFound': string
16
+ 'engine.switch.url.notFound': string
16
17
 
17
18
  '/virtual:/preset/net/http.ts': string
18
19
  '/virtual:/preset/dataset/update.ts': string
@@ -36,6 +37,7 @@ const zhCnLanguageProvider: ZhCNLanguageProvider = {
36
37
  'graphics.interpreter.notRegister': '未注册解释器:{{type}}',
37
38
  'graphics.unit.notFound': '单元不存在:{{uuid}}',
38
39
  'engine.run.container.notFound': '挂载节点不存在',
40
+ 'engine.switch.url.notFound': '切换失败,无法获资产地址!',
39
41
 
40
42
  '/virtual:/preset/net/http.ts': '网络请求',
41
43
  '/virtual:/preset/dataset/update.ts': '更新数据集',