@next-core/runtime 1.49.9 → 1.49.11
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
|
-
|
|
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","
|
|
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
|
-
|
|
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","
|
|
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.
|
|
3
|
+
"version": "1.49.11",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-core/tree/v3/packages/runtime",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"repository": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@next-core/http": "^1.2.5",
|
|
50
50
|
"@next-core/i18n": "^1.0.56",
|
|
51
51
|
"@next-core/inject": "^1.0.38",
|
|
52
|
-
"@next-core/loader": "^1.6.
|
|
52
|
+
"@next-core/loader": "^1.6.4",
|
|
53
53
|
"@next-core/supply": "^2.1.19",
|
|
54
54
|
"@next-core/types": "^1.11.2",
|
|
55
55
|
"@next-core/utils": "^1.7.14",
|
|
@@ -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": "
|
|
70
|
+
"gitHead": "c9451a70c0a0b696a6a6d0bba8832dde65cc1cc1"
|
|
71
71
|
}
|