danger-wcc 0.0.6 → 0.1.3
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.
- checksums.yaml +4 -4
- data/danger-wcc.gemspec +6 -3
- data/lib/version.rb +1 -1
- data/lib/wcc/dependencies.rb +100 -0
- data/lib/wcc/plugin.rb +18 -3
- data/lib/wcc/util/yarn_info.rb +98 -0
- data/lib/wcc/utils.rb +16 -4
- data/lib/wcc/yarn_deduplicate.rb +71 -0
- data/spec/fixtures/dependencies/package.json +112 -0
- data/spec/fixtures/dependencies/package.json.diff +28 -0
- data/spec/fixtures/dependencies/package.json_patch_bumps_minor.diff +13 -0
- data/spec/fixtures/dependencies/package.json_patch_bumps_minor.json +112 -0
- data/spec/fixtures/dependencies/package.json_second_level_effect.diff +17 -0
- data/spec/fixtures/dependencies/package.json_second_level_effect.json +133 -0
- data/spec/fixtures/dependencies/yarn.lock +19609 -0
- data/spec/fixtures/dependencies/yarn.lock_patch_bumps_minor.lock +19614 -0
- data/spec/fixtures/dependencies/yarn.lock_second_level_effect.lock +20022 -0
- data/spec/fixtures/dependencies/yarn_list_second_level_effect.txt +1243 -0
- data/spec/fixtures/dependencies/yarn_list_second_level_effect.txt.diff +141 -0
- data/spec/fixtures/dependencies/yarn_minor_version.diff +33 -0
- data/spec/fixtures/dependencies/yarn_minor_version.txt +1151 -0
- data/spec/fixtures/dependencies/yarn_old.txt +1152 -0
- data/spec/fixtures/dependencies/yarn_patch_bumps_minor.diff +28 -0
- data/spec/fixtures/yarn_deduplicate/list.a.txt +293 -0
- data/spec/fixtures/yarn_deduplicate/list.b.txt +295 -0
- data/spec/fixtures/yarn_deduplicate/list.diff +11 -0
- data/spec/fixtures/yarn_deduplicate/yarn.lock +20031 -0
- data/spec/wcc/dependencies_spec.rb +130 -0
- data/spec/wcc/plugin_spec.rb +7 -3
- data/spec/wcc/yarn_deduplicate_spec.rb +57 -0
- metadata +79 -20
@@ -0,0 +1,141 @@
|
|
1
|
+
diff --git a/spec/fixtures/dependencies/yarn_list_second_level_effect.txt b/spec/fixtures/dependencies/yarn_list_second_level_effect.txt
|
2
|
+
index fde37b5..16f8dac 100644
|
3
|
+
--- a/spec/fixtures/dependencies/yarn_list_second_level_effect.txt
|
4
|
+
+++ b/spec/fixtures/dependencies/yarn_list_second_level_effect.txt
|
5
|
+
@@ -170,10 +170,10 @@ yarn list v1.22.4
|
6
|
+
├─ @types/ua-parser-js@0.7.32
|
7
|
+
├─ @types/webpack-env@1.13.9
|
8
|
+
├─ @types/yargs@11.1.2
|
9
|
+
-├─ @watermarkchurch/contentful-migration@1.0.9
|
10
|
+
+├─ @watermarkchurch/contentful-migration@3.1.2
|
11
|
+
├─ @watermarkchurch/google-maps-react@2.0.7
|
12
|
+
├─ @watermarkchurch/location-map@0.1.0
|
13
|
+
-├─ @watermarkchurch/react-instantsearch-components@0.0.5
|
14
|
+
+├─ @watermarkchurch/react-instantsearch-components@0.0.6
|
15
|
+
├─ @webassemblyjs/ast@1.8.5
|
16
|
+
├─ @webassemblyjs/floating-point-hex-parser@1.8.5
|
17
|
+
├─ @webassemblyjs/helper-api-error@1.8.5
|
18
|
+
@@ -244,7 +244,7 @@ yarn list v1.22.4
|
19
|
+
├─ autoprefixer@9.5.0
|
20
|
+
├─ aws-sign2@0.7.0
|
21
|
+
├─ aws4@1.10.1
|
22
|
+
-├─ axios@0.19.2
|
23
|
+
+├─ axios@0.21.1
|
24
|
+
├─ babel-loader@8.2.2
|
25
|
+
├─ babel-plugin-dynamic-import-node@2.3.3
|
26
|
+
├─ babel-plugin-emotion@10.0.33
|
27
|
+
@@ -302,7 +302,7 @@ yarn list v1.22.4
|
28
|
+
├─ caseless@0.12.0
|
29
|
+
├─ chai@4.2.0
|
30
|
+
├─ chalk@2.4.2
|
31
|
+
-├─ chardet@0.4.2
|
32
|
+
+├─ chardet@0.7.0
|
33
|
+
├─ check-error@1.0.2
|
34
|
+
├─ check-types@7.4.0
|
35
|
+
├─ cheerio@1.0.0-rc.2
|
36
|
+
@@ -354,7 +354,7 @@ yarn list v1.22.4
|
37
|
+
├─ contentful-import@7.4.3
|
38
|
+
├─ contentful-management@5.7.0
|
39
|
+
├─ contentful-migration@0.16.6
|
40
|
+
-├─ contentful-sdk-core@6.4.0
|
41
|
+
+├─ contentful-sdk-core@6.7.0
|
42
|
+
├─ contentful-shell@0.2.4
|
43
|
+
├─ contentful-ts-generator@0.2.6
|
44
|
+
├─ convert-source-map@1.7.0
|
45
|
+
@@ -478,7 +478,7 @@ yarn list v1.22.4
|
46
|
+
├─ expand-tilde@2.0.2
|
47
|
+
├─ extend-shallow@2.0.1
|
48
|
+
├─ extend@3.0.2
|
49
|
+
-├─ external-editor@2.2.0
|
50
|
+
+├─ external-editor@3.0.3
|
51
|
+
├─ extglob@2.0.4
|
52
|
+
├─ extsprintf@1.3.0
|
53
|
+
├─ fast-copy@2.1.1
|
54
|
+
@@ -500,7 +500,7 @@ yarn list v1.22.4
|
55
|
+
├─ flatted@2.0.0
|
56
|
+
├─ flatten@1.0.2
|
57
|
+
├─ flush-write-stream@1.1.1
|
58
|
+
-├─ follow-redirects@1.5.10
|
59
|
+
+├─ follow-redirects@1.13.3
|
60
|
+
├─ for-in@1.0.2
|
61
|
+
├─ for-own@1.0.0
|
62
|
+
├─ foreach@2.0.5
|
63
|
+
@@ -692,7 +692,7 @@ yarn list v1.22.4
|
64
|
+
├─ jss@10.1.1
|
65
|
+
├─ keyscan@1.7.0
|
66
|
+
├─ keyv@3.0.0
|
67
|
+
-├─ kind-of@3.2.2
|
68
|
+
+├─ kind-of@6.0.3
|
69
|
+
├─ last-call-webpack-plugin@3.0.0
|
70
|
+
├─ latest-version@3.1.0
|
71
|
+
├─ lcid@2.0.0
|
72
|
+
@@ -706,18 +706,20 @@ yarn list v1.22.4
|
73
|
+
├─ listr-silent-renderer@1.1.1
|
74
|
+
├─ listr-update-renderer@0.4.0
|
75
|
+
├─ listr-verbose-renderer@0.4.1
|
76
|
+
-├─ listr@0.12.0
|
77
|
+
+├─ listr@0.14.3
|
78
|
+
├─ load-json-file@1.1.0
|
79
|
+
├─ load-script@1.0.0
|
80
|
+
├─ loader-runner@2.4.0
|
81
|
+
├─ loader-utils@1.2.3
|
82
|
+
├─ locate-path@3.0.0
|
83
|
+
├─ lodash._reinterpolate@3.0.0
|
84
|
+
+├─ lodash.deburr@4.1.0
|
85
|
+
├─ lodash.flattendeep@4.4.0
|
86
|
+
├─ lodash.flow@3.5.0
|
87
|
+
├─ lodash.get@4.4.2
|
88
|
+
├─ lodash.has@4.5.2
|
89
|
+
├─ lodash.isequal@4.5.0
|
90
|
+
+├─ lodash.isplainobject@4.0.6
|
91
|
+
├─ lodash.memoize@4.1.2
|
92
|
+
├─ lodash.sortby@4.7.0
|
93
|
+
├─ lodash.tail@4.1.1
|
94
|
+
@@ -840,7 +842,7 @@ yarn list v1.22.4
|
95
|
+
├─ p-is-promise@2.0.0
|
96
|
+
├─ p-limit@2.3.0
|
97
|
+
├─ p-locate@3.0.0
|
98
|
+
-├─ p-map@1.2.0
|
99
|
+
+├─ p-map@2.0.0
|
100
|
+
├─ p-timeout@2.0.1
|
101
|
+
├─ p-try@2.2.0
|
102
|
+
├─ package-json@4.0.1
|
103
|
+
@@ -973,6 +975,8 @@ yarn list v1.22.4
|
104
|
+
├─ randombytes@2.1.0
|
105
|
+
├─ randomfill@1.0.4
|
106
|
+
├─ rc@1.2.8
|
107
|
+
+├─ react-autosuggest@9.4.3
|
108
|
+
+├─ react-autowhatever@10.2.1
|
109
|
+
├─ react-country-region-selector@1.4.3
|
110
|
+
├─ react-datepicker@3.3.0
|
111
|
+
├─ react-dom@16.13.1
|
112
|
+
@@ -990,6 +994,7 @@ yarn list v1.22.4
|
113
|
+
├─ react-popper@1.3.7
|
114
|
+
├─ react-select@3.1.0
|
115
|
+
├─ react-test-renderer@16.8.4
|
116
|
+
+├─ react-themeable@1.1.0
|
117
|
+
├─ react-transition-group@4.3.0
|
118
|
+
├─ react@16.13.1
|
119
|
+
├─ read-cache@1.0.0
|
120
|
+
@@ -1053,6 +1058,7 @@ yarn list v1.22.4
|
121
|
+
├─ scheduler@0.19.1
|
122
|
+
├─ schema-utils@1.0.0
|
123
|
+
├─ scss-tokenizer@0.2.3
|
124
|
+
+├─ section-iterator@2.0.0
|
125
|
+
├─ semver-diff@2.1.0
|
126
|
+
├─ semver@5.6.0
|
127
|
+
├─ serialize-javascript@1.6.1
|
128
|
+
@@ -1061,6 +1067,7 @@ yarn list v1.22.4
|
129
|
+
├─ setimmediate@1.0.5
|
130
|
+
├─ sha.js@2.4.11
|
131
|
+
├─ shallow-clone@1.0.0
|
132
|
+
+├─ shallow-equal@1.2.1
|
133
|
+
├─ shebang-command@1.2.0
|
134
|
+
├─ shebang-regex@1.0.0
|
135
|
+
├─ shell-escape@0.2.0
|
136
|
+
@@ -1233,4 +1240,4 @@ yarn list v1.22.4
|
137
|
+
├─ yargs-parser@11.1.1
|
138
|
+
├─ yargs@12.0.5
|
139
|
+
└─ yn@2.0.0
|
140
|
+
-Done in 1.10s.
|
141
|
+
+Done in 1.13s.
|
@@ -0,0 +1,33 @@
|
|
1
|
+
diff --git a/spec/fixtures/dependencies/yarn_minor_version.txt b/spec/fixtures/dependencies/yarn_minor_version.txt
|
2
|
+
index 2fe9d0e..9622def 100644
|
3
|
+
--- a/spec/fixtures/dependencies/yarn_minor_version.txt
|
4
|
+
+++ b/spec/fixtures/dependencies/yarn_minor_version.txt
|
5
|
+
@@ -140,7 +140,6 @@ yarn list v1.22.4
|
6
|
+
├─ @types/prop-types@15.7.3
|
7
|
+
├─ @types/q@1.5.2
|
8
|
+
├─ @types/qs@6.5.3
|
9
|
+
-├─ @types/react-autosuggest@9.3.6
|
10
|
+
├─ @types/react-dom@16.0.11
|
11
|
+
├─ @types/react-infinite-scroller@1.2.1
|
12
|
+
├─ @types/react-instantsearch-core@5.2.9
|
13
|
+
@@ -923,10 +922,10 @@ yarn list v1.22.4
|
14
|
+
├─ react-calendar@2.19.0
|
15
|
+
├─ react-dom@16.13.1
|
16
|
+
├─ react-infinite-scroller@1.2.2
|
17
|
+
-├─ react-instantsearch-core@5.3.2
|
18
|
+
-├─ react-instantsearch-dom@5.3.2
|
19
|
+
-├─ react-instantsearch-native@5.3.2
|
20
|
+
-├─ react-instantsearch@5.3.2
|
21
|
+
+├─ react-instantsearch-core@5.7.0
|
22
|
+
+├─ react-instantsearch-dom@5.7.0
|
23
|
+
+├─ react-instantsearch-native@5.7.0
|
24
|
+
+├─ react-instantsearch@5.7.0
|
25
|
+
├─ react-is@16.6.3
|
26
|
+
├─ react-lifecycles-compat@3.0.4
|
27
|
+
├─ react-property@1.0.1
|
28
|
+
@@ -1149,4 +1148,4 @@ yarn list v1.22.4
|
29
|
+
├─ yargs-parser@11.1.1
|
30
|
+
├─ yargs@12.0.5
|
31
|
+
└─ yn@2.0.0
|
32
|
+
-Done in 1.02s.
|
33
|
+
+Done in 1.03s.
|