@flosum/storages 1.3.3-beta.5 → 1.3.3-beta.7
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.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/retrieve/aws-s3-import-helper.d.ts +4 -0
- 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';const
|
|
1
|
+
'use strict';const _0x1019bb=_0x5269;(function(_0x15d841,_0x41db1e){const _0x30bbd4=_0x5269,_0x3b4a31=_0x15d841();while(!![]){try{const _0x1617d6=-parseInt(_0x30bbd4(0x144))/0x1*(parseInt(_0x30bbd4(0x141))/0x2)+parseInt(_0x30bbd4(0x13e))/0x3*(parseInt(_0x30bbd4(0x13d))/0x4)+parseInt(_0x30bbd4(0x12b))/0x5*(parseInt(_0x30bbd4(0x12e))/0x6)+-parseInt(_0x30bbd4(0x14d))/0x7*(parseInt(_0x30bbd4(0x14c))/0x8)+-parseInt(_0x30bbd4(0x14e))/0x9+parseInt(_0x30bbd4(0x143))/0xa*(parseInt(_0x30bbd4(0x135))/0xb)+-parseInt(_0x30bbd4(0x13a))/0xc*(parseInt(_0x30bbd4(0x133))/0xd);if(_0x1617d6===_0x41db1e)break;else _0x3b4a31['push'](_0x3b4a31['shift']());}catch(_0x247509){_0x3b4a31['push'](_0x3b4a31['shift']());}}}(_0x1431,0x1af12));var __awaiter=this&&this[_0x1019bb(0x132)]||function(_0x4bf612,_0x181f91,_0x407bd2,_0x13509e){function _0x1439bc(_0x2049e5){return _0x2049e5 instanceof _0x407bd2?_0x2049e5:new _0x407bd2(function(_0x531537){_0x531537(_0x2049e5);});}return new(_0x407bd2||(_0x407bd2=Promise))(function(_0x21218a,_0x518f7f){const _0x2fae6b=_0x5269;function _0x3e5dc7(_0x2705d4){const _0x45eff9=_0x5269;try{_0x2752a0(_0x13509e[_0x45eff9(0x127)](_0x2705d4));}catch(_0x4d2b0e){_0x518f7f(_0x4d2b0e);}}function _0x39bfb4(_0x2a5dcb){const _0x3a3ca7=_0x5269;try{_0x2752a0(_0x13509e[_0x3a3ca7(0x12f)](_0x2a5dcb));}catch(_0x209e60){_0x518f7f(_0x209e60);}}function _0x2752a0(_0x380fe2){const _0x2f060f=_0x5269;_0x380fe2[_0x2f060f(0x131)]?_0x21218a(_0x380fe2['value']):_0x1439bc(_0x380fe2[_0x2f060f(0x134)])[_0x2f060f(0x124)](_0x3e5dc7,_0x39bfb4);}_0x2752a0((_0x13509e=_0x13509e[_0x2fae6b(0x14a)](_0x4bf612,_0x181f91||[]))[_0x2fae6b(0x127)]());});};Object[_0x1019bb(0x148)](exports,_0x1019bb(0x145),{'value':!![]}),exports[_0x1019bb(0x142)]=void 0x0;function _0x5269(_0x7593d,_0x5082b7){const _0x143162=_0x1431();return _0x5269=function(_0x526969,_0x46ad9b){_0x526969=_0x526969-0x124;let _0x57744a=_0x143162[_0x526969];return _0x57744a;},_0x5269(_0x7593d,_0x5082b7);}const init_1=require(_0x1019bb(0x12a)),aws_types_1=require('../types/aws.types'),client_s3_1=require(_0x1019bb(0x149)),ARCHIVE_TYPES=[_0x1019bb(0x136),_0x1019bb(0x151),_0x1019bb(0x130)];class AwsS3Utils{static['extractFileRetrieveStatusFromFileInfo'](_0x4b9df8){const _0x50723b=_0x1019bb;if(ARCHIVE_TYPES[_0x50723b(0x12c)](_0x4b9df8[_0x50723b(0x13b)])){if(_0x4b9df8[_0x50723b(0x138)])return AwsS3Utils[_0x50723b(0x13f)](_0x4b9df8['Restore']);return aws_types_1[_0x50723b(0x125)][_0x50723b(0x14b)];}return aws_types_1[_0x50723b(0x125)]['Available'];}static[_0x1019bb(0x13f)](_0x1aea15){const _0x2084a4=_0x1019bb,_0x3c7d62=/ongoing-request="([^"]+)"/,_0x2e4803=_0x1aea15['match'](_0x3c7d62);return _0x2e4803[0x1]===_0x2084a4(0x150)?aws_types_1['AwsFileRetrieveStatus'][_0x2084a4(0x140)]:aws_types_1[_0x2084a4(0x125)][_0x2084a4(0x146)];}static[_0x1019bb(0x129)](_0x54021b,_0x2d5a1f,_0x4cfe12){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x3a2eef=_0x5269,_0x2664d9=[];let _0x4dbfb6,_0x9763c2=null;do{const _0x30ccc4=new client_s3_1[(_0x3a2eef(0x147))]({'Bucket':_0x2d5a1f,'Prefix':_0x54021b,'Marker':_0x9763c2}),{Contents:_0x40ddb2,IsTruncated:_0x142188}=yield _0x4cfe12[_0x3a2eef(0x13c)](_0x30ccc4);if(!_0x40ddb2)return _0x2664d9;for(const _0x352713 of _0x40ddb2){_0x2664d9[_0x3a2eef(0x12d)](_0x352713[_0x3a2eef(0x126)]);}_0x4dbfb6=_0x142188,_0x4dbfb6&&(_0x9763c2=_0x40ddb2['at'](-0x1)[_0x3a2eef(0x126)]);}while(_0x4dbfb6);return _0x2664d9;});}static['createS3Client']({region:_0x265231,accessKeyId:_0x51552c,secretAccessKey:_0xe581f8},_0x2378c9){const _0x278088=_0x1019bb,_0x6adf6a={'region':_0x265231,'requestHandler':new init_1['HttpHandler']()};_0x51552c&&_0xe581f8&&(_0x6adf6a['credentials']={'accessKeyId':_0x51552c,'secretAccessKey':_0xe581f8});const _0x3b74d6=new client_s3_1[(_0x278088(0x139))](_0x6adf6a);if(!(_0x2378c9===null||_0x2378c9===void 0x0?void 0x0:_0x2378c9[_0x278088(0x14f)]))return _0x3b74d6;return this['applyMiddlewaresToS3Client'](_0x3b74d6,_0x2378c9);}static[_0x1019bb(0x137)](_0x3dddf6,_0x1417c3){const _0xd58f9d=_0x1019bb;for(const {handler:_0x10af28,options:_0x515a7f}of _0x1417c3){_0x3dddf6['middlewareStack'][_0xd58f9d(0x128)](_0x10af28,_0x515a7f);}return _0x3dddf6;}}function _0x1431(){const _0x2ada7c=['3RVzVba','extractFileRetrieveStatusFromRestoreField','Available','2SYhXrN','AwsS3Utils','1786010acxerA','61669WnIdas','__esModule','Restoring','ListObjectsCommand','defineProperty','@aws-sdk/client-s3','apply','NeedRestore','6064lvKsDL','238zDBQzt','1776339MGwCLf','length','false','GLACIER_IR','then','AwsFileRetrieveStatus','Key','next','add','getFilesPaths','../init','179020uZKzpg','includes','push','12zWUeqm','throw','DEEP_ARCHIVE','done','__awaiter','168948XEruha','value','11lnWnWk','GLACIER','applyMiddlewaresToS3Client','Restore','S3Client','24QwYmOB','StorageClass','send','683796zSPvhF'];_0x1431=function(){return _0x2ada7c;};return _0x1431();}exports[_0x1019bb(0x142)]=AwsS3Utils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x3fda(){var _0x33161f=['getContainerClient','defineProperty','302796PVjpTN','listBlobsFlat','done','1092870wbMIce','Symbol.asyncIterator\x20is\x20not\x20defined.','iterator','function','BlobServiceClient','call','@azure/storage-blob','then','11272yXSQtC','479990LVzSsR','value','__esModule','56114ScZEQm','deleted','StorageSharedKeyCredential','9909TcAwWG','return','3140EAcOdl','createAzureBlobContainerClient','AzureUtils','__asyncValues','2163xcPZkE','asyncIterator','12CcffxW','resolve','apply','https://','createAzureBlobServiceClient','431378aERkbw','.blob.core.windows.net','push','next'];_0x3fda=function(){return _0x33161f;};return _0x3fda();}var _0x3fd30e=_0x1178;(function(_0x595097,_0x263947){var _0x40425f=_0x1178,_0x310da4=_0x595097();while(!![]){try{var _0x8bb721=-parseInt(_0x40425f(0xc3))/0x1+-parseInt(_0x40425f(0xd3))/0x2+parseInt(_0x40425f(0xb7))/0x3+-parseInt(_0x40425f(0xce))/0x4*(-parseInt(_0x40425f(0xc0))/0x5)+-parseInt(_0x40425f(0xd9))/0x6+-parseInt(_0x40425f(0xcc))/0x7*(parseInt(_0x40425f(0xbf))/0x8)+parseInt(_0x40425f(0xc6))/0x9*(parseInt(_0x40425f(0xc8))/0xa);if(_0x8bb721===_0x263947)break;else _0x310da4['push'](_0x310da4['shift']());}catch(_0x8b7a86){_0x310da4['push'](_0x310da4['shift']());}}}(_0x3fda,0x3aadc));function _0x1178(_0x361ee2,_0xa8be7b){var _0x3fdadc=_0x3fda();return _0x1178=function(_0x117813,_0x2d6809){_0x117813=_0x117813-0xb6;var _0x5699ee=_0x3fdadc[_0x117813];return _0x5699ee;},_0x1178(_0x361ee2,_0xa8be7b);}var __awaiter=this&&this['__awaiter']||function(_0xe70389,_0x18220b,_0x278b48,_0x3ca04a){function _0x468eb6(_0x17847a){return _0x17847a instanceof _0x278b48?_0x17847a:new _0x278b48(function(_0xef2257){_0xef2257(_0x17847a);});}return new(_0x278b48||(_0x278b48=Promise))(function(_0x1d5ddd,_0x3361f1){var _0x603db0=_0x1178;function _0x28bca7(_0x40ccb3){try{_0x4e91af(_0x3ca04a['next'](_0x40ccb3));}catch(_0x3ad6da){_0x3361f1(_0x3ad6da);}}function _0x5e57ee(_0x3a40ee){try{_0x4e91af(_0x3ca04a['throw'](_0x3a40ee));}catch(_0x116d76){_0x3361f1(_0x116d76);}}function _0x4e91af(_0x4e0af8){var _0x46ffec=_0x1178;_0x4e0af8[_0x46ffec(0xb6)]?_0x1d5ddd(_0x4e0af8['value']):_0x468eb6(_0x4e0af8[_0x46ffec(0xc1)])['then'](_0x28bca7,_0x5e57ee);}_0x4e91af((_0x3ca04a=_0x3ca04a[_0x603db0(0xd0)](_0xe70389,_0x18220b||[]))[_0x603db0(0xd6)]());});},__asyncValues=this&&this[_0x3fd30e(0xcb)]||function(_0x263405){var _0x5635e9=_0x3fd30e;if(!Symbol[_0x5635e9(0xcd)])throw new TypeError(_0x5635e9(0xb8));var _0x22e3a4=_0x263405[Symbol[_0x5635e9(0xcd)]],_0x336440;return _0x22e3a4?_0x22e3a4['call'](_0x263405):(_0x263405=typeof __values===_0x5635e9(0xba)?__values(_0x263405):_0x263405[Symbol[_0x5635e9(0xb9)]](),_0x336440={},_0x29de41(_0x5635e9(0xd6)),_0x29de41('throw'),_0x29de41(_0x5635e9(0xc7)),_0x336440[Symbol[_0x5635e9(0xcd)]]=function(){return this;},_0x336440);function _0x29de41(_0x12d9a3){_0x336440[_0x12d9a3]=_0x263405[_0x12d9a3]&&function(_0x34c586){return new Promise(function(_0x3ead33,_0x202847){var _0x6cf70c=_0x1178;_0x34c586=_0x263405[_0x12d9a3](_0x34c586),_0x4f79f6(_0x3ead33,_0x202847,_0x34c586['done'],_0x34c586[_0x6cf70c(0xc1)]);});};}function _0x4f79f6(_0x382ea1,_0x343e61,_0x392bf2,_0xfbdc78){var _0x1c955c=_0x5635e9;Promise[_0x1c955c(0xcf)](_0xfbdc78)[_0x1c955c(0xbe)](function(_0x4c2ad2){_0x382ea1({'value':_0x4c2ad2,'done':_0x392bf2});},_0x343e61);}};Object[_0x3fd30e(0xd8)](exports,_0x3fd30e(0xc2),{'value':!![]}),exports[_0x3fd30e(0xca)]=void 0x0;const storage_blob_1=require(_0x3fd30e(0xbd));class AzureUtils{static['createAzureBlobServiceClient']({accountName:_0x358482,accountKey:_0x156e4a}){var _0x41a463=_0x3fd30e;const _0x2f4405=new storage_blob_1[(_0x41a463(0xc5))](_0x358482,_0x156e4a);return new storage_blob_1[(_0x41a463(0xbb))](_0x41a463(0xd1)+_0x358482+_0x41a463(0xd4),_0x2f4405);}static[_0x3fd30e(0xc9)](_0x528ee3){var _0x1adc8b=_0x3fd30e;const _0x36b2b1=this[_0x1adc8b(0xd2)](_0x528ee3);return _0x36b2b1[_0x1adc8b(0xd7)](_0x528ee3['containerName']);}static['getAzureBlobsPaths'](_0x369b4c,_0x3d0b38){var _0x12895f,_0x1ebeb5;return __awaiter(this,void 0x0,void 0x0,function*(){var _0x72c071=_0x1178;const _0x4a24f2=[];try{for(var _0x5e1475=__asyncValues(_0x3d0b38[_0x72c071(0xda)]({'prefix':_0x369b4c})),_0x3fda0f;_0x3fda0f=yield _0x5e1475[_0x72c071(0xd6)](),!_0x3fda0f['done'];){const _0x42be84=_0x3fda0f[_0x72c071(0xc1)];!_0x42be84[_0x72c071(0xc4)]&&_0x4a24f2[_0x72c071(0xd5)](_0x42be84['name']);}}catch(_0x2ffa51){_0x12895f={'error':_0x2ffa51};}finally{try{if(_0x3fda0f&&!_0x3fda0f[_0x72c071(0xb6)]&&(_0x1ebeb5=_0x5e1475[_0x72c071(0xc7)]))yield _0x1ebeb5[_0x72c071(0xbc)](_0x5e1475);}finally{if(_0x12895f)throw _0x12895f['error'];}}return _0x4a24f2;});}}exports[_0x3fd30e(0xca)]=AzureUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x2672(_0x3cf4e9,_0x5ea378){const _0x320608=_0x3206();return _0x2672=function(_0x2672a1,_0x4158bb){_0x2672a1=_0x2672a1-0x189;let _0x8ff79=_0x320608[_0x2672a1];return _0x8ff79;},_0x2672(_0x3cf4e9,_0x5ea378);}function _0x3206(){const _0x21075c=['fs/promises','7033008DUhTZl','path','crypto','68RvUYJV','default','createCacheFileStream','69545dxptty','writeFile','CacheUtils','__esModule','defineProperty','next','902376UsIMZk','1177557Lixkpp','__importDefault','15865272VOXLnF','6171256LEZoIT','909826UGcEll','done','1Rojtkx'];_0x3206=function(){return _0x21075c;};return _0x3206();}const _0x38cf53=_0x2672;(function(_0x3a2917,_0x175bb2){const _0x5cbed6=_0x2672,_0x494059=_0x3a2917();while(!![]){try{const _0xde77d5=-parseInt(_0x5cbed6(0x195))/0x1*(-parseInt(_0x5cbed6(0x193))/0x2)+-parseInt(_0x5cbed6(0x18f))/0x3+parseInt(_0x5cbed6(0x19a))/0x4*(parseInt(_0x5cbed6(0x19d))/0x5)+parseInt(_0x5cbed6(0x18e))/0x6+-parseInt(_0x5cbed6(0x192))/0x7+-parseInt(_0x5cbed6(0x197))/0x8+parseInt(_0x5cbed6(0x191))/0x9;if(_0xde77d5===_0x175bb2)break;else _0x494059['push'](_0x494059['shift']());}catch(_0x13f125){_0x494059['push'](_0x494059['shift']());}}}(_0x3206,0x6e2f5));var __awaiter=this&&this['__awaiter']||function(_0x358b3b,_0x4379c1,_0x2cdd61,_0x3940d4){function _0x3b6386(_0x497322){return _0x497322 instanceof _0x2cdd61?_0x497322:new _0x2cdd61(function(_0x5a984a){_0x5a984a(_0x497322);});}return new(_0x2cdd61||(_0x2cdd61=Promise))(function(_0x1a819e,_0x57c3df){const _0x2f96fd=_0x2672;function _0xd32c1a(_0x488ce5){const _0x52f348=_0x2672;try{_0x34f663(_0x3940d4[_0x52f348(0x18d)](_0x488ce5));}catch(_0x52f5ae){_0x57c3df(_0x52f5ae);}}function _0x2a2315(_0x179f4b){try{_0x34f663(_0x3940d4['throw'](_0x179f4b));}catch(_0x48c1e7){_0x57c3df(_0x48c1e7);}}function _0x34f663(_0xb37c05){const _0x76d68=_0x2672;_0xb37c05[_0x76d68(0x194)]?_0x1a819e(_0xb37c05['value']):_0x3b6386(_0xb37c05['value'])['then'](_0xd32c1a,_0x2a2315);}_0x34f663((_0x3940d4=_0x3940d4['apply'](_0x358b3b,_0x4379c1||[]))[_0x2f96fd(0x18d)]());});},__importDefault=this&&this[_0x38cf53(0x190)]||function(_0x4171d3){return _0x4171d3&&_0x4171d3['__esModule']?_0x4171d3:{'default':_0x4171d3};};Object[_0x38cf53(0x18c)](exports,_0x38cf53(0x18b),{'value':!![]}),exports[_0x38cf53(0x18a)]=void 0x0;const path_1=__importDefault(require(_0x38cf53(0x198))),crypto_1=require(_0x38cf53(0x199)),promises_1=require(_0x38cf53(0x196)),fs_1=require('fs');class CacheUtils{static[_0x38cf53(0x19c)](_0x12f996,_0x2fefb5){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x3025b2=_0x2672,_0x20cb87=path_1[_0x3025b2(0x19b)]['join'](_0x2fefb5,(0x0,crypto_1['randomUUID'])());yield(0x0,promises_1[_0x3025b2(0x189)])(_0x20cb87,_0x12f996);const _0x377e8d=(0x0,fs_1['createReadStream'])(_0x20cb87);return _0x377e8d['on']('close',()=>(0x0,promises_1['rm'])(_0x20cb87)),_0x377e8d;});}}exports[_0x38cf53(0x18a)]=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.7",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"author": "Flosum",
|
|
29
29
|
"license": "ISC",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@aws-sdk/client-s3": "3.
|
|
32
|
-
"@aws-sdk/lib-storage": "3.
|
|
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",
|