@adobe-apimesh/mesh-builder 2.5.2-alpha.1 → 2.5.2

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
- function a0_0x5a54(){const _0x4876a5=['Mesh\x20build\x20failed','Mesh\x20built\x20successfully','slice','446412jgxTpl','catch','build','@graphql-mesh/cli','5lznceC','603930UfYjuo','126744aRVNyf','error','path','then','resolve','1698WlsvPI','6839630ZRMESH','752982bUpfoB','@adobe/','1568wiBzke','log','argv','Building\x20Mesh\x20with\x20config:','1496hrXPfJ','1296vUajME'];a0_0x5a54=function(){return _0x4876a5;};return a0_0x5a54();}const a0_0x5e031c=a0_0x16d7;(function(_0x26fe16,_0x325854){const _0x4529f0=a0_0x16d7;const _0x416b9c=_0x26fe16();while(!![]){try{const _0x4c35dc=-parseInt(_0x4529f0(0x146))/0x1+-parseInt(_0x4529f0(0x145))/0x2+-parseInt(_0x4529f0(0x14d))/0x3+parseInt(_0x4529f0(0x140))/0x4*(parseInt(_0x4529f0(0x144))/0x5)+parseInt(_0x4529f0(0x14b))/0x6*(parseInt(_0x4529f0(0x14f))/0x7)+-parseInt(_0x4529f0(0x13b))/0x8*(parseInt(_0x4529f0(0x13c))/0x9)+parseInt(_0x4529f0(0x14c))/0xa;if(_0x4c35dc===_0x325854){break;}else{_0x416b9c['push'](_0x416b9c['shift']());}}catch(_0x3c292a){_0x416b9c['push'](_0x416b9c['shift']());}}}(a0_0x5a54,0x25307));const path=require(a0_0x5e031c(0x148));const {DEFAULT_CLI_PARAMS,graphqlMesh}=require(a0_0x5e031c(0x143));const args=process[a0_0x5e031c(0x151)][a0_0x5e031c(0x13f)](0x2);function a0_0x16d7(_0x5b174d,_0x101478){const _0x5a548f=a0_0x5a54();a0_0x16d7=function(_0x16d77e,_0x3f9b52){_0x16d77e=_0x16d77e-0x13b;let _0x5ce2ab=_0x5a548f[_0x16d77e];return _0x5ce2ab;};return a0_0x16d7(_0x5b174d,_0x101478);}const meshConfigPath=args[0x0]['split']('=')[0x0];console[a0_0x5e031c(0x150)](a0_0x5e031c(0x152),meshConfigPath);graphqlMesh({...DEFAULT_CLI_PARAMS,'additionalPackagePrefixes':[a0_0x5e031c(0x14e),'@multitenant-graphql/']},[a0_0x5e031c(0x142)],path[a0_0x5e031c(0x14a)](meshConfigPath))[a0_0x5e031c(0x149)](()=>{const _0x3adecc=a0_0x5e031c;console[_0x3adecc(0x150)](_0x3adecc(0x13e));})[a0_0x5e031c(0x141)](_0x50fc75=>{const _0x38c73b=a0_0x5e031c;console[_0x38c73b(0x147)](_0x38c73b(0x13d),_0x50fc75);});
1
+ const a0_0x48ea63=a0_0x2e7b;(function(_0x698e7,_0x3b0ca7){const _0x4fc3a5=a0_0x2e7b;const _0x5dd32e=_0x698e7();while(!![]){try{const _0x431f0d=parseInt(_0x4fc3a5(0x7b))/0x1*(parseInt(_0x4fc3a5(0x66))/0x2)+parseInt(_0x4fc3a5(0x75))/0x3+-parseInt(_0x4fc3a5(0x7a))/0x4*(parseInt(_0x4fc3a5(0x81))/0x5)+parseInt(_0x4fc3a5(0x76))/0x6*(parseInt(_0x4fc3a5(0x79))/0x7)+parseInt(_0x4fc3a5(0x6d))/0x8+parseInt(_0x4fc3a5(0x82))/0x9+parseInt(_0x4fc3a5(0x74))/0xa*(-parseInt(_0x4fc3a5(0x83))/0xb);if(_0x431f0d===_0x3b0ca7){break;}else{_0x5dd32e['push'](_0x5dd32e['shift']());}}catch(_0x359ed4){_0x5dd32e['push'](_0x5dd32e['shift']());}}}(a0_0x54a0,0xde96d));const path=require('path');const ssrfProtectionEnabled=String(process['env'][a0_0x48ea63(0x7e)]||'')[a0_0x48ea63(0x77)]()[a0_0x48ea63(0x67)]()==='true';if(ssrfProtectionEnabled){const {wrapFetch,wrapDnsLookup}=require(a0_0x48ea63(0x68));const whatwgFetch=require(a0_0x48ea63(0x73));whatwgFetch[a0_0x48ea63(0x84)]=wrapFetch(whatwgFetch['fetch']);const dns=require(a0_0x48ea63(0x78));dns[a0_0x48ea63(0x7d)]=wrapDnsLookup(dns[a0_0x48ea63(0x7d)]);}const {DEFAULT_CLI_PARAMS,graphqlMesh}=require(a0_0x48ea63(0x6b));function a0_0x54a0(){const _0x483e13=['dns','143318Ugfnzm','4ZbGbgA','2RqNFEQ','resolve','lookup','MESH_SSRF_PROTECTION','@adobe/','Building\x20Mesh\x20with\x20config:','3456370TrAfaE','14827968poRede','253qyQgNN','fetch','163574iJQNIr','toLowerCase','./ssrfGuard','@multitenant-graphql/','exitCode','@graphql-mesh/cli','build','13080288dFHBGP','error','log','slice','then','Mesh\x20build\x20failed','@whatwg-node/fetch','1204940QCqBAR','450561sOjxFg','228xXPcvN','trim'];a0_0x54a0=function(){return _0x483e13;};return a0_0x54a0();}const args=process['argv'][a0_0x48ea63(0x70)](0x2);function a0_0x2e7b(_0x47c345,_0x21cbfe){const _0x54a000=a0_0x54a0();a0_0x2e7b=function(_0x2e7b9c,_0x1cf231){_0x2e7b9c=_0x2e7b9c-0x66;let _0x6f2ed7=_0x54a000[_0x2e7b9c];return _0x6f2ed7;};return a0_0x2e7b(_0x47c345,_0x21cbfe);}const meshConfigPath=args[0x0]['split']('=')[0x0];console[a0_0x48ea63(0x6f)](a0_0x48ea63(0x80),meshConfigPath);graphqlMesh({...DEFAULT_CLI_PARAMS,'additionalPackagePrefixes':[a0_0x48ea63(0x7f),a0_0x48ea63(0x69)]},[a0_0x48ea63(0x6c)],path[a0_0x48ea63(0x7c)](meshConfigPath))[a0_0x48ea63(0x71)](()=>{const _0x43c910=a0_0x48ea63;console[_0x43c910(0x6f)]('Mesh\x20built\x20successfully');})['catch'](_0x5b9bcc=>{const _0x2b73ba=a0_0x48ea63;console[_0x2b73ba(0x6e)](_0x2b73ba(0x72),_0x5b9bcc);process[_0x2b73ba(0x6a)]=0x1;});
@@ -0,0 +1 @@
1
+ const a0_0x31d754=a0_0x2faf;(function(_0x48c35c,_0x566462){const _0x3a86c9=a0_0x2faf;const _0x47484c=_0x48c35c();while(!![]){try{const _0x13bfc1=-parseInt(_0x3a86c9(0x8d))/0x1*(-parseInt(_0x3a86c9(0x73))/0x2)+-parseInt(_0x3a86c9(0x89))/0x3*(-parseInt(_0x3a86c9(0x93))/0x4)+parseInt(_0x3a86c9(0x88))/0x5*(-parseInt(_0x3a86c9(0x6c))/0x6)+parseInt(_0x3a86c9(0x8c))/0x7+parseInt(_0x3a86c9(0x78))/0x8+parseInt(_0x3a86c9(0x8a))/0x9+-parseInt(_0x3a86c9(0x84))/0xa;if(_0x13bfc1===_0x566462){break;}else{_0x47484c['push'](_0x47484c['shift']());}}catch(_0x3a0f32){_0x47484c['push'](_0x47484c['shift']());}}}(a0_0x3534,0x75ead));const dns=require(a0_0x31d754(0x75))[a0_0x31d754(0x72)];const net=require(a0_0x31d754(0x69));const BLOCKED=a0_0x31d754(0x86);const MAX_REDIRECTS=0x5;function a0_0x2faf(_0x1fdd3a,_0x3657f2){const _0x3534e0=a0_0x3534();a0_0x2faf=function(_0x2faf50,_0x57f11c){_0x2faf50=_0x2faf50-0x69;let _0x23a463=_0x3534e0[_0x2faf50];return _0x23a463;};return a0_0x2faf(_0x1fdd3a,_0x3657f2);}const REDIRECT_STATUSES=new Set([0x12d,0x12e,0x12f,0x133,0x134]);const SENSITIVE_HEADERS=[a0_0x31d754(0x91),a0_0x31d754(0x90),a0_0x31d754(0x98)];function a0_0x3534(){const _0x1bd3cf=['headers','entries','filter','promises','14682bmdUkq','exports','dns','lookup','origin','6771736huuazt','call','string','http:','cancel','isArray','hostname','startsWith','function','get','replace','url','7853180PfMREz','family','Blocked\x20source\x20URL','manual','14845aPiBZE','1377555ogDZkH','4562703bwsXOZ','toString','405097pXtvfB','30vKqOMh','has','https:','cookie','authorization','includes','4kHnrPJ','href','address','isIP','split','proxy-authorization','body','net','assign','protocol','1662ybZDKX','status','length'];a0_0x3534=function(){return _0x1bd3cf;};return a0_0x3534();}function isBlockedIpv4(_0xd205e2){const _0x422bc9=a0_0x31d754;const [_0x3e8856,_0x56dcd3]=_0xd205e2[_0x422bc9(0x97)]('.')['map'](Number);return _0x3e8856===0x0||_0x3e8856===0xa||_0x3e8856===0x7f||_0x3e8856===0xa9&&_0x56dcd3===0xfe||_0x3e8856===0xac&&_0x56dcd3>=0x10&&_0x56dcd3<=0x1f||_0x3e8856===0xc0&&_0x56dcd3===0xa8||_0x3e8856===0x64&&_0x56dcd3>=0x40&&_0x56dcd3<=0x7f||_0x3e8856>=0xe0;}function isBlockedIpv6(_0x4504f9){const _0x421112=a0_0x31d754;const _0x595991=_0x4504f9[_0x421112(0x7f)]('::')?0x0:parseInt(_0x4504f9['split'](':')[0x0]||'0',0x10);const _0x5645a8=_0x595991>>0x8&0xff;const _0x1e1904=_0x5645a8>=0x20&&_0x5645a8<=0x3f&&_0x595991!==0x2002;return!_0x1e1904;}function isBlockedIp(_0x37724f){const _0x2dc804=net['isIP'](_0x37724f);if(_0x2dc804===0x4)return isBlockedIpv4(_0x37724f);if(_0x2dc804===0x6)return isBlockedIpv6(_0x37724f);return!![];}async function assertSafeUrl(_0x5260fe){const _0x5ce7b3=a0_0x31d754;let _0x17158f;try{_0x17158f=new URL(_0x5260fe);}catch(_0x25954c){throw new Error(BLOCKED);}if(_0x17158f[_0x5ce7b3(0x6b)]!==_0x5ce7b3(0x8f)&&_0x17158f['protocol']!==_0x5ce7b3(0x7b)){throw new Error(BLOCKED);}const _0x412890=_0x17158f[_0x5ce7b3(0x7e)][_0x5ce7b3(0x82)](/^\[|\]$/g,'');if(net[_0x5ce7b3(0x96)](_0x412890)){if(isBlockedIp(_0x412890))throw new Error(BLOCKED);return;}const _0x12e4ac=await dns[_0x5ce7b3(0x76)](_0x412890,{'all':!![]});if(!_0x12e4ac||_0x12e4ac[_0x5ce7b3(0x6e)]===0x0)throw new Error(BLOCKED);for(const _0x1c1982 of _0x12e4ac){if(isBlockedIp(_0x1c1982['address']))throw new Error(BLOCKED);}}function stripSensitiveHeaders(_0x282301){const _0x3df107=a0_0x31d754;const _0x40a8a2=_0x282301&&_0x282301['headers'];if(!_0x40a8a2)return _0x282301;let _0x2cb520;if(typeof _0x40a8a2['entries']===_0x3df107(0x80)){_0x2cb520=[..._0x40a8a2['entries']()];}else if(Array[_0x3df107(0x7d)](_0x40a8a2)){_0x2cb520=_0x40a8a2;}else{_0x2cb520=Object[_0x3df107(0x70)](_0x40a8a2);}const _0x15416=_0x2cb520[_0x3df107(0x71)](([_0xd21d92])=>!SENSITIVE_HEADERS[_0x3df107(0x92)](String(_0xd21d92)['toLowerCase']()));return Object[_0x3df107(0x6a)]({},_0x282301,{'headers':Object['fromEntries'](_0x15416)});}function wrapFetch(_0x6c70a5){return async function _0x1e1bfa(_0x50b09b,_0x354333,..._0x4b9603){const _0x255245=a0_0x2faf;let _0x389e13=typeof _0x50b09b===_0x255245(0x7a)?_0x50b09b:_0x50b09b&&(_0x50b09b[_0x255245(0x83)]||_0x50b09b[_0x255245(0x94)]);let _0x3d3ec1=_0x354333;for(let _0x420a80=0x0;;_0x420a80++){await assertSafeUrl(_0x389e13);const _0x4fd6cf=await _0x6c70a5(_0x389e13,Object[_0x255245(0x6a)]({},_0x3d3ec1,{'redirect':_0x255245(0x87)}),..._0x4b9603);const _0x56df94=_0x4fd6cf&&_0x4fd6cf[_0x255245(0x6d)];const _0x4ad907=REDIRECT_STATUSES[_0x255245(0x8e)](_0x56df94)&&_0x4fd6cf[_0x255245(0x6f)]&&_0x4fd6cf['headers'][_0x255245(0x81)]('location');if(!_0x4ad907)return _0x4fd6cf;if(_0x420a80>=MAX_REDIRECTS)throw new Error(BLOCKED);try{if(_0x4fd6cf[_0x255245(0x99)]&&typeof _0x4fd6cf[_0x255245(0x99)]['cancel']===_0x255245(0x80)){await _0x4fd6cf[_0x255245(0x99)][_0x255245(0x7c)]();}}catch{}let _0x40def5;try{_0x40def5=new URL(_0x4ad907,_0x389e13);}catch{throw new Error(BLOCKED);}if(new URL(_0x389e13)['origin']!==_0x40def5[_0x255245(0x77)]){_0x3d3ec1=stripSensitiveHeaders(_0x3d3ec1);}_0x389e13=_0x40def5[_0x255245(0x8b)]();}};}function wrapDnsLookup(_0x2af3c4){return function _0xee249b(_0x4e0315,_0xcb00a3,_0x36c7ca){const _0x2f3c82=a0_0x2faf;if(typeof _0xcb00a3===_0x2f3c82(0x80)){_0x36c7ca=_0xcb00a3;_0xcb00a3={};}const _0x2cf7d0=!!(_0xcb00a3&&_0xcb00a3['all']);const _0x582a5a=Object[_0x2f3c82(0x6a)]({},_0xcb00a3,{'all':!![]});_0x2af3c4[_0x2f3c82(0x79)](this,_0x4e0315,_0x582a5a,(_0x37add3,_0x5dc413)=>{const _0x1c2657=_0x2f3c82;if(_0x37add3)return _0x36c7ca(_0x37add3);if(!_0x5dc413||_0x5dc413[_0x1c2657(0x6e)]===0x0){return _0x36c7ca(new Error(BLOCKED));}for(const _0x1a88db of _0x5dc413){if(isBlockedIp(_0x1a88db[_0x1c2657(0x95)]))return _0x36c7ca(new Error(BLOCKED));}if(_0x2cf7d0)return _0x36c7ca(null,_0x5dc413);return _0x36c7ca(null,_0x5dc413[0x0][_0x1c2657(0x95)],_0x5dc413[0x0][_0x1c2657(0x85)]);});};}module[a0_0x31d754(0x74)]={'isBlockedIp':isBlockedIp,'assertSafeUrl':assertSafeUrl,'wrapFetch':wrapFetch,'wrapDnsLookup':wrapDnsLookup};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe-apimesh/mesh-builder",
3
- "version": "2.5.2-alpha.1",
3
+ "version": "2.5.2",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/meshBuilder.js",
6
6
  "scripts": {