@flosum/storages 1.3.5 → 1.4.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.
- package/dist/copy/aws-s3-copy.js +1 -1
- package/dist/copy/base-copy.js +1 -1
- package/dist/copy/index.js +1 -1
- package/dist/copy/local-copy.js +1 -1
- package/dist/credentials/aws-s3-credentials.js +1 -1
- package/dist/credentials/azure-credentials.js +1 -1
- package/dist/credentials/base-credentials.js +1 -1
- package/dist/credentials/index.js +1 -1
- package/dist/credentials/local-credentials.js +1 -1
- package/dist/delete/aws-s3-delete.js +1 -1
- package/dist/delete/azure-delete.js +1 -1
- package/dist/delete/base-delete.js +1 -1
- package/dist/delete/index.js +1 -1
- package/dist/delete/local-delete.js +1 -1
- package/dist/deploy/aws-s3-deploy.js +1 -1
- package/dist/deploy/azure-deploy.js +1 -1
- package/dist/deploy/base-deploy.js +1 -1
- package/dist/deploy/index.js +1 -1
- package/dist/deploy/local-deploy.js +1 -1
- package/dist/factory.d.ts +1 -1
- package/dist/factory.js +1 -1
- package/dist/file-size-retriever/aws-s3-file-size-retriever.js +1 -1
- package/dist/file-size-retriever/azure-file-size-retriever.js +1 -1
- package/dist/file-size-retriever/base-file-size-retriever.js +1 -1
- package/dist/file-size-retriever/index.js +1 -1
- package/dist/file-size-retriever/local-size-retriever.js +1 -1
- package/dist/index.js +1 -1
- package/dist/init.js +1 -1
- package/dist/instances/aws-s3.storage-instance.js +1 -1
- package/dist/instances/base.storage-instance.d.ts +4 -4
- package/dist/instances/base.storage-instance.js +1 -1
- package/dist/instances/index.js +1 -1
- package/dist/instances/local.storage-instance.js +1 -1
- package/dist/retrieve/aws-s3-import-helper.d.ts +1 -1
- package/dist/retrieve/aws-s3-import-helper.js +1 -1
- package/dist/retrieve/aws-s3-retrieve.js +1 -1
- package/dist/retrieve/azure-retrieve.js +1 -1
- package/dist/retrieve/base-retrieve.js +1 -1
- package/dist/retrieve/helpers/aws-s3-helper.js +1 -1
- package/dist/retrieve/helpers/azure-helper.js +1 -1
- package/dist/retrieve/helpers/base-helper.js +1 -1
- package/dist/retrieve/helpers/local-helper.js +1 -1
- package/dist/retrieve/index.js +1 -1
- package/dist/retrieve/local-retrieve.js +1 -1
- package/dist/types/aws.types.d.ts +4 -4
- package/dist/types/aws.types.js +1 -1
- package/dist/types/azure.types.d.ts +1 -1
- package/dist/types/azure.types.js +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/internal.types.d.ts +1 -1
- package/dist/types/internal.types.js +1 -1
- package/dist/types/retrieve-status.enum.js +1 -1
- package/dist/types/storage-type.enum.js +1 -1
- package/dist/utils/aws-s3.utils.js +1 -1
- package/dist/utils/azure.utils.js +1 -1
- package/dist/utils/cache.utils.js +1 -1
- package/package.json +9 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x1a6d87=_0x4f24;function _0x4f24(_0x55de03,_0xbded53){_0x55de03=_0x55de03-0x9d;var _0x19ee2f=_0x19ee();var _0x4f24e0=_0x19ee2f[_0x55de03];return _0x4f24e0;}(function(_0x205a63,_0x2128ea){var _0x7a7180=_0x4f24,_0x56c58d=_0x205a63();while(!![]){try{var _0x495f60=-parseInt(_0x7a7180(0xa1))/0x1+-parseInt(_0x7a7180(0xa5))/0x2*(-parseInt(_0x7a7180(0xa6))/0x3)+parseInt(_0x7a7180(0xa7))/0x4*(-parseInt(_0x7a7180(0xac))/0x5)+-parseInt(_0x7a7180(0xa9))/0x6*(-parseInt(_0x7a7180(0xa3))/0x7)+parseInt(_0x7a7180(0xa8))/0x8*(-parseInt(_0x7a7180(0x9e))/0x9)+parseInt(_0x7a7180(0xaa))/0xa*(-parseInt(_0x7a7180(0xa2))/0xb)+parseInt(_0x7a7180(0x9d))/0xc*(parseInt(_0x7a7180(0xad))/0xd);if(_0x495f60===_0x2128ea)break;else _0x56c58d['push'](_0x56c58d['shift']());}catch(_0xdebf83){_0x56c58d['push'](_0x56c58d['shift']());}}}(_0x19ee,0x788e6));function _0x19ee(){var _0x2c8cea=['153048PUvbXK','12GBchHW','20PGasEy','1200mHJYse','6JahMKZ','202150PGcWtc','credentials','732925GULLqC','13PqanSj','32911668pAdAJh','13770auDVyh','BaseFileSizeRetriever','defineProperty','804860YCWaGO','429fkZrSH','5131hzsrcm','__esModule'];_0x19ee=function(){return _0x2c8cea;};return _0x19ee();}Object[_0x1a6d87(0xa0)](exports,_0x1a6d87(0xa4),{'value':!![]}),exports[_0x1a6d87(0x9f)]=void 0x0;class BaseFileSizeRetriever{constructor(_0x323132){var _0x394163=_0x1a6d87;this[_0x394163(0xab)]=_0x323132;}}exports['BaseFileSizeRetriever']=BaseFileSizeRetriever;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x5962(_0x1785c8,_0x2282f1){_0x1785c8=_0x1785c8-0x192;var _0x3d8617=_0x3d86();var _0x5962ad=_0x3d8617[_0x1785c8];return _0x5962ad;}var _0x4d8a57=_0x5962;function _0x3d86(){var _0x2c1294=['configurable','get','647402zXHROi','./aws-s3-file-size-retriever','__createBinding','getOwnPropertyDescriptor','defineProperty','writable','11143323PadvVd','84sdhYGY','create','872856qZCMaZ','./azure-file-size-retriever','6148056CeNjOA','4260600fjCuua','./local-size-retriever','__exportStar','73706IlHorC','70572nCsLYD','27KTSOrJ','__esModule','10lpgtYe'];_0x3d86=function(){return _0x2c1294;};return _0x3d86();}(function(_0x19f4b1,_0x3a1a88){var _0x35fb8f=_0x5962,_0x66f0de=_0x19f4b1();while(!![]){try{var _0x33d1f6=-parseInt(_0x35fb8f(0x19e))/0x1+parseInt(_0x35fb8f(0x1a4))/0x2+parseInt(_0x35fb8f(0x1a6))/0x3*(-parseInt(_0x35fb8f(0x1a5))/0x4)+parseInt(_0x35fb8f(0x1a1))/0x5+-parseInt(_0x35fb8f(0x19c))/0x6*(-parseInt(_0x35fb8f(0x195))/0x7)+parseInt(_0x35fb8f(0x1a0))/0x8+-parseInt(_0x35fb8f(0x19b))/0x9*(parseInt(_0x35fb8f(0x192))/0xa);if(_0x33d1f6===_0x3a1a88)break;else _0x66f0de['push'](_0x66f0de['shift']());}catch(_0x2dd30c){_0x66f0de['push'](_0x66f0de['shift']());}}}(_0x3d86,0xa69fe));var __createBinding=this&&this[_0x4d8a57(0x197)]||(Object[_0x4d8a57(0x19d)]?function(_0x76c9b0,_0x20efd8,_0x9083b1,_0x523a5e){var _0x55c7e9=_0x4d8a57;if(_0x523a5e===undefined)_0x523a5e=_0x9083b1;var _0x117c6f=Object[_0x55c7e9(0x198)](_0x20efd8,_0x9083b1);(!_0x117c6f||(_0x55c7e9(0x194)in _0x117c6f?!_0x20efd8[_0x55c7e9(0x1a7)]:_0x117c6f[_0x55c7e9(0x19a)]||_0x117c6f[_0x55c7e9(0x193)]))&&(_0x117c6f={'enumerable':!![],'get':function(){return _0x20efd8[_0x9083b1];}}),Object[_0x55c7e9(0x199)](_0x76c9b0,_0x523a5e,_0x117c6f);}:function(_0x43c6fe,_0x51ed3b,_0x1e9c31,_0x5678d3){if(_0x5678d3===undefined)_0x5678d3=_0x1e9c31;_0x43c6fe[_0x5678d3]=_0x51ed3b[_0x1e9c31];}),__exportStar=this&&this[_0x4d8a57(0x1a3)]||function(_0x5b6d08,_0x19ae70){for(var _0x1f0394 in _0x5b6d08)if(_0x1f0394!=='default'&&!Object['prototype']['hasOwnProperty']['call'](_0x19ae70,_0x1f0394))__createBinding(_0x19ae70,_0x5b6d08,_0x1f0394);};Object[_0x4d8a57(0x199)](exports,'__esModule',{'value':!![]}),__exportStar(require('./base-file-size-retriever'),exports),__exportStar(require(_0x4d8a57(0x196)),exports),__exportStar(require(_0x4d8a57(0x1a2)),exports),__exportStar(require(_0x4d8a57(0x19f)),exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x138ea1=_0xb705;(function(_0x1efe1c,_0xae6a1c){const _0x1b2d29=_0xb705,_0xaa499c=_0x1efe1c();while(!![]){try{const _0x277631=parseInt(_0x1b2d29(0x154))/0x1*(-parseInt(_0x1b2d29(0x15f))/0x2)+parseInt(_0x1b2d29(0x151))/0x3*(-parseInt(_0x1b2d29(0x159))/0x4)+-parseInt(_0x1b2d29(0x14e))/0x5+parseInt(_0x1b2d29(0x157))/0x6*(parseInt(_0x1b2d29(0x14b))/0x7)+-parseInt(_0x1b2d29(0x14a))/0x8+parseInt(_0x1b2d29(0x148))/0x9+parseInt(_0x1b2d29(0x15b))/0xa*(parseInt(_0x1b2d29(0x150))/0xb);if(_0x277631===_0xae6a1c)break;else _0xaa499c['push'](_0xaa499c['shift']());}catch(_0x4757ac){_0xaa499c['push'](_0xaa499c['shift']());}}}(_0x4785,0x3ce77));function _0x4785(){const _0x39610a=['fs/promises','47344OUTgxE','apply','14450uCnOSp','throw','stat','BaseFileSizeRetriever','494qsjFFm','value','done','4403295jxbhlT','LocalFileSizeRetriever','2599424MXkpwF','109501YObhFj','execute','__awaiter','1000370CxtLPE','then','5225GfxREe','81CEptuE','__esModule','defineProperty','457ZJDFlI','size','next','12NyNIBE'];_0x4785=function(){return _0x39610a;};return _0x4785();}var __awaiter=this&&this[_0x138ea1(0x14d)]||function(_0xb26e25,_0x1ae603,_0x4d802e,_0x37d1ea){function _0x3c8b00(_0x29c56d){return _0x29c56d instanceof _0x4d802e?_0x29c56d:new _0x4d802e(function(_0x413e08){_0x413e08(_0x29c56d);});}return new(_0x4d802e||(_0x4d802e=Promise))(function(_0x5ef717,_0x357102){const _0x58c6f6=_0xb705;function _0x40e767(_0x12240e){const _0x2a70b8=_0xb705;try{_0x99ca76(_0x37d1ea[_0x2a70b8(0x156)](_0x12240e));}catch(_0x532a56){_0x357102(_0x532a56);}}function _0x2f23b4(_0x5c4f45){const _0x3fbfbc=_0xb705;try{_0x99ca76(_0x37d1ea[_0x3fbfbc(0x15c)](_0x5c4f45));}catch(_0x1b0d83){_0x357102(_0x1b0d83);}}function _0x99ca76(_0x4a3fc3){const _0x49d852=_0xb705;_0x4a3fc3[_0x49d852(0x161)]?_0x5ef717(_0x4a3fc3[_0x49d852(0x160)]):_0x3c8b00(_0x4a3fc3[_0x49d852(0x160)])[_0x49d852(0x14f)](_0x40e767,_0x2f23b4);}_0x99ca76((_0x37d1ea=_0x37d1ea[_0x58c6f6(0x15a)](_0xb26e25,_0x1ae603||[]))[_0x58c6f6(0x156)]());});};Object[_0x138ea1(0x153)](exports,_0x138ea1(0x152),{'value':!![]}),exports['LocalFileSizeRetriever']=void 0x0;function _0xb705(_0x5cf3a3,_0xf075b){_0x5cf3a3=_0x5cf3a3-0x148;const _0x478590=_0x4785();let _0xb705cf=_0x478590[_0x5cf3a3];return _0xb705cf;}const _1=require('./'),promises_1=require(_0x138ea1(0x158));class LocalFileSizeRetriever extends _1[_0x138ea1(0x15e)]{[_0x138ea1(0x14c)](_0x2af5d0){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x555070=_0xb705;return(0x0,promises_1[_0x555070(0x15d)])(_0x2af5d0)[_0x555070(0x14f)](_0x5b4058=>_0x5b4058[_0x555070(0x155)])['catch'](()=>null);});}}exports[_0x138ea1(0x149)]=LocalFileSizeRetriever;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function _0x3c42(_0x4e503c,_0x5f374c){_0x4e503c=_0x4e503c-0x1df;var _0x5f236e=_0x5f23();var _0x3c4208=_0x5f236e[_0x4e503c];return _0x3c4208;}var _0x1ae06f=_0x3c42;(function(_0x2f435a,_0x276f24){var _0x48edf2=_0x3c42,_0x4d66b1=_0x2f435a();while(!![]){try{var _0x30763b=-parseInt(_0x48edf2(0x1e0))/0x1*(-parseInt(_0x48edf2(0x1e5))/0x2)+-parseInt(_0x48edf2(0x1f6))/0x3+parseInt(_0x48edf2(0x1f5))/0x4+-parseInt(_0x48edf2(0x1f9))/0x5*(-parseInt(_0x48edf2(0x1e9))/0x6)+parseInt(_0x48edf2(0x1e3))/0x7+parseInt(_0x48edf2(0x1f0))/0x8+-parseInt(_0x48edf2(0x1eb))/0x9*(parseInt(_0x48edf2(0x1ec))/0xa);if(_0x30763b===_0x276f24)break;else _0x4d66b1['push'](_0x4d66b1['shift']());}catch(_0x1cbb21){_0x4d66b1['push'](_0x4d66b1['shift']());}}}(_0x5f23,0x6f9a9));var __createBinding=this&&this[_0x1ae06f(0x1e7)]||(Object[_0x1ae06f(0x1e4)]?function(_0x1562b6,_0x32f690,_0x1643b2,_0x17819b){var _0x4c3248=_0x1ae06f;if(_0x17819b===undefined)_0x17819b=_0x1643b2;var _0x11f177=Object[_0x4c3248(0x1f1)](_0x32f690,_0x1643b2);(!_0x11f177||(_0x4c3248(0x1ea)in _0x11f177?!_0x32f690[_0x4c3248(0x1ed)]:_0x11f177[_0x4c3248(0x1f4)]||_0x11f177[_0x4c3248(0x1f7)]))&&(_0x11f177={'enumerable':!![],'get':function(){return _0x32f690[_0x1643b2];}}),Object[_0x4c3248(0x1f2)](_0x1562b6,_0x17819b,_0x11f177);}:function(_0x5a63c9,_0x434763,_0x59b07c,_0x33f171){if(_0x33f171===undefined)_0x33f171=_0x59b07c;_0x5a63c9[_0x33f171]=_0x434763[_0x59b07c];}),__exportStar=this&&this[_0x1ae06f(0x1e2)]||function(_0x571026,_0x205266){var _0x75c630=_0x1ae06f;for(var _0x4fde37 in _0x571026)if(_0x4fde37!==_0x75c630(0x1df)&&!Object['prototype'][_0x75c630(0x1f8)][_0x75c630(0x1ef)](_0x205266,_0x4fde37))__createBinding(_0x205266,_0x571026,_0x4fde37);};Object[_0x1ae06f(0x1f2)](exports,_0x1ae06f(0x1ed),{'value':!![]}),exports['StorageFactory']=void 0x0,require(_0x1ae06f(0x1e1)),__exportStar(require(_0x1ae06f(0x1f3)),exports),__exportStar(require('./delete'),exports),__exportStar(require('./deploy'),exports),__exportStar(require('./retrieve'),exports);var factory_1=require(_0x1ae06f(0x1ee));Object[_0x1ae06f(0x1f2)](exports,'StorageFactory',{'enumerable':!![],'get':function(){var _0x4b6941=_0x1ae06f;return factory_1[_0x4b6941(0x1e8)];}}),__exportStar(require('./types'),exports),__exportStar(require('./file-size-retriever'),exports),__exportStar(require(_0x1ae06f(0x1e6)),exports),__exportStar(require('./instances'),exports);function _0x5f23(){var _0x32bf4c=['call','2391952aUVFFG','getOwnPropertyDescriptor','defineProperty','./credentials','writable','1046780ejOuCo','1798566abILqS','configurable','hasOwnProperty','10qzgDKl','default','5LnxCXM','./init','__exportStar','3259116neCvRi','create','3922EFeIxa','./copy','__createBinding','StorageFactory','2143038QuPCJf','get','27uNWAXb','2312590FsFjSZ','__esModule','./factory'];_0x5f23=function(){return _0x32bf4c;};return _0x5f23();}
|
package/dist/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x6c9804=_0x3bc1;(function(_0x424a3c,_0xc4cde0){const _0xf411a6=_0x3bc1,_0x1d98b8=_0x424a3c();while(!![]){try{const _0xda067e=-parseInt(_0xf411a6(0x1eb))/0x1+parseInt(_0xf411a6(0x1ed))/0x2*(-parseInt(_0xf411a6(0x1e7))/0x3)+-parseInt(_0xf411a6(0x1e0))/0x4*(-parseInt(_0xf411a6(0x1df))/0x5)+parseInt(_0xf411a6(0x1dd))/0x6+parseInt(_0xf411a6(0x1e6))/0x7*(parseInt(_0xf411a6(0x1ec))/0x8)+-parseInt(_0xf411a6(0x1e3))/0x9*(-parseInt(_0xf411a6(0x1e8))/0xa)+parseInt(_0xf411a6(0x1e2))/0xb*(-parseInt(_0xf411a6(0x1ea))/0xc);if(_0xda067e===_0xc4cde0)break;else _0x1d98b8['push'](_0x1d98b8['shift']());}catch(_0x24cebf){_0x1d98b8['push'](_0x1d98b8['shift']());}}}(_0x272a,0xe1788));function _0x272a(){const _0x52b163=['4hGlBvv','HttpHandler','77geuYTR','12654EuYXmT','NodeHttpHandler','__esModule','5544973CfPTRD','11883sjWFvL','10950fWQdVo','HttpsProxyAgent','4812804GKZTwp','322592ALhrbp','16nPTUOr','510jOlsOK','defineProperty','10123638VpsRds','@smithy/node-http-handler','1262615CIHfbT'];_0x272a=function(){return _0x52b163;};return _0x272a();}Object[_0x6c9804(0x1dc)](exports,_0x6c9804(0x1e5),{'value':!![]}),exports[_0x6c9804(0x1e1)]=void 0x0;const https_proxy_agent_1=require('https-proxy-agent'),node_http_handler_1=require(_0x6c9804(0x1de));class HttpHandler extends node_http_handler_1[_0x6c9804(0x1e4)]{constructor(){const _0x27582c=_0x6c9804;if(process.env.HTTP_PROXY||process.env.HTTPS_PROXY){const _0x33b840=new https_proxy_agent_1[(_0x27582c(0x1e9))](process.env.HTTP_PROXY||process.env.HTTPS_PROXY);super({'httpAgent':_0x33b840,'httpsAgent':_0x33b840});}else super({});}}function _0x3bc1(_0x2415e1,_0x351a02){_0x2415e1=_0x2415e1-0x1dc;const _0x272ae0=_0x272a();let _0x3bc1cb=_0x272ae0[_0x2415e1];return _0x3bc1cb;}exports['HttpHandler']=HttpHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x2bcb01=_0x5c64;(function(_0x2aa3a5,_0x26d972){const _0x55bde6=_0x5c64,_0x15663e=_0x2aa3a5();while(!![]){try{const _0xbd4c5c=-parseInt(_0x55bde6(0x184))/0x1+-parseInt(_0x55bde6(0x194))/0x2*(parseInt(_0x55bde6(0x189))/0x3)+-parseInt(_0x55bde6(0x185))/0x4*(-parseInt(_0x55bde6(0x17d))/0x5)+parseInt(_0x55bde6(0x17c))/0x6*(parseInt(_0x55bde6(0x192))/0x7)+-parseInt(_0x55bde6(0x18e))/0x8+parseInt(_0x55bde6(0x18b))/0x9+-parseInt(_0x55bde6(0x18a))/0xa;if(_0xbd4c5c===_0x26d972)break;else _0x15663e['push'](_0x15663e['shift']());}catch(_0x2d5a3b){_0x15663e['push'](_0x15663e['shift']());}}}(_0x1821,0xe9819));function _0x1821(){const _0x241a04=['credentials','deploy','../copy','__awaiter','../retrieve','AwsS3Retrieve','AwsS3Deploy','AwsS3Delete','defineProperty','throw','30LifMDL','33035OoHmHL','__esModule','then','BaseStorageInstance','../delete','execute','../utils/aws-s3.utils','257594HMXGVg','912VtFrtZ','AwsS3Utils','AwsS3StorageInstance','s3Client','885xzclZk','13305290TlTkMX','4340988eBlXtM','copy','retrieve','907392KOdXmb','createS3Client','done','next','1698536rlLVYP','value','3688vIGpbF','apply'];_0x1821=function(){return _0x241a04;};return _0x1821();}function _0x5c64(_0x4a7c72,_0x5ce6dd){_0x4a7c72=_0x4a7c72-0x177;const _0x182104=_0x1821();let _0x5c64e8=_0x182104[_0x4a7c72];return _0x5c64e8;}var __awaiter=this&&this[_0x2bcb01(0x199)]||function(_0x52e465,_0x2ce916,_0x463856,_0x22492a){function _0x3f9b7f(_0x4e065d){return _0x4e065d instanceof _0x463856?_0x4e065d:new _0x463856(function(_0x106c5b){_0x106c5b(_0x4e065d);});}return new(_0x463856||(_0x463856=Promise))(function(_0x91d667,_0x5d4dc8){const _0x44b10e=_0x5c64;function _0x2e099a(_0x4fcd5c){try{_0x4f1406(_0x22492a['next'](_0x4fcd5c));}catch(_0x24fbfd){_0x5d4dc8(_0x24fbfd);}}function _0x3801eb(_0x5905de){const _0x265269=_0x5c64;try{_0x4f1406(_0x22492a[_0x265269(0x17b)](_0x5905de));}catch(_0x205ab8){_0x5d4dc8(_0x205ab8);}}function _0x4f1406(_0x20ab76){const _0x40f09e=_0x5c64;_0x20ab76[_0x40f09e(0x190)]?_0x91d667(_0x20ab76['value']):_0x3f9b7f(_0x20ab76[_0x40f09e(0x193)])[_0x40f09e(0x17f)](_0x2e099a,_0x3801eb);}_0x4f1406((_0x22492a=_0x22492a[_0x44b10e(0x195)](_0x52e465,_0x2ce916||[]))[_0x44b10e(0x191)]());});};Object[_0x2bcb01(0x17a)](exports,_0x2bcb01(0x17e),{'value':!![]}),exports[_0x2bcb01(0x187)]=void 0x0;const base_storage_instance_1=require('./base.storage-instance'),aws_s3_utils_1=require(_0x2bcb01(0x183)),retrieve_1=require(_0x2bcb01(0x19a)),deploy_1=require('../deploy'),copy_1=require(_0x2bcb01(0x198)),delete_1=require(_0x2bcb01(0x181));class AwsS3StorageInstance extends base_storage_instance_1[_0x2bcb01(0x180)]{constructor({credentials:_0x1c530a,middlewareStack:_0x49579d}){const _0x1e464e=_0x2bcb01;super({'credentials':_0x1c530a}),this[_0x1e464e(0x188)]=aws_s3_utils_1[_0x1e464e(0x186)][_0x1e464e(0x18f)](_0x1c530a,_0x49579d);}[_0x2bcb01(0x18d)]({path:_0x139e5a,restoreType:_0x35c287,cachePath:_0x323a41}){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x195a95=_0x5c64,_0x2b4482=new retrieve_1[(_0x195a95(0x177))](this[_0x195a95(0x196)],_0x139e5a,_0x35c287,_0x323a41,undefined,this[_0x195a95(0x188)]);return yield _0x2b4482['waitUntilRetrieveDone'](),_0x2b4482[_0x195a95(0x182)]();});}[_0x2bcb01(0x197)]({filePath:_0x23cf6e,file:_0x3a743d,storageClass:_0x46fdac}){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x4c7cb2=_0x5c64,_0x55770c=new deploy_1[(_0x4c7cb2(0x178))](this[_0x4c7cb2(0x196)],_0x46fdac,undefined,this[_0x4c7cb2(0x188)]);yield _0x55770c[_0x4c7cb2(0x182)](_0x3a743d,_0x23cf6e);});}[_0x2bcb01(0x18c)]({sourcePath:_0x5a1d03,destinationPath:_0x10f3d1}){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x34f489=_0x5c64,_0x3ea054=new copy_1['AwsS3Copy'](this[_0x34f489(0x196)],this[_0x34f489(0x188)]);yield _0x3ea054['execute'](_0x5a1d03,_0x10f3d1);});}['delete']({path:_0x54ea11}){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x542e2d=_0x5c64,_0x3c0846=new delete_1[(_0x542e2d(0x179))](this[_0x542e2d(0x196)],undefined,this[_0x542e2d(0x188)]);yield _0x3c0846[_0x542e2d(0x182)](_0x54ea11);});}}exports['AwsS3StorageInstance']=AwsS3StorageInstance;
|
|
@@ -7,21 +7,21 @@ import { Readable } from 'stream';
|
|
|
7
7
|
export interface BaseStorageInstanceCreationOptions<T extends BaseCredentials = BaseCredentials> {
|
|
8
8
|
credentials: T;
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export type RetrieveOptions = {
|
|
11
11
|
path: string;
|
|
12
12
|
restoreType?: Tier;
|
|
13
13
|
cachePath?: string;
|
|
14
14
|
};
|
|
15
|
-
export
|
|
15
|
+
export type DeployOptions = {
|
|
16
16
|
filePath: string;
|
|
17
17
|
file: Buffer | Readable;
|
|
18
18
|
storageClass?: StorageClass;
|
|
19
19
|
};
|
|
20
|
-
export
|
|
20
|
+
export type CopyOptions = {
|
|
21
21
|
sourcePath: string;
|
|
22
22
|
destinationPath: string;
|
|
23
23
|
};
|
|
24
|
-
export
|
|
24
|
+
export type DeleteOptions = {
|
|
25
25
|
path: string;
|
|
26
26
|
};
|
|
27
27
|
export declare abstract class BaseStorageInstance<T extends BaseCredentials = BaseCredentials> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x3850d0=_0x611f;(function(_0x36b383,_0x283832){var _0x4ad796=_0x611f,_0x103f60=_0x36b383();while(!![]){try{var _0x5a8e85=-parseInt(_0x4ad796(0xbc))/0x1+-parseInt(_0x4ad796(0xb3))/0x2*(-parseInt(_0x4ad796(0xbf))/0x3)+parseInt(_0x4ad796(0xb6))/0x4*(-parseInt(_0x4ad796(0xbe))/0x5)+parseInt(_0x4ad796(0xb9))/0x6+-parseInt(_0x4ad796(0xba))/0x7*(-parseInt(_0x4ad796(0xb5))/0x8)+parseInt(_0x4ad796(0xb1))/0x9*(-parseInt(_0x4ad796(0xb7))/0xa)+parseInt(_0x4ad796(0xbd))/0xb;if(_0x5a8e85===_0x283832)break;else _0x103f60['push'](_0x103f60['shift']());}catch(_0x46c526){_0x103f60['push'](_0x103f60['shift']());}}}(_0xec5d,0xd347e));Object[_0x3850d0(0xbb)](exports,_0x3850d0(0xb8),{'value':!![]}),exports['BaseStorageInstance']=void 0x0;function _0xec5d(){var _0xdeee23=['42JKVqzV','defineProperty','575119fucDLh','6502386HcDWyO','5ydKBvX','3zvnMsQ','18SiZmmi','credentials','2571406qSJbKR','BaseStorageInstance','1446448gTaila','1497832tDAoAP','8050970BUegca','__esModule','2781072AxSXZx'];_0xec5d=function(){return _0xdeee23;};return _0xec5d();}function _0x611f(_0x120d50,_0x53cd2e){_0x120d50=_0x120d50-0xb1;var _0xec5da7=_0xec5d();var _0x611f03=_0xec5da7[_0x120d50];return _0x611f03;}class BaseStorageInstance{constructor({credentials:_0x5eaa5a}){var _0x9d6868=_0x3850d0;this[_0x9d6868(0xb2)]=_0x5eaa5a;}}exports[_0x3850d0(0xb4)]=BaseStorageInstance;
|
package/dist/instances/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function _0x3d34(_0x161014,_0x59ae8b){_0x161014=_0x161014-0x1e7;var _0x51c26c=_0x51c2();var _0x3d3457=_0x51c26c[_0x161014];return _0x3d3457;}function _0x51c2(){var _0x28ac70=['BaseStorageInstance','defineProperty','4239753oqhOrl','432wwdJgj','LocalStorageInstance','2606634HHJQJO','__esModule','./local.storage-instance','./base.storage-instance','4tpQcBJ','./aws-s3.storage-instance','87479zGLqoF','439639qZaicU','6020862OxyKsQ','10656340LnJByD','8371690jkLPHk','6qqwDed','AwsS3StorageInstance'];_0x51c2=function(){return _0x28ac70;};return _0x51c2();}var _0x2f638a=_0x3d34;(function(_0xce3dbd,_0x18bcd4){var _0x272e47=_0x3d34,_0x279ba1=_0xce3dbd();while(!![]){try{var _0x13da3e=parseInt(_0x272e47(0x1f2))/0x1*(-parseInt(_0x272e47(0x1f6))/0x2)+parseInt(_0x272e47(0x1e8))/0x3+-parseInt(_0x272e47(0x1ef))/0x4*(parseInt(_0x272e47(0x1f5))/0x5)+parseInt(_0x272e47(0x1f3))/0x6+-parseInt(_0x272e47(0x1f1))/0x7*(-parseInt(_0x272e47(0x1e9))/0x8)+-parseInt(_0x272e47(0x1eb))/0x9+parseInt(_0x272e47(0x1f4))/0xa;if(_0x13da3e===_0x18bcd4)break;else _0x279ba1['push'](_0x279ba1['shift']());}catch(_0x706628){_0x279ba1['push'](_0x279ba1['shift']());}}}(_0x51c2,0xd574f));Object[_0x2f638a(0x1e7)](exports,_0x2f638a(0x1ec),{'value':!![]}),exports[_0x2f638a(0x1ea)]=exports['AwsS3StorageInstance']=exports[_0x2f638a(0x1f8)]=void 0x0;var base_storage_instance_1=require(_0x2f638a(0x1ee));Object[_0x2f638a(0x1e7)](exports,_0x2f638a(0x1f8),{'enumerable':!![],'get':function(){var _0x4339c3=_0x2f638a;return base_storage_instance_1[_0x4339c3(0x1f8)];}});var aws_s3_storage_instance_1=require(_0x2f638a(0x1f0));Object[_0x2f638a(0x1e7)](exports,_0x2f638a(0x1f7),{'enumerable':!![],'get':function(){var _0x49a0d6=_0x2f638a;return aws_s3_storage_instance_1[_0x49a0d6(0x1f7)];}});var local_storage_instance_1=require(_0x2f638a(0x1ed));Object[_0x2f638a(0x1e7)](exports,'LocalStorageInstance',{'enumerable':!![],'get':function(){var _0xf9f485=_0x2f638a;return local_storage_instance_1[_0xf9f485(0x1ea)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x158cb7=_0x5045;(function(_0x3ad712,_0x4a59b5){const _0x4d0083=_0x5045,_0x30a8d1=_0x3ad712();while(!![]){try{const _0x8327b8=-parseInt(_0x4d0083(0x1dd))/0x1+-parseInt(_0x4d0083(0x1d1))/0x2*(-parseInt(_0x4d0083(0x1d9))/0x3)+parseInt(_0x4d0083(0x1d5))/0x4+-parseInt(_0x4d0083(0x1e9))/0x5*(parseInt(_0x4d0083(0x1d6))/0x6)+-parseInt(_0x4d0083(0x1eb))/0x7+-parseInt(_0x4d0083(0x1ec))/0x8*(-parseInt(_0x4d0083(0x1ea))/0x9)+parseInt(_0x4d0083(0x1d7))/0xa;if(_0x8327b8===_0x4a59b5)break;else _0x30a8d1['push'](_0x30a8d1['shift']());}catch(_0x5995f2){_0x30a8d1['push'](_0x30a8d1['shift']());}}}(_0x2a0c,0xb8b2e));function _0x5045(_0x54ba0a,_0x471087){_0x54ba0a=_0x54ba0a-0x1cd;const _0x2a0c56=_0x2a0c();let _0x504530=_0x2a0c56[_0x54ba0a];return _0x504530;}var __awaiter=this&&this[_0x158cb7(0x1de)]||function(_0x481970,_0xc58196,_0x5c3d01,_0x34d983){function _0x44595a(_0x2f72ee){return _0x2f72ee instanceof _0x5c3d01?_0x2f72ee:new _0x5c3d01(function(_0x1a78bc){_0x1a78bc(_0x2f72ee);});}return new(_0x5c3d01||(_0x5c3d01=Promise))(function(_0x320180,_0x2df45c){const _0x516515=_0x5045;function _0x4c4bf1(_0x43728e){const _0x42f3a7=_0x5045;try{_0x4f0f83(_0x34d983[_0x42f3a7(0x1db)](_0x43728e));}catch(_0xaa4f23){_0x2df45c(_0xaa4f23);}}function _0x3eee2e(_0x2f9d8a){const _0x265ef9=_0x5045;try{_0x4f0f83(_0x34d983[_0x265ef9(0x1e5)](_0x2f9d8a));}catch(_0x10b489){_0x2df45c(_0x10b489);}}function _0x4f0f83(_0x2c4420){const _0x5a6ad6=_0x5045;_0x2c4420[_0x5a6ad6(0x1d3)]?_0x320180(_0x2c4420[_0x5a6ad6(0x1e6)]):_0x44595a(_0x2c4420[_0x5a6ad6(0x1e6)])['then'](_0x4c4bf1,_0x3eee2e);}_0x4f0f83((_0x34d983=_0x34d983[_0x516515(0x1df)](_0x481970,_0xc58196||[]))[_0x516515(0x1db)]());});};Object[_0x158cb7(0x1d0)](exports,_0x158cb7(0x1e3),{'value':!![]}),exports['LocalStorageInstance']=void 0x0;const base_storage_instance_1=require(_0x158cb7(0x1e4)),retrieve_1=require(_0x158cb7(0x1cf)),deploy_1=require(_0x158cb7(0x1da)),copy_1=require(_0x158cb7(0x1d2)),delete_1=require(_0x158cb7(0x1e0));class LocalStorageInstance extends base_storage_instance_1['BaseStorageInstance']{[_0x158cb7(0x1ed)]({path:_0x455519}){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x41a4a5=_0x5045,_0x23d64c=new retrieve_1[(_0x41a4a5(0x1e1))](this[_0x41a4a5(0x1d8)],_0x455519);return yield _0x23d64c['waitUntilRetrieveDone'](),_0x23d64c[_0x41a4a5(0x1ee)]();});}[_0x158cb7(0x1d4)]({filePath:_0x34a4cb,file:_0x2ab4d7}){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x430eda=_0x5045,_0x2f646c=new deploy_1[(_0x430eda(0x1e7))](this['credentials']);yield _0x2f646c[_0x430eda(0x1ee)](_0x2ab4d7,_0x34a4cb);});}[_0x158cb7(0x1dc)]({sourcePath:_0x2c2c79,destinationPath:_0x723c27}){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2540dc=_0x5045,_0x4b5a2d=new copy_1[(_0x2540dc(0x1e8))](this[_0x2540dc(0x1d8)]);yield _0x4b5a2d[_0x2540dc(0x1ee)](_0x2c2c79,_0x723c27);});}[_0x158cb7(0x1e2)]({path:_0x46ae69}){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1bf3ff=_0x5045,_0x4a786f=new delete_1[(_0x1bf3ff(0x1cd))](this[_0x1bf3ff(0x1d8)]);yield _0x4a786f['execute'](_0x46ae69);});}}function _0x2a0c(){const _0x5929ce=['5znLkIk','214128dmHQOL','2985185ZXebIM','264OaUwHl','retrieve','execute','LocalDelete','LocalStorageInstance','../retrieve','defineProperty','2dwdRiQ','../copy','done','deploy','38532iyjeQG','5183058ayDisJ','9489980jwBJhM','credentials','1420968zKZpLU','../deploy','next','copy','170599DkXUqh','__awaiter','apply','../delete','LocalRetrieve','delete','__esModule','./base.storage-instance','throw','value','LocalDeploy','LocalCopy'];_0x2a0c=function(){return _0x5929ce;};return _0x2a0c();}exports[_0x158cb7(0x1ce)]=LocalStorageInstance;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { ListObjectsCommandOutput } from '@aws-sdk/client-s3';
|
|
3
3
|
import { Readable } from 'stream';
|
|
4
4
|
import { CentralDirectory } from 'unzipper';
|
|
5
|
-
export
|
|
5
|
+
export type AwsS3ImportHelperOptions = {
|
|
6
6
|
basePrefix?: string;
|
|
7
7
|
bucketName: string;
|
|
8
8
|
region: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3c7996=_0x2671;function _0x2671(_0x444b5d,_0x5bd79b){_0x444b5d=_0x444b5d-0x12f;const _0x53c9f7=_0x53c9();let _0x267175=_0x53c9f7[_0x444b5d];return _0x267175;}(function(_0x41164e,_0xeb62ca){const _0x2b9833=_0x2671,_0x37fe20=_0x41164e();while(!![]){try{const _0x4fe57d=-parseInt(_0x2b9833(0x134))/0x1*(parseInt(_0x2b9833(0x154))/0x2)+parseInt(_0x2b9833(0x147))/0x3+parseInt(_0x2b9833(0x13e))/0x4+parseInt(_0x2b9833(0x139))/0x5*(-parseInt(_0x2b9833(0x140))/0x6)+parseInt(_0x2b9833(0x159))/0x7*(-parseInt(_0x2b9833(0x155))/0x8)+-parseInt(_0x2b9833(0x149))/0x9+parseInt(_0x2b9833(0x14a))/0xa*(parseInt(_0x2b9833(0x14d))/0xb);if(_0x4fe57d===_0xeb62ca)break;else _0x37fe20['push'](_0x37fe20['shift']());}catch(_0x25561d){_0x37fe20['push'](_0x37fe20['shift']());}}}(_0x53c9,0x3c01c));var __awaiter=this&&this[_0x3c7996(0x15c)]||function(_0x35314e,_0x18d0d2,_0x5b0c1a,_0x4eaa9e){function _0x3005a1(_0x47b401){return _0x47b401 instanceof _0x5b0c1a?_0x47b401:new _0x5b0c1a(function(_0x409681){_0x409681(_0x47b401);});}return new(_0x5b0c1a||(_0x5b0c1a=Promise))(function(_0xe87de1,_0x292c09){const _0xb0297b=_0x2671;function _0x4e7628(_0x487910){const _0x5441fd=_0x2671;try{_0x41fd67(_0x4eaa9e[_0x5441fd(0x15d)](_0x487910));}catch(_0x11fd03){_0x292c09(_0x11fd03);}}function _0x38e297(_0x2c5648){const _0x7dc9bc=_0x2671;try{_0x41fd67(_0x4eaa9e[_0x7dc9bc(0x145)](_0x2c5648));}catch(_0x5e032b){_0x292c09(_0x5e032b);}}function _0x41fd67(_0x4b2b9d){const _0x5c8742=_0x2671;_0x4b2b9d[_0x5c8742(0x152)]?_0xe87de1(_0x4b2b9d[_0x5c8742(0x138)]):_0x3005a1(_0x4b2b9d[_0x5c8742(0x138)])[_0x5c8742(0x14e)](_0x4e7628,_0x38e297);}_0x41fd67((_0x4eaa9e=_0x4eaa9e[_0xb0297b(0x161)](_0x35314e,_0x18d0d2||[]))[_0xb0297b(0x15d)]());});},__importDefault=this&&this[_0x3c7996(0x15a)]||function(_0x2e3275){const _0x31ff62=_0x3c7996;return _0x2e3275&&_0x2e3275[_0x31ff62(0x131)]?_0x2e3275:{'default':_0x2e3275};};Object[_0x3c7996(0x142)](exports,_0x3c7996(0x131),{'value':!![]}),exports[_0x3c7996(0x137)]=void 0x0;const init_1=require(_0x3c7996(0x12f)),client_s3_1=require(_0x3c7996(0x160)),path_1=__importDefault(require(_0x3c7996(0x136))),stream_1=require(_0x3c7996(0x148)),unzipper_1=__importDefault(require(_0x3c7996(0x13d)));function _0x53c9(){const _0x44ee76=['@aws-sdk/client-s3','apply','getOutput','../init','getZipFileMeta','__esModule','HttpHandler','join','33931OlFsAV','send','path','AwsS3ImportHelper','value','5IhqIjg','basePrefix','filter','push','unzipper','1582208uerCHP','message','2793762HwQFFg','HeadBucketCommand','defineProperty','Cannot\x20get\x20stream\x20for\x20a\x20file:\x20','Body','throw','bucketName','851697mTokBw','stream','1422324hWWnye','2145980EvTxbz','S3Client','s3Client','44JjQZLy','then','\x27\x20from\x20S3:\x0a','Failed\x20to\x20validate\x20storage\x20credentials.\x20Raw\x20error:\x20','Error\x20retrieving\x20a\x20file\x20with\x20key\x20\x27','done','validateAccess','18TANlpR','414872nvdeLY','fetchKeys','default','ListObjectsV2Command','49DNTUVk','__importDefault','map','__awaiter','next','Key','Contents'];_0x53c9=function(){return _0x44ee76;};return _0x53c9();}class AwsS3ImportHelper{constructor({basePrefix:_0x11a8f2,bucketName:_0x35c02e,region:_0x5c55ec,credentials:_0x5635c6}){const _0x55f781=_0x3c7996;this['basePrefix']=_0x11a8f2!==null&&_0x11a8f2!==void 0x0?_0x11a8f2:'',this['bucketName']=_0x35c02e,this[_0x55f781(0x14c)]=new client_s3_1[(_0x55f781(0x14b))]({'region':_0x5c55ec,'credentials':_0x5635c6,'requestHandler':new init_1[(_0x55f781(0x132))]()});}['getOutput'](_0x5e6254){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1d542b=_0x2671;try{const _0x546e93=new client_s3_1['GetObjectCommand']({'Bucket':this[_0x1d542b(0x146)],'Key':_0x5e6254});return yield this[_0x1d542b(0x14c)][_0x1d542b(0x135)](_0x546e93);}catch(_0x3b284c){throw new Error(_0x1d542b(0x151)+_0x5e6254+_0x1d542b(0x14f)+_0x3b284c[_0x1d542b(0x13f)]);}});}['ls'](_0x4cb2f4){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2bb7f0=_0x2671,{prefix:_0x436dab,delimiter:_0x1cc8a2}=_0x4cb2f4!==null&&_0x4cb2f4!==void 0x0?_0x4cb2f4:{},_0xb10a35=path_1[_0x2bb7f0(0x157)]['join'](this[_0x2bb7f0(0x13a)],_0x436dab!==null&&_0x436dab!==void 0x0?_0x436dab:''),_0xfab555=new client_s3_1['ListObjectsCommand']({'Prefix':_0xb10a35,'Bucket':this['bucketName'],'Delimiter':_0x1cc8a2});return this[_0x2bb7f0(0x14c)][_0x2bb7f0(0x135)](_0xfab555);});}[_0x3c7996(0x156)](_0x4759f9){var _0x3bc356,_0x331912;return __awaiter(this,void 0x0,void 0x0,function*(){const _0xd37b5f=_0x2671,{prefix:_0x259d6d,delimiter:_0x4df69e}=_0x4759f9!==null&&_0x4759f9!==void 0x0?_0x4759f9:{},_0x2fbb6d=path_1['default'][_0xd37b5f(0x133)](this[_0xd37b5f(0x13a)],_0x259d6d!==null&&_0x259d6d!==void 0x0?_0x259d6d:''),_0x3b284d=[];let _0x3cdfe0;do{const _0x220576={'Bucket':this['bucketName'],'Prefix':_0x2fbb6d,'Delimiter':_0x4df69e,'ContinuationToken':_0x3cdfe0},_0x43ab4f=yield this['s3Client'][_0xd37b5f(0x135)](new client_s3_1[(_0xd37b5f(0x158))](_0x220576)),_0x5eba02=(_0x331912=(_0x3bc356=_0x43ab4f[_0xd37b5f(0x15f)])===null||_0x3bc356===void 0x0?void 0x0:_0x3bc356[_0xd37b5f(0x15b)](_0x3d65bb=>_0x3d65bb[_0xd37b5f(0x15e)])[_0xd37b5f(0x13b)](Boolean))!==null&&_0x331912!==void 0x0?_0x331912:[];_0x3b284d[_0xd37b5f(0x13c)](..._0x5eba02),_0x3cdfe0=_0x43ab4f['NextContinuationToken'];}while(_0x3cdfe0);return _0x3b284d;});}[_0x3c7996(0x148)](_0x1c5b9a){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x50c7be=_0x2671,_0x9c119=yield this[_0x50c7be(0x162)](_0x1c5b9a);if(_0x9c119[_0x50c7be(0x144)]instanceof stream_1['Readable'])return _0x9c119[_0x50c7be(0x144)];throw new Error(_0x50c7be(0x143)+_0x1c5b9a);});}[_0x3c7996(0x130)](_0x2923e8){const _0x3cb42c=_0x3c7996;return unzipper_1[_0x3cb42c(0x157)]['Open']['s3_v3'](this[_0x3cb42c(0x14c)],{'Bucket':this[_0x3cb42c(0x146)],'Key':_0x2923e8});}[_0x3c7996(0x153)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x5b3a05=_0x2671;try{const _0x58b415=new client_s3_1[(_0x5b3a05(0x141))]({'Bucket':this[_0x5b3a05(0x146)]});yield this[_0x5b3a05(0x14c)][_0x5b3a05(0x135)](_0x58b415);}catch(_0x468173){throw new Error(_0x5b3a05(0x150)+_0x468173[_0x5b3a05(0x13f)]);}});}}exports['AwsS3ImportHelper']=AwsS3ImportHelper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x34a7bc=_0x5ae5;(function(_0x35b8b4,_0x3ce8c9){const _0x4e9203=_0x5ae5,_0x1bd8af=_0x35b8b4();while(!![]){try{const _0x449702=-parseInt(_0x4e9203(0x18a))/0x1+-parseInt(_0x4e9203(0x178))/0x2*(parseInt(_0x4e9203(0x18b))/0x3)+-parseInt(_0x4e9203(0x192))/0x4+-parseInt(_0x4e9203(0x14e))/0x5*(parseInt(_0x4e9203(0x166))/0x6)+-parseInt(_0x4e9203(0x15f))/0x7*(parseInt(_0x4e9203(0x17b))/0x8)+-parseInt(_0x4e9203(0x16d))/0x9*(parseInt(_0x4e9203(0x17a))/0xa)+parseInt(_0x4e9203(0x172))/0xb*(parseInt(_0x4e9203(0x159))/0xc);if(_0x449702===_0x3ce8c9)break;else _0x1bd8af['push'](_0x1bd8af['shift']());}catch(_0x523978){_0x1bd8af['push'](_0x1bd8af['shift']());}}}(_0x37a4,0x3821f));var __awaiter=this&&this['__awaiter']||function(_0x402527,_0x150326,_0x153a68,_0x249919){function _0x37321c(_0x5d11ae){return _0x5d11ae instanceof _0x153a68?_0x5d11ae:new _0x153a68(function(_0x18684a){_0x18684a(_0x5d11ae);});}return new(_0x153a68||(_0x153a68=Promise))(function(_0x4bbaa8,_0x4430cc){const _0xe0fad6=_0x5ae5;function _0x416cff(_0x2a3baf){try{_0xce10f5(_0x249919['next'](_0x2a3baf));}catch(_0x493bb2){_0x4430cc(_0x493bb2);}}function _0x3d894b(_0x4f9aae){try{_0xce10f5(_0x249919['throw'](_0x4f9aae));}catch(_0xc5df28){_0x4430cc(_0xc5df28);}}function _0xce10f5(_0x39dddd){const _0x32ee4d=_0x5ae5;_0x39dddd[_0x32ee4d(0x15c)]?_0x4bbaa8(_0x39dddd['value']):_0x37321c(_0x39dddd[_0x32ee4d(0x180)])[_0x32ee4d(0x153)](_0x416cff,_0x3d894b);}_0xce10f5((_0x249919=_0x249919['apply'](_0x402527,_0x150326||[]))[_0xe0fad6(0x151)]());});},__importDefault=this&&this['__importDefault']||function(_0x238c93){const _0x5ed09e=_0x5ae5;return _0x238c93&&_0x238c93[_0x5ed09e(0x160)]?_0x238c93:{'default':_0x238c93};};Object[_0x34a7bc(0x182)](exports,_0x34a7bc(0x160),{'value':!![]}),exports[_0x34a7bc(0x174)]=void 0x0;const path_1=__importDefault(require('path')),promises_1=require(_0x34a7bc(0x16a)),aws_s3_utils_1=require(_0x34a7bc(0x17c)),_1=require('./'),aws_types_1=require(_0x34a7bc(0x168)),retrieve_status_enum_1=require('../types/retrieve-status.enum'),stream_1=require(_0x34a7bc(0x195)),client_s3_1=require(_0x34a7bc(0x176)),cache_utils_1=require(_0x34a7bc(0x189));class AwsS3Retrieve extends _1[_0x34a7bc(0x165)]{constructor(_0x4508f5,_0x50be28,_0x40916f,_0x3e0c6d,_0x53fbeb,_0x28cf2e){const _0x3d8cf5=_0x34a7bc,_0x2cfe98=_0x50be28[_0x3d8cf5(0x199)](path_1[_0x3d8cf5(0x188)][_0x3d8cf5(0x17e)])[_0x3d8cf5(0x169)](path_1[_0x3d8cf5(0x188)][_0x3d8cf5(0x183)]['sep']);super(_0x4508f5,_0x2cfe98),this[_0x3d8cf5(0x167)]=_0x40916f,this[_0x3d8cf5(0x181)]=_0x3e0c6d,this['CHECK_RESTORED_TIMEOUT']=0x7530,this[_0x3d8cf5(0x170)]=0x3e8,this[_0x3d8cf5(0x14f)]=[],this[_0x3d8cf5(0x190)]=_0x28cf2e||aws_s3_utils_1['AwsS3Utils'][_0x3d8cf5(0x162)](_0x4508f5,_0x53fbeb);}[_0x34a7bc(0x156)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x40ba2c=_0x5ae5;this[_0x40ba2c(0x171)]===retrieve_status_enum_1[_0x40ba2c(0x198)][_0x40ba2c(0x157)]&&(yield this[_0x40ba2c(0x15b)](),yield this[_0x40ba2c(0x156)]());switch(this[_0x40ba2c(0x171)]){case retrieve_status_enum_1[_0x40ba2c(0x198)][_0x40ba2c(0x16b)]:yield(0x0,promises_1[_0x40ba2c(0x194)])(this['RETRIEVE_STATUS_CHECK_TIMEOUT']),yield this[_0x40ba2c(0x156)]();break;case retrieve_status_enum_1['RetrieveStatus'][_0x40ba2c(0x184)]:throw new Error(this[_0x40ba2c(0x193)]);}});}[_0x34a7bc(0x164)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x32582c=_0x5ae5;if(this[_0x32582c(0x171)]===retrieve_status_enum_1['RetrieveStatus'][_0x32582c(0x16b)])throw new Error('Cannot\x20execute\x20when\x20retrieve\x20in\x20progress.');if(this['isDone']||!this[_0x32582c(0x14f)]['length'])throw new Error('No\x20files\x20left\x20to\x20execute.');const _0xe13022=this['files'][_0x32582c(0x191)]();let _0x200cf8;return!this[_0x32582c(0x181)]?_0x200cf8=yield this[_0x32582c(0x186)](_0xe13022[_0x32582c(0x18e)]):_0x200cf8=yield cache_utils_1['CacheUtils'][_0x32582c(0x196)](yield this['fetchFileBody'](_0xe13022['path']),this[_0x32582c(0x181)]),this['isDone']=!this[_0x32582c(0x14f)][_0x32582c(0x150)],{'path':this['path'][_0x32582c(0x199)](path_1['default'][_0x32582c(0x183)]['sep'])['join'](path_1[_0x32582c(0x188)][_0x32582c(0x17e)]),'content':_0x200cf8};});}[_0x34a7bc(0x154)](_0x48de24){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x47bae0=_0x5ae5,_0x2a8a96=new client_s3_1[(_0x47bae0(0x155))]({'Bucket':this[_0x47bae0(0x19b)][_0x47bae0(0x161)],'Key':_0x48de24}),{StorageClass:_0x129c37,Restore:_0x56ceb5}=yield this[_0x47bae0(0x190)][_0x47bae0(0x197)](_0x2a8a96);return{'StorageClass':_0x129c37,'Restore':_0x56ceb5};});}[_0x34a7bc(0x17f)](_0x5e5e1f){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x55413e=_0x5ae5,_0x1b5d1b=new client_s3_1['RestoreObjectCommand']({'Bucket':this[_0x55413e(0x19b)]['bucketName'],'Key':_0x5e5e1f,'RestoreRequest':{'Days':0x1,'GlacierJobParameters':{'Tier':this[_0x55413e(0x167)]}}});yield this[_0x55413e(0x190)]['send'](_0x1b5d1b);});}[_0x34a7bc(0x186)](_0x5252f5){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1191f7=_0x5ae5,_0x41f65d=new client_s3_1[(_0x1191f7(0x187))]({'Bucket':this[_0x1191f7(0x19b)][_0x1191f7(0x161)],'Key':_0x5252f5,'ResponseContentType':'stream'}),{Body:_0x1135da}=yield this[_0x1191f7(0x190)][_0x1191f7(0x197)](_0x41f65d);if(_0x1135da instanceof stream_1[_0x1191f7(0x16e)])return _0x1135da;throw new Error(_0x1191f7(0x15a));});}[_0x34a7bc(0x15b)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x5859b1=_0x5ae5;yield this[_0x5859b1(0x17d)](),yield this[_0x5859b1(0x163)](),this[_0x5859b1(0x171)]=retrieve_status_enum_1[_0x5859b1(0x198)][_0x5859b1(0x16b)],this[_0x5859b1(0x179)]()[_0x5859b1(0x16f)](_0x2a17cb=>{const _0x3614a6=_0x5859b1;this[_0x3614a6(0x171)]=retrieve_status_enum_1['RetrieveStatus'][_0x3614a6(0x184)],this['errorMessage']=_0x2a17cb[_0x3614a6(0x18f)];});});}['tryRestoreFilesFromCloud'](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x20ed71=_0x5ae5,_0x4ab54a=yield aws_s3_utils_1['AwsS3Utils']['getFilesPaths'](this[_0x20ed71(0x18e)],this[_0x20ed71(0x19b)][_0x20ed71(0x161)],this[_0x20ed71(0x190)]);for(const _0x2cdfd9 of _0x4ab54a){const _0x67caf9=yield this[_0x20ed71(0x154)](_0x2cdfd9);this[_0x20ed71(0x14f)][_0x20ed71(0x15d)]({'path':_0x2cdfd9,'class':_0x67caf9[_0x20ed71(0x177)]||_0x20ed71(0x152),'status':aws_s3_utils_1[_0x20ed71(0x18c)][_0x20ed71(0x175)](_0x67caf9)});}});}[_0x34a7bc(0x163)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x58233c=_0x5ae5,_0x277fe7=this[_0x58233c(0x14f)][_0x58233c(0x19a)](_0x39e3ac=>_0x39e3ac['status']===aws_types_1[_0x58233c(0x158)][_0x58233c(0x173)]);for(const _0x40ae57 of _0x277fe7){yield this['restoreFile'](_0x40ae57[_0x58233c(0x18e)]),_0x40ae57[_0x58233c(0x171)]=aws_types_1[_0x58233c(0x158)][_0x58233c(0x185)];}});}[_0x34a7bc(0x18d)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x4e5e87=_0x5ae5,_0x4d77d2=this[_0x4e5e87(0x14f)][_0x4e5e87(0x19a)](_0x5984bf=>_0x5984bf[_0x4e5e87(0x171)]===aws_types_1[_0x4e5e87(0x158)][_0x4e5e87(0x185)]);for(const _0x55c21c of _0x4d77d2){const _0x3c21ca=yield this[_0x4e5e87(0x154)](_0x55c21c[_0x4e5e87(0x18e)]);_0x55c21c[_0x4e5e87(0x171)]=aws_s3_utils_1[_0x4e5e87(0x18c)][_0x4e5e87(0x175)](_0x3c21ca);}});}[_0x34a7bc(0x179)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x4a428a=_0x5ae5,_0x2f7c66=this[_0x4a428a(0x14f)]['some'](_0x4937f3=>_0x4937f3[_0x4a428a(0x171)]===aws_types_1['AwsFileRetrieveStatus'][_0x4a428a(0x185)]);this[_0x4a428a(0x171)]=_0x2f7c66?retrieve_status_enum_1[_0x4a428a(0x198)]['InProgress']:retrieve_status_enum_1[_0x4a428a(0x198)][_0x4a428a(0x16c)],_0x2f7c66&&(yield(0x0,promises_1[_0x4a428a(0x194)])(this[_0x4a428a(0x15e)]),yield this[_0x4a428a(0x18d)](),yield this[_0x4a428a(0x179)]());});}}function _0x5ae5(_0x5e79af,_0x2681c0){_0x5e79af=_0x5e79af-0x14e;const _0x37a416=_0x37a4();let _0x5ae51f=_0x37a416[_0x5e79af];return _0x5ae51f;}exports[_0x34a7bc(0x174)]=AwsS3Retrieve;function _0x37a4(){const _0x298ecc=['972FkxzKp','Body\x20is\x20not\x20supported\x20type','init','done','push','CHECK_RESTORED_TIMEOUT','938jUSzRf','__esModule','bucketName','createS3Client','runRestoreFiles','execute','BaseRetrieve','198SmlDuy','restoreType','../types/aws.types','join','timers/promises','InProgress','Completed','50103SeEEvL','Readable','catch','RETRIEVE_STATUS_CHECK_TIMEOUT','status','229097RdUEQb','NeedRestore','AwsS3Retrieve','extractFileRetrieveStatusFromFileInfo','@aws-sdk/client-s3','StorageClass','75804UUbDdo','checkFilesRetrieveStatus','150YZosNc','16520VdkdYv','../utils/aws-s3.utils','tryRestoreFilesFromCloud','sep','restoreFile','value','cachePath','defineProperty','posix','Exception','Restoring','fetchFileBody','GetObjectCommand','default','../utils/cache.utils','298931mOdbLp','30YniBTz','AwsS3Utils','updateFilesRetrieveStatus','path','message','s3Client','shift','1121076pVGjBu','errorMessage','setTimeout','stream','createCacheFileStream','send','RetrieveStatus','split','filter','credentials','21005ffvtTB','files','length','next','STANDARD','then','fetchFileInfo','HeadObjectCommand','waitUntilRetrieveDone','Uninitialized','AwsFileRetrieveStatus'];_0x37a4=function(){return _0x298ecc;};return _0x37a4();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x53e9f=_0x2bbe;(function(_0x5f7408,_0x22b382){const _0xa9cf35=_0x2bbe,_0x2d5256=_0x5f7408();while(!![]){try{const _0xe9019d=-parseInt(_0xa9cf35(0x202))/0x1*(-parseInt(_0xa9cf35(0x1e7))/0x2)+parseInt(_0xa9cf35(0x1d2))/0x3*(-parseInt(_0xa9cf35(0x206))/0x4)+parseInt(_0xa9cf35(0x1d6))/0x5*(-parseInt(_0xa9cf35(0x1e3))/0x6)+-parseInt(_0xa9cf35(0x1f9))/0x7+-parseInt(_0xa9cf35(0x203))/0x8*(-parseInt(_0xa9cf35(0x1fa))/0x9)+-parseInt(_0xa9cf35(0x1e1))/0xa*(-parseInt(_0xa9cf35(0x1d8))/0xb)+parseInt(_0xa9cf35(0x207))/0xc;if(_0xe9019d===_0x22b382)break;else _0x2d5256['push'](_0x2d5256['shift']());}catch(_0x2fabc4){_0x2d5256['push'](_0x2d5256['shift']());}}}(_0x29ac,0x776b5));function _0x29ac(){const _0x303a17=['12JMulYb','Cannot\x20execute\x20when\x20retrieve\x20in\x20progress.','status','createAzureBlobContainerClient','4QgTBrx','default','RETRIEVE_STATUS_CHECK_TIMEOUT','RetrieveStatus','../types/retrieve-status.enum','BaseRetrieve','pop','getAzureBlobsPaths','cachePath','Uninitialized','execute','InProgress','length','__importDefault','next','setTimeout','AzureUtils','__esModule','5856179hISBNw','373806sZSsLs','timers/promises','posix','stream','containerClient','sep','Completed','getBlobClient','199997Chzkmm','24NFJjsu','errorMessage','../utils/azure.utils','11168ypJcxW','6514428EfyqkJ','then','apply','path','throw','createCacheFileStream','isDone','384pcrjpP','defineProperty','AzureRetrieve','value','771815lByHsB','waitUntilRetrieveDone','165XOYsiR','../utils/cache.utils','Blob\x20type\x20is\x20not\x20supported','No\x20files\x20left\x20to\x20execute.','blobsPaths','done','fetchBlobBody','join','split','616250oezkRz','__awaiter'];_0x29ac=function(){return _0x303a17;};return _0x29ac();}var __awaiter=this&&this[_0x53e9f(0x1e2)]||function(_0x1a1b33,_0x117ba5,_0x4dabfe,_0x4cc64f){function _0x4f1ebe(_0x4f0983){return _0x4f0983 instanceof _0x4dabfe?_0x4f0983:new _0x4dabfe(function(_0x3d8ead){_0x3d8ead(_0x4f0983);});}return new(_0x4dabfe||(_0x4dabfe=Promise))(function(_0x34eeec,_0x3bd063){const _0x51937f=_0x2bbe;function _0x370035(_0x21282c){const _0x3417b1=_0x2bbe;try{_0x2db53e(_0x4cc64f[_0x3417b1(0x1f5)](_0x21282c));}catch(_0x3362e0){_0x3bd063(_0x3362e0);}}function _0x5ee13e(_0x19509d){const _0x19b307=_0x2bbe;try{_0x2db53e(_0x4cc64f[_0x19b307(0x1cf)](_0x19509d));}catch(_0x409356){_0x3bd063(_0x409356);}}function _0x2db53e(_0x2dbf9f){const _0xd3e95e=_0x2bbe;_0x2dbf9f[_0xd3e95e(0x1dd)]?_0x34eeec(_0x2dbf9f[_0xd3e95e(0x1d5)]):_0x4f1ebe(_0x2dbf9f[_0xd3e95e(0x1d5)])[_0xd3e95e(0x1cc)](_0x370035,_0x5ee13e);}_0x2db53e((_0x4cc64f=_0x4cc64f[_0x51937f(0x1cd)](_0x1a1b33,_0x117ba5||[]))['next']());});},__importDefault=this&&this[_0x53e9f(0x1f4)]||function(_0x10f870){const _0x5264d6=_0x53e9f;return _0x10f870&&_0x10f870[_0x5264d6(0x1f8)]?_0x10f870:{'default':_0x10f870};};Object[_0x53e9f(0x1d3)](exports,_0x53e9f(0x1f8),{'value':!![]}),exports[_0x53e9f(0x1d4)]=void 0x0;function _0x2bbe(_0xfc0b61,_0x2c00fe){_0xfc0b61=_0xfc0b61-0x1cc;const _0x29ac63=_0x29ac();let _0x2bbe44=_0x29ac63[_0xfc0b61];return _0x2bbe44;}const path_1=__importDefault(require(_0x53e9f(0x1ce))),promises_1=require(_0x53e9f(0x1fb)),_1=require('./'),retrieve_status_enum_1=require(_0x53e9f(0x1eb)),stream_1=require(_0x53e9f(0x1fd)),azure_utils_1=require(_0x53e9f(0x205)),cache_utils_1=require(_0x53e9f(0x1d9));class AzureRetrieve extends _1[_0x53e9f(0x1ec)]{constructor(_0x548ac8,_0x2af57b,_0x567055){const _0x24b9f5=_0x53e9f,_0x4d0300=_0x2af57b[_0x24b9f5(0x1e0)](path_1[_0x24b9f5(0x1e8)][_0x24b9f5(0x1ff)])[_0x24b9f5(0x1df)](path_1[_0x24b9f5(0x1e8)][_0x24b9f5(0x1fc)][_0x24b9f5(0x1ff)]);super(_0x548ac8,_0x4d0300),this['cachePath']=_0x567055,this[_0x24b9f5(0x1e9)]=0x3e8,this[_0x24b9f5(0x1dc)]=[],this[_0x24b9f5(0x1fe)]=azure_utils_1[_0x24b9f5(0x1f7)][_0x24b9f5(0x1e6)](this['credentials']);}['waitUntilRetrieveDone'](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x38c012=_0x2bbe;this[_0x38c012(0x1e5)]===retrieve_status_enum_1[_0x38c012(0x1ea)][_0x38c012(0x1f0)]&&(this[_0x38c012(0x1dc)]=yield azure_utils_1[_0x38c012(0x1f7)][_0x38c012(0x1ee)](this[_0x38c012(0x1ce)],this[_0x38c012(0x1fe)]),this[_0x38c012(0x1e5)]=retrieve_status_enum_1['RetrieveStatus'][_0x38c012(0x200)],yield this[_0x38c012(0x1d7)]());switch(this[_0x38c012(0x1e5)]){case retrieve_status_enum_1[_0x38c012(0x1ea)][_0x38c012(0x1f2)]:yield(0x0,promises_1[_0x38c012(0x1f6)])(this[_0x38c012(0x1e9)]),yield this['waitUntilRetrieveDone']();break;case retrieve_status_enum_1[_0x38c012(0x1ea)]['Exception']:throw new Error(this[_0x38c012(0x204)]);}});}[_0x53e9f(0x1f1)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x467fd2=_0x2bbe;if(this[_0x467fd2(0x1e5)]===retrieve_status_enum_1['RetrieveStatus'][_0x467fd2(0x1f2)])throw new Error(_0x467fd2(0x1e4));if(this[_0x467fd2(0x1d1)]||!this[_0x467fd2(0x1dc)][_0x467fd2(0x1f3)])throw new Error(_0x467fd2(0x1db));const _0x13c97d=this[_0x467fd2(0x1dc)][_0x467fd2(0x1ed)]();let _0x11e185;return!this['cachePath']?_0x11e185=yield this[_0x467fd2(0x1de)](_0x13c97d):_0x11e185=yield cache_utils_1['CacheUtils'][_0x467fd2(0x1d0)](yield this[_0x467fd2(0x1de)](_0x13c97d),this[_0x467fd2(0x1ef)]),this[_0x467fd2(0x1d1)]=!this['blobsPaths']['length'],{'path':this['path']['split'](path_1[_0x467fd2(0x1e8)][_0x467fd2(0x1fc)][_0x467fd2(0x1ff)])[_0x467fd2(0x1df)](path_1[_0x467fd2(0x1e8)][_0x467fd2(0x1ff)]),'content':_0x11e185};});}['fetchBlobBody'](_0x124e9d){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x458b72=_0x2bbe,_0x5f43d3=this['containerClient'][_0x458b72(0x201)](_0x124e9d),{readableStreamBody:_0x345d15}=yield _0x5f43d3['download']();if(_0x345d15 instanceof stream_1['Readable'])return _0x345d15;throw new Error(_0x458b72(0x1da));});}}exports[_0x53e9f(0x1d4)]=AzureRetrieve;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x145eb3=_0x2f60;(function(_0xa36d3b,_0x1d8699){const _0x9e91b5=_0x2f60,_0x5c89b7=_0xa36d3b();while(!![]){try{const _0x3e95cc=-parseInt(_0x9e91b5(0x104))/0x1*(parseInt(_0x9e91b5(0x113))/0x2)+parseInt(_0x9e91b5(0x107))/0x3*(-parseInt(_0x9e91b5(0x109))/0x4)+parseInt(_0x9e91b5(0x116))/0x5*(parseInt(_0x9e91b5(0x110))/0x6)+parseInt(_0x9e91b5(0x10c))/0x7+parseInt(_0x9e91b5(0x10d))/0x8+parseInt(_0x9e91b5(0x108))/0x9*(parseInt(_0x9e91b5(0x112))/0xa)+parseInt(_0x9e91b5(0x102))/0xb*(-parseInt(_0x9e91b5(0x105))/0xc);if(_0x3e95cc===_0x1d8699)break;else _0x5c89b7['push'](_0x5c89b7['shift']());}catch(_0x30eaec){_0x5c89b7['push'](_0x5c89b7['shift']());}}}(_0x4079,0xe3d0b));function _0x2f60(_0x4e14ff,_0x2c47cb){_0x4e14ff=_0x4e14ff-0x102;const _0x4079f1=_0x4079();let _0x2f60d3=_0x4079f1[_0x4e14ff];return _0x2f60d3;}Object[_0x145eb3(0x103)](exports,_0x145eb3(0x115),{'value':!![]}),exports[_0x145eb3(0x114)]=void 0x0;const retrieve_status_enum_1=require(_0x145eb3(0x10a));class BaseRetrieve{[_0x145eb3(0x10e)](){const _0x484aae=_0x145eb3;return this[_0x484aae(0x117)];}constructor(_0x37321d,_0x534a49){const _0x1c00d1=_0x145eb3;this[_0x1c00d1(0x106)]=_0x37321d,this[_0x1c00d1(0x10b)]=_0x534a49,this[_0x1c00d1(0x117)]=![],this[_0x1c00d1(0x118)]=retrieve_status_enum_1[_0x1c00d1(0x111)][_0x1c00d1(0x10f)];}}function _0x4079(){const _0x4387ad=['path','2527280aAaxRs','12452120blyMKm','getIsDone','Uninitialized','15600YxqtyE','RetrieveStatus','2626060LHXjBp','1646rBVdnc','BaseRetrieve','__esModule','3255pyzbWD','isDone','status','22281985yuJrIV','defineProperty','299ZElZTF','12gWVkTG','credentials','72606eMXEWj','45HGTaUZ','284ddFtQA','../types/retrieve-status.enum'];_0x4079=function(){return _0x4387ad;};return _0x4079();}exports[_0x145eb3(0x114)]=BaseRetrieve;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2ff1de=_0xc473;function _0xc473(_0xe81238,_0x4a8abc){_0xe81238=_0xe81238-0xbb;const _0x51b1e8=_0x51b1();let _0xc473d4=_0x51b1e8[_0xe81238];return _0xc473d4;}(function(_0x200887,_0x4c419c){const _0x4ca5b0=_0xc473,_0xed7665=_0x200887();while(!![]){try{const _0x5602b6=parseInt(_0x4ca5b0(0xbb))/0x1*(parseInt(_0x4ca5b0(0xd9))/0x2)+-parseInt(_0x4ca5b0(0xc0))/0x3*(parseInt(_0x4ca5b0(0xe2))/0x4)+parseInt(_0x4ca5b0(0xd7))/0x5*(-parseInt(_0x4ca5b0(0xc4))/0x6)+-parseInt(_0x4ca5b0(0xc1))/0x7*(parseInt(_0x4ca5b0(0xc8))/0x8)+parseInt(_0x4ca5b0(0xca))/0x9*(-parseInt(_0x4ca5b0(0xc5))/0xa)+-parseInt(_0x4ca5b0(0xd6))/0xb+-parseInt(_0x4ca5b0(0xda))/0xc*(-parseInt(_0x4ca5b0(0xe3))/0xd);if(_0x5602b6===_0x4c419c)break;else _0xed7665['push'](_0xed7665['shift']());}catch(_0x548623){_0xed7665['push'](_0xed7665['shift']());}}}(_0x51b1,0x52712));function _0x51b1(){const _0x38cf86=['next','Contents','length','1322002sYGNsT','104065JsHrVK','defineProperty','42QHzmxg','36384gVqGMk','then','getZipFileMeta','__importDefault','endsWith','@aws-sdk/client-s3','s3Client','./base-helper','660kURhXC','6656zSnBvo','ListObjectsCommand','AwsS3Utils','path','Open','3278NuTnko','apply','../../utils/aws-s3.utils','.zip','throw','3504ZDRUBM','7sUimsm','default','send','156gyCzJm','527970HqDjqe','value','AwsS3Helper','2168872zdtwHv','__esModule','27eOpRDk','join','bucketName','__awaiter','unzipper','BaseHelper','createS3Client','s3_v3','sourcePath'];_0x51b1=function(){return _0x38cf86;};return _0x51b1();}var __awaiter=this&&this[_0x2ff1de(0xcd)]||function(_0x330386,_0x520d57,_0x23a3e8,_0x3d9ab8){function _0x4c3857(_0x9850dd){return _0x9850dd instanceof _0x23a3e8?_0x9850dd:new _0x23a3e8(function(_0x1da32d){_0x1da32d(_0x9850dd);});}return new(_0x23a3e8||(_0x23a3e8=Promise))(function(_0x1b0810,_0x1c9925){const _0x91033b=_0xc473;function _0x2be703(_0x49a1db){try{_0x1eb987(_0x3d9ab8['next'](_0x49a1db));}catch(_0x42c318){_0x1c9925(_0x42c318);}}function _0x25f068(_0x3182d0){const _0x1c0b5c=_0xc473;try{_0x1eb987(_0x3d9ab8[_0x1c0b5c(0xbf)](_0x3182d0));}catch(_0x84ed2a){_0x1c9925(_0x84ed2a);}}function _0x1eb987(_0x449dae){const _0x12830d=_0xc473;_0x449dae['done']?_0x1b0810(_0x449dae[_0x12830d(0xc6)]):_0x4c3857(_0x449dae[_0x12830d(0xc6)])[_0x12830d(0xdb)](_0x2be703,_0x25f068);}_0x1eb987((_0x3d9ab8=_0x3d9ab8[_0x91033b(0xbc)](_0x330386,_0x520d57||[]))[_0x91033b(0xd3)]());});},__importDefault=this&&this[_0x2ff1de(0xdd)]||function(_0x1b12fa){const _0x152364=_0x2ff1de;return _0x1b12fa&&_0x1b12fa[_0x152364(0xc9)]?_0x1b12fa:{'default':_0x1b12fa};};Object[_0x2ff1de(0xd8)](exports,'__esModule',{'value':!![]}),exports['AwsS3Helper']=void 0x0;const base_helper_1=require(_0x2ff1de(0xe1)),path_1=__importDefault(require(_0x2ff1de(0xe6))),client_s3_1=require(_0x2ff1de(0xdf)),unzipper_1=__importDefault(require(_0x2ff1de(0xce))),aws_s3_utils_1=require(_0x2ff1de(0xbd));class AwsS3Helper extends base_helper_1[_0x2ff1de(0xcf)]{constructor(_0x38dc86,_0x31965a){const _0x5b5f05=_0x2ff1de;super(_0x38dc86),this[_0x5b5f05(0xcc)]=_0x31965a['bucketName'],this['s3Client']=aws_s3_utils_1[_0x5b5f05(0xe5)][_0x5b5f05(0xd0)](_0x31965a);}[_0x2ff1de(0xdc)](_0x5f47fc){const _0x4c023a=_0x2ff1de;return unzipper_1[_0x4c023a(0xc2)][_0x4c023a(0xe7)][_0x4c023a(0xd1)](this[_0x4c023a(0xe0)],{'Bucket':this['bucketName'],'Key':_0x5f47fc});}['ls'](_0x3e9fdc){var _0x480965;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x170add=_0xc473,{prefix:_0x5ba969,delimiter:_0x6917a6}=_0x3e9fdc!==null&&_0x3e9fdc!==void 0x0?_0x3e9fdc:{},_0x474839=path_1['default'][_0x170add(0xcb)](this[_0x170add(0xd2)],_0x5ba969!==null&&_0x5ba969!==void 0x0?_0x5ba969:''),_0x12251d=new client_s3_1[(_0x170add(0xe4))]({'Prefix':_0x474839,'Bucket':this[_0x170add(0xcc)],'Delimiter':_0x6917a6}),_0x29a57c=yield this[_0x170add(0xe0)][_0x170add(0xc3)](_0x12251d);if(!((_0x480965=_0x29a57c[_0x170add(0xd4)])===null||_0x480965===void 0x0?void 0x0:_0x480965[_0x170add(0xd5)]))return[];const _0x3d9800=[];for(const {Key:_0x3a9a32}of _0x29a57c[_0x170add(0xd4)]){_0x3a9a32[_0x170add(0xde)](_0x170add(0xbe))&&_0x3d9800['push'](_0x3a9a32);}return _0x3d9800;});}}exports[_0x2ff1de(0xc7)]=AwsS3Helper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4d5a50=_0x1e0c;(function(_0x389a63,_0x583701){const _0xb916bc=_0x1e0c,_0x811184=_0x389a63();while(!![]){try{const _0x4abda7=-parseInt(_0xb916bc(0xe4))/0x1*(-parseInt(_0xb916bc(0xce))/0x2)+-parseInt(_0xb916bc(0xe6))/0x3+-parseInt(_0xb916bc(0xf5))/0x4*(-parseInt(_0xb916bc(0xe7))/0x5)+-parseInt(_0xb916bc(0xcb))/0x6*(parseInt(_0xb916bc(0xdd))/0x7)+parseInt(_0xb916bc(0xf2))/0x8*(parseInt(_0xb916bc(0xe9))/0x9)+-parseInt(_0xb916bc(0xf3))/0xa+-parseInt(_0xb916bc(0xd9))/0xb*(-parseInt(_0xb916bc(0xee))/0xc);if(_0x4abda7===_0x583701)break;else _0x811184['push'](_0x811184['shift']());}catch(_0x131581){_0x811184['push'](_0x811184['shift']());}}}(_0x427f,0x6076c));var __awaiter=this&&this[_0x4d5a50(0xd0)]||function(_0x5a0576,_0x1760a8,_0x442bdc,_0xd9829b){function _0x2615b5(_0x17b30d){return _0x17b30d instanceof _0x442bdc?_0x17b30d:new _0x442bdc(function(_0x38cd18){_0x38cd18(_0x17b30d);});}return new(_0x442bdc||(_0x442bdc=Promise))(function(_0x412791,_0x521401){const _0x269a07=_0x1e0c;function _0x9f911(_0x478957){const _0x58faab=_0x1e0c;try{_0x3ecc5c(_0xd9829b[_0x58faab(0xeb)](_0x478957));}catch(_0x2993c2){_0x521401(_0x2993c2);}}function _0x3a7e55(_0x4e27f3){const _0x3da561=_0x1e0c;try{_0x3ecc5c(_0xd9829b[_0x3da561(0xd8)](_0x4e27f3));}catch(_0x5981f3){_0x521401(_0x5981f3);}}function _0x3ecc5c(_0xde23bc){const _0xed27ae=_0x1e0c;_0xde23bc[_0xed27ae(0xf8)]?_0x412791(_0xde23bc['value']):_0x2615b5(_0xde23bc[_0xed27ae(0xe8)])[_0xed27ae(0xf1)](_0x9f911,_0x3a7e55);}_0x3ecc5c((_0xd9829b=_0xd9829b[_0x269a07(0xd1)](_0x5a0576,_0x1760a8||[]))[_0x269a07(0xeb)]());});},__importDefault=this&&this[_0x4d5a50(0xcf)]||function(_0x527378){const _0x3498f9=_0x4d5a50;return _0x527378&&_0x527378[_0x3498f9(0xde)]?_0x527378:{'default':_0x527378};};Object[_0x4d5a50(0xcc)](exports,'__esModule',{'value':!![]}),exports['AzureHelper']=void 0x0;const base_helper_1=require(_0x4d5a50(0xed)),unzipper_1=require('unzipper'),storage_blob_1=require(_0x4d5a50(0xc8)),azure_utils_1=require(_0x4d5a50(0xe0)),stream_1=require(_0x4d5a50(0xdb)),https_1=__importDefault(require(_0x4d5a50(0xe2))),https_proxy_agent_1=require(_0x4d5a50(0xdf));function httpsRequest({url:_0x51dfcf,headers:headers={}}){const _0x5ea569=_0x4d5a50,_0x4a69c9=new stream_1[(_0x5ea569(0xd3))](),_0x51c1f4=process.env.HTTPS_PROXY||process.env.HTTP_PROXY,_0x8c1cbc=_0x51c1f4?new https_proxy_agent_1[(_0x5ea569(0xd5))](_0x51c1f4):undefined,_0x28d952=https_1[_0x5ea569(0xea)][_0x5ea569(0xe3)](_0x51dfcf,{'headers':headers,'agent':_0x8c1cbc},_0x446035=>{const _0x9e554a=_0x5ea569;if(_0x446035[_0x9e554a(0xd2)]>=0x12c&&_0x446035[_0x9e554a(0xd2)]<0x190&&_0x446035[_0x9e554a(0xc9)][_0x9e554a(0xda)])return httpsRequest({'url':_0x446035[_0x9e554a(0xc9)][_0x9e554a(0xda)],'headers':headers})[_0x9e554a(0xca)](_0x4a69c9);if(_0x446035['statusCode']>=0x190){_0x4a69c9[_0x9e554a(0xef)](_0x9e554a(0xf6),new Error(_0x9e554a(0xd4)+_0x446035[_0x9e554a(0xd2)]+':\x20'+_0x446035['statusMessage']));return;}_0x4a69c9[_0x9e554a(0xef)](_0x9e554a(0xdc),_0x446035),_0x446035[_0x9e554a(0xca)](_0x4a69c9);})['on'](_0x5ea569(0xf6),_0x3d59cd=>_0x4a69c9['emit'](_0x5ea569(0xf6),_0x3d59cd));return _0x4a69c9[_0x5ea569(0xf7)]=()=>{const _0x18bb36=_0x5ea569;_0x28d952[_0x18bb36(0xd6)](),_0x4a69c9['destroy']();},_0x4a69c9;}function _0x1e0c(_0x21d2d5,_0x2311d1){_0x21d2d5=_0x21d2d5-0xc7;const _0x427f09=_0x427f();let _0x1e0ca9=_0x427f09[_0x21d2d5];return _0x1e0ca9;}class AzureHelper extends base_helper_1['BaseHelper']{constructor(_0x11f82a,_0x49ef78){const _0x5d9636=_0x4d5a50;super(_0x49ef78),this[_0x5d9636(0xe1)]=_0x11f82a,this[_0x5d9636(0xd7)]=azure_utils_1[_0x5d9636(0xec)][_0x5d9636(0xc7)](this[_0x5d9636(0xe1)]);}[_0x4d5a50(0xf4)](_0x3ec5fc){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x375f64=_0x1e0c,_0x2fcdbf=this['containerClient'][_0x375f64(0xfa)](_0x3ec5fc),_0x5bbca6=yield _0x2fcdbf['generateSasUrl']({'permissions':storage_blob_1['BlobSASPermissions'][_0x375f64(0xf0)]('r'),'expiresOn':new Date(Date['now']()+0x258*0x3e8)});return unzipper_1['Open']['url'](httpsRequest,_0x5bbca6);});}['ls'](){const _0x973293=_0x4d5a50;return azure_utils_1[_0x973293(0xec)][_0x973293(0xf9)](this[_0x973293(0xcd)],this[_0x973293(0xd7)]);}}exports[_0x4d5a50(0xe5)]=AzureHelper;function _0x427f(){const _0x2314a2=['createAzureBlobContainerClient','@azure/storage-blob','headers','pipe','306TQTiJn','defineProperty','sourcePath','842bKvYvJ','__importDefault','__awaiter','apply','statusCode','PassThrough','HTTP\x20','HttpsProxyAgent','destroy','containerClient','throw','59257OxOwsf','location','stream','response','68579TnenIf','__esModule','https-proxy-agent','../../utils/azure.utils','credentials','https','get','150eFyAPv','AzureHelper','1714977bePjhd','10625mqfIms','value','5715TuadcA','default','next','AzureUtils','./base-helper','3360LdJGIu','emit','parse','then','5944UjHFMQ','6831430pebfDG','getZipFileMeta','200CUUHgb','error','abort','done','getAzureBlobsPaths','getBlockBlobClient'];_0x427f=function(){return _0x2314a2;};return _0x427f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x1d5332=_0x5a54;function _0x4ba7(){var _0xbefafe=['289645YeFhWY','sourcePath','1260ErCGFs','5682832SVvtvf','BaseHelper','1030532VLdiwv','1176JHFPbA','172694ggVRvs','442762jvyKuN','590880qNzHfS','__esModule'];_0x4ba7=function(){return _0xbefafe;};return _0x4ba7();}(function(_0x22774a,_0x35e100){var _0x2d752d=_0x5a54,_0x411c80=_0x22774a();while(!![]){try{var _0x1ef04b=-parseInt(_0x2d752d(0x170))/0x1+-parseInt(_0x2d752d(0x171))/0x2+parseInt(_0x2d752d(0x172))/0x3+-parseInt(_0x2d752d(0x16e))/0x4+-parseInt(_0x2d752d(0x174))/0x5+parseInt(_0x2d752d(0x176))/0x6*(-parseInt(_0x2d752d(0x16f))/0x7)+parseInt(_0x2d752d(0x177))/0x8;if(_0x1ef04b===_0x35e100)break;else _0x411c80['push'](_0x411c80['shift']());}catch(_0x5951f5){_0x411c80['push'](_0x411c80['shift']());}}}(_0x4ba7,0x27a5d));Object['defineProperty'](exports,_0x1d5332(0x173),{'value':!![]}),exports[_0x1d5332(0x178)]=void 0x0;function _0x5a54(_0x1fa640,_0x4b944d){_0x1fa640=_0x1fa640-0x16e;var _0x4ba7d6=_0x4ba7();var _0x5a54cd=_0x4ba7d6[_0x1fa640];return _0x5a54cd;}class BaseHelper{constructor(_0x55299d){var _0x5608bf=_0x1d5332;this[_0x5608bf(0x175)]=_0x55299d;}}exports[_0x1d5332(0x178)]=BaseHelper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x507082=_0x4828;(function(_0x567acc,_0x5db358){const _0x51b269=_0x4828,_0x8a52a0=_0x567acc();while(!![]){try{const _0x29f669=-parseInt(_0x51b269(0x164))/0x1+parseInt(_0x51b269(0x158))/0x2*(parseInt(_0x51b269(0x159))/0x3)+parseInt(_0x51b269(0x15d))/0x4*(-parseInt(_0x51b269(0x166))/0x5)+-parseInt(_0x51b269(0x168))/0x6+-parseInt(_0x51b269(0x167))/0x7*(-parseInt(_0x51b269(0x151))/0x8)+-parseInt(_0x51b269(0x15f))/0x9*(parseInt(_0x51b269(0x15a))/0xa)+-parseInt(_0x51b269(0x15c))/0xb*(-parseInt(_0x51b269(0x16b))/0xc);if(_0x29f669===_0x5db358)break;else _0x8a52a0['push'](_0x8a52a0['shift']());}catch(_0x2012ed){_0x8a52a0['push'](_0x8a52a0['shift']());}}}(_0x256f,0x5c0ad));function _0x4828(_0x400f6a,_0x12b8cb){_0x400f6a=_0x400f6a-0x14f;const _0x256f39=_0x256f();let _0x482891=_0x256f39[_0x400f6a];return _0x482891;}var __awaiter=this&&this[_0x507082(0x16c)]||function(_0x305310,_0x526283,_0x48d147,_0x206dbb){function _0x426e12(_0x32a595){return _0x32a595 instanceof _0x48d147?_0x32a595:new _0x48d147(function(_0x3ce144){_0x3ce144(_0x32a595);});}return new(_0x48d147||(_0x48d147=Promise))(function(_0x2c97e8,_0x3b384d){const _0x56126c=_0x4828;function _0x401041(_0x5d3e4e){const _0x109252=_0x4828;try{_0x2496ba(_0x206dbb[_0x109252(0x165)](_0x5d3e4e));}catch(_0x1ac9a9){_0x3b384d(_0x1ac9a9);}}function _0x85d3a8(_0x1cda79){const _0x58a589=_0x4828;try{_0x2496ba(_0x206dbb[_0x58a589(0x162)](_0x1cda79));}catch(_0x3951a7){_0x3b384d(_0x3951a7);}}function _0x2496ba(_0x169361){const _0x5b6f4f=_0x4828;_0x169361['done']?_0x2c97e8(_0x169361['value']):_0x426e12(_0x169361[_0x5b6f4f(0x152)])[_0x5b6f4f(0x16a)](_0x401041,_0x85d3a8);}_0x2496ba((_0x206dbb=_0x206dbb[_0x56126c(0x169)](_0x305310,_0x526283||[]))[_0x56126c(0x165)]());});},__importDefault=this&&this[_0x507082(0x14f)]||function(_0xe80393){const _0x14bece=_0x507082;return _0xe80393&&_0xe80393[_0x14bece(0x160)]?_0xe80393:{'default':_0xe80393};};function _0x256f(){const _0xe8c184=['__esModule','default','throw','Open','50688aQnsIA','next','6875xmTlJH','28dZEdMt','1171368JdaaAf','apply','then','12cVgMaQ','__awaiter','BaseHelper','__importDefault','readdir','1199032XcPWAF','value','unzipper','getZipFileMeta','sourcePath','file','defineProperty','36nnhnaf','63867KzrHGp','10XtWiWj','node:fs/promises','4954609qLdthq','2076IYQFFN','LocalHelper','869319SiEiZt'];_0x256f=function(){return _0xe8c184;};return _0x256f();}Object[_0x507082(0x157)](exports,_0x507082(0x160),{'value':!![]}),exports[_0x507082(0x15e)]=void 0x0;const base_helper_1=require('./base-helper'),unzipper_1=__importDefault(require(_0x507082(0x153))),promises_1=require(_0x507082(0x15b));class LocalHelper extends base_helper_1[_0x507082(0x16d)]{[_0x507082(0x154)](_0x41d9d0){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x21ce74=_0x4828;return unzipper_1[_0x21ce74(0x161)][_0x21ce74(0x163)][_0x21ce74(0x156)](this[_0x21ce74(0x155)]+'/'+_0x41d9d0);});}['ls'](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x50e608=_0x4828;return(0x0,promises_1[_0x50e608(0x150)])(this[_0x50e608(0x155)]);});}}exports['LocalHelper']=LocalHelper;
|