dependabot-npm_and_yarn 0.113.0 → 0.113.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/helpers/package.json +4 -3
- data/helpers/test/npm/fixtures/left-pad-1.1.3.tgz +0 -0
- data/helpers/test/npm/updater.test.js +25 -6
- data/helpers/test/yarn/updater.test.js +26 -14
- data/helpers/yarn.lock +23 -24
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 240f4607f46a976c8915ff66363ee72aefaccb4facb6784b4159e7df0af428bc
|
4
|
+
data.tar.gz: a6670b96aa3f0b6efc9b197308017b8fb0fd1ae9d082387de609a39a01333b40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e1d94135b715cd46e5827e09da8b1e6e35d312190b98cfc0b67d287f467bd78aa951b181a72d705f8e905399f3588b9024e43d587c2e170cb2fe8256e23567e
|
7
|
+
data.tar.gz: 57ea49122f37c95b705a7a15bf463b1c3794cc95bf9494573d2b61e6e5cd76d145f594a5dc4a77cef6296c2eb60114acd83bde630c00af21d3d800936ede0d75
|
data/helpers/package.json
CHANGED
@@ -15,10 +15,11 @@
|
|
15
15
|
"semver": "^6.3.0"
|
16
16
|
},
|
17
17
|
"devDependencies": {
|
18
|
-
"eslint": "^6.
|
18
|
+
"eslint": "^6.4.0",
|
19
19
|
"eslint-plugin-prettier": "^3.1.0",
|
20
20
|
"jest": "^24.9.0",
|
21
|
-
"nock": "^
|
22
|
-
"prettier": "^1.18.2"
|
21
|
+
"nock": "^11.3.4",
|
22
|
+
"prettier": "^1.18.2",
|
23
|
+
"rimraf": "^3.0.0"
|
23
24
|
}
|
24
25
|
}
|
Binary file
|
@@ -1,6 +1,7 @@
|
|
1
1
|
const path = require("path");
|
2
2
|
const os = require("os");
|
3
3
|
const fs = require("fs");
|
4
|
+
const rimraf = require("rimraf");
|
4
5
|
const nock = require("nock");
|
5
6
|
const {
|
6
7
|
updateDependencyFiles,
|
@@ -12,29 +13,47 @@ describe("updater", () => {
|
|
12
13
|
let tempDir;
|
13
14
|
beforeEach(() => {
|
14
15
|
nock("https://registry.npmjs.org")
|
16
|
+
.persist()
|
15
17
|
.get("/left-pad")
|
16
|
-
.
|
18
|
+
.replyWithFile(
|
19
|
+
200,
|
20
|
+
path.join(__dirname, "fixtures", "npm-left-pad.json"),
|
21
|
+
{
|
22
|
+
"Content-Type": "application/json"
|
23
|
+
}
|
24
|
+
);
|
25
|
+
|
26
|
+
nock("https://registry.npmjs.org")
|
27
|
+
.persist()
|
28
|
+
.get("/left-pad/-/left-pad-1.1.3.tgz")
|
29
|
+
.replyWithFile(
|
30
|
+
200,
|
31
|
+
path.join(__dirname, "fixtures", "left-pad-1.1.3.tgz"),
|
32
|
+
{
|
33
|
+
"Content-Type": "application/octet-stream"
|
34
|
+
}
|
35
|
+
);
|
17
36
|
|
18
37
|
tempDir = fs.mkdtempSync(os.tmpdir() + path.sep);
|
19
38
|
});
|
20
|
-
afterEach(() =>
|
39
|
+
afterEach(() => rimraf.sync(tempDir));
|
21
40
|
|
22
|
-
|
41
|
+
function copyDependencies(sourceDir, destDir) {
|
23
42
|
const srcPackageJson = path.join(
|
24
43
|
__dirname,
|
25
44
|
`fixtures/updater/${sourceDir}/package.json`
|
26
45
|
);
|
27
|
-
|
46
|
+
fs.copyFileSync(srcPackageJson, `${destDir}/package.json`);
|
28
47
|
|
29
48
|
const srcLockfile = path.join(
|
30
49
|
__dirname,
|
31
50
|
`fixtures/updater/${sourceDir}/package-lock.json`
|
32
51
|
);
|
33
|
-
|
52
|
+
fs.copyFileSync(srcLockfile, `${destDir}/package-lock.json`);
|
34
53
|
}
|
35
54
|
|
36
55
|
it("generates an updated package-lock.json", async () => {
|
37
|
-
|
56
|
+
copyDependencies("original", tempDir);
|
38
57
|
|
39
58
|
const result = await updateDependencyFiles(tempDir, "package-lock.json", [
|
40
59
|
{
|
@@ -1,43 +1,55 @@
|
|
1
1
|
const path = require("path");
|
2
2
|
const os = require("os");
|
3
3
|
const fs = require("fs");
|
4
|
+
const rimraf = require("rimraf");
|
4
5
|
const nock = require("nock");
|
5
|
-
const {
|
6
|
-
updateDependencyFiles,
|
7
|
-
updateVersionPattern
|
8
|
-
} = require("../../lib/yarn/updater");
|
6
|
+
const { updateDependencyFiles } = require("../../lib/yarn/updater");
|
9
7
|
const helpers = require("./helpers");
|
10
8
|
|
11
9
|
describe("updater", () => {
|
12
10
|
let tempDir;
|
13
11
|
beforeEach(() => {
|
14
12
|
nock("https://registry.yarnpkg.com")
|
13
|
+
.persist()
|
15
14
|
.get("/left-pad")
|
16
|
-
.
|
15
|
+
.replyWithFile(
|
16
|
+
200,
|
17
|
+
path.join(__dirname, "fixtures", "yarnpkg-left-pad.json"),
|
18
|
+
{
|
19
|
+
"Content-Type": "application/json"
|
20
|
+
}
|
21
|
+
);
|
17
22
|
nock("https://registry.yarnpkg.com")
|
23
|
+
.persist()
|
18
24
|
.get("/is-positive")
|
19
|
-
.
|
25
|
+
.replyWithFile(
|
26
|
+
200,
|
27
|
+
path.join(__dirname, "fixtures", "yarnpkg-is-positive.json"),
|
28
|
+
{
|
29
|
+
"Content-Type": "application/json"
|
30
|
+
}
|
31
|
+
);
|
20
32
|
|
21
33
|
tempDir = fs.mkdtempSync(os.tmpdir() + path.sep);
|
22
34
|
});
|
23
|
-
afterEach(() =>
|
35
|
+
afterEach(() => rimraf.sync(tempDir));
|
24
36
|
|
25
|
-
|
37
|
+
function copyDependencies(sourceDir, destDir) {
|
26
38
|
const srcPackageJson = path.join(
|
27
39
|
__dirname,
|
28
40
|
`fixtures/updater/${sourceDir}/package.json`
|
29
41
|
);
|
30
|
-
|
42
|
+
fs.copyFileSync(srcPackageJson, `${destDir}/package.json`);
|
31
43
|
|
32
44
|
const srcYarnLock = path.join(
|
33
45
|
__dirname,
|
34
46
|
`fixtures/updater/${sourceDir}/yarn.lock`
|
35
47
|
);
|
36
|
-
|
48
|
+
fs.copyFileSync(srcYarnLock, `${destDir}/yarn.lock`);
|
37
49
|
}
|
38
50
|
|
39
51
|
it("generates an updated yarn.lock", async () => {
|
40
|
-
|
52
|
+
copyDependencies("original", tempDir);
|
41
53
|
|
42
54
|
const result = await updateDependencyFiles(tempDir, [
|
43
55
|
{
|
@@ -52,7 +64,7 @@ describe("updater", () => {
|
|
52
64
|
});
|
53
65
|
|
54
66
|
it("doesn't modify existing version comments", async () => {
|
55
|
-
|
67
|
+
copyDependencies("with-version-comments", tempDir);
|
56
68
|
|
57
69
|
const result = await updateDependencyFiles(tempDir, [
|
58
70
|
{
|
@@ -66,7 +78,7 @@ describe("updater", () => {
|
|
66
78
|
});
|
67
79
|
|
68
80
|
it("doesn't add version comments if they're not already there", async () => {
|
69
|
-
|
81
|
+
copyDependencies("original", tempDir);
|
70
82
|
|
71
83
|
const result = await updateDependencyFiles(tempDir, [
|
72
84
|
{
|
@@ -80,7 +92,7 @@ describe("updater", () => {
|
|
80
92
|
});
|
81
93
|
|
82
94
|
it("doesn't show an interactive prompt when resolution fails", async () => {
|
83
|
-
|
95
|
+
copyDependencies("original", tempDir);
|
84
96
|
|
85
97
|
expect.assertions(1);
|
86
98
|
try {
|
data/helpers/yarn.lock
CHANGED
@@ -1404,7 +1404,7 @@ deep-eql@^3.0.1:
|
|
1404
1404
|
dependencies:
|
1405
1405
|
type-detect "^4.0.0"
|
1406
1406
|
|
1407
|
-
deep-equal@^1.0.
|
1407
|
+
deep-equal@^1.0.1:
|
1408
1408
|
version "1.0.1"
|
1409
1409
|
resolved "https://registry.yarnpkg.com/deep-equal/-/deep-equal-1.0.1.tgz#f5d260292b660e084eff4cdbc9f08ad3247448b5"
|
1410
1410
|
integrity sha1-9dJgKStmDghO/0zbyfCK0yR0SLU=
|
@@ -1690,10 +1690,10 @@ eslint-visitor-keys@^1.0.0, eslint-visitor-keys@^1.1.0:
|
|
1690
1690
|
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.1.0.tgz#e2a82cea84ff246ad6fb57f9bde5b46621459ec2"
|
1691
1691
|
integrity sha512-8y9YjtM1JBJU/A9Kc+SbaOV4y29sSWckBwMHa+FGtVj5gN/sbnKDf6xJUl+8g7FAij9LVaP8C24DUiH/f/2Z9A==
|
1692
1692
|
|
1693
|
-
eslint@^6.
|
1694
|
-
version "6.
|
1695
|
-
resolved "https://registry.yarnpkg.com/eslint/-/eslint-6.
|
1696
|
-
integrity sha512-
|
1693
|
+
eslint@^6.4.0:
|
1694
|
+
version "6.4.0"
|
1695
|
+
resolved "https://registry.yarnpkg.com/eslint/-/eslint-6.4.0.tgz#5aa9227c3fbe921982b2eda94ba0d7fae858611a"
|
1696
|
+
integrity sha512-WTVEzK3lSFoXUovDHEbkJqCVPEPwbhCq4trDktNI6ygs7aO41d4cDT0JFAT5MivzZeVLWlg7vHL+bgrQv/t3vA==
|
1697
1697
|
dependencies:
|
1698
1698
|
"@babel/code-frame" "^7.0.0"
|
1699
1699
|
ajv "^6.10.0"
|
@@ -3733,7 +3733,7 @@ lodash.without@~4.4.0:
|
|
3733
3733
|
resolved "https://registry.yarnpkg.com/lodash.without/-/lodash.without-4.4.0.tgz#3cd4574a00b67bae373a94b748772640507b7aac"
|
3734
3734
|
integrity sha1-PNRXSgC2e643OpS3SHcmQFB7eqw=
|
3735
3735
|
|
3736
|
-
lodash@^4.17.11, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15
|
3736
|
+
lodash@^4.17.11, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15:
|
3737
3737
|
version "4.17.15"
|
3738
3738
|
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548"
|
3739
3739
|
integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==
|
@@ -4063,20 +4063,17 @@ nice-try@^1.0.4:
|
|
4063
4063
|
resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366"
|
4064
4064
|
integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==
|
4065
4065
|
|
4066
|
-
nock@^
|
4067
|
-
version "
|
4068
|
-
resolved "https://registry.yarnpkg.com/nock/-/nock-
|
4069
|
-
integrity sha512-
|
4066
|
+
nock@^11.3.4:
|
4067
|
+
version "11.3.4"
|
4068
|
+
resolved "https://registry.yarnpkg.com/nock/-/nock-11.3.4.tgz#b3d8fde986da8f8484f4b8958e270fbb91250430"
|
4069
|
+
integrity sha512-Mqjk3DeOkuji8eYaveUku+vMswxzVyhrKAz1J9jE86IsEHQg4136Z/PHz81lcjyz9F3yrJXu56Gb/S+LFUOZVg==
|
4070
4070
|
dependencies:
|
4071
4071
|
chai "^4.1.2"
|
4072
4072
|
debug "^4.1.0"
|
4073
|
-
deep-equal "^1.0.0"
|
4074
4073
|
json-stringify-safe "^5.0.1"
|
4075
|
-
lodash "^4.17.
|
4074
|
+
lodash "^4.17.13"
|
4076
4075
|
mkdirp "^0.5.0"
|
4077
|
-
propagate "^
|
4078
|
-
qs "^6.5.1"
|
4079
|
-
semver "^5.5.0"
|
4076
|
+
propagate "^2.0.0"
|
4080
4077
|
|
4081
4078
|
node-emoji@^1.6.1:
|
4082
4079
|
version "1.10.0"
|
@@ -4894,10 +4891,10 @@ promzard@^0.3.0:
|
|
4894
4891
|
dependencies:
|
4895
4892
|
read "1"
|
4896
4893
|
|
4897
|
-
propagate@^
|
4898
|
-
version "
|
4899
|
-
resolved "https://registry.yarnpkg.com/propagate/-/propagate-
|
4900
|
-
integrity
|
4894
|
+
propagate@^2.0.0:
|
4895
|
+
version "2.0.1"
|
4896
|
+
resolved "https://registry.yarnpkg.com/propagate/-/propagate-2.0.1.tgz#40cdedab18085c792334e64f0ac17256d38f9a45"
|
4897
|
+
integrity sha512-vGrhOavPSTz4QVNuBNdcNXePNdNMaO1xj9yBeH1ScQPjk/rhg9sSlCXPhMkFuaNNW/syTvYqsnbIJxMBfRbbag==
|
4901
4898
|
|
4902
4899
|
proper-lockfile@^2.0.0:
|
4903
4900
|
version "2.0.1"
|
@@ -4987,11 +4984,6 @@ qrcode-terminal@^0.12.0:
|
|
4987
4984
|
resolved "https://registry.yarnpkg.com/qrcode-terminal/-/qrcode-terminal-0.12.0.tgz#bb5b699ef7f9f0505092a3748be4464fe71b5819"
|
4988
4985
|
integrity sha512-EXtzRZmC+YGmGlDFbXKxQiMZNwCLEO6BANKXG4iCtSIM0yqc/pappSx3RIKr4r0uh5JsBckOXeKrB3Iz7mdQpQ==
|
4989
4986
|
|
4990
|
-
qs@^6.5.1:
|
4991
|
-
version "6.8.0"
|
4992
|
-
resolved "https://registry.yarnpkg.com/qs/-/qs-6.8.0.tgz#87b763f0d37ca54200334cd57bb2ef8f68a1d081"
|
4993
|
-
integrity sha512-tPSkj8y92PfZVbinY1n84i1Qdx75lZjMQYx9WZhnkofyxzw2r7Ho39G3/aEvSUdebxpnnM4LZJCtvE/Aq3+s9w==
|
4994
|
-
|
4995
4987
|
qs@~6.5.2:
|
4996
4988
|
version "6.5.2"
|
4997
4989
|
resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36"
|
@@ -5355,6 +5347,13 @@ rimraf@2.6.3:
|
|
5355
5347
|
dependencies:
|
5356
5348
|
glob "^7.1.3"
|
5357
5349
|
|
5350
|
+
rimraf@^3.0.0:
|
5351
|
+
version "3.0.0"
|
5352
|
+
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.0.tgz#614176d4b3010b75e5c390eb0ee96f6dc0cebb9b"
|
5353
|
+
integrity sha512-NDGVxTsjqfunkds7CqsOiEnxln4Bo7Nddl3XhS4pXg5OzwkLqJ971ZVAAnB+DDLnF76N+VnDEiBHaVV8I06SUg==
|
5354
|
+
dependencies:
|
5355
|
+
glob "^7.1.3"
|
5356
|
+
|
5358
5357
|
rsvp@^4.8.4:
|
5359
5358
|
version "4.8.5"
|
5360
5359
|
resolved "https://registry.yarnpkg.com/rsvp/-/rsvp-4.8.5.tgz#c8f155311d167f68f21e168df71ec5b083113734"
|
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.113.
|
4
|
+
version: 0.113.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-09-
|
11
|
+
date: 2019-09-17 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.113.
|
19
|
+
version: 0.113.1
|
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.113.
|
26
|
+
version: 0.113.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: byebug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -161,6 +161,7 @@ files:
|
|
161
161
|
- helpers/lib/yarn/updater.js
|
162
162
|
- helpers/package.json
|
163
163
|
- helpers/run.js
|
164
|
+
- helpers/test/npm/fixtures/left-pad-1.1.3.tgz
|
164
165
|
- helpers/test/npm/fixtures/npm-left-pad.json
|
165
166
|
- helpers/test/npm/fixtures/updater/original/package-lock.json
|
166
167
|
- helpers/test/npm/fixtures/updater/original/package.json
|