@flosum/storages 1.3.3-beta.0 → 1.3.3-beta.3
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/README.md +25 -0
- package/dist/copy/aws-s3-copy.d.ts +7 -0
- package/dist/copy/aws-s3-copy.js +1 -0
- package/dist/copy/base-copy.d.ts +6 -0
- package/dist/copy/base-copy.js +1 -0
- package/dist/copy/index.d.ts +3 -0
- package/dist/copy/index.js +1 -0
- package/dist/copy/local-copy.d.ts +5 -0
- package/dist/copy/local-copy.js +1 -0
- 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 +2 -0
- 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.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/init.js +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.js +1 -1
- package/dist/types/azure.types.js +1 -1
- package/dist/types/index.js +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 +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x3f7ba8=_0x2253;(function(_0x1286a4,_0x1b44ea){var _0xa6c858=_0x2253,_0x125865=_0x1286a4();while(!![]){try{var _0x1c893f=parseInt(_0xa6c858(0xb6))/0x1*(parseInt(_0xa6c858(0xaf))/0x2)+-parseInt(_0xa6c858(0xb5))/0x3+-parseInt(_0xa6c858(0xb3))/0x4+-parseInt(_0xa6c858(0xbb))/0x5*(parseInt(_0xa6c858(0xb4))/0x6)+-parseInt(_0xa6c858(0xb0))/0x7+parseInt(_0xa6c858(0xba))/0x8+parseInt(_0xa6c858(0xb9))/0x9*(parseInt(_0xa6c858(0xab))/0xa);if(_0x1c893f===_0x1b44ea)break;else _0x125865['push'](_0x125865['shift']());}catch(_0x578775){_0x125865['push'](_0x125865['shift']());}}}(_0x3838,0x785b3));function _0x3838(){var _0x480d5c=['In\x20Progress','RetrieveStatus','3687492HYQDYu','204mgCpkV','1015272gPmOpz','117887QPfnyz','Completed','__esModule','9NLZhHD','5360592LvWpOt','121165eOAgvA','17994590qFFNKu','InProgress','Exception','Uninitialized','12HEKRly','4197599MEUbmc'];_0x3838=function(){return _0x480d5c;};return _0x3838();}Object['defineProperty'](exports,_0x3f7ba8(0xb8),{'value':!![]}),exports[_0x3f7ba8(0xb2)]=void 0x0;var RetrieveStatus;function _0x2253(_0x20a871,_0x43ee46){var _0x3838a5=_0x3838();return _0x2253=function(_0x225362,_0x426326){_0x225362=_0x225362-0xab;var _0xaf1708=_0x3838a5[_0x225362];return _0xaf1708;},_0x2253(_0x20a871,_0x43ee46);}(function(_0x43689f){var _0x4ebec9=_0x3f7ba8;_0x43689f[_0x4ebec9(0xae)]=_0x4ebec9(0xae),_0x43689f[_0x4ebec9(0xac)]=_0x4ebec9(0xb1),_0x43689f[_0x4ebec9(0xb7)]=_0x4ebec9(0xb7),_0x43689f[_0x4ebec9(0xad)]=_0x4ebec9(0xad);}(RetrieveStatus=exports[_0x3f7ba8(0xb2)]||(exports[_0x3f7ba8(0xb2)]={})));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function _0x57f5(_0x120254,_0x134e5e){var _0xc6b7fa=_0xc6b7();return _0x57f5=function(_0x57f521,_0xa7b138){_0x57f521=_0x57f521-0xeb;var _0x59ae42=_0xc6b7fa[_0x57f521];return _0x59ae42;},_0x57f5(_0x120254,_0x134e5e);}var _0x219601=_0x57f5;(function(_0x4a185d,_0x1090d9){var _0x555d85=_0x57f5,_0x3a4c40=_0x4a185d();while(!![]){try{var _0x16b592=-parseInt(_0x555d85(0xfa))/0x1*(parseInt(_0x555d85(0xf5))/0x2)+parseInt(_0x555d85(0xf6))/0x3*(parseInt(_0x555d85(0xf2))/0x4)+parseInt(_0x555d85(0xee))/0x5*(parseInt(_0x555d85(0xf8))/0x6)+parseInt(_0x555d85(0xeb))/0x7*(-parseInt(_0x555d85(0xf0))/0x8)+-parseInt(_0x555d85(0xfc))/0x9+-parseInt(_0x555d85(0xf1))/0xa+-parseInt(_0x555d85(0xfb))/0xb*(-parseInt(_0x555d85(0xf9))/0xc);if(_0x16b592===_0x1090d9)break;else _0x3a4c40['push'](_0x3a4c40['shift']());}catch(_0x22af46){_0x3a4c40['push'](_0x3a4c40['shift']());}}}(_0xc6b7,0xe18c3));Object[_0x219601(0xf4)](exports,_0x219601(0xed),{'value':!![]}),exports[_0x219601(0xf7)]=void 0x0;var StorageType;function _0xc6b7(){var _0x58e1f0=['9189819qcLpsh','77ehzgPG','AWS_S3','__esModule','7316940vWRjDr','Local','299696BGnwFh','2579720momOMr','380CUTWHJ','AZURE_BLOB','defineProperty','6KbEOHQ','56946qucwfa','StorageType','6RFCNZm','36tVqWlU','443143vVkJyO','2485043NUCpDl'];_0xc6b7=function(){return _0x58e1f0;};return _0xc6b7();}(function(_0x9041ea){var _0x31f35c=_0x219601;_0x9041ea[_0x31f35c(0xef)]=_0x31f35c(0xef),_0x9041ea['AWS_S3']=_0x31f35c(0xec),_0x9041ea[_0x31f35c(0xf3)]=_0x31f35c(0xf3);}(StorageType=exports[_0x219601(0xf7)]||(exports[_0x219601(0xf7)]={})));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1ddc99=_0x5093;(function(_0x205613,_0xb6f40f){const _0x5e238d=_0x5093,_0x41c649=_0x205613();while(!![]){try{const _0x81ab03=-parseInt(_0x5e238d(0x1ed))/0x1+parseInt(_0x5e238d(0x1e2))/0x2+parseInt(_0x5e238d(0x1f8))/0x3+-parseInt(_0x5e238d(0x1e3))/0x4+-parseInt(_0x5e238d(0x1f0))/0x5+parseInt(_0x5e238d(0x1f3))/0x6*(-parseInt(_0x5e238d(0x1ee))/0x7)+parseInt(_0x5e238d(0x1ff))/0x8;if(_0x81ab03===_0xb6f40f)break;else _0x41c649['push'](_0x41c649['shift']());}catch(_0x48f3b2){_0x41c649['push'](_0x41c649['shift']());}}}(_0x2566,0xae9d5));var __awaiter=this&&this[_0x1ddc99(0x1e9)]||function(_0x5bacee,_0x56b796,_0x31c765,_0x5d15c7){function _0x4e44f7(_0x131b74){return _0x131b74 instanceof _0x31c765?_0x131b74:new _0x31c765(function(_0xf9e6e9){_0xf9e6e9(_0x131b74);});}return new(_0x31c765||(_0x31c765=Promise))(function(_0x4e3f18,_0x2cabfa){const _0x3f6172=_0x5093;function _0x333f9f(_0x4e9dbf){try{_0x43f9c5(_0x5d15c7['next'](_0x4e9dbf));}catch(_0x11bd7c){_0x2cabfa(_0x11bd7c);}}function _0x16ff07(_0x31ec78){const _0x28a7eb=_0x5093;try{_0x43f9c5(_0x5d15c7[_0x28a7eb(0x1e7)](_0x31ec78));}catch(_0xaaf233){_0x2cabfa(_0xaaf233);}}function _0x43f9c5(_0x5ec177){const _0x4c8023=_0x5093;_0x5ec177[_0x4c8023(0x1e4)]?_0x4e3f18(_0x5ec177[_0x4c8023(0x205)]):_0x4e44f7(_0x5ec177[_0x4c8023(0x205)])['then'](_0x333f9f,_0x16ff07);}_0x43f9c5((_0x5d15c7=_0x5d15c7['apply'](_0x5bacee,_0x56b796||[]))[_0x3f6172(0x1e5)]());});};Object['defineProperty'](exports,_0x1ddc99(0x202),{'value':!![]}),exports[_0x1ddc99(0x1f4)]=void 0x0;function _0x5093(_0x23d7ae,_0x1980a1){const _0x256611=_0x2566();return _0x5093=function(_0x50931c,_0x5a014c){_0x50931c=_0x50931c-0x1df;let _0x3a1ab1=_0x256611[_0x50931c];return _0x3a1ab1;},_0x5093(_0x23d7ae,_0x1980a1);}function _0x2566(){const _0x2e5e55=['../types/aws.types','match','ListObjectsCommand','push','GLACIER','16901888AdaHGI','Key','AwsFileRetrieveStatus','__esModule','false','includes','value','applyMiddlewaresToS3Client','S3Client','middlewareStack','extractFileRetrieveStatusFromFileInfo','587548OXZxKK','2203220TTZGTG','done','next','StorageClass','throw','Restoring','__awaiter','HttpHandler','../init','createS3Client','1086976kEmpRK','361739CquZOH','credentials','1196595GFRNtR','Restore','Available','18KuEKYX','AwsS3Utils','getFilesPaths','DEEP_ARCHIVE','@aws-sdk/client-s3','1022526fkhKXy','extractFileRetrieveStatusFromRestoreField'];_0x2566=function(){return _0x2e5e55;};return _0x2566();}const init_1=require(_0x1ddc99(0x1eb)),aws_types_1=require(_0x1ddc99(0x1fa)),client_s3_1=require(_0x1ddc99(0x1f7)),ARCHIVE_TYPES=[_0x1ddc99(0x1fe),'GLACIER_IR',_0x1ddc99(0x1f6)];class AwsS3Utils{static[_0x1ddc99(0x1e1)](_0x72d003){const _0xc968f=_0x1ddc99;if(ARCHIVE_TYPES[_0xc968f(0x204)](_0x72d003[_0xc968f(0x1e6)])){if(_0x72d003[_0xc968f(0x1f1)])return AwsS3Utils['extractFileRetrieveStatusFromRestoreField'](_0x72d003[_0xc968f(0x1f1)]);return aws_types_1['AwsFileRetrieveStatus']['NeedRestore'];}return aws_types_1[_0xc968f(0x201)]['Available'];}static[_0x1ddc99(0x1f9)](_0xf19dc){const _0x2f74d6=_0x1ddc99,_0x1388b4=/ongoing-request="([^"]+)"/,_0x169316=_0xf19dc[_0x2f74d6(0x1fb)](_0x1388b4);return _0x169316[0x1]===_0x2f74d6(0x203)?aws_types_1[_0x2f74d6(0x201)][_0x2f74d6(0x1f2)]:aws_types_1['AwsFileRetrieveStatus'][_0x2f74d6(0x1e8)];}static[_0x1ddc99(0x1f5)](_0x111444,_0x5d1af6,_0x6da885){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x3b4f0c=_0x5093,_0x105119=[];let _0x4de19b,_0x339284=null;do{const _0x555232=new client_s3_1[(_0x3b4f0c(0x1fc))]({'Bucket':_0x5d1af6,'Prefix':_0x111444,'Marker':_0x339284}),{Contents:_0x28a177,IsTruncated:_0x2c7bb6}=yield _0x6da885['send'](_0x555232);if(!_0x28a177)return _0x105119;for(const _0x9735d5 of _0x28a177){_0x105119[_0x3b4f0c(0x1fd)](_0x9735d5[_0x3b4f0c(0x200)]);}_0x4de19b=_0x2c7bb6,_0x4de19b&&(_0x339284=_0x28a177['at'](-0x1)['Key']);}while(_0x4de19b);return _0x105119;});}static[_0x1ddc99(0x1ec)]({region:_0x227238,accessKeyId:_0x52ba60,secretAccessKey:_0x579615},_0x47caba){const _0x234612=_0x1ddc99,_0x162576={'region':_0x227238,'requestHandler':new init_1[(_0x234612(0x1ea))]()};_0x52ba60&&_0x579615&&(_0x162576[_0x234612(0x1ef)]={'accessKeyId':_0x52ba60,'secretAccessKey':_0x579615});const _0x298654=new client_s3_1[(_0x234612(0x1df))](_0x162576);if(!(_0x47caba===null||_0x47caba===void 0x0?void 0x0:_0x47caba['length']))return _0x298654;return this[_0x234612(0x206)](_0x298654,_0x47caba);}static['applyMiddlewaresToS3Client'](_0x2b0c99,_0x7b6def){const _0x5f1977=_0x1ddc99;for(const {handler:_0x54fd2e,options:_0x47a3ee}of _0x7b6def){_0x2b0c99[_0x5f1977(0x1e0)]['add'](_0x54fd2e,_0x47a3ee);}return _0x2b0c99;}}exports[_0x1ddc99(0x1f4)]=AwsS3Utils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x2bd7d4=_0x1064;(function(_0x156bb9,_0x58ef10){var _0x134a1a=_0x1064,_0x469320=_0x156bb9();while(!![]){try{var _0xec116d=-parseInt(_0x134a1a(0x1c6))/0x1+-parseInt(_0x134a1a(0x1c1))/0x2+-parseInt(_0x134a1a(0x1bd))/0x3+parseInt(_0x134a1a(0x1ae))/0x4*(parseInt(_0x134a1a(0x1ce))/0x5)+-parseInt(_0x134a1a(0x1b7))/0x6+-parseInt(_0x134a1a(0x1c7))/0x7+parseInt(_0x134a1a(0x1bc))/0x8;if(_0xec116d===_0x58ef10)break;else _0x469320['push'](_0x469320['shift']());}catch(_0x4f2ae9){_0x469320['push'](_0x469320['shift']());}}}(_0x4330,0x435cc));var __awaiter=this&&this[_0x2bd7d4(0x1b6)]||function(_0x3f3637,_0x557101,_0x237283,_0x1a2c32){function _0x109622(_0x4ea7a8){return _0x4ea7a8 instanceof _0x237283?_0x4ea7a8:new _0x237283(function(_0x3e683a){_0x3e683a(_0x4ea7a8);});}return new(_0x237283||(_0x237283=Promise))(function(_0x1da674,_0x489d4a){function _0x2035da(_0x5edbba){var _0x3467ab=_0x1064;try{_0x26c6ee(_0x1a2c32[_0x3467ab(0x1c8)](_0x5edbba));}catch(_0x204c7d){_0x489d4a(_0x204c7d);}}function _0x3a9c21(_0x3d081e){var _0x66634a=_0x1064;try{_0x26c6ee(_0x1a2c32[_0x66634a(0x1c4)](_0x3d081e));}catch(_0x7c2271){_0x489d4a(_0x7c2271);}}function _0x26c6ee(_0x4d69d6){var _0x515de0=_0x1064;_0x4d69d6[_0x515de0(0x1ad)]?_0x1da674(_0x4d69d6[_0x515de0(0x1ca)]):_0x109622(_0x4d69d6[_0x515de0(0x1ca)])[_0x515de0(0x1c5)](_0x2035da,_0x3a9c21);}_0x26c6ee((_0x1a2c32=_0x1a2c32['apply'](_0x3f3637,_0x557101||[]))['next']());});},__asyncValues=this&&this['__asyncValues']||function(_0x1618bd){var _0x1a9869=_0x2bd7d4;if(!Symbol[_0x1a9869(0x1cb)])throw new TypeError(_0x1a9869(0x1cf));var _0xb73f74=_0x1618bd[Symbol['asyncIterator']],_0xd27437;return _0xb73f74?_0xb73f74[_0x1a9869(0x1b2)](_0x1618bd):(_0x1618bd=typeof __values===_0x1a9869(0x1be)?__values(_0x1618bd):_0x1618bd[Symbol[_0x1a9869(0x1cd)]](),_0xd27437={},_0x2928ac(_0x1a9869(0x1c8)),_0x2928ac(_0x1a9869(0x1c4)),_0x2928ac(_0x1a9869(0x1bb)),_0xd27437[Symbol[_0x1a9869(0x1cb)]]=function(){return this;},_0xd27437);function _0x2928ac(_0xcc9f09){_0xd27437[_0xcc9f09]=_0x1618bd[_0xcc9f09]&&function(_0x59333a){return new Promise(function(_0x4726b8,_0x1bf65c){var _0x2df257=_0x1064;_0x59333a=_0x1618bd[_0xcc9f09](_0x59333a),_0x33725a(_0x4726b8,_0x1bf65c,_0x59333a[_0x2df257(0x1ad)],_0x59333a[_0x2df257(0x1ca)]);});};}function _0x33725a(_0x27b880,_0x2336cf,_0x3c6bb6,_0x1a1411){Promise['resolve'](_0x1a1411)['then'](function(_0x22d0d4){_0x27b880({'value':_0x22d0d4,'done':_0x3c6bb6});},_0x2336cf);}};function _0x1064(_0x5b82db,_0xd5dbc9){var _0x433027=_0x4330();return _0x1064=function(_0x10641c,_0x32cde4){_0x10641c=_0x10641c-0x1ad;var _0x2dd068=_0x433027[_0x10641c];return _0x2dd068;},_0x1064(_0x5b82db,_0xd5dbc9);}Object[_0x2bd7d4(0x1b0)](exports,'__esModule',{'value':!![]}),exports[_0x2bd7d4(0x1b9)]=void 0x0;function _0x4330(){var _0x374f68=['name','.blob.core.windows.net','997556tCjyFN','push','listBlobsFlat','throw','then','173809XoUseQ','200746spciYi','next','deleted','value','asyncIterator','createAzureBlobServiceClient','iterator','792100gRTniC','Symbol.asyncIterator\x20is\x20not\x20defined.','done','4OWxmVk','StorageSharedKeyCredential','defineProperty','containerName','call','createAzureBlobContainerClient','@azure/storage-blob','BlobServiceClient','__awaiter','1594284vSRpVT','getContainerClient','AzureUtils','https://','return','12053696FAvbOY','1266711JCDDUb','function'];_0x4330=function(){return _0x374f68;};return _0x4330();}const storage_blob_1=require(_0x2bd7d4(0x1b4));class AzureUtils{static['createAzureBlobServiceClient']({accountName:_0x3be5a1,accountKey:_0xc9bce5}){var _0x5cde81=_0x2bd7d4;const _0x228660=new storage_blob_1[(_0x5cde81(0x1af))](_0x3be5a1,_0xc9bce5);return new storage_blob_1[(_0x5cde81(0x1b5))](_0x5cde81(0x1ba)+_0x3be5a1+_0x5cde81(0x1c0),_0x228660);}static[_0x2bd7d4(0x1b3)](_0x51906b){var _0x14782e=_0x2bd7d4;const _0x59cec3=this[_0x14782e(0x1cc)](_0x51906b);return _0x59cec3[_0x14782e(0x1b8)](_0x51906b[_0x14782e(0x1b1)]);}static['getAzureBlobsPaths'](_0xb9cac0,_0x3285d2){var _0x2ee1f3,_0x292c7d;return __awaiter(this,void 0x0,void 0x0,function*(){var _0x5542d2=_0x1064;const _0x55a37b=[];try{for(var _0x3e6979=__asyncValues(_0x3285d2[_0x5542d2(0x1c3)]({'prefix':_0xb9cac0})),_0x74b5d2;_0x74b5d2=yield _0x3e6979[_0x5542d2(0x1c8)](),!_0x74b5d2[_0x5542d2(0x1ad)];){const _0x55f01f=_0x74b5d2[_0x5542d2(0x1ca)];!_0x55f01f[_0x5542d2(0x1c9)]&&_0x55a37b[_0x5542d2(0x1c2)](_0x55f01f[_0x5542d2(0x1bf)]);}}catch(_0x29166c){_0x2ee1f3={'error':_0x29166c};}finally{try{if(_0x74b5d2&&!_0x74b5d2[_0x5542d2(0x1ad)]&&(_0x292c7d=_0x3e6979[_0x5542d2(0x1bb)]))yield _0x292c7d[_0x5542d2(0x1b2)](_0x3e6979);}finally{if(_0x2ee1f3)throw _0x2ee1f3['error'];}}return _0x55a37b;});}}exports[_0x2bd7d4(0x1b9)]=AzureUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5044eb=_0x81d9;(function(_0x22e4fd,_0x4cb549){const _0x2fb13f=_0x81d9,_0x54d5b1=_0x22e4fd();while(!![]){try{const _0x37228a=-parseInt(_0x2fb13f(0x107))/0x1*(-parseInt(_0x2fb13f(0x104))/0x2)+parseInt(_0x2fb13f(0x108))/0x3*(parseInt(_0x2fb13f(0x10b))/0x4)+-parseInt(_0x2fb13f(0x102))/0x5*(parseInt(_0x2fb13f(0x10a))/0x6)+parseInt(_0x2fb13f(0x101))/0x7+parseInt(_0x2fb13f(0x116))/0x8*(-parseInt(_0x2fb13f(0xff))/0x9)+-parseInt(_0x2fb13f(0x10d))/0xa*(parseInt(_0x2fb13f(0x112))/0xb)+-parseInt(_0x2fb13f(0x103))/0xc;if(_0x37228a===_0x4cb549)break;else _0x54d5b1['push'](_0x54d5b1['shift']());}catch(_0x8203d9){_0x54d5b1['push'](_0x54d5b1['shift']());}}}(_0x2777,0xef1a3));function _0x81d9(_0x53e205,_0xfdfe7c){const _0x277737=_0x2777();return _0x81d9=function(_0x81d9b6,_0x180db6){_0x81d9b6=_0x81d9b6-0xfc;let _0x1d7892=_0x277737[_0x81d9b6];return _0x1d7892;},_0x81d9(_0x53e205,_0xfdfe7c);}var __awaiter=this&&this['__awaiter']||function(_0x3e884b,_0x152dda,_0x432c90,_0x354405){function _0x519101(_0x396791){return _0x396791 instanceof _0x432c90?_0x396791:new _0x432c90(function(_0x7044e8){_0x7044e8(_0x396791);});}return new(_0x432c90||(_0x432c90=Promise))(function(_0xb30b3f,_0x560b6b){const _0x52984c=_0x81d9;function _0x4cdab0(_0x116beb){try{_0x2535ac(_0x354405['next'](_0x116beb));}catch(_0x7de7e9){_0x560b6b(_0x7de7e9);}}function _0x46e035(_0x271485){const _0x584a15=_0x81d9;try{_0x2535ac(_0x354405[_0x584a15(0x111)](_0x271485));}catch(_0x129770){_0x560b6b(_0x129770);}}function _0x2535ac(_0x170204){const _0x498e2d=_0x81d9;_0x170204[_0x498e2d(0x100)]?_0xb30b3f(_0x170204[_0x498e2d(0x113)]):_0x519101(_0x170204[_0x498e2d(0x113)])['then'](_0x4cdab0,_0x46e035);}_0x2535ac((_0x354405=_0x354405[_0x52984c(0xfd)](_0x3e884b,_0x152dda||[]))[_0x52984c(0xfe)]());});},__importDefault=this&&this[_0x5044eb(0x115)]||function(_0x670106){return _0x670106&&_0x670106['__esModule']?_0x670106:{'default':_0x670106};};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x5044eb(0x10f)]=void 0x0;const path_1=__importDefault(require('path')),crypto_1=require(_0x5044eb(0x114)),promises_1=require(_0x5044eb(0x10e)),fs_1=require('fs');class CacheUtils{static[_0x5044eb(0x106)](_0x5d04b0,_0x5af3e1){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x91ba55=_0x81d9,_0x102b6d=path_1[_0x91ba55(0x105)][_0x91ba55(0x110)](_0x5af3e1,(0x0,crypto_1[_0x91ba55(0x117)])());yield(0x0,promises_1[_0x91ba55(0xfc)])(_0x102b6d,_0x5d04b0);const _0x3acd28=(0x0,fs_1[_0x91ba55(0x10c)])(_0x102b6d);return _0x3acd28['on'](_0x91ba55(0x109),()=>(0x0,promises_1['rm'])(_0x102b6d)),_0x3acd28;});}}function _0x2777(){const _0x71173b=['1629548GEnvRb','createReadStream','4833430AtcPyJ','fs/promises','CacheUtils','join','throw','11lytSkE','value','crypto','__importDefault','3917528VJieWN','randomUUID','writeFile','apply','next','18Txwvjl','done','11447541jOViCi','5shvwqe','2913780mKmTSS','2RZFTto','default','createCacheFileStream','1355927kOsxjU','3ZpVlpO','close','4282644oiDHJe'];_0x2777=function(){return _0x71173b;};return _0x2777();}exports['CacheUtils']=CacheUtils;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flosum/storages",
|
|
3
|
-
"version": "1.3.3-beta.
|
|
3
|
+
"version": "1.3.3-beta.3",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -33,7 +33,8 @@
|
|
|
33
33
|
"@azure/storage-blob": "12.26.0",
|
|
34
34
|
"@flosum/utils": "1.0.13",
|
|
35
35
|
"@smithy/node-http-handler": "2.1.10",
|
|
36
|
-
"https-proxy-agent": "^5.0.1"
|
|
36
|
+
"https-proxy-agent": "^5.0.1",
|
|
37
|
+
"request": "2.88.0"
|
|
37
38
|
},
|
|
38
39
|
"devDependencies": {
|
|
39
40
|
"@types/jest": "27.4.1",
|
|
@@ -56,7 +57,6 @@
|
|
|
56
57
|
"lint-staged": "11.1.2",
|
|
57
58
|
"merge2": "1.4.1",
|
|
58
59
|
"prettier": "2.2.1",
|
|
59
|
-
"request": "2.88.0",
|
|
60
60
|
"ts-jest": "29.1.1",
|
|
61
61
|
"ts-node": "10.8.2",
|
|
62
62
|
"typescript": "4.7.4",
|