@next-core/runtime 1.49.9 → 1.49.10

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.
@@ -8,7 +8,9 @@ class CustomEditorRegistry {
8
8
  #registry = new Map();
9
9
  define(editorName, editorFunc) {
10
10
  if (this.#registry.has(editorName)) {
11
- throw new Error(`Custom editor of "${editorName}" already registered`);
11
+ // eslint-disable-next-line no-console
12
+ console.error(`Custom editor of "${editorName}" already registered`);
13
+ return;
12
14
  }
13
15
  this.#registry.set(editorName, editorFunc);
14
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CustomEditors.js","names":["CustomEditorRegistry","registry","Map","define","editorName","editorFunc","has","Error","set","get","customEditors","exports"],"sources":["../../src/CustomEditors.ts"],"sourcesContent":["class CustomEditorRegistry {\n readonly #registry = new Map<string, Function>();\n\n define(editorName: string, editorFunc: Function) {\n if (this.#registry.has(editorName)) {\n throw new Error(`Custom editor of \"${editorName}\" already registered`);\n }\n\n this.#registry.set(editorName, editorFunc);\n }\n\n get(editorName: string) {\n return this.#registry.get(editorName);\n }\n}\n\nexport const customEditors = new CustomEditorRegistry();\n"],"mappings":";;;;;;AAAA,MAAMA,oBAAoB,CAAC;EAChB,CAACC,QAAQ,GAAG,IAAIC,GAAG,CAAmB,CAAC;EAEhDC,MAAMA,CAACC,UAAkB,EAAEC,UAAoB,EAAE;IAC/C,IAAI,IAAI,CAAC,CAACJ,QAAQ,CAACK,GAAG,CAACF,UAAU,CAAC,EAAE;MAClC,MAAM,IAAIG,KAAK,CAAC,qBAAqBH,UAAU,sBAAsB,CAAC;IACxE;IAEA,IAAI,CAAC,CAACH,QAAQ,CAACO,GAAG,CAACJ,UAAU,EAAEC,UAAU,CAAC;EAC5C;EAEAI,GAAGA,CAACL,UAAkB,EAAE;IACtB,OAAO,IAAI,CAAC,CAACH,QAAQ,CAACQ,GAAG,CAACL,UAAU,CAAC;EACvC;AACF;AAEO,MAAMM,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG,IAAIV,oBAAoB,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"CustomEditors.js","names":["CustomEditorRegistry","registry","Map","define","editorName","editorFunc","has","console","error","set","get","customEditors","exports"],"sources":["../../src/CustomEditors.ts"],"sourcesContent":["class CustomEditorRegistry {\n readonly #registry = new Map<string, Function>();\n\n define(editorName: string, editorFunc: Function) {\n if (this.#registry.has(editorName)) {\n // eslint-disable-next-line no-console\n console.error(`Custom editor of \"${editorName}\" already registered`);\n return;\n }\n\n this.#registry.set(editorName, editorFunc);\n }\n\n get(editorName: string) {\n return this.#registry.get(editorName);\n }\n}\n\nexport const customEditors = new CustomEditorRegistry();\n"],"mappings":";;;;;;AAAA,MAAMA,oBAAoB,CAAC;EAChB,CAACC,QAAQ,GAAG,IAAIC,GAAG,CAAmB,CAAC;EAEhDC,MAAMA,CAACC,UAAkB,EAAEC,UAAoB,EAAE;IAC/C,IAAI,IAAI,CAAC,CAACJ,QAAQ,CAACK,GAAG,CAACF,UAAU,CAAC,EAAE;MAClC;MACAG,OAAO,CAACC,KAAK,CAAC,qBAAqBJ,UAAU,sBAAsB,CAAC;MACpE;IACF;IAEA,IAAI,CAAC,CAACH,QAAQ,CAACQ,GAAG,CAACL,UAAU,EAAEC,UAAU,CAAC;EAC5C;EAEAK,GAAGA,CAACN,UAAkB,EAAE;IACtB,OAAO,IAAI,CAAC,CAACH,QAAQ,CAACS,GAAG,CAACN,UAAU,CAAC;EACvC;AACF;AAEO,MAAMO,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG,IAAIX,oBAAoB,CAAC,CAAC","ignoreList":[]}
@@ -7,7 +7,9 @@ class CustomEditorRegistry {
7
7
  }
8
8
  define(editorName, editorFunc) {
9
9
  if (_classPrivateFieldGet(_registry, this).has(editorName)) {
10
- throw new Error(`Custom editor of "${editorName}" already registered`);
10
+ // eslint-disable-next-line no-console
11
+ console.error(`Custom editor of "${editorName}" already registered`);
12
+ return;
11
13
  }
12
14
  _classPrivateFieldGet(_registry, this).set(editorName, editorFunc);
13
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CustomEditors.js","names":["CustomEditorRegistry","constructor","_classPrivateFieldInitSpec","_registry","Map","define","editorName","editorFunc","_classPrivateFieldGet","has","Error","set","get","customEditors"],"sources":["../../src/CustomEditors.ts"],"sourcesContent":["class CustomEditorRegistry {\n readonly #registry = new Map<string, Function>();\n\n define(editorName: string, editorFunc: Function) {\n if (this.#registry.has(editorName)) {\n throw new Error(`Custom editor of \"${editorName}\" already registered`);\n }\n\n this.#registry.set(editorName, editorFunc);\n }\n\n get(editorName: string) {\n return this.#registry.get(editorName);\n }\n}\n\nexport const customEditors = new CustomEditorRegistry();\n"],"mappings":";;;AAAA,MAAMA,oBAAoB,CAAC;EAAAC,YAAA;IACzBC,0BAAA,OAASC,SAAS,EAAG,IAAIC,GAAG,CAAmB,CAAC;EAAC;EAEjDC,MAAMA,CAACC,UAAkB,EAAEC,UAAoB,EAAE;IAC/C,IAAIC,qBAAA,CAAKL,SAAS,EAAd,IAAa,CAAC,CAACM,GAAG,CAACH,UAAU,CAAC,EAAE;MAClC,MAAM,IAAII,KAAK,CAAC,qBAAqBJ,UAAU,sBAAsB,CAAC;IACxE;IAEAE,qBAAA,CAAKL,SAAS,EAAd,IAAa,CAAC,CAACQ,GAAG,CAACL,UAAU,EAAEC,UAAU,CAAC;EAC5C;EAEAK,GAAGA,CAACN,UAAkB,EAAE;IACtB,OAAOE,qBAAA,CAAKL,SAAS,EAAd,IAAa,CAAC,CAACS,GAAG,CAACN,UAAU,CAAC;EACvC;AACF;AAEA,OAAO,MAAMO,aAAa,GAAG,IAAIb,oBAAoB,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"CustomEditors.js","names":["CustomEditorRegistry","constructor","_classPrivateFieldInitSpec","_registry","Map","define","editorName","editorFunc","_classPrivateFieldGet","has","console","error","set","get","customEditors"],"sources":["../../src/CustomEditors.ts"],"sourcesContent":["class CustomEditorRegistry {\n readonly #registry = new Map<string, Function>();\n\n define(editorName: string, editorFunc: Function) {\n if (this.#registry.has(editorName)) {\n // eslint-disable-next-line no-console\n console.error(`Custom editor of \"${editorName}\" already registered`);\n return;\n }\n\n this.#registry.set(editorName, editorFunc);\n }\n\n get(editorName: string) {\n return this.#registry.get(editorName);\n }\n}\n\nexport const customEditors = new CustomEditorRegistry();\n"],"mappings":";;;AAAA,MAAMA,oBAAoB,CAAC;EAAAC,YAAA;IACzBC,0BAAA,OAASC,SAAS,EAAG,IAAIC,GAAG,CAAmB,CAAC;EAAC;EAEjDC,MAAMA,CAACC,UAAkB,EAAEC,UAAoB,EAAE;IAC/C,IAAIC,qBAAA,CAAKL,SAAS,EAAd,IAAa,CAAC,CAACM,GAAG,CAACH,UAAU,CAAC,EAAE;MAClC;MACAI,OAAO,CAACC,KAAK,CAAC,qBAAqBL,UAAU,sBAAsB,CAAC;MACpE;IACF;IAEAE,qBAAA,CAAKL,SAAS,EAAd,IAAa,CAAC,CAACS,GAAG,CAACN,UAAU,EAAEC,UAAU,CAAC;EAC5C;EAEAM,GAAGA,CAACP,UAAkB,EAAE;IACtB,OAAOE,qBAAA,CAAKL,SAAS,EAAd,IAAa,CAAC,CAACU,GAAG,CAACP,UAAU,CAAC;EACvC;AACF;AAEA,OAAO,MAAMQ,aAAa,GAAG,IAAId,oBAAoB,CAAC,CAAC","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-core/runtime",
3
- "version": "1.49.9",
3
+ "version": "1.49.10",
4
4
  "homepage": "https://github.com/easyops-cn/next-core/tree/v3/packages/runtime",
5
5
  "license": "GPL-3.0",
6
6
  "repository": {
@@ -67,5 +67,5 @@
67
67
  "@next-core/build-next-libs": "^1.0.18",
68
68
  "@next-core/test-next": "^1.1.4"
69
69
  },
70
- "gitHead": "f05bbe55ce09c6981726b413ecf30a31bef66069"
70
+ "gitHead": "c08e1703ff7db12929aa0c5a69662de51502970f"
71
71
  }