@flosum/storages 1.4.1 → 1.4.2
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/google-cloud-credentials.d.ts +12 -0
- package/dist/credentials/google-cloud-credentials.js +1 -0
- package/dist/credentials/index.d.ts +1 -0
- 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/google-cloud-delete.d.ts +8 -0
- package/dist/delete/google-cloud-delete.js +1 -0
- package/dist/delete/index.d.ts +1 -0
- package/dist/delete/index.js +1 -1
- package/dist/delete/local-delete.js +1 -1
- package/dist/deploy/aws-s3-deploy.d.ts +0 -2
- package/dist/deploy/aws-s3-deploy.js +1 -1
- package/dist/deploy/azure-deploy.d.ts +0 -2
- package/dist/deploy/azure-deploy.js +1 -1
- package/dist/deploy/base-deploy.d.ts +0 -2
- package/dist/deploy/base-deploy.js +1 -1
- package/dist/deploy/google-cloud-deploy.d.ts +10 -0
- package/dist/deploy/google-cloud-deploy.js +1 -0
- package/dist/deploy/index.d.ts +1 -0
- package/dist/deploy/index.js +1 -1
- package/dist/deploy/local-deploy.d.ts +0 -2
- 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/google-cloud-file-size-retriever.d.ts +7 -0
- package/dist/file-size-retriever/google-cloud-file-size-retriever.js +1 -0
- package/dist/file-size-retriever/index.d.ts +1 -0
- 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 +0 -2
- 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 +0 -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/google-cloud-retrieve.d.ts +13 -0
- package/dist/retrieve/google-cloud-retrieve.js +1 -0
- 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/google-cloud-helper.d.ts +10 -0
- package/dist/retrieve/helpers/google-cloud-helper.js +1 -0
- package/dist/retrieve/helpers/local-helper.js +1 -1
- package/dist/retrieve/index.d.ts +2 -0
- 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/google-cloud.types.d.ts +6 -0
- package/dist/types/google-cloud.types.js +1 -0
- package/dist/types/index.js +1 -1
- package/dist/types/internal.types.d.ts +0 -1
- package/dist/types/internal.types.js +1 -1
- package/dist/types/retrieve-status.enum.js +1 -1
- package/dist/types/storage-type.enum.d.ts +2 -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.d.ts +0 -1
- package/dist/utils/cache.utils.js +1 -1
- package/dist/utils/google-cloud.utils.d.ts +7 -0
- package/dist/utils/google-cloud.utils.js +1 -0
- package/package.json +8 -8
package/dist/copy/aws-s3-copy.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1f1fa4=_0x5d47;(function(_0x5c118a,_0x28f6d0){const _0xb9ead2=_0x5d47,_0xa57c48=_0x5c118a();while(!![]){try{const _0x2a6903=-parseInt(_0xb9ead2(0x166))/0x1*(-parseInt(_0xb9ead2(0x16b))/0x2)+parseInt(_0xb9ead2(0x173))/0x3*(parseInt(_0xb9ead2(0x167))/0x4)+parseInt(_0xb9ead2(0x178))/0x5*(parseInt(_0xb9ead2(0x175))/0x6)+-parseInt(_0xb9ead2(0x176))/0x7+-parseInt(_0xb9ead2(0x170))/0x8*(parseInt(_0xb9ead2(0x174))/0x9)+-parseInt(_0xb9ead2(0x179))/0xa+-parseInt(_0xb9ead2(0x16a))/0xb*(-parseInt(_0xb9ead2(0x165))/0xc);if(_0x2a6903===_0x28f6d0)break;else _0xa57c48['push'](_0xa57c48['shift']());}catch(_0x16ef36){_0xa57c48['push'](_0xa57c48['shift']());}}}(_0x258d,0x1f8b3));var __awaiter=this&&this['__awaiter']||function(_0x27ecdc,_0x4e9d69,_0x199b99,_0x229971){function _0x913b41(_0xaead7b){return _0xaead7b instanceof _0x199b99?_0xaead7b:new _0x199b99(function(_0x43f23a){_0x43f23a(_0xaead7b);});}return new(_0x199b99||(_0x199b99=Promise))(function(_0x4d731d,_0x8802f9){const _0x5ac4c6=_0x5d47;function _0x2ef8ff(_0x324422){const _0x40dd3b=_0x5d47;try{_0x393eaa(_0x229971[_0x40dd3b(0x16e)](_0x324422));}catch(_0x1d94d8){_0x8802f9(_0x1d94d8);}}function _0x1b1c16(_0x4c4dc5){try{_0x393eaa(_0x229971['throw'](_0x4c4dc5));}catch(_0x5d302e){_0x8802f9(_0x5d302e);}}function _0x393eaa(_0x927926){const _0x30dc5d=_0x5d47;_0x927926[_0x30dc5d(0x171)]?_0x4d731d(_0x927926[_0x30dc5d(0x163)]):_0x913b41(_0x927926[_0x30dc5d(0x163)])[_0x30dc5d(0x169)](_0x2ef8ff,_0x1b1c16);}_0x393eaa((_0x229971=_0x229971[_0x5ac4c6(0x161)](_0x27ecdc,_0x4e9d69||[]))[_0x5ac4c6(0x16e)]());});};function _0x5d47(_0x2f4838,_0x2bf0f1){_0x2f4838=_0x2f4838-0x15e;const _0x258d7e=_0x258d();let _0x5d4716=_0x258d7e[_0x2f4838];return _0x5d4716;}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x1f1fa4(0x16f)]=void 0x0;const base_copy_1=require('./base-copy'),client_s3_1=require(_0x1f1fa4(0x15e)),aws_s3_utils_1=require('../utils/aws-s3.utils');class AwsS3Copy extends base_copy_1[_0x1f1fa4(0x15f)]{constructor(_0x32a894,_0x91c0b3){const _0x23da9a=_0x1f1fa4;super(_0x32a894),this[_0x23da9a(0x16c)]=_0x91c0b3||aws_s3_utils_1[_0x23da9a(0x16d)][_0x23da9a(0x172)](_0x32a894);}[_0x1f1fa4(0x160)](_0x121d4c,_0x28baa3){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x420248=_0x5d47,_0x380881=new client_s3_1[(_0x420248(0x177))]({'Bucket':this[_0x420248(0x168)][_0x420248(0x162)],'CopySource':_0x121d4c,'Key':_0x28baa3});yield this[_0x420248(0x16c)][_0x420248(0x164)](_0x380881);});}}function _0x258d(){const _0x506339=['1336797pCuHdY','121704dfXWPx','757169TFDrsI','CopyObjectCommand','10utiLaN','193330oodXgD','@aws-sdk/client-s3','BaseCopy','execute','apply','bucketName','value','send','24fZjAQY','1079tFSeVl','6252Ueowiz','credentials','then','307109nHzaAu','106tfgnfl','s3Client','AwsS3Utils','next','AwsS3Copy','8ZtxJwy','done','createS3Client','483jGwKNc'];_0x258d=function(){return _0x506339;};return _0x258d();}exports[_0x1f1fa4(0x16f)]=AwsS3Copy;
|
package/dist/copy/base-copy.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x3393e4=_0x4170;(function(_0x57c99b,_0x57aab1){var _0x264b8c=_0x4170,_0xdf9c8=_0x57c99b();while(!![]){try{var _0xe29cc8=parseInt(_0x264b8c(0xe9))/0x1+-parseInt(_0x264b8c(0xdf))/0x2*(-parseInt(_0x264b8c(0xe4))/0x3)+parseInt(_0x264b8c(0xdd))/0x4+-parseInt(_0x264b8c(0xe1))/0x5*(parseInt(_0x264b8c(0xdc))/0x6)+-parseInt(_0x264b8c(0xe7))/0x7*(-parseInt(_0x264b8c(0xde))/0x8)+-parseInt(_0x264b8c(0xe3))/0x9+-parseInt(_0x264b8c(0xe8))/0xa;if(_0xe29cc8===_0x57aab1)break;else _0xdf9c8['push'](_0xdf9c8['shift']());}catch(_0x5608d7){_0xdf9c8['push'](_0xdf9c8['shift']());}}}(_0x5b6c,0x7bc0e));Object[_0x3393e4(0xe6)](exports,_0x3393e4(0xe5),{'value':!![]}),exports['BaseCopy']=void 0x0;function _0x5b6c(){var _0x26030d=['5146596LQBsFJ','2980209iPBhir','__esModule','defineProperty','2751TYAiLL','9787720NaSKuq','40476CBZOTE','6cUkLvz','2648832KsfssQ','12816LcMAEa','2ycgisG','BaseCopy','1340815GQgAHq','credentials'];_0x5b6c=function(){return _0x26030d;};return _0x5b6c();}function _0x4170(_0xe86e09,_0x96d721){_0xe86e09=_0xe86e09-0xdc;var _0x5b6c79=_0x5b6c();var _0x417020=_0x5b6c79[_0xe86e09];return _0x417020;}class BaseCopy{constructor(_0x114a15){var _0x3f3272=_0x3393e4;this[_0x3f3272(0xe2)]=_0x114a15;}}exports[_0x3393e4(0xe0)]=BaseCopy;
|
package/dist/copy/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0xdc0ad2=_0x3187;(function(_0x1f696b,_0x19c456){var _0x11736c=_0x3187,_0x422be0=_0x1f696b();while(!![]){try{var _0x4d95b6=-parseInt(_0x11736c(0xab))/0x1*(-parseInt(_0x11736c(0xad))/0x2)+-parseInt(_0x11736c(0xb1))/0x3+parseInt(_0x11736c(0xb3))/0x4*(parseInt(_0x11736c(0xa7))/0x5)+parseInt(_0x11736c(0xa8))/0x6*(parseInt(_0x11736c(0xa9))/0x7)+parseInt(_0x11736c(0xa4))/0x8*(parseInt(_0x11736c(0xae))/0x9)+parseInt(_0x11736c(0xb0))/0xa+-parseInt(_0x11736c(0xaa))/0xb*(parseInt(_0x11736c(0xb4))/0xc);if(_0x4d95b6===_0x19c456)break;else _0x422be0['push'](_0x422be0['shift']());}catch(_0x5ea7aa){_0x422be0['push'](_0x422be0['shift']());}}}(_0x2afc,0x3b216));function _0x3187(_0x4361a6,_0x42a468){_0x4361a6=_0x4361a6-0xa3;var _0x2afc5e=_0x2afc();var _0x3187d2=_0x2afc5e[_0x4361a6];return _0x3187d2;}Object[_0xdc0ad2(0xac)](exports,'__esModule',{'value':!![]}),exports[_0xdc0ad2(0xb2)]=exports[_0xdc0ad2(0xa5)]=exports[_0xdc0ad2(0xa3)]=void 0x0;var base_copy_1=require(_0xdc0ad2(0xaf));Object[_0xdc0ad2(0xac)](exports,_0xdc0ad2(0xa3),{'enumerable':!![],'get':function(){var _0x482411=_0xdc0ad2;return base_copy_1[_0x482411(0xa3)];}});var local_copy_1=require('./local-copy');Object['defineProperty'](exports,_0xdc0ad2(0xa5),{'enumerable':!![],'get':function(){var _0x45bd53=_0xdc0ad2;return local_copy_1[_0x45bd53(0xa5)];}});var aws_s3_copy_1=require(_0xdc0ad2(0xa6));Object[_0xdc0ad2(0xac)](exports,_0xdc0ad2(0xb2),{'enumerable':!![],'get':function(){var _0x5b78a4=_0xdc0ad2;return aws_s3_copy_1[_0x5b78a4(0xb2)];}});function _0x2afc(){var _0x12516c=['990VTjUqA','./base-copy','1604340yVkgmY','1411026iLAJuJ','AwsS3Copy','148772SvMoeB','8316OaanAN','BaseCopy','12416WTSLBO','LocalCopy','./aws-s3-copy','10mcJUaE','133746TPwAtk','70EwCWcv','2134BUZQdg','54633eWcWSO','defineProperty','8DNYKql'];_0x2afc=function(){return _0x12516c;};return _0x2afc();}
|
package/dist/copy/local-copy.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x4628(_0x5abc0b,_0x3d6202){_0x5abc0b=_0x5abc0b-0x169;const _0x41f6ec=_0x41f6();let _0x4628cf=_0x41f6ec[_0x5abc0b];return _0x4628cf;}const _0x76eef2=_0x4628;(function(_0x5ca4b8,_0x300432){const _0x48ca72=_0x4628,_0x325e91=_0x5ca4b8();while(!![]){try{const _0x20483a=-parseInt(_0x48ca72(0x17a))/0x1+parseInt(_0x48ca72(0x16b))/0x2+-parseInt(_0x48ca72(0x181))/0x3+-parseInt(_0x48ca72(0x16d))/0x4+-parseInt(_0x48ca72(0x179))/0x5*(parseInt(_0x48ca72(0x177))/0x6)+-parseInt(_0x48ca72(0x17d))/0x7+parseInt(_0x48ca72(0x175))/0x8*(parseInt(_0x48ca72(0x17b))/0x9);if(_0x20483a===_0x300432)break;else _0x325e91['push'](_0x325e91['shift']());}catch(_0x42ef38){_0x325e91['push'](_0x325e91['shift']());}}}(_0x41f6,0x6151d));var __awaiter=this&&this[_0x76eef2(0x178)]||function(_0x10a656,_0x4465f4,_0xe656d9,_0xc9c823){function _0x52c191(_0x1dc8a3){return _0x1dc8a3 instanceof _0xe656d9?_0x1dc8a3:new _0xe656d9(function(_0x475abf){_0x475abf(_0x1dc8a3);});}return new(_0xe656d9||(_0xe656d9=Promise))(function(_0x3c9f4c,_0x49efaa){const _0x439e3e=_0x4628;function _0x3889b8(_0x7af4bb){const _0x4b7c66=_0x4628;try{_0x4d8d81(_0xc9c823[_0x4b7c66(0x169)](_0x7af4bb));}catch(_0x33ca87){_0x49efaa(_0x33ca87);}}function _0x3bb83b(_0x758c6d){const _0x362556=_0x4628;try{_0x4d8d81(_0xc9c823[_0x362556(0x173)](_0x758c6d));}catch(_0x1b8890){_0x49efaa(_0x1b8890);}}function _0x4d8d81(_0x44ef80){const _0x12f5b7=_0x4628;_0x44ef80[_0x12f5b7(0x16e)]?_0x3c9f4c(_0x44ef80[_0x12f5b7(0x176)]):_0x52c191(_0x44ef80[_0x12f5b7(0x176)])[_0x12f5b7(0x17c)](_0x3889b8,_0x3bb83b);}_0x4d8d81((_0xc9c823=_0xc9c823[_0x439e3e(0x174)](_0x10a656,_0x4465f4||[]))[_0x439e3e(0x169)]());});};Object[_0x76eef2(0x17f)](exports,_0x76eef2(0x171),{'value':!![]}),exports['LocalCopy']=void 0x0;const base_copy_1=require(_0x76eef2(0x172)),promises_1=require(_0x76eef2(0x16c)),path_1=require(_0x76eef2(0x180));class LocalCopy extends base_copy_1[_0x76eef2(0x170)]{[_0x76eef2(0x17e)](_0xedc611,_0x3de777){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x34929c=_0x4628,_0x5dfd24=(0x0,path_1[_0x34929c(0x16f)])(_0x3de777);yield(0x0,promises_1['mkdir'])(_0x5dfd24,{'recursive':!![]}),yield(0x0,promises_1[_0x34929c(0x16a)])(_0xedc611,_0x3de777);});}}exports[_0x76eef2(0x182)]=LocalCopy;function _0x41f6(){const _0x2ba15a=['then','1162021ohSEyG','execute','defineProperty','path','1077678YnXaMS','LocalCopy','next','copyFile','164944mkSHIW','fs/promises','2398288VHTiJh','done','dirname','BaseCopy','__esModule','./base-copy','throw','apply','5238248uktAbE','value','4177302lPFsJr','__awaiter','5gYlyDm','481957EcqQDk','36wjDDip'];_0x41f6=function(){return _0x2ba15a;};return _0x41f6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x4c3a(_0x28423a,_0x365e59){_0x28423a=_0x28423a-0x1af;const _0x1ab18c=_0x1ab1();let _0x4c3a9=_0x1ab18c[_0x28423a];return _0x4c3a9;}const _0x23659a=_0x4c3a;function _0x1ab1(){const _0x1c3b80=['7370240Swujmc','accessKeyId','value','665451QBCrju','HeadBucketCommand','10UaDQQq','265YeBRAL','s3Client','BaseCredentials','secretAccessKey','Failed\x20to\x20validate\x20storage\x20credentials.\x20Raw\x20error:\x20','throw','credentials','@aws-sdk/client-s3','1698102YhyMtJ','validate','send','__awaiter','4286689cmRmFf','done','bucketName','90vrqGTq','48976GmSmrc','181668OCGpAG','68763DVYmTM','next','createS3Client','apply','AwsS3Credentials','getCredentials','__esModule','7bfyzCk'];_0x1ab1=function(){return _0x1c3b80;};return _0x1ab1();}(function(_0x92b3f8,_0x3884ee){const _0x441771=_0x4c3a,_0x1ddca9=_0x92b3f8();while(!![]){try{const _0x1c3ed6=-parseInt(_0x441771(0x1bb))/0x1+parseInt(_0x441771(0x1c9))/0x2*(-parseInt(_0x441771(0x1bc))/0x3)+-parseInt(_0x441771(0x1ba))/0x4*(parseInt(_0x441771(0x1ca))/0x5)+-parseInt(_0x441771(0x1b2))/0x6*(parseInt(_0x441771(0x1c3))/0x7)+parseInt(_0x441771(0x1c4))/0x8+-parseInt(_0x441771(0x1c7))/0x9*(-parseInt(_0x441771(0x1b9))/0xa)+parseInt(_0x441771(0x1b6))/0xb;if(_0x1c3ed6===_0x3884ee)break;else _0x1ddca9['push'](_0x1ddca9['shift']());}catch(_0x225bcf){_0x1ddca9['push'](_0x1ddca9['shift']());}}}(_0x1ab1,0xb6ab0));var __awaiter=this&&this[_0x23659a(0x1b5)]||function(_0x510b52,_0x2ae7a3,_0x5f5de7,_0x387774){function _0x776ed9(_0x46f8d4){return _0x46f8d4 instanceof _0x5f5de7?_0x46f8d4:new _0x5f5de7(function(_0xc0d942){_0xc0d942(_0x46f8d4);});}return new(_0x5f5de7||(_0x5f5de7=Promise))(function(_0x17b439,_0xa0e5ac){const _0x47e2c3=_0x4c3a;function _0x38c667(_0x52c69e){const _0x46a004=_0x4c3a;try{_0x1db72e(_0x387774[_0x46a004(0x1bd)](_0x52c69e));}catch(_0x3f1a87){_0xa0e5ac(_0x3f1a87);}}function _0x469551(_0x17ac0c){const _0x5a1f50=_0x4c3a;try{_0x1db72e(_0x387774[_0x5a1f50(0x1af)](_0x17ac0c));}catch(_0x3873fc){_0xa0e5ac(_0x3873fc);}}function _0x1db72e(_0x3aa4ba){const _0xa502e5=_0x4c3a;_0x3aa4ba[_0xa502e5(0x1b7)]?_0x17b439(_0x3aa4ba[_0xa502e5(0x1c6)]):_0x776ed9(_0x3aa4ba[_0xa502e5(0x1c6)])['then'](_0x38c667,_0x469551);}_0x1db72e((_0x387774=_0x387774[_0x47e2c3(0x1bf)](_0x510b52,_0x2ae7a3||[]))[_0x47e2c3(0x1bd)]());});};Object['defineProperty'](exports,_0x23659a(0x1c2),{'value':!![]}),exports[_0x23659a(0x1c0)]=void 0x0;const base_credentials_1=require('./base-credentials'),client_s3_1=require(_0x23659a(0x1b1)),aws_s3_utils_1=require('../utils/aws-s3.utils');class AwsS3Credentials extends base_credentials_1[_0x23659a(0x1cc)]{constructor(_0x40da55){const _0x2c6a55=_0x23659a;super(_0x40da55),this['s3Client']=aws_s3_utils_1['AwsS3Utils'][_0x2c6a55(0x1be)](this[_0x2c6a55(0x1b0)]);}get[_0x23659a(0x1c5)](){const _0x67881b=_0x23659a;return this['credentials'][_0x67881b(0x1c5)];}get[_0x23659a(0x1cd)](){const _0x252456=_0x23659a;return this['credentials'][_0x252456(0x1cd)];}get[_0x23659a(0x1b8)](){const _0x2b3dbc=_0x23659a;return this[_0x2b3dbc(0x1b0)][_0x2b3dbc(0x1b8)];}get['region'](){const _0x527e1d=_0x23659a;return this[_0x527e1d(0x1b0)]['region'];}[_0x23659a(0x1b3)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x530d9c=_0x4c3a;try{const _0x33b550=new client_s3_1[(_0x530d9c(0x1c8))]({'Bucket':this['credentials'][_0x530d9c(0x1b8)]});yield this[_0x530d9c(0x1cb)][_0x530d9c(0x1b4)](_0x33b550);}catch(_0x1cc75c){throw new Error(_0x530d9c(0x1ce)+_0x1cc75c['message']);}});}[_0x23659a(0x1c1)](_0x4427ca=![]){const _0x307839=_0x23659a;if(_0x4427ca)return{'bucketName':this[_0x307839(0x1b0)]['bucketName']};return this[_0x307839(0x1b0)];}}exports[_0x23659a(0x1c0)]=AwsS3Credentials;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x5cb4(){const _0x281adb=['message','47663592lqRmRP','getContainerClient','9572262vaCLqK','defineProperty','throw','credentials','4EedCfj','2873274MoIHhQ','../utils/azure.utils','\x22\x20does\x20not\x20exist','exists','apply','accountKey','BaseCredentials','3616175wpnCXZ','AzureCredentials','Failed\x20to\x20validate\x20storage\x20credentials.\x20Raw\x20error:\x20','AzureUtils','getCredentials','Container\x20\x22','next','./base-credentials','then','blobServiceClient','value','8430924EeGTwu','containerName','done','accountName','createAzureBlobServiceClient','2514657EcQHQM','1133667jWtWcn','__esModule'];_0x5cb4=function(){return _0x281adb;};return _0x5cb4();}const _0x29d6c4=_0x5a86;(function(_0x220a87,_0x2b9def){const _0x3c3eb3=_0x5a86,_0xa04297=_0x220a87();while(!![]){try{const _0x2bbe0a=-parseInt(_0x3c3eb3(0x132))/0x1+-parseInt(_0x3c3eb3(0x13c))/0x2+parseInt(_0x3c3eb3(0x131))/0x3*(parseInt(_0x3c3eb3(0x13b))/0x4)+-parseInt(_0x3c3eb3(0x121))/0x5+-parseInt(_0x3c3eb3(0x12c))/0x6+-parseInt(_0x3c3eb3(0x137))/0x7+parseInt(_0x3c3eb3(0x135))/0x8;if(_0x2bbe0a===_0x2b9def)break;else _0xa04297['push'](_0xa04297['shift']());}catch(_0x338225){_0xa04297['push'](_0xa04297['shift']());}}}(_0x5cb4,0xb2399));function _0x5a86(_0x29484a,_0x678392){_0x29484a=_0x29484a-0x11f;const _0x5cb48c=_0x5cb4();let _0x5a866e=_0x5cb48c[_0x29484a];return _0x5a866e;}var __awaiter=this&&this['__awaiter']||function(_0x38ce32,_0x418667,_0xa37c9a,_0x54615c){function _0x325dcb(_0x561ac5){return _0x561ac5 instanceof _0xa37c9a?_0x561ac5:new _0xa37c9a(function(_0x437346){_0x437346(_0x561ac5);});}return new(_0xa37c9a||(_0xa37c9a=Promise))(function(_0x2cf67c,_0x3e38d7){const _0x492dd1=_0x5a86;function _0x50ce04(_0x1de3bf){const _0x58a6d5=_0x5a86;try{_0xfc52a4(_0x54615c[_0x58a6d5(0x127)](_0x1de3bf));}catch(_0x541d78){_0x3e38d7(_0x541d78);}}function _0x21ae53(_0x40d425){const _0x5c7d47=_0x5a86;try{_0xfc52a4(_0x54615c[_0x5c7d47(0x139)](_0x40d425));}catch(_0x54e7ad){_0x3e38d7(_0x54e7ad);}}function _0xfc52a4(_0x2c8673){const _0x32af4f=_0x5a86;_0x2c8673[_0x32af4f(0x12e)]?_0x2cf67c(_0x2c8673[_0x32af4f(0x12b)]):_0x325dcb(_0x2c8673[_0x32af4f(0x12b)])[_0x32af4f(0x129)](_0x50ce04,_0x21ae53);}_0xfc52a4((_0x54615c=_0x54615c[_0x492dd1(0x140)](_0x38ce32,_0x418667||[]))[_0x492dd1(0x127)]());});};Object[_0x29d6c4(0x138)](exports,_0x29d6c4(0x133),{'value':!![]}),exports[_0x29d6c4(0x122)]=void 0x0;const base_credentials_1=require(_0x29d6c4(0x128)),azure_utils_1=require(_0x29d6c4(0x13d));class AzureCredentials extends base_credentials_1[_0x29d6c4(0x120)]{constructor(_0x3bec62){const _0xf1b3a4=_0x29d6c4;super(_0x3bec62),this[_0xf1b3a4(0x12a)]=azure_utils_1[_0xf1b3a4(0x124)][_0xf1b3a4(0x130)](this[_0xf1b3a4(0x13a)]);}get[_0x29d6c4(0x11f)](){const _0x302990=_0x29d6c4;return this[_0x302990(0x13a)]['accountKey'];}get['accountName'](){const _0x2e5d77=_0x29d6c4;return this[_0x2e5d77(0x13a)]['accountName'];}get[_0x29d6c4(0x12d)](){return this['credentials']['containerName'];}['validate'](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x37f107=_0x5a86;try{const _0x265748=this[_0x37f107(0x12a)][_0x37f107(0x136)](this['credentials']['containerName']),_0x2b9afe=yield _0x265748[_0x37f107(0x13f)]();if(!_0x2b9afe)throw new Error(_0x37f107(0x126)+this[_0x37f107(0x13a)][_0x37f107(0x12d)]+_0x37f107(0x13e));}catch(_0x45ecb3){throw new Error(_0x37f107(0x123)+_0x45ecb3[_0x37f107(0x134)]);}});}[_0x29d6c4(0x125)](_0x181731=![]){const _0x41058a=_0x29d6c4;if(_0x181731)return{'accountName':this[_0x41058a(0x13a)][_0x41058a(0x12f)]};return this[_0x41058a(0x13a)];}}exports[_0x29d6c4(0x122)]=AzureCredentials;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function _0x4fa9(_0x186696,_0x1b9148){_0x186696=_0x186696-0x1b2;var _0x10811c=_0x1081();var _0x4fa994=_0x10811c[_0x186696];return _0x4fa994;}var _0x79515d=_0x4fa9;function _0x1081(){var _0x36066b=['140FIXWgV','264366dTFJUr','1085BiDQNb','1604604RWizAo','rawCredentials','defineProperty','22621fpyJOH','52pectMR','BaseCredentials','3333EZjSsB','__esModule','157725fsPnFP','819272dkmHhx','49PABSzg','3736fZLYFn','67680FcfISG'];_0x1081=function(){return _0x36066b;};return _0x1081();}(function(_0x177d3a,_0x3185c8){var _0x39b6b3=_0x4fa9,_0x58ecfe=_0x177d3a();while(!![]){try{var _0x2b7422=-parseInt(_0x39b6b3(0x1bb))/0x1*(-parseInt(_0x39b6b3(0x1bc))/0x2)+-parseInt(_0x39b6b3(0x1c0))/0x3+-parseInt(_0x39b6b3(0x1b3))/0x4*(-parseInt(_0x39b6b3(0x1b7))/0x5)+parseInt(_0x39b6b3(0x1b8))/0x6+parseInt(_0x39b6b3(0x1b2))/0x7*(parseInt(_0x39b6b3(0x1c1))/0x8)+parseInt(_0x39b6b3(0x1b6))/0x9*(parseInt(_0x39b6b3(0x1b5))/0xa)+parseInt(_0x39b6b3(0x1be))/0xb*(-parseInt(_0x39b6b3(0x1b4))/0xc);if(_0x2b7422===_0x3185c8)break;else _0x58ecfe['push'](_0x58ecfe['shift']());}catch(_0x24b7cd){_0x58ecfe['push'](_0x58ecfe['shift']());}}}(_0x1081,0x67b9e));Object[_0x79515d(0x1ba)](exports,_0x79515d(0x1bf),{'value':!![]}),exports[_0x79515d(0x1bd)]=void 0x0;class BaseCredentials{constructor(_0x47f1c0){var _0x79a6d5=_0x79515d;this[_0x79a6d5(0x1b9)]=_0x47f1c0,this['credentials']=this['rawCredentials']?this[_0x79a6d5(0x1b9)]:null;}}exports[_0x79515d(0x1bd)]=BaseCredentials;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseCredentials } from './base-credentials';
|
|
2
|
+
import { GoogleCloudStorageCredentials } from '../types/google-cloud.types';
|
|
3
|
+
export declare class GoogleCloudCredentials extends BaseCredentials<GoogleCloudStorageCredentials> {
|
|
4
|
+
private readonly storage;
|
|
5
|
+
constructor(rawCredentials?: Record<string, string>);
|
|
6
|
+
get projectId(): string;
|
|
7
|
+
get clientEmail(): string;
|
|
8
|
+
get privateKey(): string;
|
|
9
|
+
get bucketName(): string;
|
|
10
|
+
validate(): Promise<void>;
|
|
11
|
+
getCredentials(hideSensitive?: boolean): Pick<GoogleCloudStorageCredentials, 'bucketName'> | GoogleCloudStorageCredentials;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const _0x34b215=_0x44cd;(function(_0x1136e2,_0x3d7cfe){const _0x29a0ab=_0x44cd,_0x1e1959=_0x1136e2();while(!![]){try{const _0x979ad0=parseInt(_0x29a0ab(0x88))/0x1*(-parseInt(_0x29a0ab(0x9e))/0x2)+parseInt(_0x29a0ab(0x91))/0x3+-parseInt(_0x29a0ab(0xa0))/0x4+-parseInt(_0x29a0ab(0x92))/0x5+parseInt(_0x29a0ab(0x8f))/0x6+-parseInt(_0x29a0ab(0x96))/0x7*(-parseInt(_0x29a0ab(0x94))/0x8)+parseInt(_0x29a0ab(0xa5))/0x9*(parseInt(_0x29a0ab(0xa3))/0xa);if(_0x979ad0===_0x3d7cfe)break;else _0x1e1959['push'](_0x1e1959['shift']());}catch(_0x4994c9){_0x1e1959['push'](_0x1e1959['shift']());}}}(_0x4af3,0x7d640));var __awaiter=this&&this['__awaiter']||function(_0x16250e,_0x2ad61c,_0x4cfe15,_0x256e88){function _0x244318(_0x168f91){return _0x168f91 instanceof _0x4cfe15?_0x168f91:new _0x4cfe15(function(_0x443cc0){_0x443cc0(_0x168f91);});}return new(_0x4cfe15||(_0x4cfe15=Promise))(function(_0x36e3cc,_0x38fba6){const _0x1b809e=_0x44cd;function _0x1f9c23(_0x167db2){const _0x46f451=_0x44cd;try{_0x97228f(_0x256e88[_0x46f451(0xa4)](_0x167db2));}catch(_0x154c75){_0x38fba6(_0x154c75);}}function _0x63c158(_0x59211b){const _0x845008=_0x44cd;try{_0x97228f(_0x256e88[_0x845008(0x8e)](_0x59211b));}catch(_0x7be322){_0x38fba6(_0x7be322);}}function _0x97228f(_0x1aee9d){const _0x92a410=_0x44cd;_0x1aee9d[_0x92a410(0x8b)]?_0x36e3cc(_0x1aee9d[_0x92a410(0x8d)]):_0x244318(_0x1aee9d[_0x92a410(0x8d)])[_0x92a410(0x9f)](_0x1f9c23,_0x63c158);}_0x97228f((_0x256e88=_0x256e88[_0x1b809e(0x90)](_0x16250e,_0x2ad61c||[]))[_0x1b809e(0xa4)]());});};function _0x4af3(){const _0x933d76=['3112326WFEhRb','apply','678525ZuDQyn','2906635EAqiGT','credentials','1396648FkgjfD','storage','7qqjbIo','projectId','Failed\x20to\x20validate\x20storage\x20credentials.\x20Raw\x20error:\x20','privateKey','createStorageClient','\x22\x20does\x20not\x20exist','bucket','getCredentials','6CndYxZ','then','227164lVfSrH','Bucket\x20\x22','GoogleCloudCredentials','41030gQsYHJ','next','2385euifpO','./base-credentials','GoogleCloudUtils','clientEmail','285018Qzafqv','bucketName','exists','done','../utils/google-cloud.utils','value','throw'];_0x4af3=function(){return _0x933d76;};return _0x4af3();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['GoogleCloudCredentials']=void 0x0;const base_credentials_1=require(_0x34b215(0x85)),google_cloud_utils_1=require(_0x34b215(0x8c));class GoogleCloudCredentials extends base_credentials_1['BaseCredentials']{constructor(_0x34fd94){const _0x34c30f=_0x34b215;super(_0x34fd94),this[_0x34c30f(0x95)]=google_cloud_utils_1[_0x34c30f(0x86)][_0x34c30f(0x9a)](this[_0x34c30f(0x93)]);}get[_0x34b215(0x97)](){const _0x65f567=_0x34b215;return this['credentials'][_0x65f567(0x97)];}get[_0x34b215(0x87)](){const _0xbb5ca2=_0x34b215;return this[_0xbb5ca2(0x93)][_0xbb5ca2(0x87)];}get[_0x34b215(0x99)](){const _0x5b8a1d=_0x34b215;return this[_0x5b8a1d(0x93)][_0x5b8a1d(0x99)];}get['bucketName'](){return this['credentials']['bucketName'];}['validate'](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x400509=_0x44cd;try{const _0x4e3628=this[_0x400509(0x95)][_0x400509(0x9c)](this['credentials'][_0x400509(0x89)]),_0x315e6=yield _0x4e3628[_0x400509(0x8a)]();if(!_0x315e6[0x0])throw new Error(_0x400509(0xa1)+this['credentials'][_0x400509(0x89)]+_0x400509(0x9b));}catch(_0x51ca18){throw new Error(_0x400509(0x98)+_0x51ca18['message']);}});}[_0x34b215(0x9d)](_0x216a16=![]){const _0x59e223=_0x34b215;if(_0x216a16)return{'bucketName':this[_0x59e223(0x93)][_0x59e223(0x89)]};return this[_0x59e223(0x93)];}}function _0x44cd(_0x2449d3,_0x1b59a8){_0x2449d3=_0x2449d3-0x85;const _0x4af3af=_0x4af3();let _0x44cd9e=_0x4af3af[_0x2449d3];return _0x44cd9e;}exports[_0x34b215(0xa2)]=GoogleCloudCredentials;
|
|
@@ -2,3 +2,4 @@ export { BaseCredentials } from './base-credentials';
|
|
|
2
2
|
export { AwsS3Credentials } from './aws-s3-credentials';
|
|
3
3
|
export { LocalCredentials } from './local-credentials';
|
|
4
4
|
export { AzureCredentials } from './azure-credentials';
|
|
5
|
+
export { GoogleCloudCredentials } from './google-cloud-credentials';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x3c9b77=_0x120d;function _0x120d(_0x31a7b6,_0x349a0b){_0x31a7b6=_0x31a7b6-0x1e9;var _0x15c2dd=_0x15c2();var _0x120d5b=_0x15c2dd[_0x31a7b6];return _0x120d5b;}(function(_0x1c3ced,_0x4b7dd6){var _0x414028=_0x120d,_0x31ee46=_0x1c3ced();while(!![]){try{var _0x151a84=-parseInt(_0x414028(0x1f9))/0x1+-parseInt(_0x414028(0x1f3))/0x2+parseInt(_0x414028(0x1eb))/0x3*(parseInt(_0x414028(0x1fc))/0x4)+-parseInt(_0x414028(0x1fd))/0x5*(-parseInt(_0x414028(0x1f0))/0x6)+parseInt(_0x414028(0x1ff))/0x7+-parseInt(_0x414028(0x1f6))/0x8*(parseInt(_0x414028(0x1f8))/0x9)+-parseInt(_0x414028(0x1f5))/0xa*(-parseInt(_0x414028(0x1f7))/0xb);if(_0x151a84===_0x4b7dd6)break;else _0x31ee46['push'](_0x31ee46['shift']());}catch(_0x4be853){_0x31ee46['push'](_0x31ee46['shift']());}}}(_0x15c2,0xee6a5));Object[_0x3c9b77(0x1fa)](exports,_0x3c9b77(0x1fb),{'value':!![]}),exports['GoogleCloudCredentials']=exports['AzureCredentials']=exports['LocalCredentials']=exports[_0x3c9b77(0x1ea)]=exports[_0x3c9b77(0x1e9)]=void 0x0;var base_credentials_1=require(_0x3c9b77(0x1f2));Object[_0x3c9b77(0x1fa)](exports,_0x3c9b77(0x1e9),{'enumerable':!![],'get':function(){var _0x267ea6=_0x3c9b77;return base_credentials_1[_0x267ea6(0x1e9)];}});var aws_s3_credentials_1=require(_0x3c9b77(0x1ef));Object[_0x3c9b77(0x1fa)](exports,_0x3c9b77(0x1ea),{'enumerable':!![],'get':function(){var _0xcba201=_0x3c9b77;return aws_s3_credentials_1[_0xcba201(0x1ea)];}});var local_credentials_1=require(_0x3c9b77(0x1f1));Object[_0x3c9b77(0x1fa)](exports,_0x3c9b77(0x1ee),{'enumerable':!![],'get':function(){var _0x54c505=_0x3c9b77;return local_credentials_1[_0x54c505(0x1ee)];}});var azure_credentials_1=require(_0x3c9b77(0x1ec));function _0x15c2(){var _0x472a64=['./azure-credentials','AzureCredentials','LocalCredentials','./aws-s3-credentials','5358ipwQDK','./local-credentials','./base-credentials','3058278TuCezN','./google-cloud-credentials','10RXvbBW','8hahmnk','38404839BjJNSb','16598583mabBOg','1558256Dhnjxw','defineProperty','__esModule','8MSASKc','2395IGXeBW','GoogleCloudCredentials','2309293ajDLqg','BaseCredentials','AwsS3Credentials','2488854GdNrLa'];_0x15c2=function(){return _0x472a64;};return _0x15c2();}Object[_0x3c9b77(0x1fa)](exports,_0x3c9b77(0x1ed),{'enumerable':!![],'get':function(){return azure_credentials_1['AzureCredentials'];}});var google_cloud_credentials_1=require(_0x3c9b77(0x1f4));Object[_0x3c9b77(0x1fa)](exports,_0x3c9b77(0x1fe),{'enumerable':!![],'get':function(){var _0x29f0ff=_0x3c9b77;return google_cloud_credentials_1[_0x29f0ff(0x1fe)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x37d6(){const _0xa7bbb4=['6742284cgKLxI','validate','BaseCredentials','8604dsCkBz','304iafZCP','54EDzQAa','597945gROcWJ','128008aTyLgi','LocalCredentials','10PnbeCa','3770283qUcPpJ','36879535QtzGkd','2907681pxXApm','639wbqxKo'];_0x37d6=function(){return _0xa7bbb4;};return _0x37d6();}const _0x4b3dba=_0x2581;(function(_0x540563,_0x5aa0db){const _0x5e200a=_0x2581,_0x1c2fc7=_0x540563();while(!![]){try{const _0x3df434=parseInt(_0x5e200a(0x1c2))/0x1*(-parseInt(_0x5e200a(0x1c3))/0x2)+parseInt(_0x5e200a(0x1c9))/0x3+parseInt(_0x5e200a(0x1bf))/0x4+-parseInt(_0x5e200a(0x1c5))/0x5*(-parseInt(_0x5e200a(0x1c4))/0x6)+parseInt(_0x5e200a(0x1cb))/0x7+parseInt(_0x5e200a(0x1c6))/0x8*(parseInt(_0x5e200a(0x1be))/0x9)+parseInt(_0x5e200a(0x1c8))/0xa*(-parseInt(_0x5e200a(0x1ca))/0xb);if(_0x3df434===_0x5aa0db)break;else _0x1c2fc7['push'](_0x1c2fc7['shift']());}catch(_0x3ef55b){_0x1c2fc7['push'](_0x1c2fc7['shift']());}}}(_0x37d6,0xde11a));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x4b3dba(0x1c7)]=void 0x0;const base_credentials_1=require('./base-credentials');class LocalCredentials extends base_credentials_1[_0x4b3dba(0x1c1)]{['getCredentials'](){return null;}[_0x4b3dba(0x1c0)](){return Promise['resolve'](undefined);}}function _0x2581(_0x211e3a,_0x334c47){_0x211e3a=_0x211e3a-0x1be;const _0x37d6df=_0x37d6();let _0x258127=_0x37d6df[_0x211e3a];return _0x258127;}exports[_0x4b3dba(0x1c7)]=LocalCredentials;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x85c85b=_0x4f32;(function(_0x3571ec,_0x4eceb7){const _0x58cadc=_0x4f32,_0x1c18ed=_0x3571ec();while(!![]){try{const _0x1547ac=-parseInt(_0x58cadc(0xf7))/0x1*(parseInt(_0x58cadc(0xe3))/0x2)+parseInt(_0x58cadc(0xfd))/0x3*(parseInt(_0x58cadc(0xe4))/0x4)+-parseInt(_0x58cadc(0xec))/0x5+parseInt(_0x58cadc(0xeb))/0x6*(parseInt(_0x58cadc(0xdd))/0x7)+-parseInt(_0x58cadc(0xf1))/0x8+-parseInt(_0x58cadc(0xdc))/0x9*(parseInt(_0x58cadc(0xff))/0xa)+-parseInt(_0x58cadc(0xf8))/0xb*(-parseInt(_0x58cadc(0xfa))/0xc);if(_0x1547ac===_0x4eceb7)break;else _0x1c18ed['push'](_0x1c18ed['shift']());}catch(_0x22a10c){_0x1c18ed['push'](_0x1c18ed['shift']());}}}(_0x3e92,0x1bb06));function _0x3e92(){const _0x25e044=['613528yPCzNR','execute','map','default','OBJECTS_PER_CHUNK','__esModule','347fXohpC','439164AAiRXX','@flosum/utils','108TDLLyt','throw','createS3Client','6HTZalb','DeleteObjectsCommand','2186770HILnFu','value','../utils/aws-s3.utils','path','bucketName','split','next','9gjCRhS','10913qVYAtF','@aws-sdk/client-s3','ArrayUtils','__importDefault','apply','then','230IyzEhu','424812gzJOQd','credentials','send','s3Client','posix','defineProperty','AwsS3Delete','126IcdHTH','778870FQjKTq','__awaiter','sep','AwsS3Utils','BaseDelete'];_0x3e92=function(){return _0x25e044;};return _0x3e92();}var __awaiter=this&&this[_0x85c85b(0xed)]||function(_0x1f9527,_0x4e1254,_0x469b3b,_0x33c48c){function _0xe3399f(_0x565fdf){return _0x565fdf instanceof _0x469b3b?_0x565fdf:new _0x469b3b(function(_0x47ad4f){_0x47ad4f(_0x565fdf);});}return new(_0x469b3b||(_0x469b3b=Promise))(function(_0x5a5047,_0x5517ab){const _0x3d3ed1=_0x4f32;function _0x360f87(_0x3a8416){const _0x163ae0=_0x4f32;try{_0x473f95(_0x33c48c[_0x163ae0(0xdb)](_0x3a8416));}catch(_0xe6e158){_0x5517ab(_0xe6e158);}}function _0x5119d7(_0x5381da){const _0x13236c=_0x4f32;try{_0x473f95(_0x33c48c[_0x13236c(0xfb)](_0x5381da));}catch(_0x480a68){_0x5517ab(_0x480a68);}}function _0x473f95(_0x3f1973){const _0x2d0dc9=_0x4f32;_0x3f1973['done']?_0x5a5047(_0x3f1973['value']):_0xe3399f(_0x3f1973[_0x2d0dc9(0x100)])[_0x2d0dc9(0xe2)](_0x360f87,_0x5119d7);}_0x473f95((_0x33c48c=_0x33c48c[_0x3d3ed1(0xe1)](_0x1f9527,_0x4e1254||[]))[_0x3d3ed1(0xdb)]());});},__importDefault=this&&this[_0x85c85b(0xe0)]||function(_0x42a709){const _0x3ad6f0=_0x85c85b;return _0x42a709&&_0x42a709[_0x3ad6f0(0xf6)]?_0x42a709:{'default':_0x42a709};};Object[_0x85c85b(0xe9)](exports,_0x85c85b(0xf6),{'value':!![]}),exports[_0x85c85b(0xea)]=void 0x0;function _0x4f32(_0xf231e4,_0x33395a){_0xf231e4=_0xf231e4-0xd9;const _0x3e9298=_0x3e92();let _0x4f32fd=_0x3e9298[_0xf231e4];return _0x4f32fd;}const path_1=__importDefault(require(_0x85c85b(0x102))),utils_1=require(_0x85c85b(0xf9)),aws_s3_utils_1=require(_0x85c85b(0x101)),_1=require('./'),client_s3_1=require(_0x85c85b(0xde));class AwsS3Delete extends _1[_0x85c85b(0xf0)]{constructor(_0x421d54,_0x39435c,_0x41007c){const _0x40d8f2=_0x85c85b;super(_0x421d54),this[_0x40d8f2(0xe5)]=_0x421d54,this[_0x40d8f2(0xf5)]=0x3e8,this[_0x40d8f2(0xe7)]=_0x41007c||aws_s3_utils_1[_0x40d8f2(0xef)][_0x40d8f2(0xfc)](_0x421d54,_0x39435c);}[_0x85c85b(0xf2)](_0x21476c){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x46ceab=_0x4f32,_0xddb246=_0x21476c[_0x46ceab(0xda)](path_1[_0x46ceab(0xf4)]['sep'])['join'](path_1[_0x46ceab(0xf4)][_0x46ceab(0xe8)][_0x46ceab(0xee)]),_0x458f73=yield aws_s3_utils_1[_0x46ceab(0xef)]['getFilesPaths'](_0xddb246,this[_0x46ceab(0xe5)][_0x46ceab(0xd9)],this[_0x46ceab(0xe7)]),_0x2ba27b=utils_1[_0x46ceab(0xdf)]['splitOnChunks'](_0x458f73,this[_0x46ceab(0xf5)]);for(const _0x3e5a31 of _0x2ba27b){const _0x428449=_0x3e5a31[_0x46ceab(0xf3)](_0x41e224=>({'Key':_0x41e224})),_0x4936d4=new client_s3_1[(_0x46ceab(0xfe))]({'Bucket':this[_0x46ceab(0xe5)][_0x46ceab(0xd9)],'Delete':{'Objects':_0x428449}});yield this[_0x46ceab(0xe7)][_0x46ceab(0xe6)](_0x4936d4);}});}}exports[_0x85c85b(0xea)]=AwsS3Delete;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x5b4efc=_0x37c6;(function(_0x5cff4d,_0x50c1bb){const _0x362212=_0x37c6,_0x2c9bb2=_0x5cff4d();while(!![]){try{const _0x410460=parseInt(_0x362212(0x156))/0x1*(parseInt(_0x362212(0x161))/0x2)+parseInt(_0x362212(0x142))/0x3*(-parseInt(_0x362212(0x146))/0x4)+parseInt(_0x362212(0x15b))/0x5*(-parseInt(_0x362212(0x150))/0x6)+-parseInt(_0x362212(0x13e))/0x7*(parseInt(_0x362212(0x14f))/0x8)+parseInt(_0x362212(0x149))/0x9*(parseInt(_0x362212(0x15d))/0xa)+-parseInt(_0x362212(0x160))/0xb*(parseInt(_0x362212(0x152))/0xc)+-parseInt(_0x362212(0x141))/0xd*(-parseInt(_0x362212(0x145))/0xe);if(_0x410460===_0x50c1bb)break;else _0x2c9bb2['push'](_0x2c9bb2['shift']());}catch(_0x5b8fe0){_0x2c9bb2['push'](_0x2c9bb2['shift']());}}}(_0x4a8d,0x7989f));var __awaiter=this&&this[_0x5b4efc(0x158)]||function(_0x202b10,_0x5834e7,_0x47e0ba,_0x5cbb0d){function _0x381d72(_0x11979a){return _0x11979a instanceof _0x47e0ba?_0x11979a:new _0x47e0ba(function(_0x16be21){_0x16be21(_0x11979a);});}return new(_0x47e0ba||(_0x47e0ba=Promise))(function(_0x45efad,_0x2681c3){const _0x181d03=_0x37c6;function _0x3edda8(_0xab4db3){const _0x11250f=_0x37c6;try{_0x4bf941(_0x5cbb0d[_0x11250f(0x151)](_0xab4db3));}catch(_0x2e5a6f){_0x2681c3(_0x2e5a6f);}}function _0x36aeb0(_0x575f4f){const _0x5cc497=_0x37c6;try{_0x4bf941(_0x5cbb0d[_0x5cc497(0x143)](_0x575f4f));}catch(_0x51b589){_0x2681c3(_0x51b589);}}function _0x4bf941(_0x578c00){const _0x3a74c6=_0x37c6;_0x578c00[_0x3a74c6(0x14e)]?_0x45efad(_0x578c00['value']):_0x381d72(_0x578c00['value'])[_0x3a74c6(0x14b)](_0x3edda8,_0x36aeb0);}_0x4bf941((_0x5cbb0d=_0x5cbb0d[_0x181d03(0x159)](_0x202b10,_0x5834e7||[]))[_0x181d03(0x151)]());});},__importDefault=this&&this[_0x5b4efc(0x14c)]||function(_0x49b7e1){const _0x76661b=_0x5b4efc;return _0x49b7e1&&_0x49b7e1[_0x76661b(0x15e)]?_0x49b7e1:{'default':_0x49b7e1};};function _0x37c6(_0x152508,_0x3e420d){_0x152508=_0x152508-0x13e;const _0x4a8d81=_0x4a8d();let _0x37c6e9=_0x4a8d81[_0x152508];return _0x37c6e9;}function _0x4a8d(){const _0x9694c4=['5127962ArmYyD','default','split','17417049BPBHHC','42036tMmJRA','throw','defineProperty','14lWDypw','76DUOidr','path','createAzureBlobContainerClient','2386161lGDuuM','../utils/azure.utils','then','__importDefault','containerClient','done','8vuEzMP','3234jJbKGH','next','72HUkwQp','getAzureBlobsPaths','execute','BaseDelete','3kFNbYi','posix','__awaiter','apply','AzureDelete','1935YXlwiD','deleteBlob','10SJodkp','__esModule','AzureUtils','560527YCopEY','270700QSAnKM'];_0x4a8d=function(){return _0x9694c4;};return _0x4a8d();}Object[_0x5b4efc(0x144)](exports,_0x5b4efc(0x15e),{'value':!![]}),exports[_0x5b4efc(0x15a)]=void 0x0;const path_1=__importDefault(require(_0x5b4efc(0x147))),_1=require('./'),azure_utils_1=require(_0x5b4efc(0x14a));class AzureDelete extends _1[_0x5b4efc(0x155)]{constructor(_0x55efee){const _0x42aff0=_0x5b4efc;super(_0x55efee),this['credentials']=_0x55efee,this[_0x42aff0(0x14d)]=azure_utils_1[_0x42aff0(0x15f)][_0x42aff0(0x148)](_0x55efee);}[_0x5b4efc(0x154)](_0xbc383e){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x3922a4=_0x37c6,_0x351be8=_0xbc383e[_0x3922a4(0x140)](path_1[_0x3922a4(0x13f)]['sep'])['join'](path_1[_0x3922a4(0x13f)][_0x3922a4(0x157)]['sep']),_0x1fad13=yield azure_utils_1['AzureUtils'][_0x3922a4(0x153)](_0x351be8,this[_0x3922a4(0x14d)]);for(const _0xadecb7 of _0x1fad13){yield this[_0x3922a4(0x14d)][_0x3922a4(0x15c)](_0xadecb7);}});}}exports[_0x5b4efc(0x15a)]=AzureDelete;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x290bf8=_0x5ca5;function _0x5ca5(_0x2443dc,_0xe7471d){_0x2443dc=_0x2443dc-0x1b1;var _0x2855e5=_0x2855();var _0x5ca544=_0x2855e5[_0x2443dc];return _0x5ca544;}function _0x2855(){var _0xa57c7d=['5115813UDgcNz','1494998QyoIDf','6640096ToXTKf','10DYBtUZ','8079128gIFkZy','2441131evzbAe','1658898PJmYRk','20XKwjzF','2OfNLbz','__esModule','31052151aBtiKg','credentials','BaseDelete'];_0x2855=function(){return _0xa57c7d;};return _0x2855();}(function(_0x5acc2b,_0x239ff0){var _0x2b9bdc=_0x5ca5,_0x4e8258=_0x5acc2b();while(!![]){try{var _0x4c43c2=-parseInt(_0x2b9bdc(0x1b9))/0x1*(parseInt(_0x2b9bdc(0x1b3))/0x2)+parseInt(_0x2b9bdc(0x1b8))/0x3+parseInt(_0x2b9bdc(0x1ba))/0x4+-parseInt(_0x2b9bdc(0x1b2))/0x5*(-parseInt(_0x2b9bdc(0x1b1))/0x6)+parseInt(_0x2b9bdc(0x1bd))/0x7+parseInt(_0x2b9bdc(0x1bc))/0x8+-parseInt(_0x2b9bdc(0x1b5))/0x9*(parseInt(_0x2b9bdc(0x1bb))/0xa);if(_0x4c43c2===_0x239ff0)break;else _0x4e8258['push'](_0x4e8258['shift']());}catch(_0x5f1f84){_0x4e8258['push'](_0x4e8258['shift']());}}}(_0x2855,0xd7f86));Object['defineProperty'](exports,_0x290bf8(0x1b4),{'value':!![]}),exports[_0x290bf8(0x1b7)]=void 0x0;class BaseDelete{constructor(_0x5b72ba){var _0x4d1519=_0x290bf8;this[_0x4d1519(0x1b6)]=_0x5b72ba;}}exports[_0x290bf8(0x1b7)]=BaseDelete;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GoogleCloudCredentials } from '../credentials';
|
|
2
|
+
import { BaseDelete } from './';
|
|
3
|
+
export declare class GoogleCloudDelete extends BaseDelete<GoogleCloudCredentials> {
|
|
4
|
+
protected readonly credentials: GoogleCloudCredentials;
|
|
5
|
+
private readonly bucket;
|
|
6
|
+
constructor(credentials: GoogleCloudCredentials);
|
|
7
|
+
execute(path: string): Promise<void>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const _0x59721d=_0x4c86;(function(_0x559b71,_0x3c3471){const _0x367983=_0x4c86,_0x12b8e3=_0x559b71();while(!![]){try{const _0x475ebe=parseInt(_0x367983(0x166))/0x1*(parseInt(_0x367983(0x172))/0x2)+-parseInt(_0x367983(0x163))/0x3+-parseInt(_0x367983(0x170))/0x4+-parseInt(_0x367983(0x16a))/0x5*(parseInt(_0x367983(0x176))/0x6)+parseInt(_0x367983(0x171))/0x7*(parseInt(_0x367983(0x175))/0x8)+parseInt(_0x367983(0x169))/0x9*(parseInt(_0x367983(0x16b))/0xa)+-parseInt(_0x367983(0x16f))/0xb;if(_0x475ebe===_0x3c3471)break;else _0x12b8e3['push'](_0x12b8e3['shift']());}catch(_0x1de1e8){_0x12b8e3['push'](_0x12b8e3['shift']());}}}(_0x2789,0x5a146));var __awaiter=this&&this[_0x59721d(0x164)]||function(_0x2a1f83,_0x5da265,_0x2d64c8,_0x499a58){function _0x5cd791(_0x4c0f21){return _0x4c0f21 instanceof _0x2d64c8?_0x4c0f21:new _0x2d64c8(function(_0xa1f86){_0xa1f86(_0x4c0f21);});}return new(_0x2d64c8||(_0x2d64c8=Promise))(function(_0x38794f,_0x2ff970){const _0x54bd30=_0x4c86;function _0x2e369f(_0x22c8bd){const _0x1af112=_0x4c86;try{_0xa1e3f0(_0x499a58[_0x1af112(0x16d)](_0x22c8bd));}catch(_0x581bb0){_0x2ff970(_0x581bb0);}}function _0x34aaa7(_0x255ba2){const _0x35e3ac=_0x4c86;try{_0xa1e3f0(_0x499a58[_0x35e3ac(0x162)](_0x255ba2));}catch(_0x2a9d43){_0x2ff970(_0x2a9d43);}}function _0xa1e3f0(_0x18834e){const _0x2215ab=_0x4c86;_0x18834e[_0x2215ab(0x168)]?_0x38794f(_0x18834e[_0x2215ab(0x167)]):_0x5cd791(_0x18834e[_0x2215ab(0x167)])[_0x2215ab(0x17a)](_0x2e369f,_0x34aaa7);}_0xa1e3f0((_0x499a58=_0x499a58[_0x54bd30(0x161)](_0x2a1f83,_0x5da265||[]))[_0x54bd30(0x16d)]());});},__importDefault=this&&this['__importDefault']||function(_0x177a00){return _0x177a00&&_0x177a00['__esModule']?_0x177a00:{'default':_0x177a00};};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x59721d(0x17b)]=void 0x0;function _0x4c86(_0x2562d5,_0x2c9937){_0x2562d5=_0x2562d5-0x160;const _0x278934=_0x2789();let _0x4c86d9=_0x278934[_0x2562d5];return _0x4c86d9;}const path_1=__importDefault(require('path')),_1=require('./'),google_cloud_utils_1=require(_0x59721d(0x178));function _0x2789(){const _0x5c5b40=['86385KgirJt','__awaiter','default','1TdrHdh','value','done','9LDNdmt','3385KgxZPN','6225290Zlgoai','BaseDelete','next','join','1963753LubhAo','1961564fYyPey','7oJhTkA','563236fMjttC','sep','credentials','3699512NRunWT','2658OCaJOq','delete','../utils/google-cloud.utils','split','then','GoogleCloudDelete','createBucket','bucket','GoogleCloudUtils','execute','apply','throw'];_0x2789=function(){return _0x5c5b40;};return _0x2789();}class GoogleCloudDelete extends _1[_0x59721d(0x16c)]{constructor(_0x531156){const _0x208590=_0x59721d;super(_0x531156),this[_0x208590(0x174)]=_0x531156,this[_0x208590(0x17d)]=google_cloud_utils_1[_0x208590(0x17e)][_0x208590(0x17c)](_0x531156);}[_0x59721d(0x160)](_0xadcb81){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1755da=_0x4c86,_0x3d4849=_0xadcb81[_0x1755da(0x179)](path_1[_0x1755da(0x165)][_0x1755da(0x173)])[_0x1755da(0x16e)](path_1[_0x1755da(0x165)]['posix'][_0x1755da(0x173)]),_0x3a98be=yield google_cloud_utils_1[_0x1755da(0x17e)]['getFilesPaths'](_0x3d4849,this[_0x1755da(0x17d)]);for(const _0x5077aa of _0x3a98be){yield this[_0x1755da(0x17d)]['file'](_0x5077aa)[_0x1755da(0x177)]();}});}}exports[_0x59721d(0x17b)]=GoogleCloudDelete;
|
package/dist/delete/index.d.ts
CHANGED
package/dist/delete/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x5f0fad=_0x5b5a;(function(_0x312782,_0x5af8a3){var _0x1b9811=_0x5b5a,_0x236400=_0x312782();while(!![]){try{var _0x182451=parseInt(_0x1b9811(0xcb))/0x1*(-parseInt(_0x1b9811(0xc9))/0x2)+parseInt(_0x1b9811(0xc7))/0x3*(parseInt(_0x1b9811(0xd1))/0x4)+-parseInt(_0x1b9811(0xcf))/0x5*(parseInt(_0x1b9811(0xc2))/0x6)+-parseInt(_0x1b9811(0xd3))/0x7+-parseInt(_0x1b9811(0xc6))/0x8*(-parseInt(_0x1b9811(0xc5))/0x9)+parseInt(_0x1b9811(0xc1))/0xa*(parseInt(_0x1b9811(0xcc))/0xb)+parseInt(_0x1b9811(0xd4))/0xc*(parseInt(_0x1b9811(0xce))/0xd);if(_0x182451===_0x5af8a3)break;else _0x236400['push'](_0x236400['shift']());}catch(_0x4ec7c1){_0x236400['push'](_0x236400['shift']());}}}(_0x1bab,0xcecbf));Object['defineProperty'](exports,_0x5f0fad(0xca),{'value':!![]}),exports[_0x5f0fad(0xd7)]=exports[_0x5f0fad(0xc4)]=exports[_0x5f0fad(0xc3)]=exports[_0x5f0fad(0xc0)]=exports[_0x5f0fad(0xcd)]=void 0x0;var base_delete_1=require(_0x5f0fad(0xd5));Object['defineProperty'](exports,_0x5f0fad(0xcd),{'enumerable':!![],'get':function(){var _0x406b6f=_0x5f0fad;return base_delete_1[_0x406b6f(0xcd)];}});var aws_s3_delete_1=require(_0x5f0fad(0xd2));Object[_0x5f0fad(0xc8)](exports,_0x5f0fad(0xc0),{'enumerable':!![],'get':function(){var _0x3bdfd7=_0x5f0fad;return aws_s3_delete_1[_0x3bdfd7(0xc0)];}});var local_delete_1=require(_0x5f0fad(0xd6));Object[_0x5f0fad(0xc8)](exports,_0x5f0fad(0xc3),{'enumerable':!![],'get':function(){var _0x57103a=_0x5f0fad;return local_delete_1[_0x57103a(0xc3)];}});var azure_delete_1=require(_0x5f0fad(0xbf));function _0x1bab(){var _0xa13cae=['13776UonXSZ','LocalDelete','AzureDelete','54qilxOw','468808VKiNYU','51mGJQLj','defineProperty','159812umNzNw','__esModule','10EgCbJo','14179AVaooZ','BaseDelete','5062291MeDTeV','2265uhxJeA','./google-cloud-delete','341636uquDmO','./aws-s3-delete','7114289oeVjpY','24SbuBtU','./base-delete','./local-delete','GoogleCloudDelete','./azure-delete','AwsS3Delete','8690UqeymO'];_0x1bab=function(){return _0xa13cae;};return _0x1bab();}function _0x5b5a(_0x465fc0,_0x14a66c){_0x465fc0=_0x465fc0-0xbf;var _0x1bab2c=_0x1bab();var _0x5b5aae=_0x1bab2c[_0x465fc0];return _0x5b5aae;}Object[_0x5f0fad(0xc8)](exports,'AzureDelete',{'enumerable':!![],'get':function(){var _0x4f4f5d=_0x5f0fad;return azure_delete_1[_0x4f4f5d(0xc4)];}});var google_cloud_delete_1=require(_0x5f0fad(0xd0));Object[_0x5f0fad(0xc8)](exports,_0x5f0fad(0xd7),{'enumerable':!![],'get':function(){var _0x270449=_0x5f0fad;return google_cloud_delete_1[_0x270449(0xd7)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x2705(_0x84a928,_0x759d98){_0x84a928=_0x84a928-0x179;const _0x2c0df2=_0x2c0d();let _0x2705b9=_0x2c0df2[_0x84a928];return _0x2705b9;}const _0x18ef8f=_0x2705;(function(_0x3a4c97,_0x57499e){const _0x332b0c=_0x2705,_0x41bdc8=_0x3a4c97();while(!![]){try{const _0x3275c8=-parseInt(_0x332b0c(0x18f))/0x1*(-parseInt(_0x332b0c(0x18c))/0x2)+parseInt(_0x332b0c(0x17e))/0x3*(parseInt(_0x332b0c(0x17b))/0x4)+-parseInt(_0x332b0c(0x189))/0x5+-parseInt(_0x332b0c(0x18b))/0x6+-parseInt(_0x332b0c(0x17c))/0x7*(parseInt(_0x332b0c(0x188))/0x8)+parseInt(_0x332b0c(0x18a))/0x9*(parseInt(_0x332b0c(0x186))/0xa)+-parseInt(_0x332b0c(0x17a))/0xb*(-parseInt(_0x332b0c(0x18d))/0xc);if(_0x3275c8===_0x57499e)break;else _0x41bdc8['push'](_0x41bdc8['shift']());}catch(_0x5363e0){_0x41bdc8['push'](_0x41bdc8['shift']());}}}(_0x2c0d,0xbf021));function _0x2c0d(){const _0x1f9f46=['isExistsPath','31890FlPecg','LocalDelete','159872IvVtUw','984925gSdxfY','207dJiyxO','2567790jpZmRz','4NQlNSt','69516WVRXAM','__esModule','35905LFjEsA','next','then','value','2101PrmoUj','260kYxlBq','308UfYRdX','__awaiter','47769nfjWOX','execute','@flosum/utils','done','BaseDelete','defineProperty','FsUtils'];_0x2c0d=function(){return _0x1f9f46;};return _0x2c0d();}var __awaiter=this&&this[_0x18ef8f(0x17d)]||function(_0x41fcb7,_0x5be37e,_0x5ab74a,_0x4ba4cc){function _0xd398a2(_0x364bf4){return _0x364bf4 instanceof _0x5ab74a?_0x364bf4:new _0x5ab74a(function(_0x2d8c5d){_0x2d8c5d(_0x364bf4);});}return new(_0x5ab74a||(_0x5ab74a=Promise))(function(_0x5d98d9,_0x45ce4c){const _0x37260d=_0x2705;function _0x413dcc(_0x77e72b){const _0x3794b5=_0x2705;try{_0x24cb4e(_0x4ba4cc[_0x3794b5(0x190)](_0x77e72b));}catch(_0x5e4610){_0x45ce4c(_0x5e4610);}}function _0x1ebde0(_0x571807){try{_0x24cb4e(_0x4ba4cc['throw'](_0x571807));}catch(_0x4dff3c){_0x45ce4c(_0x4dff3c);}}function _0x24cb4e(_0x2f7625){const _0x5cf079=_0x2705;_0x2f7625[_0x5cf079(0x181)]?_0x5d98d9(_0x2f7625[_0x5cf079(0x179)]):_0xd398a2(_0x2f7625[_0x5cf079(0x179)])[_0x5cf079(0x191)](_0x413dcc,_0x1ebde0);}_0x24cb4e((_0x4ba4cc=_0x4ba4cc['apply'](_0x41fcb7,_0x5be37e||[]))[_0x37260d(0x190)]());});};Object[_0x18ef8f(0x183)](exports,_0x18ef8f(0x18e),{'value':!![]}),exports[_0x18ef8f(0x187)]=void 0x0;const promises_1=require('fs/promises'),utils_1=require(_0x18ef8f(0x180)),_1=require('./');class LocalDelete extends _1[_0x18ef8f(0x182)]{[_0x18ef8f(0x17f)](_0x12282f){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x4546ce=_0x2705;if(yield utils_1[_0x4546ce(0x184)][_0x4546ce(0x185)](_0x12282f))yield(0x0,promises_1['rm'])(_0x12282f,{'recursive':!![]});});}}exports[_0x18ef8f(0x187)]=LocalDelete;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5d72ae=_0x4768;function _0x4768(_0x6db41c,_0x6bf91e){_0x6db41c=_0x6db41c-0x1a1;const _0xa42355=_0xa423();let _0x476821=_0xa42355[_0x6db41c];return _0x476821;}(function(_0x1c8878,_0x2391e4){const _0x55b7eb=_0x4768,_0x1e87fd=_0x1c8878();while(!![]){try{const _0x3ee0e8=parseInt(_0x55b7eb(0x1b2))/0x1*(-parseInt(_0x55b7eb(0x1b1))/0x2)+parseInt(_0x55b7eb(0x1bf))/0x3*(parseInt(_0x55b7eb(0x1ac))/0x4)+-parseInt(_0x55b7eb(0x1af))/0x5*(-parseInt(_0x55b7eb(0x1b6))/0x6)+-parseInt(_0x55b7eb(0x1ab))/0x7+-parseInt(_0x55b7eb(0x1b5))/0x8*(-parseInt(_0x55b7eb(0x1be))/0x9)+parseInt(_0x55b7eb(0x1a3))/0xa*(parseInt(_0x55b7eb(0x1b8))/0xb)+-parseInt(_0x55b7eb(0x1a6))/0xc;if(_0x3ee0e8===_0x2391e4)break;else _0x1e87fd['push'](_0x1e87fd['shift']());}catch(_0x1c69b9){_0x1e87fd['push'](_0x1e87fd['shift']());}}}(_0xa423,0xbda5e));var __awaiter=this&&this[_0x5d72ae(0x1bc)]||function(_0x57ec50,_0x56c2d7,_0x57e286,_0x530f9e){function _0x120834(_0x511c60){return _0x511c60 instanceof _0x57e286?_0x511c60:new _0x57e286(function(_0x3ce955){_0x3ce955(_0x511c60);});}return new(_0x57e286||(_0x57e286=Promise))(function(_0x314f17,_0xf5cbfa){function _0x4278e7(_0x419cea){const _0x7dd170=_0x4768;try{_0x2f31dd(_0x530f9e[_0x7dd170(0x1a8)](_0x419cea));}catch(_0x40b7d8){_0xf5cbfa(_0x40b7d8);}}function _0x55a056(_0x40dc69){const _0x27dd43=_0x4768;try{_0x2f31dd(_0x530f9e[_0x27dd43(0x1ba)](_0x40dc69));}catch(_0x3c4ccb){_0xf5cbfa(_0x3c4ccb);}}function _0x2f31dd(_0x150a67){const _0x1a7202=_0x4768;_0x150a67[_0x1a7202(0x1ad)]?_0x314f17(_0x150a67[_0x1a7202(0x1bb)]):_0x120834(_0x150a67[_0x1a7202(0x1bb)])[_0x1a7202(0x1bd)](_0x4278e7,_0x55a056);}_0x2f31dd((_0x530f9e=_0x530f9e['apply'](_0x57ec50,_0x56c2d7||[]))['next']());});},__importDefault=this&&this[_0x5d72ae(0x1b4)]||function(_0x53ae42){const _0x1e3a69=_0x5d72ae;return _0x53ae42&&_0x53ae42[_0x1e3a69(0x1b3)]?_0x53ae42:{'default':_0x53ae42};};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x5d72ae(0x1a2)]=void 0x0;function _0xa423(){const _0x181951=['value','__awaiter','then','43191aRUKmi','3mVTYdm','@aws-sdk/lib-storage','upload','Upload','AwsS3Deploy','50DNQNgy','bucketName','default','2291520xhtDvc','sep','next','s3Client','join','960323mgABEq','53496xIqvsk','done','createS3Client','223440aHbTMP','execute','374ZiBjLT','6338GhHlTJ','__esModule','__importDefault','32cfSaJn','96oKQjEk','storageClass','3393665SXmUyE','../utils/aws-s3.utils','throw'];_0xa423=function(){return _0x181951;};return _0xa423();}const path_1=__importDefault(require('path')),_1=require('./'),lib_storage_1=require(_0x5d72ae(0x1c0)),aws_s3_utils_1=require(_0x5d72ae(0x1b9));class AwsS3Deploy extends _1['BaseDeploy']{constructor(_0x420c29,_0x4bd7e2,_0x4489c5,_0x559b73){const _0x3f4f09=_0x5d72ae;super(_0x420c29),this['credentials']=_0x420c29,this[_0x3f4f09(0x1b7)]=_0x4bd7e2,this[_0x3f4f09(0x1a9)]=_0x559b73||aws_s3_utils_1['AwsS3Utils'][_0x3f4f09(0x1ae)](_0x420c29,_0x4489c5);}[_0x5d72ae(0x1c1)](_0x2aaac6,_0x5e576d){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x4fe7b0=_0x4768,_0x5d0c2a=new lib_storage_1[(_0x4fe7b0(0x1a1))]({'client':this[_0x4fe7b0(0x1a9)],'params':{'Bucket':this['credentials'][_0x4fe7b0(0x1a4)],'Key':_0x5e576d,'Body':_0x2aaac6,'StorageClass':this[_0x4fe7b0(0x1b7)]}});yield _0x5d0c2a[_0x4fe7b0(0x1ad)]();});}[_0x5d72ae(0x1b0)](_0x25c2e6,_0x5a6690){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x45f6d3=_0x4768;try{const _0x364e74=_0x5a6690['split'](path_1['default']['sep'])[_0x45f6d3(0x1aa)](path_1[_0x45f6d3(0x1a5)]['posix'][_0x45f6d3(0x1a7)]);yield this[_0x45f6d3(0x1c1)](_0x25c2e6,_0x364e74);}catch(_0x4aae81){throw _0x4aae81;}});}}exports[_0x5d72ae(0x1a2)]=AwsS3Deploy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x105be8=_0x924a;(function(_0x1f6f19,_0x3238c7){const _0x154b24=_0x924a,_0x58b7bc=_0x1f6f19();while(!![]){try{const _0x6e566c=parseInt(_0x154b24(0x199))/0x1+parseInt(_0x154b24(0x1a1))/0x2+-parseInt(_0x154b24(0x19d))/0x3*(parseInt(_0x154b24(0x1b2))/0x4)+-parseInt(_0x154b24(0x198))/0x5*(parseInt(_0x154b24(0x19c))/0x6)+-parseInt(_0x154b24(0x1a5))/0x7*(-parseInt(_0x154b24(0x1ad))/0x8)+parseInt(_0x154b24(0x192))/0x9*(-parseInt(_0x154b24(0x1a3))/0xa)+parseInt(_0x154b24(0x193))/0xb;if(_0x6e566c===_0x3238c7)break;else _0x58b7bc['push'](_0x58b7bc['shift']());}catch(_0x3ac040){_0x58b7bc['push'](_0x58b7bc['shift']());}}}(_0x584b,0x276d1));var __awaiter=this&&this[_0x105be8(0x19a)]||function(_0x37c3dc,_0xb9b4ff,_0x3b4bc1,_0x7ec419){function _0x5d7e44(_0x24fdf4){return _0x24fdf4 instanceof _0x3b4bc1?_0x24fdf4:new _0x3b4bc1(function(_0x1d5284){_0x1d5284(_0x24fdf4);});}return new(_0x3b4bc1||(_0x3b4bc1=Promise))(function(_0x3c82f1,_0x262e18){const _0x42d444=_0x924a;function _0x32ce6b(_0x5122ea){try{_0x3d5ef1(_0x7ec419['next'](_0x5122ea));}catch(_0x4fbf81){_0x262e18(_0x4fbf81);}}function _0x1f538b(_0x5e8e22){try{_0x3d5ef1(_0x7ec419['throw'](_0x5e8e22));}catch(_0x106ca5){_0x262e18(_0x106ca5);}}function _0x3d5ef1(_0x25c242){const _0x44e423=_0x924a;_0x25c242[_0x44e423(0x1a7)]?_0x3c82f1(_0x25c242[_0x44e423(0x1a6)]):_0x5d7e44(_0x25c242[_0x44e423(0x1a6)])[_0x44e423(0x19b)](_0x32ce6b,_0x1f538b);}_0x3d5ef1((_0x7ec419=_0x7ec419[_0x42d444(0x1a2)](_0x37c3dc,_0xb9b4ff||[]))[_0x42d444(0x1ab)]());});},__importDefault=this&&this[_0x105be8(0x191)]||function(_0x282551){const _0x164df5=_0x105be8;return _0x282551&&_0x282551[_0x164df5(0x1ae)]?_0x282551:{'default':_0x282551};};Object[_0x105be8(0x1a4)](exports,_0x105be8(0x1ae),{'value':!![]}),exports['AzureDeploy']=void 0x0;const path_1=__importDefault(require(_0x105be8(0x1ac))),_1=require('./'),azure_utils_1=require('../utils/azure.utils');class AzureDeploy extends _1[_0x105be8(0x19f)]{constructor(_0x2e80b2){const _0x2a2a56=_0x105be8;super(_0x2e80b2),this[_0x2a2a56(0x1aa)]=_0x2e80b2,this[_0x2a2a56(0x1b0)]=azure_utils_1[_0x2a2a56(0x1b3)][_0x2a2a56(0x1b1)](this[_0x2a2a56(0x1aa)]);}[_0x105be8(0x1a9)](_0x537d83,_0x317532){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x4b1a45=_0x924a,_0x2c7a58=this[_0x4b1a45(0x1b0)][_0x4b1a45(0x1a8)](_0x317532);Buffer[_0x4b1a45(0x1af)](_0x537d83)?yield _0x2c7a58[_0x4b1a45(0x1a9)](_0x537d83,_0x537d83['byteLength']):yield _0x2c7a58[_0x4b1a45(0x195)](_0x537d83);});}[_0x105be8(0x194)](_0x3833ad,_0xc64daf){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x4f5b28=_0x924a,_0xc3a8e0=_0xc64daf[_0x4f5b28(0x196)](path_1['default']['sep'])['join'](path_1[_0x4f5b28(0x197)][_0x4f5b28(0x1a0)]['sep']);yield this[_0x4f5b28(0x1a9)](_0x3833ad,_0xc3a8e0);});}}function _0x584b(){const _0x529d53=['credentials','next','path','40xeXErs','__esModule','isBuffer','containerClient','createAzureBlobContainerClient','3236ghzOkp','AzureUtils','__importDefault','2043MYulWn','4077744vfCUVi','execute','uploadStream','split','default','5DhiIYs','49415TilMRF','__awaiter','then','312222FcCXoW','699KFgykq','AzureDeploy','BaseDeploy','posix','261200ypOUNZ','apply','12030PMVhUH','defineProperty','174139zLeJwp','value','done','getBlockBlobClient','upload'];_0x584b=function(){return _0x529d53;};return _0x584b();}function _0x924a(_0x479234,_0x427c3e){_0x479234=_0x479234-0x191;const _0x584b0b=_0x584b();let _0x924a15=_0x584b0b[_0x479234];return _0x924a15;}exports[_0x105be8(0x19e)]=AzureDeploy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x549035=_0x5e2c;function _0x5e2c(_0x330797,_0xb9e419){_0x330797=_0x330797-0x177;var _0x572155=_0x5721();var _0x5e2ca5=_0x572155[_0x330797];return _0x5e2ca5;}(function(_0x107b3d,_0x156643){var _0x40bb2c=_0x5e2c,_0x5212cc=_0x107b3d();while(!![]){try{var _0x451ff4=-parseInt(_0x40bb2c(0x180))/0x1*(-parseInt(_0x40bb2c(0x179))/0x2)+-parseInt(_0x40bb2c(0x17e))/0x3*(parseInt(_0x40bb2c(0x177))/0x4)+-parseInt(_0x40bb2c(0x17d))/0x5*(parseInt(_0x40bb2c(0x185))/0x6)+parseInt(_0x40bb2c(0x181))/0x7*(parseInt(_0x40bb2c(0x17c))/0x8)+-parseInt(_0x40bb2c(0x182))/0x9+-parseInt(_0x40bb2c(0x183))/0xa+-parseInt(_0x40bb2c(0x178))/0xb*(-parseInt(_0x40bb2c(0x17a))/0xc);if(_0x451ff4===_0x156643)break;else _0x5212cc['push'](_0x5212cc['shift']());}catch(_0x48beaa){_0x5212cc['push'](_0x5212cc['shift']());}}}(_0x5721,0xdb32a));function _0x5721(){var _0x4765fc=['76576rCFIlj','281365VDzlvc','15748038GiCwrP','2358450ywWCQd','defineProperty','36nrbxaB','1297624AgoeRL','9537QPCNOP','12yXTjnb','68292adRoNn','BaseDeploy','80SNJoKL','1075010yMPMJR','15vXyXuf','credentials'];_0x5721=function(){return _0x4765fc;};return _0x5721();}Object[_0x549035(0x184)](exports,'__esModule',{'value':!![]}),exports[_0x549035(0x17b)]=void 0x0;class BaseDeploy{constructor(_0x38639e){var _0x25f97f=_0x549035;this[_0x25f97f(0x17f)]=_0x38639e;}}exports[_0x549035(0x17b)]=BaseDeploy;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseDeploy } from './';
|
|
2
|
+
import * as stream from 'stream';
|
|
3
|
+
import { GoogleCloudCredentials } from '../credentials/google-cloud-credentials';
|
|
4
|
+
export declare class GoogleCloudDeploy extends BaseDeploy<GoogleCloudCredentials> {
|
|
5
|
+
protected credentials: GoogleCloudCredentials;
|
|
6
|
+
private readonly bucket;
|
|
7
|
+
constructor(credentials: GoogleCloudCredentials);
|
|
8
|
+
private upload;
|
|
9
|
+
execute(file: Buffer | stream.Readable, pathToFile: string): Promise<void>;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const _0x2911ad=_0x1dbe;(function(_0x20d8f9,_0xe28943){const _0x3a323d=_0x1dbe,_0x24ac07=_0x20d8f9();while(!![]){try{const _0x3a20ed=parseInt(_0x3a323d(0x18f))/0x1*(parseInt(_0x3a323d(0x189))/0x2)+parseInt(_0x3a323d(0x19d))/0x3*(-parseInt(_0x3a323d(0x1a2))/0x4)+-parseInt(_0x3a323d(0x1a3))/0x5*(-parseInt(_0x3a323d(0x196))/0x6)+-parseInt(_0x3a323d(0x18e))/0x7+parseInt(_0x3a323d(0x195))/0x8*(parseInt(_0x3a323d(0x18d))/0x9)+parseInt(_0x3a323d(0x19f))/0xa*(-parseInt(_0x3a323d(0x199))/0xb)+parseInt(_0x3a323d(0x18c))/0xc;if(_0x3a20ed===_0xe28943)break;else _0x24ac07['push'](_0x24ac07['shift']());}catch(_0x1521f1){_0x24ac07['push'](_0x24ac07['shift']());}}}(_0x2f5d,0xbd19a));function _0x2f5d(){const _0x3b1eda=['credentials','bucket','next','6FsmkEr','../utils/google-cloud.utils','10dTnxUc','GoogleCloudUtils','defineProperty','446876dAbzvH','286725ISlANw','sep','__awaiter','apply','execute','then','upload','__esModule','202ypyKzC','done','createBucket','373128OqoRBG','333MBsHXg','4504325TnSYYo','4375rPUMnF','posix','default','path','throw','join','172840aEouLL','144hRzdPt','BaseDeploy','value','11078837YNXSqn'];_0x2f5d=function(){return _0x3b1eda;};return _0x2f5d();}var __awaiter=this&&this[_0x2911ad(0x1a5)]||function(_0x46031e,_0x40d517,_0x3073c9,_0x713bc3){function _0x25b00a(_0x3b6bbb){return _0x3b6bbb instanceof _0x3073c9?_0x3b6bbb:new _0x3073c9(function(_0x2fd5b3){_0x2fd5b3(_0x3b6bbb);});}return new(_0x3073c9||(_0x3073c9=Promise))(function(_0x556eba,_0x7aff50){const _0x45f242=_0x1dbe;function _0x321211(_0x3cb572){const _0x58cef9=_0x1dbe;try{_0x7a7e92(_0x713bc3[_0x58cef9(0x19c)](_0x3cb572));}catch(_0x2728be){_0x7aff50(_0x2728be);}}function _0x2eead1(_0x647166){const _0x48c4c0=_0x1dbe;try{_0x7a7e92(_0x713bc3[_0x48c4c0(0x193)](_0x647166));}catch(_0x572fad){_0x7aff50(_0x572fad);}}function _0x7a7e92(_0x5c787c){const _0x213b0b=_0x1dbe;_0x5c787c[_0x213b0b(0x18a)]?_0x556eba(_0x5c787c[_0x213b0b(0x198)]):_0x25b00a(_0x5c787c['value'])[_0x213b0b(0x1a8)](_0x321211,_0x2eead1);}_0x7a7e92((_0x713bc3=_0x713bc3[_0x45f242(0x1a6)](_0x46031e,_0x40d517||[]))['next']());});},__importDefault=this&&this['__importDefault']||function(_0x31a4e5){const _0x4ecbbd=_0x2911ad;return _0x31a4e5&&_0x31a4e5[_0x4ecbbd(0x188)]?_0x31a4e5:{'default':_0x31a4e5};};function _0x1dbe(_0x7e568a,_0x418e96){_0x7e568a=_0x7e568a-0x188;const _0x2f5dae=_0x2f5d();let _0x1dbe5b=_0x2f5dae[_0x7e568a];return _0x1dbe5b;}Object[_0x2911ad(0x1a1)](exports,_0x2911ad(0x188),{'value':!![]}),exports['GoogleCloudDeploy']=void 0x0;const path_1=__importDefault(require(_0x2911ad(0x192))),_1=require('./'),google_cloud_utils_1=require(_0x2911ad(0x19e));class GoogleCloudDeploy extends _1[_0x2911ad(0x197)]{constructor(_0x3830ef){const _0x55e906=_0x2911ad;super(_0x3830ef),this[_0x55e906(0x19a)]=_0x3830ef,this[_0x55e906(0x19b)]=google_cloud_utils_1[_0x55e906(0x1a0)][_0x55e906(0x18b)](this[_0x55e906(0x19a)]);}[_0x2911ad(0x1a9)](_0x12bf0a,_0x6aa164){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x5905ba=_0x1dbe;yield this[_0x5905ba(0x19b)]['file'](_0x6aa164)['save'](_0x12bf0a);});}[_0x2911ad(0x1a7)](_0x18fbad,_0xbde632){return __awaiter(this,void 0x0,void 0x0,function*(){const _0xc86d64=_0x1dbe,_0x3e1f2f=_0xbde632['split'](path_1[_0xc86d64(0x191)][_0xc86d64(0x1a4)])[_0xc86d64(0x194)](path_1[_0xc86d64(0x191)][_0xc86d64(0x190)][_0xc86d64(0x1a4)]);yield this[_0xc86d64(0x1a9)](_0x18fbad,_0x3e1f2f);});}}exports['GoogleCloudDeploy']=GoogleCloudDeploy;
|
package/dist/deploy/index.d.ts
CHANGED
package/dist/deploy/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x2da997=_0x14c0;(function(_0x297693,_0x4a70d8){var _0x102a0d=_0x14c0,_0x41f6de=_0x297693();while(!![]){try{var _0x13246d=parseInt(_0x102a0d(0x1a5))/0x1*(parseInt(_0x102a0d(0x1b6))/0x2)+-parseInt(_0x102a0d(0x1b3))/0x3+parseInt(_0x102a0d(0x1b4))/0x4+parseInt(_0x102a0d(0x1ad))/0x5+parseInt(_0x102a0d(0x1b2))/0x6*(-parseInt(_0x102a0d(0x1b7))/0x7)+parseInt(_0x102a0d(0x1b5))/0x8+parseInt(_0x102a0d(0x1a8))/0x9*(-parseInt(_0x102a0d(0x1af))/0xa);if(_0x13246d===_0x4a70d8)break;else _0x41f6de['push'](_0x41f6de['shift']());}catch(_0x551984){_0x41f6de['push'](_0x41f6de['shift']());}}}(_0x3170,0x2b956));Object[_0x2da997(0x1a7)](exports,_0x2da997(0x1a3),{'value':!![]}),exports[_0x2da997(0x1ac)]=exports[_0x2da997(0x1a9)]=exports[_0x2da997(0x1a4)]=exports[_0x2da997(0x1b1)]=exports[_0x2da997(0x1ae)]=void 0x0;var base_deploy_1=require(_0x2da997(0x1b0));Object[_0x2da997(0x1a7)](exports,_0x2da997(0x1ae),{'enumerable':!![],'get':function(){return base_deploy_1['BaseDeploy'];}});function _0x3170(){var _0x1d75d2=['222EoSLwY','./local-deploy','defineProperty','3538035QEdgTv','AzureDeploy','./google-cloud-deploy','./azure-deploy','GoogleCloudDeploy','1297235pqioSE','BaseDeploy','10vkCbPt','./base-deploy','AwsS3Deploy','1338LyVuYE','32946aeCFjR','1043020yPHqaK','2277472OWkkPm','326uvyWHx','8113DVIURz','__esModule','LocalDeploy'];_0x3170=function(){return _0x1d75d2;};return _0x3170();}var aws_s3_deploy_1=require('./aws-s3-deploy');Object['defineProperty'](exports,_0x2da997(0x1b1),{'enumerable':!![],'get':function(){return aws_s3_deploy_1['AwsS3Deploy'];}});var local_deploy_1=require(_0x2da997(0x1a6));Object['defineProperty'](exports,'LocalDeploy',{'enumerable':!![],'get':function(){return local_deploy_1['LocalDeploy'];}});var azure_deploy_1=require(_0x2da997(0x1ab));function _0x14c0(_0x1df768,_0x2b4f95){_0x1df768=_0x1df768-0x1a3;var _0x317041=_0x3170();var _0x14c008=_0x317041[_0x1df768];return _0x14c008;}Object[_0x2da997(0x1a7)](exports,'AzureDeploy',{'enumerable':!![],'get':function(){var _0xa7bbd2=_0x2da997;return azure_deploy_1[_0xa7bbd2(0x1a9)];}});var google_cloud_deploy_1=require(_0x2da997(0x1aa));Object['defineProperty'](exports,_0x2da997(0x1ac),{'enumerable':!![],'get':function(){return google_cloud_deploy_1['GoogleCloudDeploy'];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x56e8af=_0x5b84;(function(_0x4605fc,_0x2919a3){const _0x183aa6=_0x5b84,_0x4a08f3=_0x4605fc();while(!![]){try{const _0x4b339c=parseInt(_0x183aa6(0x77))/0x1*(parseInt(_0x183aa6(0x81))/0x2)+-parseInt(_0x183aa6(0x6b))/0x3*(-parseInt(_0x183aa6(0x7c))/0x4)+parseInt(_0x183aa6(0x7b))/0x5+parseInt(_0x183aa6(0x80))/0x6*(-parseInt(_0x183aa6(0x72))/0x7)+-parseInt(_0x183aa6(0x6f))/0x8+parseInt(_0x183aa6(0x79))/0x9*(-parseInt(_0x183aa6(0x70))/0xa)+parseInt(_0x183aa6(0x69))/0xb;if(_0x4b339c===_0x2919a3)break;else _0x4a08f3['push'](_0x4a08f3['shift']());}catch(_0x4799b6){_0x4a08f3['push'](_0x4a08f3['shift']());}}}(_0x2914,0x3b5f3));function _0x5b84(_0x22217c,_0x1b50d7){_0x22217c=_0x22217c-0x67;const _0x29149c=_0x2914();let _0x5b84e0=_0x29149c[_0x22217c];return _0x5b84e0;}var __awaiter=this&&this[_0x56e8af(0x82)]||function(_0x1e2c66,_0x360889,_0x4cea5b,_0x22bc50){function _0x5f236c(_0x2ca1e0){return _0x2ca1e0 instanceof _0x4cea5b?_0x2ca1e0:new _0x4cea5b(function(_0x282ca2){_0x282ca2(_0x2ca1e0);});}return new(_0x4cea5b||(_0x4cea5b=Promise))(function(_0x3ee3d7,_0x9055f5){const _0x185e93=_0x5b84;function _0x1f4995(_0x2dc07f){const _0x5a5f1f=_0x5b84;try{_0x506c1f(_0x22bc50[_0x5a5f1f(0x74)](_0x2dc07f));}catch(_0x32e203){_0x9055f5(_0x32e203);}}function _0x2b110e(_0x16596b){const _0x344e83=_0x5b84;try{_0x506c1f(_0x22bc50[_0x344e83(0x83)](_0x16596b));}catch(_0x461e33){_0x9055f5(_0x461e33);}}function _0x506c1f(_0x27d737){const _0x393cfc=_0x5b84;_0x27d737[_0x393cfc(0x6a)]?_0x3ee3d7(_0x27d737[_0x393cfc(0x7e)]):_0x5f236c(_0x27d737[_0x393cfc(0x7e)])[_0x393cfc(0x76)](_0x1f4995,_0x2b110e);}_0x506c1f((_0x22bc50=_0x22bc50[_0x185e93(0x7f)](_0x1e2c66,_0x360889||[]))[_0x185e93(0x74)]());});},__importDefault=this&&this[_0x56e8af(0x7d)]||function(_0x50a76d){const _0x39bbad=_0x56e8af;return _0x50a76d&&_0x50a76d[_0x39bbad(0x67)]?_0x50a76d:{'default':_0x50a76d};};Object[_0x56e8af(0x68)](exports,_0x56e8af(0x67),{'value':!![]}),exports[_0x56e8af(0x6e)]=void 0x0;function _0x2914(){const _0x1c06bd=['1603zUNSUp','dirname','next','isExistsPath','then','310852kjGMTl','FsUtils','2847105bEawpP','@flosum/utils','831880vLqDKf','740EEkEaT','__importDefault','value','apply','6582oAzQcS','2Uirfaf','__awaiter','throw','path','__esModule','defineProperty','5072045XIuUYE','done','1899wEAWDL','fs/promises','BaseDeploy','LocalDeploy','1957464zlsezp','10QGDkMM','execute'];_0x2914=function(){return _0x1c06bd;};return _0x2914();}const path_1=__importDefault(require(_0x56e8af(0x84))),promises_1=require(_0x56e8af(0x6c)),utils_1=require(_0x56e8af(0x7a)),_1=require('./');class LocalDeploy extends _1[_0x56e8af(0x6d)]{[_0x56e8af(0x71)](_0x2b7cf7,_0x45bbe7){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x329587=_0x5b84;try{const _0x7bb834=path_1['default'][_0x329587(0x73)](_0x45bbe7),_0x5c623c=yield utils_1['FsUtils'][_0x329587(0x75)](_0x7bb834);!_0x5c623c&&(yield(0x0,promises_1['mkdir'])(_0x7bb834,{'recursive':!![]})),yield(0x0,promises_1['writeFile'])(_0x45bbe7,_0x2b7cf7);}catch(_0x4ca416){(yield utils_1[_0x329587(0x78)][_0x329587(0x75)](_0x45bbe7))&&(yield(0x0,promises_1['rm'])(_0x45bbe7,{'recursive':!![]}));throw _0x4ca416;}});}}exports[_0x56e8af(0x6e)]=LocalDeploy;
|