Skip to content

Commit

Permalink
1.0.2
Browse files Browse the repository at this point in the history
+ Prototype Pollution fix
+ dependencies are up to date
  • Loading branch information
strikeentco committed Jan 27, 2022
1 parent 102cc6b commit b2f942c
Show file tree
Hide file tree
Showing 5 changed files with 884 additions and 924 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
language: node_js
node_js:
- "16"
- "14"
- "12"
- "10"
before_script:
Expand Down
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
'use strict';

/* eslint-disable no-continue */
/* eslint-disable no-continue, eqeqeq */

const isObject = (val) => typeof val === 'object' || typeof val === 'function';
const isProto = (val, obj) => val === '__proto__' || (val === 'constructor' && typeof obj.constructor === 'function');
const isProto = (val, obj) => val == '__proto__' || (val == 'constructor' && typeof obj.constructor === 'function');
const set = (obj, parts, length, val) => {
let tmp = obj;
let i = 0;
Expand Down
Loading

0 comments on commit b2f942c

Please sign in to comment.