@adobe-apimesh/mesh-builder 2.5.1 → 2.5.2-alpha.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.
@@ -1 +1 @@
1
- function a0_0x2c3e(){const _0x3bbab5=['9BWudYC','181624ByPxdS','3942757sbhttg','slice','4815560UUOyJG','Building\x20Mesh\x20with\x20config:','error','1733831cvNXAD','then','@graphql-mesh/cli','39018dJjOyC','log','argv','6520024QiqhKq','path','Mesh\x20build\x20failed','@adobe/','1935366uOwjzp','Mesh\x20built\x20successfully','1115jLVQPu','catch','8EFWRLs'];a0_0x2c3e=function(){return _0x3bbab5;};return a0_0x2c3e();}const a0_0x4f7798=a0_0x20aa;(function(_0x5b5921,_0x23b5f1){const _0x2b206e=a0_0x20aa;const _0x4de6a5=_0x5b5921();while(!![]){try{const _0x3e7875=-parseInt(_0x2b206e(0x128))/0x1+parseInt(_0x2b206e(0x138))/0x2+-parseInt(_0x2b206e(0x132))/0x3*(-parseInt(_0x2b206e(0x136))/0x4)+parseInt(_0x2b206e(0x134))/0x5*(parseInt(_0x2b206e(0x12b))/0x6)+-parseInt(_0x2b206e(0x139))/0x7+-parseInt(_0x2b206e(0x12e))/0x8*(-parseInt(_0x2b206e(0x137))/0x9)+-parseInt(_0x2b206e(0x13b))/0xa;if(_0x3e7875===_0x23b5f1){break;}else{_0x4de6a5['push'](_0x4de6a5['shift']());}}catch(_0x1fce13){_0x4de6a5['push'](_0x4de6a5['shift']());}}}(a0_0x2c3e,0xd3d06));const path=require(a0_0x4f7798(0x12f));const {DEFAULT_CLI_PARAMS,graphqlMesh}=require(a0_0x4f7798(0x12a));const args=process[a0_0x4f7798(0x12d)][a0_0x4f7798(0x13a)](0x2);const meshConfigPath=args[0x0]['split']('=')[0x0];function a0_0x20aa(_0x45465b,_0x4938bf){const _0x2c3ed9=a0_0x2c3e();a0_0x20aa=function(_0x20aa88,_0x4c7196){_0x20aa88=_0x20aa88-0x126;let _0x545106=_0x2c3ed9[_0x20aa88];return _0x545106;};return a0_0x20aa(_0x45465b,_0x4938bf);}console[a0_0x4f7798(0x12c)](a0_0x4f7798(0x126),meshConfigPath);graphqlMesh({...DEFAULT_CLI_PARAMS,'additionalPackagePrefixes':[a0_0x4f7798(0x131),'@multitenant-graphql/']},['build'],path['resolve'](meshConfigPath))[a0_0x4f7798(0x129)](()=>{const _0x5b12b3=a0_0x4f7798;console[_0x5b12b3(0x12c)](_0x5b12b3(0x133));})[a0_0x4f7798(0x135)](_0x5324d1=>{const _0x5dfa67=a0_0x4f7798;console[_0x5dfa67(0x127)](_0x5dfa67(0x130),_0x5324d1);});
1
+ const a0_0x519f2a=a0_0x1495;(function(_0x7e55d9,_0x1031e2){const _0xee9623=a0_0x1495;const _0x5aad73=_0x7e55d9();while(!![]){try{const _0x3fbe48=parseInt(_0xee9623(0x9d))/0x1*(parseInt(_0xee9623(0xa9))/0x2)+-parseInt(_0xee9623(0x97))/0x3*(-parseInt(_0xee9623(0xa4))/0x4)+-parseInt(_0xee9623(0xad))/0x5+parseInt(_0xee9623(0xb2))/0x6+-parseInt(_0xee9623(0xa7))/0x7*(-parseInt(_0xee9623(0xab))/0x8)+parseInt(_0xee9623(0xb6))/0x9*(-parseInt(_0xee9623(0xaf))/0xa)+-parseInt(_0xee9623(0xb1))/0xb*(parseInt(_0xee9623(0xa2))/0xc);if(_0x3fbe48===_0x1031e2){break;}else{_0x5aad73['push'](_0x5aad73['shift']());}}catch(_0x1a62e5){_0x5aad73['push'](_0x5aad73['shift']());}}}(a0_0x5638,0x5cdb2));const path=require(a0_0x519f2a(0xaa));const ssrfProtectionEnabled=String(process['env'][a0_0x519f2a(0xa5)]||'')[a0_0x519f2a(0x9b)]()[a0_0x519f2a(0x9e)]()===a0_0x519f2a(0xa3);if(ssrfProtectionEnabled){const {wrapFetch,wrapDnsLookup}=require(a0_0x519f2a(0x99));const whatwgFetch=require(a0_0x519f2a(0xb0));whatwgFetch[a0_0x519f2a(0xa1)]=wrapFetch(whatwgFetch[a0_0x519f2a(0xa1)]);const dns=require(a0_0x519f2a(0x9a));dns[a0_0x519f2a(0xa8)]=wrapDnsLookup(dns[a0_0x519f2a(0xa8)]);}const {DEFAULT_CLI_PARAMS,graphqlMesh}=require('@graphql-mesh/cli');const args=process['argv'][a0_0x519f2a(0xb3)](0x2);function a0_0x1495(_0x3944cf,_0x5a727f){const _0x56384b=a0_0x5638();a0_0x1495=function(_0x1495e4,_0x45ecd2){_0x1495e4=_0x1495e4-0x96;let _0x32c744=_0x56384b[_0x1495e4];return _0x32c744;};return a0_0x1495(_0x3944cf,_0x5a727f);}const meshConfigPath=args[0x0]['split']('=')[0x0];console[a0_0x519f2a(0xac)](a0_0x519f2a(0x9c),meshConfigPath);function a0_0x5638(){const _0x2a3ccb=['@whatwg-node/fetch','99kEpQZK','2581056DmaRpW','slice','exitCode','build','6400098TdSUuX','@multitenant-graphql/','21cbFBMi','error','./ssrfGuard','dns','trim','Building\x20Mesh\x20with\x20config:','302UIlkGr','toLowerCase','Mesh\x20built\x20successfully','resolve','fetch','530100syVyyV','true','327044tfTPFW','MESH_SSRF_PROTECTION','Mesh\x20build\x20failed','2096297OobNiT','lookup','3334aanrnh','path','8BDHIkf','log','1581865UnFBjF','then','10mZsXqt'];a0_0x5638=function(){return _0x2a3ccb;};return a0_0x5638();}graphqlMesh({...DEFAULT_CLI_PARAMS,'additionalPackagePrefixes':['@adobe/',a0_0x519f2a(0x96)]},[a0_0x519f2a(0xb5)],path[a0_0x519f2a(0xa0)](meshConfigPath))[a0_0x519f2a(0xae)](()=>{const _0x1460a0=a0_0x519f2a;console[_0x1460a0(0xac)](_0x1460a0(0x9f));})['catch'](_0x48942f=>{const _0x2f6cf3=a0_0x519f2a;console[_0x2f6cf3(0x98)](_0x2f6cf3(0xa6),_0x48942f);process[_0x2f6cf3(0xb4)]=0x1;});
@@ -0,0 +1 @@
1
+ const a0_0x4a1a1c=a0_0x2873;(function(_0x5676f5,_0x21d63b){const _0x6fc9ca=a0_0x2873;const _0x462cca=_0x5676f5();while(!![]){try{const _0x5ee66c=parseInt(_0x6fc9ca(0x18e))/0x1*(parseInt(_0x6fc9ca(0x192))/0x2)+-parseInt(_0x6fc9ca(0x1a4))/0x3+-parseInt(_0x6fc9ca(0x194))/0x4+-parseInt(_0x6fc9ca(0x17f))/0x5+-parseInt(_0x6fc9ca(0x184))/0x6+parseInt(_0x6fc9ca(0x18c))/0x7*(-parseInt(_0x6fc9ca(0x186))/0x8)+parseInt(_0x6fc9ca(0x180))/0x9*(parseInt(_0x6fc9ca(0x188))/0xa);if(_0x5ee66c===_0x21d63b){break;}else{_0x462cca['push'](_0x462cca['shift']());}}catch(_0x437306){_0x462cca['push'](_0x462cca['shift']());}}}(a0_0x47c7,0x6a04f));const dns=require('dns')['promises'];const net=require(a0_0x4a1a1c(0x17e));function a0_0x47c7(){const _0x5b074d=['3195954MiPTaw','manual','split','url','4631940wdjkpQ','status','1072856LNsDTb','origin','90ScrqUu','toLowerCase','startsWith','function','7EgwkAe','body','100585KrzEWB','isArray','includes','map','6UPVvsW','lookup','3134776rlMPUR','string','cookie','assign','cancel','exports','all','call','http:','protocol','family','length','fromEntries','Blocked\x20source\x20URL','hostname','address','2029686npnzWE','https:','entries','toString','isIP','headers','net','3485505SzITGA'];a0_0x47c7=function(){return _0x5b074d;};return a0_0x47c7();}const BLOCKED=a0_0x4a1a1c(0x1a1);const MAX_REDIRECTS=0x5;const REDIRECT_STATUSES=new Set([0x12d,0x12e,0x12f,0x133,0x134]);const SENSITIVE_HEADERS=['authorization',a0_0x4a1a1c(0x196),'proxy-authorization'];function isBlockedIpv4(_0x1f97e1){const _0x1694e3=a0_0x4a1a1c;const [_0x4aa2ff,_0x159870]=_0x1f97e1[_0x1694e3(0x182)]('.')[_0x1694e3(0x191)](Number);return _0x4aa2ff===0x0||_0x4aa2ff===0xa||_0x4aa2ff===0x7f||_0x4aa2ff===0xa9&&_0x159870===0xfe||_0x4aa2ff===0xac&&_0x159870>=0x10&&_0x159870<=0x1f||_0x4aa2ff===0xc0&&_0x159870===0xa8||_0x4aa2ff===0x64&&_0x159870>=0x40&&_0x159870<=0x7f||_0x4aa2ff>=0xe0;}function isBlockedIpv6(_0x40c297){const _0x49ca37=a0_0x4a1a1c;const _0x303774=_0x40c297[_0x49ca37(0x18a)]('::')?0x0:parseInt(_0x40c297[_0x49ca37(0x182)](':')[0x0]||'0',0x10);const _0x53888d=_0x303774>>0x8&0xff;const _0x1d61c3=_0x53888d>=0x20&&_0x53888d<=0x3f&&_0x303774!==0x2002;return!_0x1d61c3;}function isBlockedIp(_0x1f1ea5){const _0x4d4afb=net['isIP'](_0x1f1ea5);if(_0x4d4afb===0x4)return isBlockedIpv4(_0x1f1ea5);if(_0x4d4afb===0x6)return isBlockedIpv6(_0x1f1ea5);return!![];}async function assertSafeUrl(_0x2dc680){const _0x4d1b99=a0_0x4a1a1c;let _0x3e18dd;try{_0x3e18dd=new URL(_0x2dc680);}catch(_0x3c3310){throw new Error(BLOCKED);}if(_0x3e18dd[_0x4d1b99(0x19d)]!==_0x4d1b99(0x1a5)&&_0x3e18dd[_0x4d1b99(0x19d)]!==_0x4d1b99(0x19c)){throw new Error(BLOCKED);}const _0x27afaf=_0x3e18dd[_0x4d1b99(0x1a2)]['replace'](/^\[|\]$/g,'');if(net[_0x4d1b99(0x17c)](_0x27afaf)){if(isBlockedIp(_0x27afaf))throw new Error(BLOCKED);return;}const _0x2be6da=await dns[_0x4d1b99(0x193)](_0x27afaf,{'all':!![]});if(!_0x2be6da||_0x2be6da['length']===0x0)throw new Error(BLOCKED);for(const _0x5ac3f6 of _0x2be6da){if(isBlockedIp(_0x5ac3f6[_0x4d1b99(0x1a3)]))throw new Error(BLOCKED);}}function stripSensitiveHeaders(_0x57746c){const _0x3b069a=a0_0x4a1a1c;const _0x22c9ea=_0x57746c&&_0x57746c[_0x3b069a(0x17d)];if(!_0x22c9ea)return _0x57746c;let _0x22e1fe;if(typeof _0x22c9ea[_0x3b069a(0x17a)]===_0x3b069a(0x18b)){_0x22e1fe=[..._0x22c9ea['entries']()];}else if(Array[_0x3b069a(0x18f)](_0x22c9ea)){_0x22e1fe=_0x22c9ea;}else{_0x22e1fe=Object['entries'](_0x22c9ea);}const _0x58e956=_0x22e1fe['filter'](([_0x4056ab])=>!SENSITIVE_HEADERS[_0x3b069a(0x190)](String(_0x4056ab)[_0x3b069a(0x189)]()));return Object[_0x3b069a(0x197)]({},_0x57746c,{'headers':Object[_0x3b069a(0x1a0)](_0x58e956)});}function a0_0x2873(_0x49bfbf,_0x4cb009){const _0x47c750=a0_0x47c7();a0_0x2873=function(_0x287300,_0x3f6174){_0x287300=_0x287300-0x17a;let _0x1fe0e0=_0x47c750[_0x287300];return _0x1fe0e0;};return a0_0x2873(_0x49bfbf,_0x4cb009);}function wrapFetch(_0x4441f9){return async function _0xb06009(_0x15704c,_0x256c91,..._0x4d3327){const _0x451210=a0_0x2873;let _0x5b7ec9=typeof _0x15704c===_0x451210(0x195)?_0x15704c:_0x15704c&&(_0x15704c[_0x451210(0x183)]||_0x15704c['href']);let _0x3b2761=_0x256c91;for(let _0x2dc2c5=0x0;;_0x2dc2c5++){await assertSafeUrl(_0x5b7ec9);const _0x18fb7b=await _0x4441f9(_0x5b7ec9,Object[_0x451210(0x197)]({},_0x3b2761,{'redirect':_0x451210(0x181)}),..._0x4d3327);const _0x5d0592=_0x18fb7b&&_0x18fb7b[_0x451210(0x185)];const _0x780d8e=REDIRECT_STATUSES['has'](_0x5d0592)&&_0x18fb7b[_0x451210(0x17d)]&&_0x18fb7b[_0x451210(0x17d)]['get']('location');if(!_0x780d8e)return _0x18fb7b;if(_0x2dc2c5>=MAX_REDIRECTS)throw new Error(BLOCKED);try{if(_0x18fb7b[_0x451210(0x18d)]&&typeof _0x18fb7b[_0x451210(0x18d)][_0x451210(0x198)]===_0x451210(0x18b)){await _0x18fb7b[_0x451210(0x18d)][_0x451210(0x198)]();}}catch{}let _0x1b5174;try{_0x1b5174=new URL(_0x780d8e,_0x5b7ec9);}catch{throw new Error(BLOCKED);}if(new URL(_0x5b7ec9)['origin']!==_0x1b5174[_0x451210(0x187)]){_0x3b2761=stripSensitiveHeaders(_0x3b2761);}_0x5b7ec9=_0x1b5174[_0x451210(0x17b)]();}};}function wrapDnsLookup(_0x37963b){return function _0x5a321b(_0xa38e16,_0x513a36,_0x1c94d8){const _0x53dc3f=a0_0x2873;if(typeof _0x513a36===_0x53dc3f(0x18b)){_0x1c94d8=_0x513a36;_0x513a36={};}const _0x39a6d=!!(_0x513a36&&_0x513a36[_0x53dc3f(0x19a)]);const _0x584412=Object[_0x53dc3f(0x197)]({},_0x513a36,{'all':!![]});_0x37963b[_0x53dc3f(0x19b)](this,_0xa38e16,_0x584412,(_0x579db9,_0x214408)=>{const _0x2a167c=_0x53dc3f;if(_0x579db9)return _0x1c94d8(_0x579db9);if(!_0x214408||_0x214408[_0x2a167c(0x19f)]===0x0){return _0x1c94d8(new Error(BLOCKED));}for(const _0x171c57 of _0x214408){if(isBlockedIp(_0x171c57[_0x2a167c(0x1a3)]))return _0x1c94d8(new Error(BLOCKED));}if(_0x39a6d)return _0x1c94d8(null,_0x214408);return _0x1c94d8(null,_0x214408[0x0][_0x2a167c(0x1a3)],_0x214408[0x0][_0x2a167c(0x19e)]);});};}module[a0_0x4a1a1c(0x199)]={'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.1",
3
+ "version": "2.5.2-alpha.4",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/meshBuilder.js",
6
6
  "scripts": {