dependabot-npm_and_yarn 0.180.0 → 0.180.3

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: 0b573607a9a1e0d1dc4b26fac852a8be73d86d83265beb999e9172ff6153e158
4
- data.tar.gz: e80a3e36249068d8356a436a12a5684a754ee968394ad314502eb9fc38e7ff9a
3
+ metadata.gz: f594dd39851f07b3f69937b6cf9348a4c847d622a2c471434ff75a675af6a2ac
4
+ data.tar.gz: 278613dabfc92b77579d12ced0fd207381d065e0c4fb05183f4c8591a0f8044c
5
5
  SHA512:
6
- metadata.gz: ec12c9d30028a3e89389471c17302c14fd10af7e49bd44d1f28f2a9360a648e77450d9211e10fd9bd0febe6f17cfe3268bd23ec7682d4e16596f1dd994d02e44
7
- data.tar.gz: 3d45cfd273fd14404a139e3fb4c55cc34cb89b77ee3d5e86106b0a6cdfa1a97eb2eacd21279e37ff7b49d4520b04ec4bb3633adcc13c024db0b775a20941dfe2
6
+ metadata.gz: 50a062f919e5a1cd5f64af8e34ef50a6896c73a976f16f92c816038602416f9fa0ff5a9309c7f5fa9077fc04d9f708f5c59692cf5749cda6e3060444a861b9c7
7
+ data.tar.gz: 7d763a39ce252fccba60d96f171e4d2b5c746090d9bcb36951f272f018662385597206fe86223e3f7cc96d6e1af8ac42b3a79b89c043bf782168d52e9a98d8e7
@@ -19,7 +19,7 @@
19
19
  "eslint": "^8.7.0",
20
20
  "eslint-config-prettier": "^8.3.0",
21
21
  "jest": "^27.4.7",
22
- "prettier": "^2.5.1",
22
+ "prettier": "^2.6.0",
23
23
  "rimraf": "^3.0.2"
24
24
  }
25
25
  },
@@ -12451,15 +12451,18 @@
12451
12451
  }
12452
12452
  },
12453
12453
  "node_modules/prettier": {
12454
- "version": "2.5.1",
12455
- "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.5.1.tgz",
12456
- "integrity": "sha512-vBZcPRUR5MZJwoyi3ZoyQlc1rXeEck8KgeC9AwwOn+exuxLxq5toTRDTSaVrXHxelDMHy9zlicw8u66yxoSUFg==",
12454
+ "version": "2.6.0",
12455
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.6.0.tgz",
12456
+ "integrity": "sha512-m2FgJibYrBGGgQXNzfd0PuDGShJgRavjUoRCw1mZERIWVSXF0iLzLm+aOqTAbLnC3n6JzUhAA8uZnFVghHJ86A==",
12457
12457
  "dev": true,
12458
12458
  "bin": {
12459
12459
  "prettier": "bin-prettier.js"
12460
12460
  },
12461
12461
  "engines": {
12462
12462
  "node": ">=10.13.0"
12463
+ },
12464
+ "funding": {
12465
+ "url": "https://github.com/prettier/prettier?sponsor=1"
12463
12466
  }
12464
12467
  },
12465
12468
  "node_modules/pretty-format": {
@@ -23571,9 +23574,9 @@
23571
23574
  "integrity": "sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks="
23572
23575
  },
23573
23576
  "prettier": {
23574
- "version": "2.5.1",
23575
- "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.5.1.tgz",
23576
- "integrity": "sha512-vBZcPRUR5MZJwoyi3ZoyQlc1rXeEck8KgeC9AwwOn+exuxLxq5toTRDTSaVrXHxelDMHy9zlicw8u66yxoSUFg==",
23577
+ "version": "2.6.0",
23578
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.6.0.tgz",
23579
+ "integrity": "sha512-m2FgJibYrBGGgQXNzfd0PuDGShJgRavjUoRCw1mZERIWVSXF0iLzLm+aOqTAbLnC3n6JzUhAA8uZnFVghHJ86A==",
23577
23580
  "dev": true
23578
23581
  },
23579
23582
  "pretty-format": {
data/helpers/package.json CHANGED
@@ -19,7 +19,7 @@
19
19
  "eslint": "^8.7.0",
20
20
  "eslint-config-prettier": "^8.3.0",
21
21
  "jest": "^27.4.7",
22
- "prettier": "^2.5.1",
22
+ "prettier": "^2.6.0",
23
23
  "rimraf": "^3.0.2"
24
24
  }
25
25
  }
data/helpers/run.js CHANGED
@@ -1,5 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
+ const process = require('process');
4
+
3
5
  function output(obj) {
4
6
  process.stdout.write(JSON.stringify(obj));
5
7
  }
@@ -123,7 +123,7 @@ module Dependabot
123
123
  filename = path
124
124
  # NPM/Yarn support loading path dependencies from tarballs:
125
125
  # https://docs.npmjs.com/cli/pack.html
126
- filename = File.join(filename, "package.json") unless filename.end_with?(".tgz", ".tar")
126
+ filename = File.join(filename, "package.json") unless filename.end_with?(".tgz", ".tar", ".tar.gz")
127
127
  cleaned_name = Pathname.new(filename).cleanpath.to_path
128
128
  next if fetched_files.map(&:name).include?(cleaned_name)
129
129
 
@@ -132,7 +132,7 @@ module Dependabot
132
132
  package_json_files << file
133
133
  rescue Dependabot::DependencyFileNotFound
134
134
  # Unfetchable tarballs should not be re-fetched as a package
135
- unfetchable_deps << [name, path] unless path.end_with?(".tgz", ".tar")
135
+ unfetchable_deps << [name, path] unless path.end_with?(".tgz", ".tar", ".tar.gz")
136
136
  end
137
137
  end
138
138
 
@@ -122,20 +122,6 @@ module Dependabot
122
122
  end
123
123
 
124
124
  def get_directory(details)
125
- source_from_url = Source.from_url(get_url(details))
126
- # Special case Gatsby, which specifies directories in URLs.
127
- # This can be removed once this PR is merged:
128
- # https://github.com/gatsbyjs/gatsby/pull/11145
129
- if source_from_url.repo == "gatsbyjs/gatsby" &&
130
- get_url(details).match?(%r{tree\/master\/.})
131
- return get_url(details).split("tree/master/").last.split("#").first
132
- end
133
-
134
- # Special case DefinitelyTyped, which has predictable URLs.
135
- # This can be removed once this PR is merged:
136
- # https://github.com/Microsoft/types-publisher/pull/578
137
- return dependency.name.gsub(/^@/, "") if source_from_url.repo == "DefinitelyTyped/DefinitelyTyped"
138
-
139
125
  # Only return a directory if it is explicitly specified
140
126
  return unless details.is_a?(Hash)
141
127
 
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.180.0
4
+ version: 0.180.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-18 00:00:00.000000000 Z
11
+ date: 2022-04-04 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.180.0
19
+ version: 0.180.3
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.180.0
26
+ version: 0.180.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debug
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.23.0
103
+ version: 1.26.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.23.0
110
+ version: 1.26.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: simplecov
113
113
  requirement: !ruby/object:Gem::Requirement