@flosum/storages 1.3.3 → 1.3.4-backup.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/copy/aws-s3-copy.js +1 -1
  2. package/dist/copy/base-copy.js +1 -1
  3. package/dist/copy/index.js +1 -1
  4. package/dist/copy/local-copy.js +1 -1
  5. package/dist/credentials/aws-s3-credentials.js +1 -1
  6. package/dist/credentials/azure-credentials.js +1 -1
  7. package/dist/credentials/base-credentials.js +1 -1
  8. package/dist/credentials/index.js +1 -1
  9. package/dist/credentials/local-credentials.js +1 -1
  10. package/dist/delete/aws-s3-delete.js +1 -1
  11. package/dist/delete/azure-delete.js +1 -1
  12. package/dist/delete/base-delete.js +1 -1
  13. package/dist/delete/index.js +1 -1
  14. package/dist/delete/local-delete.js +1 -1
  15. package/dist/deploy/aws-s3-deploy.js +1 -1
  16. package/dist/deploy/azure-deploy.js +1 -1
  17. package/dist/deploy/base-deploy.js +1 -1
  18. package/dist/deploy/index.js +1 -1
  19. package/dist/deploy/local-deploy.js +1 -1
  20. package/dist/factory.js +1 -1
  21. package/dist/file-size-retriever/aws-s3-file-size-retriever.js +1 -1
  22. package/dist/file-size-retriever/azure-file-size-retriever.js +1 -1
  23. package/dist/file-size-retriever/base-file-size-retriever.js +1 -1
  24. package/dist/file-size-retriever/index.js +1 -1
  25. package/dist/file-size-retriever/local-size-retriever.js +1 -1
  26. package/dist/index.js +1 -1
  27. package/dist/init.js +1 -1
  28. package/dist/retrieve/aws-s3-import-helper.d.ts +4 -0
  29. package/dist/retrieve/aws-s3-import-helper.js +1 -1
  30. package/dist/retrieve/aws-s3-retrieve.js +1 -1
  31. package/dist/retrieve/azure-retrieve.js +1 -1
  32. package/dist/retrieve/base-retrieve.js +1 -1
  33. package/dist/retrieve/helpers/aws-s3-helper.js +1 -1
  34. package/dist/retrieve/helpers/azure-helper.js +1 -1
  35. package/dist/retrieve/helpers/base-helper.js +1 -1
  36. package/dist/retrieve/helpers/local-helper.js +1 -1
  37. package/dist/retrieve/index.js +1 -1
  38. package/dist/retrieve/local-retrieve.js +1 -1
  39. package/dist/types/aws.types.js +1 -1
  40. package/dist/types/azure.types.js +1 -1
  41. package/dist/types/index.js +1 -1
  42. package/dist/types/internal.types.js +1 -1
  43. package/dist/types/retrieve-status.enum.js +1 -1
  44. package/dist/types/storage-type.enum.js +1 -1
  45. package/dist/utils/aws-s3.utils.js +1 -1
  46. package/dist/utils/azure.utils.js +1 -1
  47. package/dist/utils/cache.utils.js +1 -1
  48. package/package.json +4 -5
