📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

bourne

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bourne - npm Package Compare versions

Comparing version

to
1.1.2

2

lib/index.js

@@ -68,3 +68,3 @@ 'use strict';

for (const node of nodes) {
if (node.hasOwnProperty('__proto__')) {
if (Object.prototype.hasOwnProperty.call(node, '__proto__')) { // Avoid calling node.hasOwnProperty directly
if (options.protoAction !== 'remove') {

@@ -71,0 +71,0 @@ throw new SyntaxError('Object contains forbidden prototype property');

{
"name": "bourne",
"description": "JSON parse with prototype poisoning protection",
"version": "1.1.1",
"version": "1.1.2",
"repository": "git://github.com/hapijs/bourne",

@@ -6,0 +6,0 @@ "main": "lib/index.js",