firebase-tools 11.25.0 → 11.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/database/import.js +2 -2
- package/npm-shrinkwrap.json +41 -2
- package/package.json +2 -1
package/lib/database/import.js
CHANGED
|
@@ -5,9 +5,9 @@ const clc = require("colorette");
|
|
|
5
5
|
const Filter = require("stream-json/filters/Filter");
|
|
6
6
|
const stream = require("stream");
|
|
7
7
|
const StreamObject = require("stream-json/streamers/StreamObject");
|
|
8
|
-
const p_limit_1 = require("p-limit");
|
|
9
8
|
const apiv2_1 = require("../apiv2");
|
|
10
9
|
const error_1 = require("../error");
|
|
10
|
+
const pLimit = require("p-limit");
|
|
11
11
|
const MAX_CHUNK_SIZE = 1024 * 1024 * 10;
|
|
12
12
|
const CONCURRENCY_LIMIT = 5;
|
|
13
13
|
class DatabaseImporter {
|
|
@@ -16,7 +16,7 @@ class DatabaseImporter {
|
|
|
16
16
|
this.inStream = inStream;
|
|
17
17
|
this.dataPath = dataPath;
|
|
18
18
|
this.chunkSize = chunkSize;
|
|
19
|
-
this.limit = (
|
|
19
|
+
this.limit = pLimit(CONCURRENCY_LIMIT);
|
|
20
20
|
this.client = new apiv2_1.Client({ urlPrefix: dbUrl.origin, auth: true });
|
|
21
21
|
}
|
|
22
22
|
async execute() {
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "firebase-tools",
|
|
3
|
-
"version": "11.25.
|
|
3
|
+
"version": "11.25.1",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "firebase-tools",
|
|
9
|
-
"version": "11.25.
|
|
9
|
+
"version": "11.25.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@google-cloud/pubsub": "^3.0.1",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"node-fetch": "^2.6.7",
|
|
48
48
|
"open": "^6.3.0",
|
|
49
49
|
"ora": "^5.4.1",
|
|
50
|
+
"p-limit": "^3.0.1",
|
|
50
51
|
"portfinder": "^1.0.32",
|
|
51
52
|
"progress": "^2.0.3",
|
|
52
53
|
"proxy-agent": "^5.0.0",
|
|
@@ -5187,6 +5188,20 @@
|
|
|
5187
5188
|
"node": ">=8"
|
|
5188
5189
|
}
|
|
5189
5190
|
},
|
|
5191
|
+
"node_modules/p-limit": {
|
|
5192
|
+
"version": "3.1.0",
|
|
5193
|
+
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
|
|
5194
|
+
"integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
|
|
5195
|
+
"dependencies": {
|
|
5196
|
+
"yocto-queue": "^0.1.0"
|
|
5197
|
+
},
|
|
5198
|
+
"engines": {
|
|
5199
|
+
"node": ">=10"
|
|
5200
|
+
},
|
|
5201
|
+
"funding": {
|
|
5202
|
+
"url": "https://github.com/sponsors/sindresorhus"
|
|
5203
|
+
}
|
|
5204
|
+
},
|
|
5190
5205
|
"node_modules/pac-proxy-agent": {
|
|
5191
5206
|
"version": "5.0.0",
|
|
5192
5207
|
"resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-5.0.0.tgz",
|
|
@@ -7121,6 +7136,17 @@
|
|
|
7121
7136
|
"node": ">=10"
|
|
7122
7137
|
}
|
|
7123
7138
|
},
|
|
7139
|
+
"node_modules/yocto-queue": {
|
|
7140
|
+
"version": "0.1.0",
|
|
7141
|
+
"resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
|
|
7142
|
+
"integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
|
|
7143
|
+
"engines": {
|
|
7144
|
+
"node": ">=10"
|
|
7145
|
+
},
|
|
7146
|
+
"funding": {
|
|
7147
|
+
"url": "https://github.com/sponsors/sindresorhus"
|
|
7148
|
+
}
|
|
7149
|
+
},
|
|
7124
7150
|
"node_modules/zip-stream": {
|
|
7125
7151
|
"version": "4.1.0",
|
|
7126
7152
|
"resolved": "https://registry.npmjs.org/zip-stream/-/zip-stream-4.1.0.tgz",
|
|
@@ -11080,6 +11106,14 @@
|
|
|
11080
11106
|
"resolved": "https://registry.npmjs.org/p-defer/-/p-defer-3.0.0.tgz",
|
|
11081
11107
|
"integrity": "sha512-ugZxsxmtTln604yeYd29EGrNhazN2lywetzpKhfmQjW/VJmhpDmWbiX+h0zL8V91R0UXkhb3KtPmyq9PZw3aYw=="
|
|
11082
11108
|
},
|
|
11109
|
+
"p-limit": {
|
|
11110
|
+
"version": "3.1.0",
|
|
11111
|
+
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
|
|
11112
|
+
"integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
|
|
11113
|
+
"requires": {
|
|
11114
|
+
"yocto-queue": "^0.1.0"
|
|
11115
|
+
}
|
|
11116
|
+
},
|
|
11083
11117
|
"pac-proxy-agent": {
|
|
11084
11118
|
"version": "5.0.0",
|
|
11085
11119
|
"resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-5.0.0.tgz",
|
|
@@ -12596,6 +12630,11 @@
|
|
|
12596
12630
|
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz",
|
|
12597
12631
|
"integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA=="
|
|
12598
12632
|
},
|
|
12633
|
+
"yocto-queue": {
|
|
12634
|
+
"version": "0.1.0",
|
|
12635
|
+
"resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
|
|
12636
|
+
"integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q=="
|
|
12637
|
+
},
|
|
12599
12638
|
"zip-stream": {
|
|
12600
12639
|
"version": "4.1.0",
|
|
12601
12640
|
"resolved": "https://registry.npmjs.org/zip-stream/-/zip-stream-4.1.0.tgz",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "firebase-tools",
|
|
3
|
-
"version": "11.25.
|
|
3
|
+
"version": "11.25.1",
|
|
4
4
|
"description": "Command-Line Interface for Firebase",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -96,6 +96,7 @@
|
|
|
96
96
|
"node-fetch": "^2.6.7",
|
|
97
97
|
"open": "^6.3.0",
|
|
98
98
|
"ora": "^5.4.1",
|
|
99
|
+
"p-limit": "^3.0.1",
|
|
99
100
|
"portfinder": "^1.0.32",
|
|
100
101
|
"progress": "^2.0.3",
|
|
101
102
|
"proxy-agent": "^5.0.0",
|