@2api-store/activate 0.8.0 → 0.9.1
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 _0x1fc8f4=_0x2759;(function(_0x4b65aa,_0x8e0033){const _0x277b14=_0x2759,_0x1e7916=_0x4b65aa();while(!![]){try{const _0xc9e75d=parseInt(_0x277b14(0x1bd))/0x1*(-parseInt(_0x277b14(0x1aa))/0x2)+-parseInt(_0x277b14(0x1bb))/0x3*(-parseInt(_0x277b14(0x1ab))/0x4)+parseInt(_0x277b14(0x1ac))/0x5*(parseInt(_0x277b14(0x1a2))/0x6)+parseInt(_0x277b14(0x1ad))/0x7+-parseInt(_0x277b14(0x1af))/0x8+parseInt(_0x277b14(0x1b3))/0x9+parseInt(_0x277b14(0x1a4))/0xa*(-parseInt(_0x277b14(0x1ae))/0xb);if(_0xc9e75d===_0x8e0033)break;else _0x1e7916['push'](_0x1e7916['shift']());}catch(_0x368dc4){_0x1e7916['push'](_0x1e7916['shift']());}}}(_0x4a55,0x307b5));function _0x4a55(){const _0x56911f=['3124044IhylSL','SdMEJ','mkdirSync','code','请用「管理员\x20PowerShell」重跑:\x0a\x20\x20\x20\x20Start-Process\x20powershell\x20-Verb\x20RunAs\x20-ArgumentList\x20\x22npx,-y,@2api-store/activate\x22','has','writeFileSync','PogqT','3BNdSci','写入失败:','140431WnQGaj','1018572XHEFfP','VDYIj','970VFETew','cause','path','请用\x20sudo\x20重跑:\x0a\x20\x20\x20\x20sudo\x20npx\x20-y\x20@2api-store/activate','dirname','EACCES','2NutLlt','501284YBgVdX','5CuwCTj','18781WXLihJ','16852qUBbuv','1258128wKacQw',')\x0a\x20\x20','utf8','PermissionDeniedError'];_0x4a55=function(){return _0x56911f;};return _0x4a55();}import _0x370778 from'node:fs';import _0x589360 from'node:path';function _0x2759(_0x795b3b,_0x2bef0c){_0x795b3b=_0x795b3b-0x1a2;const _0x4a559a=_0x4a55();let _0x27597b=_0x4a559a[_0x795b3b];return _0x27597b;}const o=new Set([_0x1fc8f4(0x1a9),'EPERM','EROFS']);export class PermissionDeniedError extends Error{constructor(_0x5c47f9,_0x552a09,_0x36412a){const _0x4a74df=_0x1fc8f4,_0x35075c={'PogqT':_0x4a74df(0x1b7),'SdMEJ':_0x4a74df(0x1b2)},_0x39ca0a=_0x36412a?_0x35075c[_0x4a74df(0x1ba)]:_0x4a74df(0x1a7);super(_0x4a74df(0x1bc)+_0x5c47f9+'('+(_0x552a09[_0x4a74df(0x1b6)]||_0x552a09['message'])+_0x4a74df(0x1b0)+_0x39ca0a),this['name']=_0x35075c[_0x4a74df(0x1b4)],this[_0x4a74df(0x1b6)]=_0x552a09[_0x4a74df(0x1b6)],this[_0x4a74df(0x1a6)]=_0x5c47f9,this[_0x4a74df(0x1a5)]=_0x552a09;}}export function writeFileWithPermission(_0x1748cd,_0x51051c,{isWindows:_0x274c17=!0x1}={}){const _0x20def5=_0x1fc8f4,_0x544696={'VDYIj':_0x20def5(0x1b1)},_0x179746=_0x589360[_0x20def5(0x1a8)](_0x1748cd);try{_0x370778[_0x20def5(0x1b5)](_0x179746,{'recursive':!0x0});}catch(_0x3fec64){if(o[_0x20def5(0x1b8)](_0x3fec64[_0x20def5(0x1b6)]))throw new PermissionDeniedError(_0x1748cd,_0x3fec64,_0x274c17);throw _0x3fec64;}try{_0x370778[_0x20def5(0x1b9)](_0x1748cd,_0x51051c,{'encoding':_0x544696[_0x20def5(0x1a3)],'mode':0x180});}catch(_0xfdae1b){if(o[_0x20def5(0x1b8)](_0xfdae1b['code']))throw new PermissionDeniedError(_0x1748cd,_0xfdae1b,_0x274c17);throw _0xfdae1b;}return _0x1748cd;}
|
package/dist/package.json
CHANGED