firebase-tools 12.0.0 → 12.0.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.
@@ -36,10 +36,12 @@ function cloudEventFromProtoToJson(ce) {
36
36
  }
37
37
  exports.cloudEventFromProtoToJson = cloudEventFromProtoToJson;
38
38
  function getOptionalAttribute(ce, attr, type) {
39
- return ce["attributes"][attr][type];
39
+ var _a, _b;
40
+ return (_b = (_a = ce === null || ce === void 0 ? void 0 : ce["attributes"]) === null || _a === void 0 ? void 0 : _a[attr]) === null || _b === void 0 ? void 0 : _b[type];
40
41
  }
41
42
  function getRequiredAttribute(ce, attr, type) {
42
- const val = ce["attributes"][attr][type];
43
+ var _a, _b;
44
+ const val = (_b = (_a = ce === null || ce === void 0 ? void 0 : ce["attributes"]) === null || _a === void 0 ? void 0 : _a[attr]) === null || _b === void 0 ? void 0 : _b[type];
43
45
  if (val === undefined) {
44
46
  throw new error_1.FirebaseError("CloudEvent must contain " + attr + " attribute");
45
47
  }
@@ -7,7 +7,7 @@ const logger_1 = require("../logger");
7
7
  exports.DEFAULT_VENV_DIR = "venv";
8
8
  function virtualEnvCmd(cwd, venvDir) {
9
9
  const activateScriptPath = process.platform === "win32" ? ["Scripts", "activate.bat"] : ["bin", "activate"];
10
- const venvActivate = path.join(cwd, venvDir, ...activateScriptPath);
10
+ const venvActivate = `"${path.join(cwd, venvDir, ...activateScriptPath)}"`;
11
11
  return {
12
12
  command: process.platform === "win32" ? venvActivate : ".",
13
13
  args: [process.platform === "win32" ? "" : venvActivate],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firebase-tools",
3
- "version": "12.0.0",
3
+ "version": "12.0.1",
4
4
  "description": "Command-Line Interface for Firebase",
5
5
  "main": "./lib/index.js",
6
6
  "bin": {