@enhance-eng/sandbox 0.4.2-beta.893d82e → 0.4.2-beta.c8712ae
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/dist/cli.js +4 -4
- package/dist/index.js +1 -1
- package/dist/vite/index.js +4 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
self.__ENHANCE_PUBLISHABLE_KEY__ = ${JSON[
|
|
5
|
-
self.__ENHANCE_CDN__ = ${JSON[
|
|
3
|
+
const _0x2e0585=_0x23db;function _0x1c26(){const _0x2cc84f=['utf-8','output','command','1435448GhIBnr','publishableKey','--publishable-key\x20<key>','stringify','https://cdn.enhancelabs.ai','0.0.0','public/enhance-sw.js','50ZvHJSd','description','option','stdout','5067330CvLZfR','18660UJNNRw','--cdn-url\x20<url>','cwd','cdnUrl','8visKAr','name','Generate\x20the\x20service\x20worker\x20loader\x20file','Publishable\x20key\x20for\x20enhance','4211676IqHqsE','write','182tOvOUX','1254624kzAhCQ','Output\x20path\x20for\x20the\x20service\x20worker\x20file','CDN\x20URL\x20for\x20enhance\x20assets\x20(defaults\x20to\x20production)','14387148ohbMvN','--output\x20<path>','requiredOption','44058UELfta'];_0x1c26=function(){return _0x2cc84f;};return _0x1c26();}(function(_0x59d124,_0x20fd6c){const _0x46f429=_0x23db,_0x8598ce=_0x59d124();while(!![]){try{const _0x25d616=-parseInt(_0x46f429(0x77))/0x1+-parseInt(_0x46f429(0x8d))/0x2*(-parseInt(_0x46f429(0x73))/0x3)+-parseInt(_0x46f429(0x8b))/0x4+parseInt(_0x46f429(0x7e))/0x5*(parseInt(_0x46f429(0x83))/0x6)+-parseInt(_0x46f429(0x6d))/0x7*(parseInt(_0x46f429(0x87))/0x8)+parseInt(_0x46f429(0x70))/0x9+parseInt(_0x46f429(0x82))/0xa;if(_0x25d616===_0x20fd6c)break;else _0x8598ce['push'](_0x8598ce['shift']());}catch(_0x24200e){_0x8598ce['push'](_0x8598ce['shift']());}}}(_0x1c26,0xc4970));import{Command}from'commander';import{writeFile,mkdir}from'fs/promises';function _0x23db(_0x5a6282,_0x5beb2b){_0x5a6282=_0x5a6282-0x6d;const _0x1c2663=_0x1c26();let _0x23dbf4=_0x1c2663[_0x5a6282];return _0x23dbf4;}import{dirname,resolve}from'path';import _0x560062 from'dedent';var DEFAULT_CDN_URL=_0x2e0585(0x7b);function buildSwSource(_0x13b422){const _0x267c88=_0x2e0585,_0x55ed5a=_0x13b422['cdnUrl']??DEFAULT_CDN_URL;return _0x560062`
|
|
4
|
+
self.__ENHANCE_PUBLISHABLE_KEY__ = ${JSON[_0x267c88(0x7a)](_0x13b422[_0x267c88(0x78)])};
|
|
5
|
+
self.__ENHANCE_CDN__ = ${JSON[_0x267c88(0x7a)](_0x55ed5a)};
|
|
6
6
|
importScripts(self.__ENHANCE_CDN__ + "/loader/loader.v1.js");
|
|
7
|
-
`;}var program=new Command();program[
|
|
7
|
+
`;}var program=new Command();program[_0x2e0585(0x88)]('enhance-sandbox')[_0x2e0585(0x7f)]('Enhance\x20sandbox\x20utility\x20CLI')['version'](_0x2e0585(0x7c)),program[_0x2e0585(0x76)]('init')[_0x2e0585(0x7f)](_0x2e0585(0x89))[_0x2e0585(0x72)](_0x2e0585(0x79),_0x2e0585(0x8a))[_0x2e0585(0x80)](_0x2e0585(0x84),_0x2e0585(0x6f))[_0x2e0585(0x80)](_0x2e0585(0x71),_0x2e0585(0x6e),_0x2e0585(0x7d))['action'](async _0x39847d=>{const _0x55eb64=_0x2e0585,_0x38ec99=resolve(process[_0x55eb64(0x85)](),_0x39847d[_0x55eb64(0x75)]),_0x21f989=buildSwSource({'publishableKey':_0x39847d['publishableKey'],'cdnUrl':_0x39847d[_0x55eb64(0x86)]});await mkdir(dirname(_0x38ec99),{'recursive':!![]}),await writeFile(_0x38ec99,_0x21f989,_0x55eb64(0x74)),process[_0x55eb64(0x81)][_0x55eb64(0x8c)]('Created\x20'+_0x39847d['output']+'\x0a');}),program['parseAsync']();
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x419f69=_0xf425;(function(_0xd747bb,_0xc77a7e){var _0x5e2a60=_0xf425,_0x4e4d56=_0xd747bb();while(!![]){try{var _0x3de63f=-parseInt(_0x5e2a60(0x1dc))/0x1*(-parseInt(_0x5e2a60(0x1e1))/0x2)+-parseInt(_0x5e2a60(0x1da))/0x3+parseInt(_0x5e2a60(0x1df))/0x4*(-parseInt(_0x5e2a60(0x1d9))/0x5)+parseInt(_0x5e2a60(0x1e3))/0x6*(parseInt(_0x5e2a60(0x1d7))/0x7)+parseInt(_0x5e2a60(0x1d6))/0x8*(-parseInt(_0x5e2a60(0x1db))/0x9)+parseInt(_0x5e2a60(0x1d8))/0xa+parseInt(_0x5e2a60(0x1de))/0xb;if(_0x3de63f===_0xc77a7e)break;else _0x4e4d56['push'](_0x4e4d56['shift']());}catch(_0x4736eb){_0x4e4d56['push'](_0x4e4d56['shift']());}}}(_0x5107,0xd65b4));var SW_PATH=_0x419f69(0x1e5);function enhance(){var _0x3ffbb4=_0x419f69;const _0x5db717=document[_0x3ffbb4(0x1dd)]('script');_0x5db717[_0x3ffbb4(0x1e2)]=_0x3ffbb4(0x1e0)+SW_PATH+'\x22)',document['head'][_0x3ffbb4(0x1e4)](_0x5db717);}function _0x5107(){var _0x284c2f=['navigator.serviceWorker?.register(\x22','74362AVvYbE','textContent','102grVamW','appendChild','/enhance-sw.js','1466224zZRKsm','129822sdoLZM','17175010HvSUhp','105765TfjfYq','5148819LqsZTj','63TKyEwH','46roQpWW','createElement','9386476pOCUEP','136YARZHK'];_0x5107=function(){return _0x284c2f;};return _0x5107();}function _0xf425(_0x221507,_0x355b41){_0x221507=_0x221507-0x1d6;var _0x5107b7=_0x5107();var _0xf42568=_0x5107b7[_0x221507];return _0xf42568;}export{enhance};
|
package/dist/vite/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var
|
|
2
|
-
self.__ENHANCE_PUBLISHABLE_KEY__ = ${JSON[
|
|
3
|
-
self.__ENHANCE_CDN__ = ${JSON[
|
|
1
|
+
var _0x5727d2=_0x3e79;(function(_0x491bd0,_0x2fd535){var _0xab12a1=_0x3e79,_0x31cf9c=_0x491bd0();while(!![]){try{var _0x13e6de=parseInt(_0xab12a1(0xea))/0x1+parseInt(_0xab12a1(0xe5))/0x2*(parseInt(_0xab12a1(0xe9))/0x3)+parseInt(_0xab12a1(0xde))/0x4*(-parseInt(_0xab12a1(0xdc))/0x5)+parseInt(_0xab12a1(0xe8))/0x6+parseInt(_0xab12a1(0xed))/0x7*(-parseInt(_0xab12a1(0xdd))/0x8)+-parseInt(_0xab12a1(0xda))/0x9+parseInt(_0xab12a1(0xd9))/0xa;if(_0x13e6de===_0x2fd535)break;else _0x31cf9c['push'](_0x31cf9c['shift']());}catch(_0x2b5535){_0x31cf9c['push'](_0x31cf9c['shift']());}}}(_0x13b4,0xca0af));function _0x13b4(){var _0x44bc64=['10niWhET','6909032yWpaBS','3016576vTiMyL','<script>navigator.serviceWorker?.register(\x22','middlewares','publishableKey','https://cdn.enhancelabs.ai','replace','end','27100GPSQzK','stringify','Content-Type','9736392WDPmSG','291ZKrWET','714802apnNOl','cdnUrl','asset','7pKQoJT','url','use','setHeader','35880noYYuD','4103892BmqYQN','enhance-sw.js'];_0x13b4=function(){return _0x44bc64;};return _0x13b4();}import _0x4666e1 from'dedent';function _0x3e79(_0x2fdb36,_0x351527){_0x2fdb36=_0x2fdb36-0xd9;var _0x13b4f2=_0x13b4();var _0x3e799f=_0x13b4f2[_0x2fdb36];return _0x3e799f;}var DEFAULT_CDN_URL=_0x5727d2(0xe2);function buildSwSource(_0x2daf3c){var _0x287f4d=_0x5727d2;const _0xea5204=_0x2daf3c[_0x287f4d(0xeb)]??DEFAULT_CDN_URL;return _0x4666e1`
|
|
2
|
+
self.__ENHANCE_PUBLISHABLE_KEY__ = ${JSON[_0x287f4d(0xe6)](_0x2daf3c[_0x287f4d(0xe1)])};
|
|
3
|
+
self.__ENHANCE_CDN__ = ${JSON[_0x287f4d(0xe6)](_0xea5204)};
|
|
4
4
|
importScripts(self.__ENHANCE_CDN__ + "/loader/loader.v1.js");
|
|
5
|
-
`;}var SW_PATH=
|
|
5
|
+
`;}var SW_PATH='/enhance-sw.js',enhance=_0x5b2e6a=>{var _0x1e35b9=_0x5727d2;const _0x4f0f63=buildSwSource(_0x5b2e6a),_0x280cb8=_0x1e35b9(0xdf)+SW_PATH+'\x22)</script>';return{'name':'enhance','configureServer'(_0x507aa0){_0x507aa0['middlewares']['use']((_0x26731e,_0x4da57e,_0xd279ae)=>{var _0xfd8bd0=_0x3e79;if(_0x26731e['url']===SW_PATH){_0x4da57e[_0xfd8bd0(0xf0)](_0xfd8bd0(0xe7),'application/javascript'),_0x4da57e[_0xfd8bd0(0xe4)](_0x4f0f63);return;}_0xd279ae();});},'configurePreviewServer'(_0x2d3825){var _0x48076a=_0x1e35b9;_0x2d3825[_0x48076a(0xe0)][_0x48076a(0xef)]((_0x2472a8,_0x5dac2d,_0x51b8e3)=>{var _0x42f95e=_0x48076a;if(_0x2472a8[_0x42f95e(0xee)]===SW_PATH){_0x5dac2d[_0x42f95e(0xf0)](_0x42f95e(0xe7),'application/javascript'),_0x5dac2d['end'](_0x4f0f63);return;}_0x51b8e3();});},'generateBundle'(){var _0xf11646=_0x1e35b9;this['emitFile']({'type':_0xf11646(0xec),'fileName':_0xf11646(0xdb),'source':_0x4f0f63});},'transformIndexHtml'(_0x29ebd1){var _0x231112=_0x1e35b9;return _0x29ebd1[_0x231112(0xe3)](/<head([^>]*)>/,'<head$1>'+_0x280cb8);}};};export{enhance};
|