Skip to content

Commit 40ec817

Browse files
committed
test: test fixture for snyk protect
1 parent 7dfd3ea commit 40ec817

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+317005
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
2+
version: v1.19.0
3+
ignore: {}
4+
# patches apply the minimum changes required to fix a vulnerability
5+
patch:
6+
SNYK-JS-LODASH-567746:
7+
- tap > nyc > istanbul-lib-instrument > babel-types > lodash:
8+
patched: '2021-02-17T13:43:51.857Z'
9+
- tap > nyc > istanbul-lib-instrument > babel-generator > lodash:
10+
patched: '2021-02-17T13:43:51.857Z'
11+
- tap > nyc > istanbul-lib-instrument > babel-traverse > lodash:
12+
patched: '2021-02-17T13:43:51.857Z'
13+
- tap > nyc > istanbul-lib-instrument > babel-template > lodash:
14+
patched: '2021-02-17T13:43:51.857Z'
15+
- tap > nyc > istanbul-lib-instrument > babel-generator > babel-types > lodash:
16+
patched: '2021-02-17T13:43:51.857Z'
17+
- tap > nyc > istanbul-lib-instrument > babel-traverse > babel-types > lodash:
18+
patched: '2021-02-17T13:43:51.857Z'
19+
- tap > nyc > istanbul-lib-instrument > babel-template > babel-types > lodash:
20+
patched: '2021-02-17T13:43:51.857Z'
21+
- tap > nyc > istanbul-lib-instrument > babel-template > babel-traverse > lodash:
22+
patched: '2021-02-17T13:43:51.857Z'
23+
- tap > nyc > istanbul-lib-instrument > babel-template > babel-traverse > babel-types > lodash:
24+
patched: '2021-02-17T13:43:51.857Z'
25+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Location of lodash package.json:
2+
```
3+
node_modules/nyc/node_modules/lodash
4+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Licence
2+
# ---------
3+
# The MIT License
4+
5+
# Copyright JS Foundation and other contributors <https://js.foundation/>
6+
7+
# Based on Underscore.js, copyright Jeremy Ashkenas,
8+
# DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
9+
10+
# This software consists of voluntary contributions made by many
11+
# individuals. For exact contribution history, see the revision history
12+
# available at https://github.com/lodash/lodash
13+
14+
# The following license applies to all parts of this software except as
15+
# documented below:
16+
17+
# ====
18+
19+
# Permission is hereby granted, free of charge, to any person obtaining
20+
# a copy of this software and associated documentation files (the
21+
# "Software"), to deal in the Software without restriction, including
22+
# without limitation the rights to use, copy, modify, merge, publish,
23+
# distribute, sublicense, and/or sell copies of the Software, and to
24+
# permit persons to whom the Software is furnished to do so, subject to
25+
# the following conditions:
26+
27+
# The above copyright notice and this permission notice shall be
28+
# included in all copies or substantial portions of the Software.
29+
30+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
31+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
32+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
33+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
34+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
35+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
36+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
37+
38+
# ====
39+
40+
# Copyright and related rights for sample code are waived via CC0. Sample
41+
# code is defined as all source code displayed within the prose of the
42+
# documentation.
43+
44+
# CC0: http://creativecommons.org/publicdomain/zero/1.0/
45+
46+
# ====
47+
48+
# Files located in the node_modules and vendor directories are externally
49+
# maintained libraries used by this software which have their own
50+
# licenses; we recommend you read them, as their terms may differ from the
51+
# terms above.
52+
diff --git a/lodash.js b/lodash.js
53+
index 9b95dfef..43e71ffb 100644
54+
--- a/lodash.js
55+
+++ b/lodash.js
56+
@@ -3977,6 +3977,10 @@
57+
var key = toKey(path[index]),
58+
newValue = value;
59+
60+
+ if ((key === '__proto__' || key === 'constructor' || key === 'prototype')) {
61+
+ return object;
62+
+ }
63+
+
64+
if (index != lastIndex) {
65+
var objValue = nested[key];
66+
newValue = customizer ? customizer(objValue, key, nested) : undefined;

packages/snyk-protect/test/fixtures/multiple-matching-paths/node_modules/lodash/LICENSE

+47
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/snyk-protect/test/fixtures/multiple-matching-paths/node_modules/lodash/README.md

+39
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)