@adobe-apimesh/mesh-builder 2.5.2 → 2.5.3-alpha.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x1ac1b2=a0_0x1874;function a0_0x166e(){const _0x4c4e1f=['build','@whatwg-node/fetch','813699UNAwHh','730OOxbaY','log','slice','8aXFRHi','./ssrfGuard','lookup','Mesh\x20build\x20failed','770485bOdKTD','@multitenant-graphql/','trim','Building\x20Mesh\x20with\x20config:','302379YEwsWJ','split','3867320XhAGFp','then','fetch','1184GtbTdK','resolve','12cEMGst','dns','catch','@graphql-mesh/cli','103350jhEwjA','3529561auJzkn','path','@adobe/','exitCode','env','argv','76bZOqmw'];a0_0x166e=function(){return _0x4c4e1f;};return a0_0x166e();}(function(_0x1b2158,_0x33c44c){const _0x523cf5=a0_0x1874;const _0x504949=_0x1b2158();while(!![]){try{const _0x40c16a=-parseInt(_0x523cf5(0x1e9))/0x1*(parseInt(_0x523cf5(0x1d8))/0x2)+parseInt(_0x523cf5(0x1de))/0x3*(parseInt(_0x523cf5(0x1e5))/0x4)+-parseInt(_0x523cf5(0x1cf))/0x5*(-parseInt(_0x523cf5(0x1da))/0x6)+parseInt(_0x523cf5(0x1df))/0x7*(-parseInt(_0x523cf5(0x1cb))/0x8)+-parseInt(_0x523cf5(0x1e8))/0x9+parseInt(_0x523cf5(0x1d5))/0xa+parseInt(_0x523cf5(0x1d3))/0xb;if(_0x40c16a===_0x33c44c){break;}else{_0x504949['push'](_0x504949['shift']());}}catch(_0x3131bf){_0x504949['push'](_0x504949['shift']());}}}(a0_0x166e,0x557db));const path=require(a0_0x1ac1b2(0x1e0));const ssrfProtectionEnabled=String(process[a0_0x1ac1b2(0x1e3)]['MESH_SSRF_PROTECTION']||'')[a0_0x1ac1b2(0x1d1)]()['toLowerCase']()==='true';if(ssrfProtectionEnabled){const {wrapFetch,wrapDnsLookup}=require(a0_0x1ac1b2(0x1cc));const whatwgFetch=require(a0_0x1ac1b2(0x1e7));whatwgFetch[a0_0x1ac1b2(0x1d7)]=wrapFetch(whatwgFetch[a0_0x1ac1b2(0x1d7)]);const dns=require(a0_0x1ac1b2(0x1db));dns[a0_0x1ac1b2(0x1cd)]=wrapDnsLookup(dns['lookup']);}const {DEFAULT_CLI_PARAMS,graphqlMesh}=require(a0_0x1ac1b2(0x1dd));const args=process[a0_0x1ac1b2(0x1e4)][a0_0x1ac1b2(0x1eb)](0x2);const meshConfigPath=args[0x0][a0_0x1ac1b2(0x1d4)]('=')[0x0];console[a0_0x1ac1b2(0x1ea)](a0_0x1ac1b2(0x1d2),meshConfigPath);function a0_0x1874(_0x5e8798,_0x23132f){const _0x166e12=a0_0x166e();a0_0x1874=function(_0x1874f8,_0x3e289d){_0x1874f8=_0x1874f8-0x1cb;let _0x1b2ef4=_0x166e12[_0x1874f8];return _0x1b2ef4;};return a0_0x1874(_0x5e8798,_0x23132f);}graphqlMesh({...DEFAULT_CLI_PARAMS,'additionalPackagePrefixes':[a0_0x1ac1b2(0x1e1),a0_0x1ac1b2(0x1d0)]},[a0_0x1ac1b2(0x1e6)],path[a0_0x1ac1b2(0x1d9)](meshConfigPath))[a0_0x1ac1b2(0x1d6)](()=>{const _0x440cc6=a0_0x1ac1b2;console[_0x440cc6(0x1ea)]('Mesh\x20built\x20successfully');})[a0_0x1ac1b2(0x1dc)](_0x1cf363=>{const _0x36d269=a0_0x1ac1b2;console['error'](_0x36d269(0x1ce),_0x1cf363);process[_0x36d269(0x1e2)]=0x1;});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x165626=a0_0x51d8;(function(_0x46daa8,_0x1fb5d0){const _0x5cbf13=a0_0x51d8;const _0x159516=_0x46daa8();while(!![]){try{const _0x5e0883=parseInt(_0x5cbf13(0x155))/0x1+parseInt(_0x5cbf13(0x139))/0x2+-parseInt(_0x5cbf13(0x13b))/0x3+-parseInt(_0x5cbf13(0x14b))/0x4*(-parseInt(_0x5cbf13(0x131))/0x5)+parseInt(_0x5cbf13(0x140))/0x6+-parseInt(_0x5cbf13(0x138))/0x7+-parseInt(_0x5cbf13(0x137))/0x8;if(_0x5e0883===_0x1fb5d0){break;}else{_0x159516['push'](_0x159516['shift']());}}catch(_0x16dfce){_0x159516['push'](_0x159516['shift']());}}}(a0_0x3798,0x2d55e));const dns=require(a0_0x165626(0x12f))['promises'];const net=require(a0_0x165626(0x136));const BLOCKED=a0_0x165626(0x13e);const MAX_REDIRECTS=0x5;const REDIRECT_STATUSES=new Set([0x12d,0x12e,0x12f,0x133,0x134]);const SENSITIVE_HEADERS=[a0_0x165626(0x151),a0_0x165626(0x157),a0_0x165626(0x146)];function isBlockedIpv4(_0x2f6bbf){const _0x1fc2c5=a0_0x165626;const [_0x285071,_0x5e85fd]=_0x2f6bbf[_0x1fc2c5(0x141)]('.')[_0x1fc2c5(0x13a)](Number);return _0x285071===0x0||_0x285071===0xa||_0x285071===0x7f||_0x285071===0xa9&&_0x5e85fd===0xfe||_0x285071===0xac&&_0x5e85fd>=0x10&&_0x5e85fd<=0x1f||_0x285071===0xc0&&_0x5e85fd===0xa8||_0x285071===0x64&&_0x5e85fd>=0x40&&_0x5e85fd<=0x7f||_0x285071>=0xe0;}function isBlockedIpv6(_0x2941f3){const _0x3cfd10=a0_0x165626;const _0x1fc99b=_0x2941f3[_0x3cfd10(0x14a)]('::')?0x0:parseInt(_0x2941f3[_0x3cfd10(0x141)](':')[0x0]||'0',0x10);const _0x256a3e=_0x1fc99b>>0x8&0xff;const _0x87f141=_0x256a3e>=0x20&&_0x256a3e<=0x3f&&_0x1fc99b!==0x2002;return!_0x87f141;}function isBlockedIp(_0x472988){const _0x4074a6=net['isIP'](_0x472988);if(_0x4074a6===0x4)return isBlockedIpv4(_0x472988);if(_0x4074a6===0x6)return isBlockedIpv6(_0x472988);return!![];}async function assertSafeUrl(_0x3ed386){const _0x470f61=a0_0x165626;let _0x31cc07;try{_0x31cc07=new URL(_0x3ed386);}catch(_0x415b1e){throw new Error(BLOCKED);}if(_0x31cc07['protocol']!==_0x470f61(0x130)&&_0x31cc07['protocol']!=='http:'){throw new Error(BLOCKED);}const _0x4b3d15=_0x31cc07[_0x470f61(0x159)]['replace'](/^\[|\]$/g,'');if(net[_0x470f61(0x144)](_0x4b3d15)){if(isBlockedIp(_0x4b3d15))throw new Error(BLOCKED);return;}const _0x14a422=await dns[_0x470f61(0x13d)](_0x4b3d15,{'all':!![]});if(!_0x14a422||_0x14a422['length']===0x0)throw new Error(BLOCKED);for(const _0x22d0f4 of _0x14a422){if(isBlockedIp(_0x22d0f4[_0x470f61(0x13c)]))throw new Error(BLOCKED);}}function stripSensitiveHeaders(_0x157a95){const _0xe1b74f=a0_0x165626;const _0x45ca0c=_0x157a95&&_0x157a95[_0xe1b74f(0x149)];if(!_0x45ca0c)return _0x157a95;let _0x540aea;if(typeof _0x45ca0c['entries']===_0xe1b74f(0x147)){_0x540aea=[..._0x45ca0c[_0xe1b74f(0x152)]()];}else if(Array[_0xe1b74f(0x14f)](_0x45ca0c)){_0x540aea=_0x45ca0c;}else{_0x540aea=Object[_0xe1b74f(0x152)](_0x45ca0c);}const _0x5efe1e=_0x540aea['filter'](([_0x4b1bca])=>!SENSITIVE_HEADERS[_0xe1b74f(0x14e)](String(_0x4b1bca)['toLowerCase']()));return Object[_0xe1b74f(0x14d)]({},_0x157a95,{'headers':Object[_0xe1b74f(0x132)](_0x5efe1e)});}function wrapFetch(_0x794bbb){return async function _0x2c7d30(_0x51a023,_0x3176ba,..._0x465760){const _0x857a07=a0_0x51d8;let _0x22f52f=typeof _0x51a023===_0x857a07(0x153)?_0x51a023:_0x51a023&&(_0x51a023[_0x857a07(0x154)]||_0x51a023[_0x857a07(0x142)]);let _0x28f4e9=_0x3176ba;for(let _0x5ace3f=0x0;;_0x5ace3f++){await assertSafeUrl(_0x22f52f);const _0x201de4=await _0x794bbb(_0x22f52f,Object[_0x857a07(0x14d)]({},_0x28f4e9,{'redirect':'manual'}),..._0x465760);const _0x1a07ff=_0x201de4&&_0x201de4[_0x857a07(0x158)];const _0x25a9f6=REDIRECT_STATUSES[_0x857a07(0x135)](_0x1a07ff)&&_0x201de4[_0x857a07(0x149)]&&_0x201de4[_0x857a07(0x149)][_0x857a07(0x156)](_0x857a07(0x143));if(!_0x25a9f6)return _0x201de4;if(_0x5ace3f>=MAX_REDIRECTS)throw new Error(BLOCKED);try{if(_0x201de4['body']&&typeof _0x201de4[_0x857a07(0x134)][_0x857a07(0x14c)]==='function'){await _0x201de4[_0x857a07(0x134)][_0x857a07(0x14c)]();}}catch{}let _0x3fad13;try{_0x3fad13=new URL(_0x25a9f6,_0x22f52f);}catch{throw new Error(BLOCKED);}if(new URL(_0x22f52f)['origin']!==_0x3fad13[_0x857a07(0x13f)]){_0x28f4e9=stripSensitiveHeaders(_0x28f4e9);}_0x22f52f=_0x3fad13['toString']();}};}function a0_0x3798(){const _0x59aa76=['call','proxy-authorization','function','exports','headers','startsWith','54904CZGmFq','cancel','assign','includes','isArray','all','authorization','entries','string','url','271029EcjMqQ','get','cookie','status','hostname','dns','https:','135qvPfNK','fromEntries','family','body','has','net','5479776ImuikF','485583kPVNqw','478632nRkJvv','map','506664vbjAPK','address','lookup','Blocked\x20source\x20URL','origin','1367856qaCZjo','split','href','location','isIP'];a0_0x3798=function(){return _0x59aa76;};return a0_0x3798();}function a0_0x51d8(_0x32fe6a,_0x1151ce){const _0x379845=a0_0x3798();a0_0x51d8=function(_0x51d8cd,_0x4a8538){_0x51d8cd=_0x51d8cd-0x12f;let _0x1d9920=_0x379845[_0x51d8cd];return _0x1d9920;};return a0_0x51d8(_0x32fe6a,_0x1151ce);}function wrapDnsLookup(_0x426321){return function _0x334635(_0x1f4bc5,_0x55a113,_0x423d7e){const _0x539e94=a0_0x51d8;if(typeof _0x55a113===_0x539e94(0x147)){_0x423d7e=_0x55a113;_0x55a113={};}const _0x530fb1=!!(_0x55a113&&_0x55a113[_0x539e94(0x150)]);const _0x5c79be=Object[_0x539e94(0x14d)]({},_0x55a113,{'all':!![]});_0x426321[_0x539e94(0x145)](this,_0x1f4bc5,_0x5c79be,(_0x5c5c5d,_0x12c089)=>{const _0x3cb838=_0x539e94;if(_0x5c5c5d)return _0x423d7e(_0x5c5c5d);if(!_0x12c089||_0x12c089['length']===0x0){return _0x423d7e(new Error(BLOCKED));}for(const _0xa5de43 of _0x12c089){if(isBlockedIp(_0xa5de43[_0x3cb838(0x13c)]))return _0x423d7e(new Error(BLOCKED));}if(_0x530fb1)return _0x423d7e(null,_0x12c089);return _0x423d7e(null,_0x12c089[0x0][_0x3cb838(0x13c)],_0x12c089[0x0][_0x3cb838(0x133)]);});};}module[a0_0x165626(0x148)]={'isBlockedIp':isBlockedIp,'assertSafeUrl':assertSafeUrl,'wrapFetch':wrapFetch,'wrapDnsLookup':wrapDnsLookup};
|