dependabot-npm_and_yarn 0.138.6 → 0.140.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84916236c990d2af54694bb0aa0ec3da1a3363d0c1a7eb508569d2ed083fca98
4
- data.tar.gz: 26b05fc417840eb81cc06663637c95002605c9e8419fe3a847017aa4a752e6f4
3
+ metadata.gz: f6752e0d6caf1ee510219ab72f2961b60b266c9c9b338a388e078e99ec851142
4
+ data.tar.gz: 39ae9014b6e1e30fee084f64b7594c1f27a3eb4effacea3c39f0f4861d4a7e40
5
5
  SHA512:
6
- metadata.gz: 44c451612fe14f3e2fbd9d8172f6000a09b17c29e238550d115a1200058dd1a50b7b979bb0c248bd129c702aaa62065bab1f4bacadbc92ec1a5f9e1d49edfae8
7
- data.tar.gz: 1c5ca6fc36c28e86538beacdc3ff0c8253c18d0708469799dce7b5c10ca18b4d043bcfc6e2e04b927dcbd02ead64172016de5dfb5a9639fe53053df2d8bfa807
6
+ metadata.gz: 6af9cde9d3f3930dfb0d2c70d959c6f06a0342b91140732e416892953a3298799beb37af779729ed8acd7d6e8f1fd2ebb8783ebb3c23ec6c643b77a7a77c8505
7
+ data.tar.gz: 49013312b100c974994abc4a6a9316220c410ccc54df3b2722658722f9d80c57166714fa77d5aefbf8a40052af41cdcc0733b6925630a8d8b2670e5f11fa2ad4
@@ -7,7 +7,7 @@
7
7
  "name": "@dependabot/helper",
8
8
  "dependencies": {
9
9
  "@dependabot/yarn-lib": "^1.21.1",
10
- "@npmcli/arborist": "^2.2.9",
10
+ "@npmcli/arborist": "^2.3.0",
11
11
  "detect-indent": "^6.0.0",
12
12
  "npm": "6.14.12",
13
13
  "semver": "^7.3.4"
@@ -16,7 +16,7 @@
16
16
  "helper": "run.js"
17
17
  },
18
18
  "devDependencies": {
19
- "eslint": "^7.22.0",
19
+ "eslint": "^7.23.0",
20
20
  "eslint-config-prettier": "^8.1.0",
21
21
  "jest": "^26.6.3",
22
22
  "prettier": "^2.2.1",
@@ -1425,9 +1425,9 @@
1425
1425
  }
1426
1426
  },
1427
1427
  "node_modules/@npmcli/arborist": {
1428
- "version": "2.2.9",
1429
- "resolved": "https://registry.npmjs.org/@npmcli/arborist/-/arborist-2.2.9.tgz",
1430
- "integrity": "sha512-ddC/CCAEHh28XYtgSAOudchdphNXcgErdYxwsEiykc2YbRA9Z+4XjI0BdBdXvv22DvkpO7zotUSxlVTcJmdURw==",
1428
+ "version": "2.3.0",
1429
+ "resolved": "https://registry.npmjs.org/@npmcli/arborist/-/arborist-2.3.0.tgz",
1430
+ "integrity": "sha512-4z8x8jImp/Clwol4sgmR6qdntLQZDxNFabBSbyr9EB11cyWHyqhRvBKip/1sBTcQAScIwuFT64MOu/HI4a5Nkw==",
1431
1431
  "dependencies": {
1432
1432
  "@npmcli/installed-package-contents": "^1.0.7",
1433
1433
  "@npmcli/map-workspaces": "^1.0.2",
@@ -1440,7 +1440,7 @@
1440
1440
  "cacache": "^15.0.3",
1441
1441
  "common-ancestor-path": "^1.0.1",
1442
1442
  "json-parse-even-better-errors": "^2.3.1",
1443
- "json-stringify-nice": "^1.1.1",
1443
+ "json-stringify-nice": "^1.1.2",
1444
1444
  "mkdirp-infer-owner": "^2.0.0",
1445
1445
  "npm-install-checks": "^4.0.0",
1446
1446
  "npm-package-arg": "^8.1.0",
@@ -3456,9 +3456,9 @@
3456
3456
  }
3457
3457
  },
