firebase-tools 11.25.3 → 11.27.0
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/commands/ext-dev-publish.js +28 -10
- package/lib/commands/ext-install.js +1 -2
- package/lib/deploy/functions/backend.js +1 -5
- package/lib/deploy/functions/release/fabricator.js +16 -6
- package/lib/emulator/functionsEmulator.js +18 -11
- package/lib/emulator/storage/apis/gcloud.js +1 -1
- package/lib/extensions/extensionsApi.js +8 -5
- package/lib/extensions/extensionsHelper.js +230 -32
- package/lib/extensions/localHelper.js +4 -4
- package/lib/extensions/warnings.js +3 -16
- package/lib/frameworks/angular/index.js +6 -3
- package/lib/frameworks/astro/index.js +76 -0
- package/lib/frameworks/astro/utils.js +22 -0
- package/lib/frameworks/index.js +25 -7
- package/lib/frameworks/nuxt/index.js +34 -14
- package/lib/frameworks/nuxt/utils.js +11 -1
- package/lib/frameworks/nuxt2/index.js +3 -9
- package/lib/frameworks/sveltekit/index.js +54 -0
- package/lib/frameworks/sveltekit/interfaces.js +2 -0
- package/lib/frameworks/utils.js +2 -2
- package/lib/frameworks/vite/index.js +12 -5
- package/lib/gcp/cloudfunctions.js +3 -0
- package/lib/gcp/cloudfunctionsv2.js +39 -26
- package/lib/track.js +19 -13
- package/npm-shrinkwrap.json +14 -14
- package/package.json +1 -1
package/lib/track.js
CHANGED
|
@@ -10,25 +10,31 @@ const logger_1 = require("./logger");
|
|
|
10
10
|
const pkg = require("../package.json");
|
|
11
11
|
exports.EMULATOR_GA4_MEASUREMENT_ID = process.env.FIREBASE_EMULATOR_GA4_MEASUREMENT_ID || "G-KYP2JMPFC0";
|
|
12
12
|
function usageEnabled() {
|
|
13
|
-
return !!configstore_1.configstore.get("usage");
|
|
13
|
+
return !!process.env.IS_FIREBASE_CLI && !!configstore_1.configstore.get("usage");
|
|
14
14
|
}
|
|
15
15
|
exports.usageEnabled = usageEnabled;
|
|
16
16
|
const FIREBASE_ANALYTICS_UA = process.env.FIREBASE_ANALYTICS_UA || "UA-29174744-3";
|
|
17
|
-
let
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
let visitor;
|
|
18
|
+
function ensureUAVisitor() {
|
|
19
|
+
if (!visitor) {
|
|
20
|
+
let anonId = configstore_1.configstore.get("analytics-uuid");
|
|
21
|
+
if (!anonId) {
|
|
22
|
+
anonId = (0, uuid_1.v4)();
|
|
23
|
+
configstore_1.configstore.set("analytics-uuid", anonId);
|
|
24
|
+
}
|
|
25
|
+
visitor = ua(FIREBASE_ANALYTICS_UA, anonId, {
|
|
26
|
+
strictCidFormat: false,
|
|
27
|
+
https: true,
|
|
28
|
+
});
|
|
29
|
+
visitor.set("cd1", process.platform);
|
|
30
|
+
visitor.set("cd2", process.version);
|
|
31
|
+
visitor.set("cd3", process.env.FIREPIT_VERSION || "none");
|
|
32
|
+
}
|
|
21
33
|
}
|
|
22
|
-
const visitor = ua(FIREBASE_ANALYTICS_UA, anonId, {
|
|
23
|
-
strictCidFormat: false,
|
|
24
|
-
https: true,
|
|
25
|
-
});
|
|
26
|
-
visitor.set("cd1", process.platform);
|
|
27
|
-
visitor.set("cd2", process.version);
|
|
28
|
-
visitor.set("cd3", process.env.FIREPIT_VERSION || "none");
|
|
29
34
|
function track(action, label, duration = 0) {
|
|
35
|
+
ensureUAVisitor();
|
|
30
36
|
return new Promise((resolve) => {
|
|
31
|
-
if (configstore_1.configstore.get("tokens")
|
|
37
|
+
if (usageEnabled() && configstore_1.configstore.get("tokens")) {
|
|
32
38
|
visitor.event("Firebase CLI " + pkg.version, action, label, duration).send(() => {
|
|
33
39
|
resolve();
|
|
34
40
|
});
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "firebase-tools",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.27.0",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "firebase-tools",
|
|
9
|
-
"version": "11.
|
|
9
|
+
"version": "11.27.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@google-cloud/pubsub": "^3.0.1",
|
|
@@ -90,9 +90,9 @@
|
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
"node_modules/@babel/parser": {
|
|
93
|
-
"version": "7.
|
|
94
|
-
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.
|
|
95
|
-
"integrity": "sha512-
|
|
93
|
+
"version": "7.21.4",
|
|
94
|
+
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.21.4.tgz",
|
|
95
|
+
"integrity": "sha512-alVJj7k7zIxqBZ7BTRhz0IqJFxW1VJbm6N8JbcYhQ186df9ZBPbZBmWSqAMXwHGsCJdYks7z/voa3ibiS5bCIw==",
|
|
96
96
|
"bin": {
|
|
97
97
|
"parser": "bin/babel-parser.js"
|
|
98
98
|
},
|
|
@@ -547,9 +547,9 @@
|
|
|
547
547
|
}
|
|
548
548
|
},
|
|
549
549
|
"node_modules/acorn": {
|
|
550
|
-
"version": "8.8.
|
|
551
|
-
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.
|
|
552
|
-
"integrity": "sha512-
|
|
550
|
+
"version": "8.8.2",
|
|
551
|
+
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz",
|
|
552
|
+
"integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==",
|
|
553
553
|
"bin": {
|
|
554
554
|
"acorn": "bin/acorn"
|
|
555
555
|
},
|
|
@@ -7173,9 +7173,9 @@
|
|
|
7173
7173
|
}
|
|
7174
7174
|
},
|
|
7175
7175
|
"@babel/parser": {
|
|
7176
|
-
"version": "7.
|
|
7177
|
-
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.
|
|
7178
|
-
"integrity": "sha512-
|
|
7176
|
+
"version": "7.21.4",
|
|
7177
|
+
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.21.4.tgz",
|
|
7178
|
+
"integrity": "sha512-alVJj7k7zIxqBZ7BTRhz0IqJFxW1VJbm6N8JbcYhQ186df9ZBPbZBmWSqAMXwHGsCJdYks7z/voa3ibiS5bCIw=="
|
|
7179
7179
|
},
|
|
7180
7180
|
"@colors/colors": {
|
|
7181
7181
|
"version": "1.5.0",
|
|
@@ -7546,9 +7546,9 @@
|
|
|
7546
7546
|
}
|
|
7547
7547
|
},
|
|
7548
7548
|
"acorn": {
|
|
7549
|
-
"version": "8.8.
|
|
7550
|
-
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.
|
|
7551
|
-
"integrity": "sha512-
|
|
7549
|
+
"version": "8.8.2",
|
|
7550
|
+
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz",
|
|
7551
|
+
"integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw=="
|
|
7552
7552
|
},
|
|
7553
7553
|
"acorn-jsx": {
|
|
7554
7554
|
"version": "5.3.2",
|