Socket
Socket
Sign inDemoInstall

firebase-tools

Package Overview
Dependencies
Maintainers
4
Versions
411
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

firebase-tools - npm Package Compare versions

Comparing version 13.15.1 to 13.15.2

18

lib/emulator/downloadableEmulators.js

@@ -49,16 +49,16 @@ "use strict";

? {
version: "1.3.4",
expectedSize: 24216320,
expectedChecksum: "f57bc0b9a10837ecb4f2808c49ae3ff5",
version: "1.3.5",
expectedSize: 24232704,
expectedChecksum: "4eabf613a4a5feeaa173e1375b62bde0",
}
: process.platform === "win32"
? {
version: "1.3.4",
expectedSize: 24631296,
expectedChecksum: "c8f1433fbff26f5e9da30cf205f2af78",
version: "1.3.5",
expectedSize: 24651264,
expectedChecksum: "c7b2b7168ff7226f4e5626ae7d13e0ca",
}
: {
version: "1.3.4",
expectedSize: 24125592,
expectedChecksum: "a7b9a79d66fa5ebfb1a0f65e535d5c33",
version: "1.3.5",
expectedSize: 24146072,
expectedChecksum: "1457937751ce25fa332cdc16b561d64b",
},

@@ -65,0 +65,0 @@ };

@@ -25,2 +25,3 @@ "use strict";

const logger_1 = require("../../logger");
const env_1 = require("../../functions/env");
const DEFAULT_BUILD_SCRIPT = ["next build"];

@@ -54,3 +55,10 @@ const PUBLIC_DIR = "public";

}
const env = Object.assign({}, process.env);
let env = Object.assign({}, process.env);
if (context === null || context === void 0 ? void 0 : context.projectId) {
const projectEnvPath = (0, path_1.join)(dir, `.env.${context.projectId}`);
if (await (0, fs_extra_1.pathExists)(projectEnvPath)) {
const projectEnvVars = (0, env_1.parseStrict)((await (0, fs_extra_1.readFile)(projectEnvPath)).toString());
env = Object.assign(Object.assign({}, projectEnvVars), env);
}
}
if ((context === null || context === void 0 ? void 0 : context.projectId) && (context === null || context === void 0 ? void 0 : context.site)) {

@@ -57,0 +65,0 @@ const deploymentDomain = await (0, api_1.getDeploymentDomain)(context.projectId, context.site, context.hostingChannel);

@@ -247,5 +247,9 @@ "use strict";

function findEsbuildPath() {
var _a;
try {
const esbuildBinPath = (0, child_process_1.execSync)("npx which esbuild", { encoding: "utf8" }).trim();
const globalVersion = getGlobalEsbuildVersion();
const esbuildBinPath = (_a = (0, child_process_1.execSync)("npx which esbuild", { encoding: "utf8" })) === null || _a === void 0 ? void 0 : _a.trim();
if (!esbuildBinPath) {
return null;
}
const globalVersion = getGlobalEsbuildVersion(esbuildBinPath);
if (globalVersion && !(0, semver_1.satisfies)(globalVersion, constants_1.ESBUILD_VERSION)) {

@@ -262,5 +266,9 @@ console.warn(`Warning: Global esbuild version (${globalVersion}) does not match the required version (${constants_1.ESBUILD_VERSION}).`);

exports.findEsbuildPath = findEsbuildPath;
function getGlobalEsbuildVersion() {
function getGlobalEsbuildVersion(binPath) {
var _a;
try {
const versionOutput = (0, child_process_1.execSync)("esbuild --version", { encoding: "utf8" }).trim();
const versionOutput = (_a = (0, child_process_1.execSync)(`${binPath} --version`, { encoding: "utf8" })) === null || _a === void 0 ? void 0 : _a.trim();
if (!versionOutput) {
return null;
}
const versionMatch = versionOutput.match(/(\d+\.\d+\.\d+)/);

@@ -267,0 +275,0 @@ return versionMatch ? versionMatch[0] : null;

{
"name": "firebase-tools",
"version": "13.15.1",
"version": "13.15.2",
"description": "Command-Line Interface for Firebase",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc