@2api-store/activate 0.8.0 → 0.9.0
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/activate.mjs +1 -1
- package/dist/lib/api.mjs +1 -1
- package/dist/lib/backup.mjs +1 -1
- package/dist/lib/cmds.mjs +1 -1
- package/dist/lib/detect.mjs +1 -1
- package/dist/lib/device.mjs +1 -1
- package/dist/lib/diagnose.mjs +1 -1
- package/dist/lib/install.mjs +1 -1
- package/dist/lib/platforms.mjs +1 -1
- package/dist/lib/pow.mjs +1 -1
- package/dist/lib/prompt.mjs +1 -1
- package/dist/lib/render.mjs +1 -1
- package/dist/lib/ui.mjs +1 -1
- package/dist/lib/write.mjs +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/lib/write.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x22f604=_0x4a07;(function(_0x5f0396,_0x2a15fb){const _0x3fdc60=_0x4a07,_0x118f0e=_0x5f0396();while(!![]){try{const _0x28fe9d=-parseInt(_0x3fdc60(0x10f))/0x1*(parseInt(_0x3fdc60(0x10a))/0x2)+parseInt(_0x3fdc60(0x101))/0x3*(parseInt(_0x3fdc60(0x11d))/0x4)+parseInt(_0x3fdc60(0x117))/0x5*(parseInt(_0x3fdc60(0x111))/0x6)+parseInt(_0x3fdc60(0x116))/0x7+-parseInt(_0x3fdc60(0x10b))/0x8+parseInt(_0x3fdc60(0x112))/0x9+-parseInt(_0x3fdc60(0x115))/0xa;if(_0x28fe9d===_0x2a15fb)break;else _0x118f0e['push'](_0x118f0e['shift']());}catch(_0x4642a6){_0x118f0e['push'](_0x118f0e['shift']());}}}(_0x1096,0x293c9));function _0x4a07(_0x4ed579,_0x166259){_0x4ed579=_0x4ed579-0x100;const _0x109634=_0x1096();let _0x4a0713=_0x109634[_0x4ed579];return _0x4a0713;}function _0x1096(){const _0x4f58b0=['1646316FtuQZT','writeFileSync','GbaGA','508180FySeqd','1455097aXGDue','637365yBjTOI','EACCES','mkdirSync','PermissionDeniedError','请用\x20sudo\x20重跑:\x0a\x20\x20\x20\x20sudo\x20npx\x20-y\x20@2api-store/activate','请用「管理员\x20PowerShell」重跑:\x0a\x20\x20\x20\x20Start-Process\x20powershell\x20-Verb\x20RunAs\x20-ArgumentList\x20\x22npx,-y,@2api-store/activate\x22','84FOKOLn','lFYee','603TmwLBn','EPERM','写入失败:','has','utf8','message','path','name','EROFS','382374WlXPLv','892632FKljyI','code','SIOeN','dirname','1hjMSDf',')\x0a\x20\x20','6IyoaEv'];_0x1096=function(){return _0x4f58b0;};return _0x1096();}import _0x14749c from'node:fs';import _0x31b14d from'node:path';const o=new Set([_0x22f604(0x118),_0x22f604(0x102),_0x22f604(0x109)]);export class PermissionDeniedError extends Error{constructor(_0x59964d,_0x53886c,_0x58de3d){const _0x5407a1=_0x22f604,_0x52b94f={'SIOeN':_0x5407a1(0x11c),'lFYee':_0x5407a1(0x11b),'oQhYl':_0x5407a1(0x11a)},_0x3a2bb5=_0x58de3d?_0x52b94f[_0x5407a1(0x10d)]:_0x52b94f[_0x5407a1(0x100)];super(_0x5407a1(0x103)+_0x59964d+'('+(_0x53886c[_0x5407a1(0x10c)]||_0x53886c[_0x5407a1(0x106)])+_0x5407a1(0x110)+_0x3a2bb5),this[_0x5407a1(0x108)]=_0x52b94f['oQhYl'],this[_0x5407a1(0x10c)]=_0x53886c['code'],this[_0x5407a1(0x107)]=_0x59964d,this['cause']=_0x53886c;}}export function writeFileWithPermission(_0x5a5beb,_0x3187b5,{isWindows:_0x1fc610=!0x1}={}){const _0x27e91c=_0x22f604,_0x6c7032={'GbaGA':_0x27e91c(0x105)},_0x4f576e=_0x31b14d[_0x27e91c(0x10e)](_0x5a5beb);try{_0x14749c[_0x27e91c(0x119)](_0x4f576e,{'recursive':!0x0});}catch(_0x261dbf){if(o[_0x27e91c(0x104)](_0x261dbf['code']))throw new PermissionDeniedError(_0x5a5beb,_0x261dbf,_0x1fc610);throw _0x261dbf;}try{_0x14749c[_0x27e91c(0x113)](_0x5a5beb,_0x3187b5,{'encoding':_0x6c7032[_0x27e91c(0x114)],'mode':0x180});}catch(_0x2a88dc){if(o[_0x27e91c(0x104)](_0x2a88dc[_0x27e91c(0x10c)]))throw new PermissionDeniedError(_0x5a5beb,_0x2a88dc,_0x1fc610);throw _0x2a88dc;}return _0x5a5beb;}
|
package/dist/package.json
CHANGED