addons-scanner-utils 9.9.0 → 9.10.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.
@@ -25,8 +25,8 @@ class Directory extends base_1.IOBase {
25
25
  super({ filePath, stderr });
26
26
  this.files = {};
27
27
  }
28
- getFiles(_walkPromise = utils_1.walkPromise) {
29
- return __awaiter(this, void 0, void 0, function* () {
28
+ getFiles() {
29
+ return __awaiter(this, arguments, void 0, function* (_walkPromise = utils_1.walkPromise) {
30
30
  // If we have already processed this directory and have data on this
31
31
  // instance return that.
32
32
  if (Object.keys(this.files).length) {
@@ -63,8 +63,8 @@ class Directory extends base_1.IOBase {
63
63
  return filePath;
64
64
  });
65
65
  }
66
- getFileAsStream(_path, { encoding } = { encoding: 'utf8' }) {
67
- return __awaiter(this, void 0, void 0, function* () {
66
+ getFileAsStream(_path_1) {
67
+ return __awaiter(this, arguments, void 0, function* (_path, { encoding } = { encoding: 'utf8' }) {
68
68
  const filePath = yield this.getPath(_path);
69
69
  const readStream = (0, fs_1.createReadStream)(filePath, {
70
70
  autoClose: true,
package/dist/io/utils.js CHANGED
@@ -51,8 +51,8 @@ function walkPromise(curPath, { shouldIncludePath = () => true, stderr }) {
51
51
  return walk(curPath);
52
52
  }
53
53
  exports.walkPromise = walkPromise;
54
- function checkFileExists(filePath, { _lstat = exports.lstat } = {}) {
55
- return __awaiter(this, void 0, void 0, function* () {
54
+ function checkFileExists(filePath_1) {
55
+ return __awaiter(this, arguments, void 0, function* (filePath, { _lstat = exports.lstat } = {}) {
56
56
  const invalidMessage = new Error(`Path "${filePath}" is not a file or directory or does not exist.`);
57
57
  try {
58
58
  const stats = yield _lstat(filePath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "addons-scanner-utils",
3
- "version": "9.9.0",
3
+ "version": "9.10.0",
4
4
  "description": "Various addons related helpers to build CLIs.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -15,11 +15,11 @@
15
15
  "first-chunk-stream": "3.0.0",
16
16
  "strip-bom-stream": "4.0.0",
17
17
  "upath": "2.0.1",
18
- "yauzl": "2.10.0"
18
+ "yauzl": "3.1.2"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "body-parser": "1.20.2",
22
- "express": "4.18.2",
22
+ "express": "4.18.3",
23
23
  "node-fetch": "2.6.11",
24
24
  "safe-compare": "1.1.4"
25
25
  },
@@ -46,13 +46,13 @@
46
46
  "@types/safe-compare": "^1.1.0",
47
47
  "@types/sinon": "^17.0.1",
48
48
  "@types/supertest": "^6.0.2",
49
- "@typescript-eslint/eslint-plugin": "^6.7.0",
49
+ "@typescript-eslint/eslint-plugin": "^7.0.0",
50
50
  "@typescript-eslint/parser": "^6.7.0",
51
51
  "body-parser": "1.20.2",
52
52
  "eslint": "^8.1.0",
53
53
  "eslint-config-amo": "^5.0.0",
54
54
  "eslint-plugin-amo": "^1.10.2",
55
- "express": "4.18.2",
55
+ "express": "4.18.3",
56
56
  "jest": "^29.0.0",
57
57
  "node-fetch": "2.6.11",
58
58
  "prettier": "2.8.8",