thorin-plugin-upload-gcloud 2.0.3 → 2.0.5
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/lib/store.js +4 -1
- package/npm-shrinkwrap.json +22 -66
- package/package.json +2 -2
package/lib/store.js
CHANGED
|
@@ -64,7 +64,9 @@ module.exports = function (thorin, opt, IStorage) {
|
|
|
64
64
|
return;
|
|
65
65
|
}
|
|
66
66
|
this[sdk] = new Storage({
|
|
67
|
-
credentials: this[config].credentials
|
|
67
|
+
credentials: this[config].credentials,
|
|
68
|
+
projectId: this[config].credentials.project_id,
|
|
69
|
+
email: this[config].credentials.email
|
|
68
70
|
});
|
|
69
71
|
}
|
|
70
72
|
|
|
@@ -276,6 +278,7 @@ module.exports = function (thorin, opt, IStorage) {
|
|
|
276
278
|
if (!opt.bucket) opt.bucket = this[config].bucket;
|
|
277
279
|
if (!opt.key) return resolve(null);
|
|
278
280
|
const bucketObj = this[sdk].bucket(opt.bucket);
|
|
281
|
+
if (opt.key.charAt(0) === '/') opt.key = opt.key.substr(1);
|
|
279
282
|
const fileObj = new File(bucketObj, opt.key);
|
|
280
283
|
fileObj.delete((err) => {
|
|
281
284
|
if (err) {
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "thorin-plugin-upload-gcloud",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "thorin-plugin-upload-gcloud",
|
|
9
|
-
"version": "2.0.
|
|
9
|
+
"version": "2.0.4",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@google-cloud/storage": "6.0
|
|
12
|
+
"@google-cloud/storage": "^6.8.0",
|
|
13
13
|
"concat-stream": "2.0.0"
|
|
14
14
|
}
|
|
15
15
|
},
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"node_modules/@google-cloud/projectify": {
|
|
29
|
-
"version": "
|
|
30
|
-
"resolved": "https://registry.npmjs.org/@google-cloud/projectify/-/projectify-
|
|
31
|
-
"integrity": "sha512
|
|
29
|
+
"version": "3.0.0",
|
|
30
|
+
"resolved": "https://registry.npmjs.org/@google-cloud/projectify/-/projectify-3.0.0.tgz",
|
|
31
|
+
"integrity": "sha512-HRkZsNmjScY6Li8/kb70wjGlDDyLkVk3KvoEo9uIoxSjYLJasGiCch9+PqRVDOCGUFvEIqyogl+BeqILL4OJHA==",
|
|
32
32
|
"engines": {
|
|
33
|
-
"node": ">=
|
|
33
|
+
"node": ">=12.0.0"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"node_modules/@google-cloud/promisify": {
|
|
@@ -42,15 +42,14 @@
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
"node_modules/@google-cloud/storage": {
|
|
45
|
-
"version": "6.0
|
|
46
|
-
"resolved": "https://registry.npmjs.org/@google-cloud/storage/-/storage-6.0.
|
|
47
|
-
"integrity": "sha512-
|
|
45
|
+
"version": "6.8.0",
|
|
46
|
+
"resolved": "https://registry.npmjs.org/@google-cloud/storage/-/storage-6.8.0.tgz",
|
|
47
|
+
"integrity": "sha512-eRGsHrhVA7NORehYW9jLUWHRzYqFxbYiG3LQL50ZhjMekDwzhPKUQ7wbjAji9OFcO3Mk8jeNHeWdpAc/QZANCg==",
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@google-cloud/paginator": "^3.0.7",
|
|
50
|
-
"@google-cloud/projectify": "^
|
|
50
|
+
"@google-cloud/projectify": "^3.0.0",
|
|
51
51
|
"@google-cloud/promisify": "^3.0.0",
|
|
52
52
|
"abort-controller": "^3.0.0",
|
|
53
|
-
"arrify": "^2.0.0",
|
|
54
53
|
"async-retry": "^1.3.3",
|
|
55
54
|
"compressible": "^2.0.12",
|
|
56
55
|
"duplexify": "^4.0.0",
|
|
@@ -61,9 +60,7 @@
|
|
|
61
60
|
"mime": "^3.0.0",
|
|
62
61
|
"mime-types": "^2.0.8",
|
|
63
62
|
"p-limit": "^3.0.1",
|
|
64
|
-
"pumpify": "^2.0.0",
|
|
65
63
|
"retry-request": "^5.0.0",
|
|
66
|
-
"stream-events": "^1.0.4",
|
|
67
64
|
"teeny-request": "^8.0.0",
|
|
68
65
|
"uuid": "^8.0.0"
|
|
69
66
|
},
|
|
@@ -477,7 +474,7 @@
|
|
|
477
474
|
"node_modules/once": {
|
|
478
475
|
"version": "1.4.0",
|
|
479
476
|
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
|
|
480
|
-
"integrity": "
|
|
477
|
+
"integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
|
|
481
478
|
"dependencies": {
|
|
482
479
|
"wrappy": "1"
|
|
483
480
|
}
|
|
@@ -496,25 +493,6 @@
|
|
|
496
493
|
"url": "https://github.com/sponsors/sindresorhus"
|
|
497
494
|
}
|
|
498
495
|
},
|
|
499
|
-
"node_modules/pump": {
|
|
500
|
-
"version": "3.0.0",
|
|
501
|
-
"resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",
|
|
502
|
-
"integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==",
|
|
503
|
-
"dependencies": {
|
|
504
|
-
"end-of-stream": "^1.1.0",
|
|
505
|
-
"once": "^1.3.1"
|
|
506
|
-
}
|
|
507
|
-
},
|
|
508
|
-
"node_modules/pumpify": {
|
|
509
|
-
"version": "2.0.1",
|
|
510
|
-
"resolved": "https://registry.npmjs.org/pumpify/-/pumpify-2.0.1.tgz",
|
|
511
|
-
"integrity": "sha512-m7KOje7jZxrmutanlkS1daj1dS6z6BgslzOXmcSEpIlCxM3VJH7lG5QLeck/6hgF6F4crFf01UtQmNsJfweTAw==",
|
|
512
|
-
"dependencies": {
|
|
513
|
-
"duplexify": "^4.1.1",
|
|
514
|
-
"inherits": "^2.0.3",
|
|
515
|
-
"pump": "^3.0.0"
|
|
516
|
-
}
|
|
517
|
-
},
|
|
518
496
|
"node_modules/readable-stream": {
|
|
519
497
|
"version": "3.6.0",
|
|
520
498
|
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz",
|
|
@@ -648,7 +626,7 @@
|
|
|
648
626
|
"node_modules/wrappy": {
|
|
649
627
|
"version": "1.0.2",
|
|
650
628
|
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
|
651
|
-
"integrity": "
|
|
629
|
+
"integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="
|
|
652
630
|
},
|
|
653
631
|
"node_modules/yallist": {
|
|
654
632
|
"version": "4.0.0",
|
|
@@ -678,9 +656,9 @@
|
|
|
678
656
|
}
|
|
679
657
|
},
|
|
680
658
|
"@google-cloud/projectify": {
|
|
681
|
-
"version": "
|
|
682
|
-
"resolved": "https://registry.npmjs.org/@google-cloud/projectify/-/projectify-
|
|
683
|
-
"integrity": "sha512
|
|
659
|
+
"version": "3.0.0",
|
|
660
|
+
"resolved": "https://registry.npmjs.org/@google-cloud/projectify/-/projectify-3.0.0.tgz",
|
|
661
|
+
"integrity": "sha512-HRkZsNmjScY6Li8/kb70wjGlDDyLkVk3KvoEo9uIoxSjYLJasGiCch9+PqRVDOCGUFvEIqyogl+BeqILL4OJHA=="
|
|
684
662
|
},
|
|
685
663
|
"@google-cloud/promisify": {
|
|
686
664
|
"version": "3.0.0",
|
|
@@ -688,15 +666,14 @@
|
|
|
688
666
|
"integrity": "sha512-91ArYvRgXWb73YvEOBMmOcJc0bDRs5yiVHnqkwoG0f3nm7nZuipllz6e7BvFESBvjkDTBC0zMD8QxedUwNLc1A=="
|
|
689
667
|
},
|
|
690
668
|
"@google-cloud/storage": {
|
|
691
|
-
"version": "6.0
|
|
692
|
-
"resolved": "https://registry.npmjs.org/@google-cloud/storage/-/storage-6.0.
|
|
693
|
-
"integrity": "sha512-
|
|
669
|
+
"version": "6.8.0",
|
|
670
|
+
"resolved": "https://registry.npmjs.org/@google-cloud/storage/-/storage-6.8.0.tgz",
|
|
671
|
+
"integrity": "sha512-eRGsHrhVA7NORehYW9jLUWHRzYqFxbYiG3LQL50ZhjMekDwzhPKUQ7wbjAji9OFcO3Mk8jeNHeWdpAc/QZANCg==",
|
|
694
672
|
"requires": {
|
|
695
673
|
"@google-cloud/paginator": "^3.0.7",
|
|
696
|
-
"@google-cloud/projectify": "^
|
|
674
|
+
"@google-cloud/projectify": "^3.0.0",
|
|
697
675
|
"@google-cloud/promisify": "^3.0.0",
|
|
698
676
|
"abort-controller": "^3.0.0",
|
|
699
|
-
"arrify": "^2.0.0",
|
|
700
677
|
"async-retry": "^1.3.3",
|
|
701
678
|
"compressible": "^2.0.12",
|
|
702
679
|
"duplexify": "^4.0.0",
|
|
@@ -707,9 +684,7 @@
|
|
|
707
684
|
"mime": "^3.0.0",
|
|
708
685
|
"mime-types": "^2.0.8",
|
|
709
686
|
"p-limit": "^3.0.1",
|
|
710
|
-
"pumpify": "^2.0.0",
|
|
711
687
|
"retry-request": "^5.0.0",
|
|
712
|
-
"stream-events": "^1.0.4",
|
|
713
688
|
"teeny-request": "^8.0.0",
|
|
714
689
|
"uuid": "^8.0.0"
|
|
715
690
|
}
|
|
@@ -1014,7 +989,7 @@
|
|
|
1014
989
|
"once": {
|
|
1015
990
|
"version": "1.4.0",
|
|
1016
991
|
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
|
|
1017
|
-
"integrity": "
|
|
992
|
+
"integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
|
|
1018
993
|
"requires": {
|
|
1019
994
|
"wrappy": "1"
|
|
1020
995
|
}
|
|
@@ -1027,25 +1002,6 @@
|
|
|
1027
1002
|
"yocto-queue": "^0.1.0"
|
|
1028
1003
|
}
|
|
1029
1004
|
},
|
|
1030
|
-
"pump": {
|
|
1031
|
-
"version": "3.0.0",
|
|
1032
|
-
"resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",
|
|
1033
|
-
"integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==",
|
|
1034
|
-
"requires": {
|
|
1035
|
-
"end-of-stream": "^1.1.0",
|
|
1036
|
-
"once": "^1.3.1"
|
|
1037
|
-
}
|
|
1038
|
-
},
|
|
1039
|
-
"pumpify": {
|
|
1040
|
-
"version": "2.0.1",
|
|
1041
|
-
"resolved": "https://registry.npmjs.org/pumpify/-/pumpify-2.0.1.tgz",
|
|
1042
|
-
"integrity": "sha512-m7KOje7jZxrmutanlkS1daj1dS6z6BgslzOXmcSEpIlCxM3VJH7lG5QLeck/6hgF6F4crFf01UtQmNsJfweTAw==",
|
|
1043
|
-
"requires": {
|
|
1044
|
-
"duplexify": "^4.1.1",
|
|
1045
|
-
"inherits": "^2.0.3",
|
|
1046
|
-
"pump": "^3.0.0"
|
|
1047
|
-
}
|
|
1048
|
-
},
|
|
1049
1005
|
"readable-stream": {
|
|
1050
1006
|
"version": "3.6.0",
|
|
1051
1007
|
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz",
|
|
@@ -1150,7 +1106,7 @@
|
|
|
1150
1106
|
"wrappy": {
|
|
1151
1107
|
"version": "1.0.2",
|
|
1152
1108
|
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
|
1153
|
-
"integrity": "
|
|
1109
|
+
"integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="
|
|
1154
1110
|
},
|
|
1155
1111
|
"yallist": {
|
|
1156
1112
|
"version": "4.0.0",
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "thorin-plugin-upload-gcloud",
|
|
3
3
|
"author": "UNLOQ Systems",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.5",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@google-cloud/storage": "6.0
|
|
6
|
+
"@google-cloud/storage": "6.8.0",
|
|
7
7
|
"concat-stream": "2.0.0"
|
|
8
8
|
},
|
|
9
9
|
"description": "Thorin.js Google Cloud Upload storage",
|