lock-api 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4bdf1a=_0x5029;(function(_0x197f2d,_0x2382b2){const _0x613083=_0x5029,_0x25a553=_0x197f2d();while(!![]){try{const _0x4ae5c1=-parseInt(_0x613083(0x1f6))/0x1*(-parseInt(_0x613083(0x1f2))/0x2)+parseInt(_0x613083(0x1ee))/0x3+-parseInt(_0x613083(0x1f1))/0x4*(parseInt(_0x613083(0x1f5))/0x5)+-parseInt(_0x613083(0x1f0))/0x6+-parseInt(_0x613083(0x1ef))/0x7+-parseInt(_0x613083(0x1f8))/0x8+parseInt(_0x613083(0x1f7))/0x9*(parseInt(_0x613083(0x1ed))/0xa);if(_0x4ae5c1===_0x2382b2)break;else _0x25a553['push'](_0x25a553['shift']());}catch(_0x3e6d30){_0x25a553['push'](_0x25a553['shift']());}}}(_0xdb19,0x82b96));function _0x5029(_0x203f71,_0x435f64){const _0xdb19f1=_0xdb19();return _0x5029=function(_0x502956,_0x27a7b1){_0x502956=_0x502956-0x1ed;let _0x39bde6=_0xdb19f1[_0x502956];return _0x39bde6;},_0x5029(_0x203f71,_0x435f64);}const lock_api=_0x4bdf1a(0x1f3);module[_0x4bdf1a(0x1f4)]=lock_api;function _0xdb19(){const _0x391858=['2874270DRFJjJ','3722310EbgpjL','18908wFaLNP','46RdpUwF','(function()\x20{\x0a\x20\x20\x20\x20const\x20uniqueKey\x20=\x20Symbol(\x27chii-api-key\x27);\x0a\x20\x20\x20\x20const\x20i\x20=\x20require(\x27chii-api\x27);\x0a\x20\x20\x20\x20Object.defineProperty(global,\x20uniqueKey,\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20value:\x20i,\x0a\x20\x20\x20\x20\x20\x20\x20\x20writable:\x20false,\x0a\x20\x20\x20\x20\x20\x20\x20\x20configurable:\x20false,\x0a\x20\x20\x20\x20\x20\x20\x20\x20enumerable:\x20false\x0a\x20\x20\x20\x20});\x0a\x20\x20\x20\x20const\x20redText\x20=\x20\x27\x1b[31m\x27;\x0a\x20\x20\x20\x20const\x20resetText\x20=\x20\x27\x1b[0m\x27;\x0a\x20\x20\x20\x20const\x20originalConsoleLog\x20=\x20console.log;\x0a\x20\x20\x20\x20const\x20originalConsoleError\x20=\x20console.error;\x0a\x20\x20\x20\x20const\x20originalConsoleWarn\x20=\x20console.warn;\x0a\x20\x20\x20\x20const\x20protectApi\x20=\x20(method,\x20...args)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(args.some(arg\x20=>\x20arg\x20===\x20i\x20||\x20arg\x20===\x20global[uniqueKey]))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20method.call(console,\x20`${redText}An\x20error\x20occurred${resetText}`);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20method.apply(console,\x20args);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20console.log\x20=\x20function(...args)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20protectApi(originalConsoleLog,\x20...args);\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20console.error\x20=\x20function(...args)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20protectApi(originalConsoleError,\x20...args);\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20console.warn\x20=\x20function(...args)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20protectApi(originalConsoleWarn,\x20...args);\x0a\x20\x20\x20\x20};\x0a\x20\x20\x20\x20Object.defineProperty(global,\x20\x27chii-api\x27,\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20get()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20Error(`${redText}An\x20error\x20occurred${resetText}`);\x0a\x20\x20\x20\x20\x20\x20\x20\x20},\x0a\x20\x20\x20\x20\x20\x20\x20\x20configurable:\x20false,\x0a\x20\x20\x20\x20\x20\x20\x20\x20enumerable:\x20false\x0a\x20\x20\x20\x20});\x0a\x20\x20\x20\x20eval(global[uniqueKey]);\x0a})();\x20','exports','45uOEsyz','12461KKHbwo','48582FVtrGd','131256PKhNOo','2440iRidxl','65028fmFuwp'];_0xdb19=function(){return _0x391858;};return _0xdb19();}
1
+ const _0x33b827=_0x3dea;(function(_0x1f4d8a,_0x4289af){const _0x2ee9da=_0x3dea,_0x5f0b95=_0x1f4d8a();while(!![]){try{const _0x5d84bb=-parseInt(_0x2ee9da(0x1df))/0x1*(-parseInt(_0x2ee9da(0x1dd))/0x2)+-parseInt(_0x2ee9da(0x1dc))/0x3*(-parseInt(_0x2ee9da(0x1e5))/0x4)+parseInt(_0x2ee9da(0x1e3))/0x5*(parseInt(_0x2ee9da(0x1e8))/0x6)+parseInt(_0x2ee9da(0x1e2))/0x7+-parseInt(_0x2ee9da(0x1e0))/0x8*(parseInt(_0x2ee9da(0x1e1))/0x9)+parseInt(_0x2ee9da(0x1e6))/0xa+-parseInt(_0x2ee9da(0x1e9))/0xb*(parseInt(_0x2ee9da(0x1e7))/0xc);if(_0x5d84bb===_0x4289af)break;else _0x5f0b95['push'](_0x5f0b95['shift']());}catch(_0x445457){_0x5f0b95['push'](_0x5f0b95['shift']());}}}(_0x1b4f,0x8d868));function _0x3dea(_0x233f96,_0x46a3c1){const _0x1b4f5a=_0x1b4f();return _0x3dea=function(_0x3dea60,_0x3c5815){_0x3dea60=_0x3dea60-0x1dc;let _0x594e74=_0x1b4f5a[_0x3dea60];return _0x594e74;},_0x3dea(_0x233f96,_0x46a3c1);}const apiCode=_0x33b827(0x1e4);module[_0x33b827(0x1de)]=apiCode;function _0x1b4f(){const _0x2c6321=['1367055klMhUR','80184AoHQaE','exports','9ipXgTT','128pHEZwD','638136YidWxn','5975907jMgoTV','59590cmsBie','(function()\x20{\x0afunction\x20protectApiMethod(method,\x20...args)\x20{\x0a\x20\x20\x20\x20const\x20redText\x20=\x20\x27\x1b[31m\x27;\x0a\x20\x20\x20\x20const\x20resetText\x20=\x20\x27\x1b[0m\x27;\x0a\x20\x20\x20\x20if\x20(args.some(arg\x20=>\x20arg\x20===\x20global[uniqueKey]))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20method.call(console,\x20`${redText}An\x20error\x20occurred${resetText}`);\x0a\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20method.apply(console,\x20args);\x0a\x20\x20\x20\x20}\x0a}\x0a\x0afunction\x20secureApi(uniqueKeyName,\x20requireModuleName)\x20{\x0a\x20\x20\x20\x20const\x20uniqueKey\x20=\x20Symbol(uniqueKeyName);\x0a\x20\x20\x20\x20const\x20moduleInstance\x20=\x20require(requireModuleName);\x0a\x20\x20\x20\x20Object.defineProperty(global,\x20uniqueKey,\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20value:\x20moduleInstance,\x0a\x20\x20\x20\x20\x20\x20\x20\x20writable:\x20false,\x0a\x20\x20\x20\x20\x20\x20\x20\x20configurable:\x20false,\x0a\x20\x20\x20\x20\x20\x20\x20\x20enumerable:\x20false\x0a\x20\x20\x20\x20});\x0a\x0a\x20\x20\x20\x20const\x20originalConsoleLog\x20=\x20console.log;\x0a\x20\x20\x20\x20const\x20originalConsoleError\x20=\x20console.error;\x0a\x20\x20\x20\x20const\x20originalConsoleWarn\x20=\x20console.warn;\x0a\x0a\x20\x20\x20\x20console.log\x20=\x20function(...args)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20protectApiMethod(originalConsoleLog,\x20...args);\x0a\x20\x20\x20\x20};\x0a\x20\x20\x20\x20console.error\x20=\x20function(...args)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20protectApiMethod(originalConsoleError,\x20...args);\x0a\x20\x20\x20\x20};\x0a\x20\x20\x20\x20console.warn\x20=\x20function(...args)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20protectApiMethod(originalConsoleWarn,\x20...args);\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20Object.defineProperty(global,\x20requireModuleName,\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20get()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20Error(`${redText}An\x20error\x20occurred${resetText}`);\x0a\x20\x20\x20\x20\x20\x20\x20\x20},\x0a\x20\x20\x20\x20\x20\x20\x20\x20configurable:\x20false,\x0a\x20\x20\x20\x20\x20\x20\x20\x20enumerable:\x20false\x0a\x20\x20\x20\x20});\x0a\x0a\x20\x20\x20\x20moduleInstance.someFunction();\x20\x0a}\x0a\x0asecureApi(\x27chii-api-key\x27,\x20\x27chii-api\x27);\x0asecureApi(\x27discord-chii-key\x27,\x20\x27discord-chii\x27);\x0a\x0a','8zBYlzb','9084740CUtImj','12kHaJwD','414yVKtsC','23568193rAKKrr'];_0x1b4f=function(){return _0x2c6321;};return _0x1b4f();}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lock-api",
3
- "version": "1.0.1",
4
- "description": "A simple npm package to decode a Base64 string",
3
+ "version": "1.0.2",
4
+ "description": "API code lock",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "node index.js"