neko-ui 2.8.3 → 2.8.4
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/es/code/worker.js +1 -1
- package/es/code/worker.js.map +1 -1
- package/lib/code/worker.js +1 -1
- package/lib/code/worker.js.map +1 -1
- package/package.json +1 -1
package/es/code/worker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
self.
|
|
1
|
+
self.importScripts(new URL("../prism",import.meta.url).toString()),self.addEventListener("message",function(s){let e;try{let{code:t,lang:i}=s.data;self.Prism.highlight&&self.Prism.languages?e=self.Prism.highlight(t,self.Prism.languages[i],i):e=t}catch(s){e=s}self.postMessage(e)},!1);
|
|
2
2
|
//# sourceMappingURL=worker.js.map
|
package/es/code/worker.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../components/code/worker.ts"],"sourcesContent":["self.
|
|
1
|
+
{"version":3,"sources":["../../components/code/worker.ts"],"sourcesContent":["self.importScripts(new URL('../prism', import.meta.url).toString());\nself.addEventListener(\n 'message',\n function (e) {\n let result;\n\n try {\n const { code, lang } = e.data;\n\n if (self.Prism.highlight && self.Prism.languages) {\n result = self.Prism.highlight(code, self.Prism.languages[lang], lang);\n } else {\n result = code;\n }\n } catch (error) {\n result = error;\n }\n self.postMessage(result); // 向主线程发送消息\n },\n false,\n);\n"],"names":["self","importScripts","URL","url","toString","addEventListener","e","result","code","lang","data","Prism","highlight","languages","error","postMessage"],"rangeMappings":"","mappings":"AAAAA,KAAKC,aAAa,CAAC,IAAIC,IAAI,WAAY,YAAYC,GAAG,EAAEC,QAAQ,IAChEJ,KAAKK,gBAAgB,CACnB,UACA,SAAUC,CAAC,EACT,IAAIC,EAEJ,GAAI,CACF,GAAM,CAAEC,KAAAA,CAAI,CAAEC,KAAAA,CAAI,CAAE,CAAGH,EAAEI,IAAI,AAEzBV,CAAAA,KAAKW,KAAK,CAACC,SAAS,EAAIZ,KAAKW,KAAK,CAACE,SAAS,CAC9CN,EAASP,KAAKW,KAAK,CAACC,SAAS,CAACJ,EAAMR,KAAKW,KAAK,CAACE,SAAS,CAACJ,EAAK,CAAEA,GAEhEF,EAASC,CAEb,CAAE,MAAOM,EAAO,CACdP,EAASO,CACX,CACAd,KAAKe,WAAW,CAACR,EACnB,EACA,CAAA"}
|
package/lib/code/worker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";self.
|
|
1
|
+
"use strict";self.importScripts(new URL("../prism",require("url").pathToFileURL(__filename).toString()).toString()),self.addEventListener("message",function(e){let s;try{let{code:t,lang:i}=e.data;self.Prism.highlight&&self.Prism.languages?s=self.Prism.highlight(t,self.Prism.languages[i],i):s=t}catch(e){s=e}self.postMessage(s)},!1);
|
|
2
2
|
//# sourceMappingURL=worker.js.map
|
package/lib/code/worker.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../components/code/worker.ts"],"sourcesContent":["self.
|
|
1
|
+
{"version":3,"sources":["../../components/code/worker.ts"],"sourcesContent":["self.importScripts(new URL('../prism', import.meta.url).toString());\nself.addEventListener(\n 'message',\n function (e) {\n let result;\n\n try {\n const { code, lang } = e.data;\n\n if (self.Prism.highlight && self.Prism.languages) {\n result = self.Prism.highlight(code, self.Prism.languages[lang], lang);\n } else {\n result = code;\n }\n } catch (error) {\n result = error;\n }\n self.postMessage(result); // 向主线程发送消息\n },\n false,\n);\n"],"names":["self","importScripts","URL","toString","addEventListener","e","result","code","lang","data","Prism","highlight","languages","error","postMessage"],"rangeMappings":"","mappings":"aAAAA,KAAKC,aAAa,CAAC,IAAIC,IAAI,WAAY,qDAAiBC,QAAQ,IAChEH,KAAKI,gBAAgB,CACnB,UACA,SAAUC,CAAC,EACT,IAAIC,EAEJ,GAAI,CACF,GAAM,CAAEC,KAAAA,CAAI,CAAEC,KAAAA,CAAI,CAAE,CAAGH,EAAEI,IAAI,AAEzBT,CAAAA,KAAKU,KAAK,CAACC,SAAS,EAAIX,KAAKU,KAAK,CAACE,SAAS,CAC9CN,EAASN,KAAKU,KAAK,CAACC,SAAS,CAACJ,EAAMP,KAAKU,KAAK,CAACE,SAAS,CAACJ,EAAK,CAAEA,GAEhEF,EAASC,CAEb,CAAE,MAAOM,EAAO,CACdP,EAASO,CACX,CACAb,KAAKc,WAAW,CAACR,EACnB,EACA,CAAA"}
|