avo 3.2.3 → 3.2.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.
Files changed (2) hide show
  1. package/cli.js +1 -2
  2. package/package.json +3 -3
package/cli.js CHANGED
@@ -1,4 +1,3 @@
1
- #!/usr/bin/env node
2
1
  import ora from 'ora';
3
2
  import chalk from 'chalk';
4
3
  import minimatch from 'minimatch';
@@ -968,7 +967,7 @@ function selectSource(sourceToAdd, json) {
968
967
  interfacePath: relativeInterfacePath,
969
968
  };
970
969
  }
971
- const newJson = { ...json, sources: [...json.sources, source] };
970
+ const newJson = { ...json, sources: [...(json.sources ?? []), source] };
972
971
  report.info(`Added source ${source.name} to the project`);
973
972
  report.info(`Run 'avo pull "${source.name}"' to pull the latest analytics wrapper for this source`);
974
973
  return newJson;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "avo",
3
- "version": "3.2.3",
3
+ "version": "3.2.5",
4
4
  "type": "module",
5
5
  "description": "The command-line interface for Avo",
6
6
  "author": "Avo (https://www.avo.app)",
@@ -37,7 +37,7 @@
37
37
  "ignore-walk": "^5.0.1",
38
38
  "inquirer": "^8.0.0",
39
39
  "inquirer-fuzzy-path": "^2.3.0",
40
- "jsonwebtoken": "^8.4.0",
40
+ "jsonwebtoken": "^9.0.0",
41
41
  "load-json-file": "^7.0.1",
42
42
  "log-symbols": "^5.1.0",
43
43
  "minimatch": "^5.1.0",
@@ -64,7 +64,7 @@
64
64
  "eslint-config-airbnb-base": "^15.0.0",
65
65
  "eslint-config-prettier": "^8.5.0",
66
66
  "eslint-plugin-import": "^2.25.2",
67
- "prettier": "2.7.1",
67
+ "prettier": "2.8.2",
68
68
  "typescript": "^4.7.4"
69
69
  }
70
70
  }