3458
3458
  "node_modules/eslint": {
3459
- "version": "7.22.0",
3460
- "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.22.0.tgz",
3461
- "integrity": "sha512-3VawOtjSJUQiiqac8MQc+w457iGLfuNGLFn8JmF051tTKbh5/x/0vlcEj8OgDCaw7Ysa2Jn8paGshV7x2abKXg==",
3459
+ "version": "7.23.0",
3460
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.23.0.tgz",
3461
+ "integrity": "sha512-kqvNVbdkjzpFy0XOszNwjkKzZ+6TcwCQ/h+ozlcIWwaimBBuhlQ4nN6kbiM2L+OjDcznkTJxzYfRFH92sx4a0Q==",
3462
3462
  "dev": true,
3463
3463
  "dependencies": {
3464
3464
  "@babel/code-frame": "7.12.11",
@@ -7288,9 +7288,9 @@
7288
7288
  "dev": true
7289
7289
  },
7290
7290
  "node_modules/json-stringify-nice": {
7291
- "version": "1.1.1",
7292
- "resolved": "https://registry.npmjs.org/json-stringify-nice/-/json-stringify-nice-1.1.1.tgz",
7293
- "integrity": "sha512-aHOgcSoOLvmFZQMvZ27rFw68r4e9OlQtH7YEcF2u5amVYbF/D3cKBXKCvl5EGhQz2NwJZ6RPfgRX6yNQ+UBKJw==",
7291
+ "version": "1.1.3",
7292
+ "resolved": "https://registry.npmjs.org/json-stringify-nice/-/json-stringify-nice-1.1.3.tgz",
7293
+ "integrity": "sha512-w8+cZZFgcPtFkZTmkA1UpRH0GXXfpeuc/cClNkQjLt9JoQd8cBFSyB8J1WWjJrthIYViHobwnh3jA4z5X2LdGA==",
7294
7294
  "funding": {
7295
7295
  "url": "https://github.com/sponsors/isaacs"
7296
7296
  }
@@ -8195,7 +8195,239 @@
8195
8195
  "validate-npm-package-name",
8196
8196
  "which",
8197
8197
  "worker-farm",
8198
- "write-file-atomic"
8198
+ "write-file-atomic",
8199
+ "agent-base",
8200
+ "agentkeepalive",
8201
+ "ansi-align",
8202
+ "ansi-regex",
8203
+ "ansi-styles",
8204
+ "are-we-there-yet",
8205
+ "asap",
8206
+ "asn1",
8207
+ "assert-plus",
8208
+ "asynckit",
8209
+ "aws-sign2",
8210
+ "aws4",
8211
+ "balanced-match",
8212
+ "bcrypt-pbkdf",
8213
+ "boxen",
8214
+ "brace-expansion",
8215
+ "buffer-from",
8216
+ "builtins",
8217
+ "byline",
8218
+ "camelcase",
8219
+ "capture-stack-trace",
8220
+ "caseless",
8221
+ "chalk",
8222
+ "cidr-regex",
8223
+ "cli-boxes",
8224
+ "cliui",
8225
+ "clone",
8226
+ "code-point-at",
8227
+ "color-convert",
8228
+ "color-name",
8229
+ "colors",
8230
+ "combined-stream",
8231
+ "concat-map",
8232
+ "concat-stream",
8233
+ "configstore",
8234
+ "console-control-strings",
8235
+ "copy-concurrently",
8236
+ "core-util-is",
8237
+ "create-error-class",
8238
+ "cross-spawn",
8239
+ "crypto-random-string",
8240
+ "cyclist",
8241
+ "dashdash",
8242
+ "debug",
8243
+ "decamelize",
8244
+ "decode-uri-component",
8245
+ "deep-extend",
8246
+ "defaults",
8247
+ "define-properties",
8248
+ "delayed-stream",
8249
+ "delegates",
8250
+ "dot-prop",
8251
+ "dotenv",
8252
+ "duplexer3",
8253
+ "duplexify",
8254
+ "ecc-jsbn",
8255
+ "emoji-regex",
8256
+ "encoding",
8257
+ "end-of-stream",
8258
+ "env-paths",
8259
+ "err-code",
8260
+ "errno",
8261
+ "es-abstract",
8262
+ "es-to-primitive",
8263
+ "es6-promise",
8264
+ "es6-promisify",
8265
+ "escape-string-regexp",
8266
+ "execa",
8267
+ "extend",
8268
+ "extsprintf",
8269
+ "fast-json-stable-stringify",
8270
+ "flush-write-stream",
8271
+ "forever-agent",
8272
+ "form-data",
8273
+ "from2",
8274
+ "fs-minipass",
8275
+ "fs.realpath",
8276
+ "function-bind",
8277
+ "gauge",
8278
+ "genfun",
8279
+ "get-caller-file",
8280
+ "get-stream",
8281
+ "getpass",
8282
+ "global-dirs",
8283
+ "got",
8284
+ "har-schema",
8285
+ "har-validator",
8286
+ "has",
8287
+ "has-flag",
8288
+ "has-symbols",
8289
+ "http-cache-semantics",
8290
+ "http-proxy-agent",
8291
+ "http-signature",
8292
+ "https-proxy-agent",
8293
+ "humanize-ms",
8294
+ "iconv-lite",
8295
+ "ignore-walk",
8296
+ "import-lazy",
8297
+ "ip",
8298
+ "ip-regex",
8299
+ "is-callable",
8300
+ "is-ci",
8301
+ "is-date-object",
8302
+ "is-fullwidth-code-point",
8303
+ "is-installed-globally",
8304
+ "is-npm",
8305
+ "is-obj",
8306
+ "is-path-inside",
8307
+ "is-redirect",
8308
+ "is-regex",
8309
+ "is-retry-allowed",
8310
+ "is-stream",
8311
+ "is-symbol",
8312
+ "is-typedarray",
8313
+ "isarray",
8314
+ "isexe",
8315
+ "isstream",
8316
+ "jsbn",
8317
+ "json-schema",
8318
+ "json-stringify-safe",
8319
+ "jsonparse",
8320
+ "jsprim",
8321
+ "latest-version",
8322
+ "libnpmconfig",
8323
+ "libnpmpublish",
8324
+ "lodash._createset",
8325
+ "lodash._root",
8326
+ "lowercase-keys",
8327
+ "make-dir",
8328
+ "make-fetch-happen",
8329
+ "mime-db",
8330
+ "mime-types",
8331
+ "minimatch",
8332
+ "minimist",
8333
+ "minizlib",
8334
+ "ms",
8335
+ "mute-stream",
8336
+ "node-fetch-npm",
8337
+ "npm-bundled",
8338
+ "npm-logical-tree",
8339
+ "npm-normalize-package-bin",
8340
+ "npm-run-path",
8341
+ "number-is-nan",
8342
+ "oauth-sign",
8343
+ "object-assign",
8344
+ "object-keys",
8345
+ "object.getownpropertydescriptors",
8346
+ "os-homedir",
8347
+ "os-tmpdir",
8348
+ "p-finally",
8349
+ "package-json",
8350
+ "parallel-transform",
8351
+ "path-exists",
8352
+ "path-is-absolute",
8353
+ "path-key",
8354
+ "path-parse",
8355
+ "performance-now",
8356
+ "pify",
8357
+ "prepend-http",
8358
+ "process-nextick-args",
8359
+ "promise-retry",
8360
+ "promzard",
8361
+ "proto-list",
8362
+ "protoduck",
8363
+ "prr",
8364
+ "pseudomap",
8365
+ "psl",
8366
+ "pump",
8367
+ "pumpify",
8368
+ "punycode",
8369
+ "qs",
8370
+ "rc",
8371
+ "registry-auth-token",
8372
+ "registry-url",
8373
+ "require-directory",
8374
+ "require-main-filename",
8375
+ "resolve-from",
8376
+ "run-queue",
8377
+ "safer-buffer",
8378
+ "semver-diff",
8379
+ "set-blocking",
8380
+ "shebang-command",
8381
+ "shebang-regex",
8382
+ "signal-exit",
8383
+ "smart-buffer",
8384
+ "socks",
8385
+ "socks-proxy-agent",
8386
+ "spdx-correct",
8387
+ "spdx-exceptions",
8388
+ "spdx-expression-parse",
8389
+ "spdx-license-ids",
8390
+ "split-on-first",
8391
+ "sshpk",
8392
+ "stream-each",
8393
+ "stream-iterate",
8394
+ "stream-shift",
8395
+ "strict-uri-encode",
8396
+ "string_decoder",
8397
+ "string-width",
8398
+ "strip-ansi",
8399
+ "strip-eof",
8400
+ "strip-json-comments",
8401
+ "supports-color",
8402
+ "term-size",
8403
+ "through",
8404
+ "through2",
8405
+ "timed-out",
8406
+ "tough-cookie",
8407
+ "tunnel-agent",
8408
+ "tweetnacl",
8409
+ "typedarray",
8410
+ "unique-slug",
8411
+ "unique-string",
8412
+ "unzip-response",
8413
+ "uri-js",
8414
+ "url-parse-lax",
8415
+ "util-deprecate",
8416
+ "util-extend",
8417
+ "util-promisify",
8418
+ "verror",
8419
+ "wcwidth",
8420
+ "which-module",
8421
+ "wide-align",
8422
+ "widest-line",
8423
+ "wrap-ansi",
8424
+ "wrappy",
8425
+ "xdg-basedir",
8426
+ "xtend",
8427
+ "y18n",
8428
+ "yallist",
8429
+ "yargs",
8430
+ "yargs-parser"
8199
8431
  ],
8200
8432
  "dependencies": {
8201
8433
  "abbrev": "~1.1.1",
@@ -17008,9 +17240,9 @@
17008
17240
  }
17009
17241
  },