@@ -1 +1 @@
1
- 'use strict';const _0x4e935b=_0x30b5;(function(_0x6d3c00,_0x311450){const _0x7d2828=_0x30b5,_0x44c9b8=_0x6d3c00();while(!![]){try{const _0x588994=parseInt(_0x7d2828(0x97))/0x1+parseInt(_0x7d2828(0x77))/0x2+parseInt(_0x7d2828(0x8c))/0x3*(parseInt(_0x7d2828(0x8d))/0x4)+-parseInt(_0x7d2828(0x7e))/0x5+-parseInt(_0x7d2828(0x86))/0x6*(-parseInt(_0x7d2828(0x7a))/0x7)+-parseInt(_0x7d2828(0x83))/0x8+-parseInt(_0x7d2828(0x89))/0x9*(parseInt(_0x7d2828(0x91))/0xa);if(_0x588994===_0x311450)break;else _0x44c9b8['push'](_0x44c9b8['shift']());}catch(_0x1664fa){_0x44c9b8['push'](_0x44c9b8['shift']());}}}(_0x3b72,0x9bb3a));function _0x30b5(_0xf9e3b9,_0x19fc83){const _0x3b7224=_0x3b72();return _0x30b5=function(_0x30b517,_0x5ef8b8){_0x30b517=_0x30b517-0x74;let _0x36e60b=_0x3b7224[_0x30b517];return _0x36e60b;},_0x30b5(_0xf9e3b9,_0x19fc83);}var __awaiter=this&&this[_0x4e935b(0x8b)]||function(_0x188546,_0x48b8e0,_0x1fe608,_0x1497a6){function _0x1ee54c(_0x5a9eaf){return _0x5a9eaf instanceof _0x1fe608?_0x5a9eaf:new _0x1fe608(function(_0x559ac1){_0x559ac1(_0x5a9eaf);});}return new(_0x1fe608||(_0x1fe608=Promise))(function(_0x347e3f,_0x194b4e){const _0x3182fd=_0x30b5;function _0x327901(_0x2d1edd){const _0x5607d6=_0x30b5;try{_0x10fa39(_0x1497a6[_0x5607d6(0x82)](_0x2d1edd));}catch(_0x3e9a22){_0x194b4e(_0x3e9a22);}}function _0x5b48d1(_0x205dba){const _0x142155=_0x30b5;try{_0x10fa39(_0x1497a6[_0x142155(0x7b)](_0x205dba));}catch(_0x51e9a6){_0x194b4e(_0x51e9a6);}}function _0x10fa39(_0x3f1c14){const _0x236b33=_0x30b5;_0x3f1c14[_0x236b33(0x79)]?_0x347e3f(_0x3f1c14[_0x236b33(0x98)]):_0x1ee54c(_0x3f1c14[_0x236b33(0x98)])[_0x236b33(0x92)](_0x327901,_0x5b48d1);}_0x10fa39((_0x1497a6=_0x1497a6[_0x3182fd(0x95)](_0x188546,_0x48b8e0||[]))[_0x3182fd(0x82)]());});};Object[_0x4e935b(0x7f)](exports,'__esModule',{'value':!![]}),exports[_0x4e935b(0x81)]=void 0x0;const init_1=require(_0x4e935b(0x78)),aws_types_1=require(_0x4e935b(0x87)),client_s3_1=require(_0x4e935b(0x9d)),ARCHIVE_TYPES=[_0x4e935b(0x9b),_0x4e935b(0x84),'DEEP_ARCHIVE'];function _0x3b72(){const _0x11e3f5=['1041wydDuc','14092UnqBXN','extractFileRetrieveStatusFromFileInfo','applyMiddlewaresToS3Client','NeedRestore','270zmuRsT','then','credentials','S3Client','apply','Restoring','782420TEirWN','value','Available','AwsFileRetrieveStatus','GLACIER','includes','@aws-sdk/client-s3','false','extractFileRetrieveStatusFromRestoreField','send','push','Restore','HttpHandler','length','917132irbJLF','../init','done','5592573JADArq','throw','getFilesPaths','StorageClass','1762965kfpJWt','defineProperty','add','AwsS3Utils','next','8214120SuchxC','GLACIER_IR','middlewareStack','6wjiGqo','../types/aws.types','Key','415098FdTcnG','match','__awaiter'];_0x3b72=function(){return _0x11e3f5;};return _0x3b72();}class AwsS3Utils{static[_0x4e935b(0x8e)](_0x268d0){const _0x11cc02=_0x4e935b;if(ARCHIVE_TYPES[_0x11cc02(0x9c)](_0x268d0[_0x11cc02(0x7d)])){if(_0x268d0[_0x11cc02(0x74)])return AwsS3Utils[_0x11cc02(0x9f)](_0x268d0[_0x11cc02(0x74)]);return aws_types_1['AwsFileRetrieveStatus'][_0x11cc02(0x90)];}return aws_types_1[_0x11cc02(0x9a)][_0x11cc02(0x99)];}static[_0x4e935b(0x9f)](_0x44b465){const _0x1a30af=_0x4e935b,_0x2d01d2=/ongoing-request="([^"]+)"/,_0x1c6d38=_0x44b465[_0x1a30af(0x8a)](_0x2d01d2);return _0x1c6d38[0x1]===_0x1a30af(0x9e)?aws_types_1[_0x1a30af(0x9a)][_0x1a30af(0x99)]:aws_types_1[_0x1a30af(0x9a)][_0x1a30af(0x96)];}static[_0x4e935b(0x7c)](_0x493290,_0x2c3050,_0x3b2fc4){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1650c9=_0x30b5,_0x59630e=[];let _0x4e489e,_0x25c725=null;do{const _0x4cf257=new client_s3_1['ListObjectsCommand']({'Bucket':_0x2c3050,'Prefix':_0x493290,'Marker':_0x25c725}),{Contents:_0x16785b,IsTruncated:_0xa942fc}=yield _0x3b2fc4[_0x1650c9(0xa0)](_0x4cf257);if(!_0x16785b)return _0x59630e;for(const _0x6e1073 of _0x16785b){_0x59630e[_0x1650c9(0xa1)](_0x6e1073[_0x1650c9(0x88)]);}_0x4e489e=_0xa942fc,_0x4e489e&&(_0x25c725=_0x16785b['at'](-0x1)[_0x1650c9(0x88)]);}while(_0x4e489e);return _0x59630e;});}static['createS3Client']({region:_0x18f713,accessKeyId:_0x3124f3,secretAccessKey:_0x43b275},_0x55131c){const _0x5278cc=_0x4e935b,_0xf1bff={'region':_0x18f713,'requestHandler':new init_1[(_0x5278cc(0x75))]()};_0x3124f3&&_0x43b275&&(_0xf1bff[_0x5278cc(0x93)]={'accessKeyId':_0x3124f3,'secretAccessKey':_0x43b275});const _0x535d3f=new client_s3_1[(_0x5278cc(0x94))](_0xf1bff);if(!(_0x55131c===null||_0x55131c===void 0x0?void 0x0:_0x55131c[_0x5278cc(0x76)]))return _0x535d3f;return this[_0x5278cc(0x8f)](_0x535d3f,_0x55131c);}static[_0x4e935b(0x8f)](_0x25c0d4,_0x2e978f){const _0x461b35=_0x4e935b;for(const {handler:_0xb22765,options:_0x400344}of _0x2e978f){_0x25c0d4[_0x461b35(0x85)][_0x461b35(0x80)](_0xb22765,_0x400344);}return _0x25c0d4;}}exports['AwsS3Utils']=AwsS3Utils;
1
+ 'use strict';const _0x26d465=_0x59fb;(function(_0x5ea006,_0x21bc7f){const _0x4f08f0=_0x59fb,_0x16e71b=_0x5ea006();while(!![]){try{const _0x17de9a=parseInt(_0x4f08f0(0xd9))/0x1+-parseInt(_0x4f08f0(0xdd))/0x2*(parseInt(_0x4f08f0(0xcd))/0x3)+-parseInt(_0x4f08f0(0xe3))/0x4*(-parseInt(_0x4f08f0(0xc6))/0x5)+-parseInt(_0x4f08f0(0xd3))/0x6*(-parseInt(_0x4f08f0(0xce))/0x7)+-parseInt(_0x4f08f0(0xd5))/0x8*(-parseInt(_0x4f08f0(0xcf))/0x9)+-parseInt(_0x4f08f0(0xdc))/0xa*(-parseInt(_0x4f08f0(0xd7))/0xb)+-parseInt(_0x4f08f0(0xc0))/0xc;if(_0x17de9a===_0x21bc7f)break;else _0x16e71b['push'](_0x16e71b['shift']());}catch(_0xaa3a49){_0x16e71b['push'](_0x16e71b['shift']());}}}(_0x46b1,0x32a99));function _0x46b1(){const _0x5859fb=['5718sHBUMU','S3Client','30280SelsmO','DEEP_ARCHIVE','654445pLOoIs','next','78430dfnCde','StorageClass','push','10KuvWHf','14692quvTUk','defineProperty','getFilesPaths','false','Restore','then','4AzRpPZ','apply','HttpHandler','length','applyMiddlewaresToS3Client','extractFileRetrieveStatusFromRestoreField','ListObjectsCommand','Available','value','createS3Client','match','1761744PKVzug','Key','credentials','GLACIER','send','add','137990sRGHNn','done','AwsFileRetrieveStatus','AwsS3Utils','includes','../init','middlewareStack','108XPDyee','1967zneoRE','441ykBYiK','NeedRestore','Restoring','throw'];_0x46b1=function(){return _0x5859fb;};return _0x46b1();}var __awaiter=this&&this['__awaiter']||function(_0x2c7b67,_0x58ce85,_0x360267,_0x31e7b9){function _0x2d39e6(_0x55ae71){return _0x55ae71 instanceof _0x360267?_0x55ae71:new _0x360267(function(_0x17760d){_0x17760d(_0x55ae71);});}return new(_0x360267||(_0x360267=Promise))(function(_0x476b85,_0x5f2eac){const _0x49e85e=_0x59fb;function _0x430c37(_0x22cd7f){const _0x457d04=_0x59fb;try{_0x29e0bf(_0x31e7b9[_0x457d04(0xd8)](_0x22cd7f));}catch(_0xb42fb6){_0x5f2eac(_0xb42fb6);}}function _0x6b8b62(_0xefff25){const _0x43560b=_0x59fb;try{_0x29e0bf(_0x31e7b9[_0x43560b(0xd2)](_0xefff25));}catch(_0x58e10a){_0x5f2eac(_0x58e10a);}}function _0x29e0bf(_0x19e468){const _0x4c2935=_0x59fb;_0x19e468[_0x4c2935(0xc7)]?_0x476b85(_0x19e468['value']):_0x2d39e6(_0x19e468[_0x4c2935(0xbd)])[_0x4c2935(0xe2)](_0x430c37,_0x6b8b62);}_0x29e0bf((_0x31e7b9=_0x31e7b9[_0x49e85e(0xb6)](_0x2c7b67,_0x58ce85||[]))['next']());});};Object[_0x26d465(0xde)](exports,'__esModule',{'value':!![]}),exports[_0x26d465(0xc9)]=void 0x0;const init_1=require(_0x26d465(0xcb)),aws_types_1=require('../types/aws.types'),client_s3_1=require('@aws-sdk/client-s3'),ARCHIVE_TYPES=[_0x26d465(0xc3),'GLACIER_IR',_0x26d465(0xd6)];class AwsS3Utils{static['extractFileRetrieveStatusFromFileInfo'](_0x131d4c){const _0x2b5e41=_0x26d465;if(ARCHIVE_TYPES[_0x2b5e41(0xca)](_0x131d4c[_0x2b5e41(0xda)])){if(_0x131d4c[_0x2b5e41(0xe1)])return AwsS3Utils[_0x2b5e41(0xba)](_0x131d4c[_0x2b5e41(0xe1)]);return aws_types_1[_0x2b5e41(0xc8)][_0x2b5e41(0xd0)];}return aws_types_1[_0x2b5e41(0xc8)][_0x2b5e41(0xbc)];}static[_0x26d465(0xba)](_0x5880dd){const _0x17117c=_0x26d465,_0x58eb8e=/ongoing-request="([^"]+)"/,_0x1b7b2b=_0x5880dd[_0x17117c(0xbf)](_0x58eb8e);return _0x1b7b2b[0x1]===_0x17117c(0xe0)?aws_types_1[_0x17117c(0xc8)][_0x17117c(0xbc)]:aws_types_1[_0x17117c(0xc8)][_0x17117c(0xd1)];}static[_0x26d465(0xdf)](_0x63df28,_0x1d9824,_0x26eb97){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x52ab1b=_0x59fb,_0x19101a=[];let _0x45d8bc,_0x13587a=null;do{const _0x55dae5=new client_s3_1[(_0x52ab1b(0xbb))]({'Bucket':_0x1d9824,'Prefix':_0x63df28,'Marker':_0x13587a}),{Contents:_0x52bc27,IsTruncated:_0x350ae6}=yield _0x26eb97[_0x52ab1b(0xc4)](_0x55dae5);if(!_0x52bc27)return _0x19101a;for(const _0x4016ef of _0x52bc27){_0x19101a[_0x52ab1b(0xdb)](_0x4016ef[_0x52ab1b(0xc1)]);}_0x45d8bc=_0x350ae6,_0x45d8bc&&(_0x13587a=_0x52bc27['at'](-0x1)['Key']);}while(_0x45d8bc);return _0x19101a;});}static[_0x26d465(0xbe)]({region:_0x28f988,accessKeyId:_0x17d172,secretAccessKey:_0x1599e2},_0x90c950){const _0x542d9e=_0x26d465,_0x549917={'region':_0x28f988,'requestHandler':new init_1[(_0x542d9e(0xb7))]()};_0x17d172&&_0x1599e2&&(_0x549917[_0x542d9e(0xc2)]={'accessKeyId':_0x17d172,'secretAccessKey':_0x1599e2});const _0x147fb8=new client_s3_1[(_0x542d9e(0xd4))](_0x549917);if(!(_0x90c950===null||_0x90c950===void 0x0?void 0x0:_0x90c950[_0x542d9e(0xb8)]))return _0x147fb8;return this['applyMiddlewaresToS3Client'](_0x147fb8,_0x90c950);}static[_0x26d465(0xb9)](_0x588d9a,_0x4a0d59){const _0x4cec8d=_0x26d465;for(const {handler:_0x1c58b3,options:_0x168b01}of _0x4a0d59){_0x588d9a[_0x4cec8d(0xcc)][_0x4cec8d(0xc5)](_0x1c58b3,_0x168b01);}return _0x588d9a;}}function _0x59fb(_0x485b9a,_0x17151b){const _0x46b197=_0x46b1();return _0x59fb=function(_0x59fb93,_0x50a775){_0x59fb93=_0x59fb93-0xb6;let _0x52c508=_0x46b197[_0x59fb93];return _0x52c508;},_0x59fb(_0x485b9a,_0x17151b);}exports['AwsS3Utils']=AwsS3Utils;
@@ -1 +1 @@
1
- 'use strict';var _0x3e640d=_0x3bea;(function(_0x4e1479,_0x324143){var _0x4a2bfe=_0x3bea,_0x3ff1fc=_0x4e1479();while(!![]){try{var _0x1a642f=parseInt(_0x4a2bfe(0x1df))/0x1+-parseInt(_0x4a2bfe(0x1e6))/0x2+parseInt(_0x4a2bfe(0x1e1))/0x3*(-parseInt(_0x4a2bfe(0x1fb))/0x4)+parseInt(_0x4a2bfe(0x1de))/0x5+parseInt(_0x4a2bfe(0x1f5))/0x6+parseInt(_0x4a2bfe(0x1e8))/0x7*(parseInt(_0x4a2bfe(0x1ee))/0x8)+parseInt(_0x4a2bfe(0x1f2))/0x9*(parseInt(_0x4a2bfe(0x1f9))/0xa);if(_0x1a642f===_0x324143)break;else _0x3ff1fc['push'](_0x3ff1fc['shift']());}catch(_0x53d43a){_0x3ff1fc['push'](_0x3ff1fc['shift']());}}}(_0x29ab,0x3fae7));var __awaiter=this&&this[_0x3e640d(0x1ec)]||function(_0xbb6b7,_0x44ba83,_0x5abcdf,_0x1966db){function _0x460ee9(_0x584345){return _0x584345 instanceof _0x5abcdf?_0x584345:new _0x5abcdf(function(_0x3c00d6){_0x3c00d6(_0x584345);});}return new(_0x5abcdf||(_0x5abcdf=Promise))(function(_0xe4d057,_0x1273cb){var _0x224f67=_0x3bea;function _0x66e9fd(_0x506d16){var _0x38b161=_0x3bea;try{_0x3ab38a(_0x1966db[_0x38b161(0x1e9)](_0x506d16));}catch(_0x3077a8){_0x1273cb(_0x3077a8);}}function _0x4eca0d(_0x8b778e){var _0x3d981c=_0x3bea;try{_0x3ab38a(_0x1966db[_0x3d981c(0x1fc)](_0x8b778e));}catch(_0x38bdb9){_0x1273cb(_0x38bdb9);}}function _0x3ab38a(_0x145208){var _0x52ea58=_0x3bea;_0x145208[_0x52ea58(0x1f4)]?_0xe4d057(_0x145208[_0x52ea58(0x1e0)]):_0x460ee9(_0x145208[_0x52ea58(0x1e0)])[_0x52ea58(0x1e4)](_0x66e9fd,_0x4eca0d);}_0x3ab38a((_0x1966db=_0x1966db[_0x224f67(0x1f8)](_0xbb6b7,_0x44ba83||[]))[_0x224f67(0x1e9)]());});},__asyncValues=this&&this[_0x3e640d(0x1fe)]||function(_0x2c6a01){var _0x1c8e61=_0x3e640d;if(!Symbol[_0x1c8e61(0x1e5)])throw new TypeError(_0x1c8e61(0x1f1));var _0x218ff0=_0x2c6a01[Symbol[_0x1c8e61(0x1e5)]],_0x46af99;return _0x218ff0?_0x218ff0['call'](_0x2c6a01):(_0x2c6a01=typeof __values==='function'?__values(_0x2c6a01):_0x2c6a01[Symbol['iterator']](),_0x46af99={},_0x2d403e(_0x1c8e61(0x1e9)),_0x2d403e('throw'),_0x2d403e(_0x1c8e61(0x1f6)),_0x46af99[Symbol[_0x1c8e61(0x1e5)]]=function(){return this;},_0x46af99);function _0x2d403e(_0x1e0ff1){_0x46af99[_0x1e0ff1]=_0x2c6a01[_0x1e0ff1]&&function(_0x1ba00d){return new Promise(function(_0x788eb2,_0x288f97){var _0x3d7754=_0x3bea;_0x1ba00d=_0x2c6a01[_0x1e0ff1](_0x1ba00d),_0x55ae0a(_0x788eb2,_0x288f97,_0x1ba00d[_0x3d7754(0x1f4)],_0x1ba00d[_0x3d7754(0x1e0)]);});};}function _0x55ae0a(_0x39e4d8,_0x47e63a,_0x2f6e6f,_0x2a22c5){var _0x2079b7=_0x1c8e61;Promise[_0x2079b7(0x200)](_0x2a22c5)[_0x2079b7(0x1e4)](function(_0xdd18fa){_0x39e4d8({'value':_0xdd18fa,'done':_0x2f6e6f});},_0x47e63a);}};Object[_0x3e640d(0x1fd)](exports,'__esModule',{'value':!![]}),exports[_0x3e640d(0x1e2)]=void 0x0;function _0x29ab(){var _0x2843d5=['error','resolve','1174660Kayqag','215947ZIAbbG','value','912921yXaRkd','AzureUtils','getAzureBlobsPaths','then','asyncIterator','918376kzmDCt','call','651THBSIg','next','StorageSharedKeyCredential','https://','__awaiter','.blob.core.windows.net','6648xrTqzo','name','createAzureBlobContainerClient','Symbol.asyncIterator\x20is\x20not\x20defined.','7173cNVJLd','deleted','done','2790534VlrJxT','return','createAzureBlobServiceClient','apply','390KAZScB','push','4sLECDy','throw','defineProperty','__asyncValues'];_0x29ab=function(){return _0x2843d5;};return _0x29ab();}function _0x3bea(_0x260ddc,_0x32d1e5){var _0x29ab49=_0x29ab();return _0x3bea=function(_0x3bea1e,_0x1de81d){_0x3bea1e=_0x3bea1e-0x1de;var _0x12e260=_0x29ab49[_0x3bea1e];return _0x12e260;},_0x3bea(_0x260ddc,_0x32d1e5);}const storage_blob_1=require('@azure/storage-blob');class AzureUtils{static['createAzureBlobServiceClient']({accountName:_0x455b59,accountKey:_0x37916a}){var _0x3df741=_0x3e640d;const _0x186291=new storage_blob_1[(_0x3df741(0x1ea))](_0x455b59,_0x37916a);return new storage_blob_1['BlobServiceClient'](_0x3df741(0x1eb)+_0x455b59+_0x3df741(0x1ed),_0x186291);}static[_0x3e640d(0x1f0)](_0x3baec7){var _0xb0df96=_0x3e640d;const _0x52b624=this[_0xb0df96(0x1f7)](_0x3baec7);return _0x52b624['getContainerClient'](_0x3baec7['containerName']);}static[_0x3e640d(0x1e3)](_0x3729bc,_0x5c7b84){var _0x3443e1,_0x28242b;return __awaiter(this,void 0x0,void 0x0,function*(){var _0x24cb5a=_0x3bea;const _0x2f0616=[];try{for(var _0x508eff=__asyncValues(_0x5c7b84['listBlobsFlat']({'prefix':_0x3729bc})),_0x4ab759;_0x4ab759=yield _0x508eff['next'](),!_0x4ab759[_0x24cb5a(0x1f4)];){const _0x32a7aa=_0x4ab759[_0x24cb5a(0x1e0)];!_0x32a7aa[_0x24cb5a(0x1f3)]&&_0x2f0616[_0x24cb5a(0x1fa)](_0x32a7aa[_0x24cb5a(0x1ef)]);}}catch(_0x5279df){_0x3443e1={'error':_0x5279df};}finally{try{if(_0x4ab759&&!_0x4ab759[_0x24cb5a(0x1f4)]&&(_0x28242b=_0x508eff['return']))yield _0x28242b[_0x24cb5a(0x1e7)](_0x508eff);}finally{if(_0x3443e1)throw _0x3443e1[_0x24cb5a(0x1ff)];}}return _0x2f0616;});}}exports[_0x3e640d(0x1e2)]=AzureUtils;
1
+ 'use strict';var _0x176dbe=_0x4397;(function(_0x2978ab,_0x2f222b){var _0x178a3e=_0x4397,_0x174ba2=_0x2978ab();while(!![]){try{var _0x55ecef=-parseInt(_0x178a3e(0x1b2))/0x1+parseInt(_0x178a3e(0x1a5))/0x2*(-parseInt(_0x178a3e(0x1be))/0x3)+-parseInt(_0x178a3e(0x1a3))/0x4*(-parseInt(_0x178a3e(0x1a2))/0x5)+-parseInt(_0x178a3e(0x1ad))/0x6*(parseInt(_0x178a3e(0x1b5))/0x7)+-parseInt(_0x178a3e(0x19f))/0x8*(parseInt(_0x178a3e(0x1b7))/0x9)+-parseInt(_0x178a3e(0x1af))/0xa+parseInt(_0x178a3e(0x1b1))/0xb;if(_0x55ecef===_0x2f222b)break;else _0x174ba2['push'](_0x174ba2['shift']());}catch(_0x36d5fa){_0x174ba2['push'](_0x174ba2['shift']());}}}(_0x2c5d,0x51c3c));var __awaiter=this&&this[_0x176dbe(0x1b3)]||function(_0x386be7,_0x1b5ed1,_0x352ef7,_0x23b9ea){function _0x46cd38(_0x3e61eb){return _0x3e61eb instanceof _0x352ef7?_0x3e61eb:new _0x352ef7(function(_0x258c5e){_0x258c5e(_0x3e61eb);});}return new(_0x352ef7||(_0x352ef7=Promise))(function(_0xe1072,_0x3b02fd){function _0x335862(_0x344b8a){var _0x1d22f4=_0x4397;try{_0x27d8e4(_0x23b9ea[_0x1d22f4(0x1ac)](_0x344b8a));}catch(_0x34d283){_0x3b02fd(_0x34d283);}}function _0x7af42c(_0x4fd2d0){try{_0x27d8e4(_0x23b9ea['throw'](_0x4fd2d0));}catch(_0x26b0d4){_0x3b02fd(_0x26b0d4);}}function _0x27d8e4(_0x7a5bbd){var _0x56cd9c=_0x4397;_0x7a5bbd[_0x56cd9c(0x1ae)]?_0xe1072(_0x7a5bbd[_0x56cd9c(0x1c0)]):_0x46cd38(_0x7a5bbd[_0x56cd9c(0x1c0)])['then'](_0x335862,_0x7af42c);}_0x27d8e4((_0x23b9ea=_0x23b9ea['apply'](_0x386be7,_0x1b5ed1||[]))['next']());});},__asyncValues=this&&this[_0x176dbe(0x1b6)]||function(_0x41dacb){var _0x1ce82c=_0x176dbe;if(!Symbol['asyncIterator'])throw new TypeError(_0x1ce82c(0x1bd));var _0x1cf34a=_0x41dacb[Symbol[_0x1ce82c(0x1bc)]],_0x8a4e22;return _0x1cf34a?_0x1cf34a['call'](_0x41dacb):(_0x41dacb=typeof __values===_0x1ce82c(0x1ba)?__values(_0x41dacb):_0x41dacb[Symbol[_0x1ce82c(0x1bb)]](),_0x8a4e22={},_0x28e528(_0x1ce82c(0x1ac)),_0x28e528(_0x1ce82c(0x1a0)),_0x28e528(_0x1ce82c(0x1ab)),_0x8a4e22[Symbol[_0x1ce82c(0x1bc)]]=function(){return this;},_0x8a4e22);function _0x28e528(_0x5d5a52){_0x8a4e22[_0x5d5a52]=_0x41dacb[_0x5d5a52]&&function(_0x2df0b2){return new Promise(function(_0x3bb120,_0x34ba36){var _0x2e8ee2=_0x4397;_0x2df0b2=_0x41dacb[_0x5d5a52](_0x2df0b2),_0x1dbcc6(_0x3bb120,_0x34ba36,_0x2df0b2['done'],_0x2df0b2[_0x2e8ee2(0x1c0)]);});};}function _0x1dbcc6(_0x43cbdd,_0x357833,_0x62d97a,_0x2c7d54){var _0xa7c7b0=_0x1ce82c;Promise[_0xa7c7b0(0x1b8)](_0x2c7d54)[_0xa7c7b0(0x1aa)](function(_0x3f4a7e){_0x43cbdd({'value':_0x3f4a7e,'done':_0x62d97a});},_0x357833);}};function _0x2c5d(){var _0x2e71f7=['asyncIterator','Symbol.asyncIterator\x20is\x20not\x20defined.','477Jnjswe','BlobServiceClient','value','createAzureBlobServiceClient','push','call','defineProperty','name','892648OXqCBZ','throw','error','1622930WGFmAQ','4IHSYSS','getAzureBlobsPaths','1686prVjuZ','AzureUtils','deleted','createAzureBlobContainerClient','.blob.core.windows.net','then','return','next','745458nHSCWs','done','1241280mapENi','containerName','13401476HbxUGh','490843SSwuga','__awaiter','__esModule','7MkrEfF','__asyncValues','27ajOtaG','resolve','getContainerClient','function','iterator'];_0x2c5d=function(){return _0x2e71f7;};return _0x2c5d();}Object[_0x176dbe(0x19d)](exports,_0x176dbe(0x1b4),{'value':!![]}),exports[_0x176dbe(0x1a6)]=void 0x0;const storage_blob_1=require('@azure/storage-blob');class AzureUtils{static[_0x176dbe(0x19a)]({accountName:_0x2ebb7b,accountKey:_0x1b1416}){var _0x4f4899=_0x176dbe;const _0x78abef=new storage_blob_1['StorageSharedKeyCredential'](_0x2ebb7b,_0x1b1416);return new storage_blob_1[(_0x4f4899(0x1bf))]('https://'+_0x2ebb7b+_0x4f4899(0x1a9),_0x78abef);}static[_0x176dbe(0x1a8)](_0x50016b){var _0x3580a6=_0x176dbe;const _0x196900=this[_0x3580a6(0x19a)](_0x50016b);return _0x196900[_0x3580a6(0x1b9)](_0x50016b[_0x3580a6(0x1b0)]);}static[_0x176dbe(0x1a4)](_0x5a7324,_0x1a1f33){var _0x83c4e3,_0x64d981;return __awaiter(this,void 0x0,void 0x0,function*(){var _0x2f7c80=_0x4397;const _0x3f05d4=[];try{for(var _0x5d1011=__asyncValues(_0x1a1f33['listBlobsFlat']({'prefix':_0x5a7324})),_0x55ceb6;_0x55ceb6=yield _0x5d1011[_0x2f7c80(0x1ac)](),!_0x55ceb6[_0x2f7c80(0x1ae)];){const _0xf7d48b=_0x55ceb6[_0x2f7c80(0x1c0)];!_0xf7d48b[_0x2f7c80(0x1a7)]&&_0x3f05d4[_0x2f7c80(0x19b)](_0xf7d48b[_0x2f7c80(0x19e)]);}}catch(_0x593f99){_0x83c4e3={'error':_0x593f99};}finally{try{if(_0x55ceb6&&!_0x55ceb6[_0x2f7c80(0x1ae)]&&(_0x64d981=_0x5d1011[_0x2f7c80(0x1ab)]))yield _0x64d981[_0x2f7c80(0x19c)](_0x5d1011);}finally{if(_0x83c4e3)throw _0x83c4e3[_0x2f7c80(0x1a1)];}}return _0x3f05d4;});}}function _0x4397(_0x513fe9,_0x52c679){var _0x2c5d1d=_0x2c5d();return _0x4397=function(_0x439733,_0x3c2351){_0x439733=_0x439733-0x19a;var _0x249a00=_0x2c5d1d[_0x439733];return _0x249a00;},_0x4397(_0x513fe9,_0x52c679);}exports[_0x176dbe(0x1a6)]=AzureUtils;
@@ -1 +1 @@
1
- 'use strict';const _0x1d772b=_0x2463;(function(_0x1ca589,_0x27f55b){const _0x2a7821=_0x2463,_0x3072f5=_0x1ca589();while(!![]){try{const _0x10084c=parseInt(_0x2a7821(0xd7))/0x1*(parseInt(_0x2a7821(0xd9))/0x2)+-parseInt(_0x2a7821(0xc3))/0x3*(-parseInt(_0x2a7821(0xc5))/0x4)+-parseInt(_0x2a7821(0xda))/0x5*(parseInt(_0x2a7821(0xcc))/0x6)+-parseInt(_0x2a7821(0xc8))/0x7*(parseInt(_0x2a7821(0xc1))/0x8)+parseInt(_0x2a7821(0xd6))/0x9*(parseInt(_0x2a7821(0xd3))/0xa)+parseInt(_0x2a7821(0xc2))/0xb+parseInt(_0x2a7821(0xc4))/0xc*(-parseInt(_0x2a7821(0xcb))/0xd);if(_0x10084c===_0x27f55b)break;else _0x3072f5['push'](_0x3072f5['shift']());}catch(_0x3d1d56){_0x3072f5['push'](_0x3072f5['shift']());}}}(_0x1978,0x5c063));var __awaiter=this&&this[_0x1d772b(0xcf)]||function(_0x1235d1,_0x433168,_0xeb70fa,_0x125dc3){function _0x463546(_0x372215){return _0x372215 instanceof _0xeb70fa?_0x372215:new _0xeb70fa(function(_0x1ef018){_0x1ef018(_0x372215);});}return new(_0xeb70fa||(_0xeb70fa=Promise))(function(_0x1b724e,_0x469ad9){const _0x27d2aa=_0x2463;function _0x184fb8(_0x2dfa03){const _0x11a7a6=_0x2463;try{_0x3138b6(_0x125dc3[_0x11a7a6(0xd8)](_0x2dfa03));}catch(_0x537c8b){_0x469ad9(_0x537c8b);}}function _0x6dd41a(_0xf7a4f3){const _0x5be594=_0x2463;try{_0x3138b6(_0x125dc3[_0x5be594(0xca)](_0xf7a4f3));}catch(_0x3af3fb){_0x469ad9(_0x3af3fb);}}function _0x3138b6(_0x6e3a89){const _0x649913=_0x2463;_0x6e3a89['done']?_0x1b724e(_0x6e3a89['value']):_0x463546(_0x6e3a89[_0x649913(0xdb)])[_0x649913(0xd1)](_0x184fb8,_0x6dd41a);}_0x3138b6((_0x125dc3=_0x125dc3[_0x27d2aa(0xc9)](_0x1235d1,_0x433168||[]))[_0x27d2aa(0xd8)]());});},__importDefault=this&&this[_0x1d772b(0xce)]||function(_0x403e1c){const _0x5c7bc5=_0x1d772b;return _0x403e1c&&_0x403e1c[_0x5c7bc5(0xd0)]?_0x403e1c:{'default':_0x403e1c};};Object[_0x1d772b(0xc6)](exports,_0x1d772b(0xd0),{'value':!![]}),exports[_0x1d772b(0xcd)]=void 0x0;function _0x2463(_0x572f01,_0x19445b){const _0x197813=_0x1978();return _0x2463=function(_0x24637a,_0x3c081b){_0x24637a=_0x24637a-0xc1;let _0x59debb=_0x197813[_0x24637a];return _0x59debb;},_0x2463(_0x572f01,_0x19445b);}const path_1=__importDefault(require('path')),crypto_1=require(_0x1d772b(0xd4)),promises_1=require('fs/promises'),fs_1=require('fs');class CacheUtils{static[_0x1d772b(0xde)](_0x2ffb4d,_0x549a47){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x4e5838=_0x2463,_0x3e8d38=path_1[_0x4e5838(0xdd)][_0x4e5838(0xdc)](_0x549a47,(0x0,crypto_1['randomUUID'])());yield(0x0,promises_1[_0x4e5838(0xc7)])(_0x3e8d38,_0x2ffb4d);const _0x26b77a=(0x0,fs_1[_0x4e5838(0xd2)])(_0x3e8d38);return _0x26b77a['on'](_0x4e5838(0xd5),()=>(0x0,promises_1['rm'])(_0x3e8d38)),_0x26b77a;});}}function _0x1978(){const _0x3c19bc=['then','createReadStream','50010zOGMlp','crypto','close','621zwcWfb','1xMDzPd','next','277286pGIrpP','5YvZnJM','value','join','default','createCacheFileStream','388440EjiJIB','3517151xSxnyY','116268cesBag','864DRyDeA','20SUjBPH','defineProperty','writeFile','63tWIdAX','apply','throw','15847HnbNQE','573234XwEGzz','CacheUtils','__importDefault','__awaiter','__esModule'];_0x1978=function(){return _0x3c19bc;};return _0x1978();}exports[_0x1d772b(0xcd)]=CacheUtils;
1
+ 'use strict';function _0x3e2a(_0x143186,_0x11a34b){const _0x3a6b7f=_0x3a6b();return _0x3e2a=function(_0x3e2a3f,_0x8e0ea9){_0x3e2a3f=_0x3e2a3f-0x95;let _0x2e8ae6=_0x3a6b7f[_0x3e2a3f];return _0x2e8ae6;},_0x3e2a(_0x143186,_0x11a34b);}function _0x3a6b(){const _0x2fa11c=['done','createReadStream','352915rNpYJL','writeFile','10fXVIfo','apply','430092mflnlk','144LtolpH','2243440ARHJzK','crypto','126RAGLKt','createCacheFileStream','7166929TPUCHX','join','40iyTNAt','865916ipFsZL','close','7329651DdgHnc','then','throw','randomUUID','path','__esModule','defineProperty','fs/promises','173199dVrmaj','value'];_0x3a6b=function(){return _0x2fa11c;};return _0x3a6b();}const _0x306187=_0x3e2a;(function(_0xe22675,_0x2e21a9){const _0x2939e0=_0x3e2a,_0x5766d0=_0xe22675();while(!![]){try{const _0x407423=-parseInt(_0x2939e0(0x99))/0x1+parseInt(_0x2939e0(0xad))/0x2+-parseInt(_0x2939e0(0xa3))/0x3*(parseInt(_0x2939e0(0x98))/0x4)+parseInt(_0x2939e0(0xa7))/0x5*(-parseInt(_0x2939e0(0xaf))/0x6)+parseInt(_0x2939e0(0x9b))/0x7+parseInt(_0x2939e0(0xac))/0x8*(parseInt(_0x2939e0(0xab))/0x9)+parseInt(_0x2939e0(0xa9))/0xa*(parseInt(_0x2939e0(0x96))/0xb);if(_0x407423===_0x2e21a9)break;else _0x5766d0['push'](_0x5766d0['shift']());}catch(_0x4148d5){_0x5766d0['push'](_0x5766d0['shift']());}}}(_0x3a6b,0xb8567));var __awaiter=this&&this['__awaiter']||function(_0x1204b5,_0x389183,_0x536c5a,_0x38aa0b){function _0x139b76(_0x10cb30){return _0x10cb30 instanceof _0x536c5a?_0x10cb30:new _0x536c5a(function(_0x27d9d0){_0x27d9d0(_0x10cb30);});}return new(_0x536c5a||(_0x536c5a=Promise))(function(_0x3148cd,_0x43404c){const _0x44da91=_0x3e2a;function _0x1bc81f(_0x26c45d){try{_0x53a96f(_0x38aa0b['next'](_0x26c45d));}catch(_0x3d8d89){_0x43404c(_0x3d8d89);}}function _0x573f53(_0x5a120a){const _0x2056c7=_0x3e2a;try{_0x53a96f(_0x38aa0b[_0x2056c7(0x9d)](_0x5a120a));}catch(_0x4fa0ff){_0x43404c(_0x4fa0ff);}}function _0x53a96f(_0x2f7005){const _0x1e9155=_0x3e2a;_0x2f7005[_0x1e9155(0xa5)]?_0x3148cd(_0x2f7005[_0x1e9155(0xa4)]):_0x139b76(_0x2f7005[_0x1e9155(0xa4)])[_0x1e9155(0x9c)](_0x1bc81f,_0x573f53);}_0x53a96f((_0x38aa0b=_0x38aa0b[_0x44da91(0xaa)](_0x1204b5,_0x389183||[]))['next']());});},__importDefault=this&&this['__importDefault']||function(_0x4282f0){const _0x1c3953=_0x3e2a;return _0x4282f0&&_0x4282f0[_0x1c3953(0xa0)]?_0x4282f0:{'default':_0x4282f0};};Object[_0x306187(0xa1)](exports,_0x306187(0xa0),{'value':!![]}),exports['CacheUtils']=void 0x0;const path_1=__importDefault(require(_0x306187(0x9f))),crypto_1=require(_0x306187(0xae)),promises_1=require(_0x306187(0xa2)),fs_1=require('fs');class CacheUtils{static[_0x306187(0x95)](_0x24abb5,_0x19ecd0){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x38f93f=_0x3e2a,_0x26d931=path_1['default'][_0x38f93f(0x97)](_0x19ecd0,(0x0,crypto_1[_0x38f93f(0x9e)])());yield(0x0,promises_1[_0x38f93f(0xa8)])(_0x26d931,_0x24abb5);const _0x51b80d=(0x0,fs_1[_0x38f93f(0xa6)])(_0x26d931);return _0x51b80d['on'](_0x38f93f(0x9a),()=>(0x0,promises_1['rm'])(_0x26d931)),_0x51b80d;});}}exports['CacheUtils']=CacheUtils;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flosum/storages",
3
- "version": "1.3.3",
3
+ "version": "1.3.4-backup.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -28,13 +28,12 @@
28
28
  "author": "Flosum",
29
29
  "license": "ISC",
30
30
  "dependencies": {
31
- "@aws-sdk/client-s3": "3.670.0",
32
- "@aws-sdk/lib-storage": "3.670.0",
31
+ "@aws-sdk/client-s3": "3.832.0",
32
+ "@aws-sdk/lib-storage": "3.832.0",
33
33
  "@azure/storage-blob": "12.26.0",
34
34
  "@flosum/utils": "1.0.14",
35
35
  "@smithy/node-http-handler": "2.1.10",
36
- "https-proxy-agent": "^5.0.1",
37
- "request": "2.88.0"
36
+ "https-proxy-agent": "^5.0.1"
38
37
  },
39
38
  "devDependencies": {
40
39
  "@types/jest": "27.4.1",