17010
17242
  "@npmcli/arborist": {
17011
- "version": "2.2.9",
17012
- "resolved": "https://registry.npmjs.org/@npmcli/arborist/-/arborist-2.2.9.tgz",
17013
- "integrity": "sha512-ddC/CCAEHh28XYtgSAOudchdphNXcgErdYxwsEiykc2YbRA9Z+4XjI0BdBdXvv22DvkpO7zotUSxlVTcJmdURw==",
17243
+ "version": "2.3.0",
17244
+ "resolved": "https://registry.npmjs.org/@npmcli/arborist/-/arborist-2.3.0.tgz",
17245
+ "integrity": "sha512-4z8x8jImp/Clwol4sgmR6qdntLQZDxNFabBSbyr9EB11cyWHyqhRvBKip/1sBTcQAScIwuFT64MOu/HI4a5Nkw==",
17014
17246
  "requires": {
17015
17247
  "@npmcli/installed-package-contents": "^1.0.7",
17016
17248
  "@npmcli/map-workspaces": "^1.0.2",
@@ -17023,7 +17255,7 @@
17023
17255
  "cacache": "^15.0.3",
17024
17256
  "common-ancestor-path": "^1.0.1",
17025
17257
  "json-parse-even-better-errors": "^2.3.1",
17026
- "json-stringify-nice": "^1.1.1",
17258
+ "json-stringify-nice": "^1.1.2",
17027
17259
  "mkdirp-infer-owner": "^2.0.0",
17028
17260
  "npm-install-checks": "^4.0.0",
17029
17261
  "npm-package-arg": "^8.1.0",
@@ -18659,9 +18891,9 @@
18659
18891
  }
18660
18892
  },
18661
18893
  "eslint": {
18662
- "version": "7.22.0",
18663
- "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.22.0.tgz",
18664
- "integrity": "sha512-3VawOtjSJUQiiqac8MQc+w457iGLfuNGLFn8JmF051tTKbh5/x/0vlcEj8OgDCaw7Ysa2Jn8paGshV7x2abKXg==",
18894
+ "version": "7.23.0",
18895
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.23.0.tgz",
18896
+ "integrity": "sha512-kqvNVbdkjzpFy0XOszNwjkKzZ+6TcwCQ/h+ozlcIWwaimBBuhlQ4nN6kbiM2L+OjDcznkTJxzYfRFH92sx4a0Q==",
18665
18897
  "dev": true,
18666
18898
  "requires": {
18667
18899
  "@babel/code-frame": "7.12.11",
@@ -21568,9 +21800,9 @@
21568
21800
  "dev": true
21569
21801
  },
21570
21802
  "json-stringify-nice": {
21571
- "version": "1.1.1",
21572
- "resolved": "https://registry.npmjs.org/json-stringify-nice/-/json-stringify-nice-1.1.1.tgz",
21573
- "integrity": "sha512-aHOgcSoOLvmFZQMvZ27rFw68r4e9OlQtH7YEcF2u5amVYbF/D3cKBXKCvl5EGhQz2NwJZ6RPfgRX6yNQ+UBKJw=="
21803
+ "version": "1.1.3",
21804
+ "resolved": "https://registry.npmjs.org/json-stringify-nice/-/json-stringify-nice-1.1.3.tgz",
21805
+ "integrity": "sha512-w8+cZZFgcPtFkZTmkA1UpRH0GXXfpeuc/cClNkQjLt9JoQd8cBFSyB8J1WWjJrthIYViHobwnh3jA4z5X2LdGA=="
21574
21806
  },
21575
21807
  "json-stringify-safe": {
21576
21808
  "version": "5.0.1",
data/helpers/package.json CHANGED
@@ -10,13 +10,13 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@dependabot/yarn-lib": "^1.21.1",
13
- "@npmcli/arborist": "^2.2.9",
13
+ "@npmcli/arborist": "^2.3.0",
14
14
  "detect-indent": "^6.0.0",
15
15
  "npm": "6.14.12",
16
16
  "semver": "^7.3.4"
17
17
  },
18
18
  "devDependencies": {
19
- "eslint": "^7.22.0",
19
+ "eslint": "^7.23.0",
20
20
  "eslint-config-prettier": "^8.1.0",
21
21
  "jest": "^26.6.3",
22
22
  "prettier": "^2.2.1",
@@ -16,12 +16,10 @@ module Dependabot
16
16
 
17
17
  def files_requiring_update
18
18
  @files_requiring_update ||=
19
- begin
20
- dependency_files.select do |file|
21
- package_files_requiring_update.include?(file) ||
22
- package_required_lockfile?(file) ||
23
- workspaces_lockfile?(file)
24
- end
19
+ dependency_files.select do |file|
20
+ package_files_requiring_update.include?(file) ||
21
+ package_required_lockfile?(file) ||
22
+ workspaces_lockfile?(file)
25
23
  end
26
24
  end
27
25
 
@@ -60,18 +60,16 @@ module Dependabot
60
60
 
61
61
  def filtered_dependency_files
62
62
  @filtered_dependency_files ||=
63
- begin
64
- if dependencies.select(&:top_level?).any?
65
- DependencyFilesFilterer.new(
66
- dependency_files: dependency_files,
67
- updated_dependencies: dependencies
68
- ).files_requiring_update
69
- else
70
- SubDependencyFilesFilterer.new(
71
- dependency_files: dependency_files,
72
- updated_dependencies: dependencies
73
- ).files_requiring_update
74
- end
63
+ if dependencies.select(&:top_level?).any?
64
+ DependencyFilesFilterer.new(
65
+ dependency_files: dependency_files,
66
+ updated_dependencies: dependencies
67
+ ).files_requiring_update
68
+ else
69
+ SubDependencyFilesFilterer.new(
70
+ dependency_files: dependency_files,
71
+ updated_dependencies: dependencies
72
+ ).files_requiring_update
75
73
  end
76
74
  end
77
75
 
@@ -18,15 +18,13 @@ module Dependabot
18
18
 
19
19
  def files_requiring_update
20
20
  @files_requiring_update ||=
21
- begin
22
- lockfiles.select do |lockfile|
23
- lockfile_dependencies(lockfile).any? do |sub_dep|
24
- updated_dependencies.any? do |updated_dep|
25
- next false unless sub_dep.name == updated_dep.name
21
+ lockfiles.select do |lockfile|
22
+ lockfile_dependencies(lockfile).any? do |sub_dep|
23
+ updated_dependencies.any? do |updated_dep|
24
+ next false unless sub_dep.name == updated_dep.name
26
25
 
27
- version_class.new(updated_dep.version) >
28
- version_class.new(sub_dep.version)
29
- end
26
+ version_class.new(updated_dep.version) >
27
+ version_class.new(sub_dep.version)
30
28
  end
31
29
  end
32
30
  end
@@ -165,17 +165,13 @@ module Dependabot
165
165
 
166
166
  def latest_version_for_git_dependency
167
167
  @latest_version_for_git_dependency ||=
168
- begin
169
- # If there's been a release that includes the current pinned ref
170
- # or that the current branch is behind, we switch to that release.
171
- if git_branch_or_ref_in_latest_release?
172
- latest_released_version
173
- elsif version_class.correct?(dependency.version)
174
- latest_git_version_details[:version] &&
175
- version_class.new(latest_git_version_details[:version])
176
- else
177
- latest_git_version_details[:sha]
178
- end
168
+ if git_branch_or_ref_in_latest_release?
169
+ latest_released_version
170
+ elsif version_class.correct?(dependency.version)
171
+ latest_git_version_details[:version] &&
172
+ version_class.new(latest_git_version_details[:version])
173
+ else
174
+ latest_git_version_details[:sha]
179
175
  end
180
176
  end
181
177
 
@@ -75,12 +75,10 @@ module Dependabot
75
75
  end
76
76
 
77
77
  def possible_previous_versions_with_details
78
- @possible_previous_versions_with_details ||= begin
79
- npm_details.fetch("versions", {}).
80
- transform_keys { |k| version_class.new(k) }.
81
- reject { |v, _| v.prerelease? && !related_to_current_pre?(v) }.
82
- sort_by(&:first).reverse
83
- end
78
+ @possible_previous_versions_with_details ||= npm_details.fetch("versions", {}).
79
+ transform_keys { |k| version_class.new(k) }.
80
+ reject { |v, _| v.prerelease? && !related_to_current_pre?(v) }.
81
+ sort_by(&:first).reverse
84
82
  end
85
83
 
86
84
  def possible_versions_with_details(filter_ignored: true)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-npm_and_yarn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.138.6
4
+ version: 0.140.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-29 00:00:00.000000000 Z
11
+ date: 2021-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dependabot-common
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.138.6
19
+ version: 0.140.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.138.6
26
+ version: 0.140.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 1.11.0
103
+ version: 1.12.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 1.11.0
110
+ version: 1.12.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: simplecov
113
113
  requirement: !ruby/object:Gem::Requirement