Socket
Socket
Sign inDemoInstall

babel-plugin-prototype-prop-define

Package Overview
Dependencies
1
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.4.2 to 2.5.0

2

package.json
{
"name": "babel-plugin-prototype-prop-define",
"version": "2.4.2",
"version": "2.5.0",
"description": "Transform assignments to properties on built-in prototypes to Object.defineProperty calls",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -0,1 +1,3 @@

const arrItrProto = Object.getPrototypeOf([].values())
const primordialPropSet = new Set([

@@ -6,51 +8,4 @@ ...Object.getOwnPropertyNames(Object.prototype),

...Object.getOwnPropertyNames(Error.prototype),
...Object.getOwnPropertyNames(arrItrProto),
])
// Set {
// 'constructor',
// '__defineGetter__',
// '__defineSetter__',
// 'hasOwnProperty',
// '__lookupGetter__',
// '__lookupSetter__',
// 'isPrototypeOf',
// 'propertyIsEnumerable',
// 'toString',
// 'valueOf',
// '__proto__',
// 'toLocaleString',
// 'length',
// 'concat',
// 'find',
// 'findIndex',
// 'pop',
// 'push',
// 'shift',
// 'unshift',
// 'slice',
// 'splice',
// 'includes',
// 'indexOf',
// 'keys',
// 'entries',
// 'forEach',
// 'filter',
// 'map',
// 'every',
// 'some',
// 'reduce',
// 'reduceRight',
// 'join',
// 'reverse',
// 'sort',
// 'lastIndexOf',
// 'copyWithin',
// 'fill',
// 'values',
// 'name',
// 'arguments',
// 'caller',
// 'apply',
// 'bind',
// 'call',
// 'message' }

@@ -62,11 +17,5 @@ const primordialSymbolSet = new Set([

...Object.getOwnPropertySymbols(Error.prototype),
...Object.getOwnPropertySymbols(arrItrProto),
Symbol.asyncIterator,
Symbol.toStringTag,
].map(symbol => symbol.toString().slice(14,-1)))
// Set {
// 'iterator',
// 'unscopables',
// 'hasInstance',
// 'asyncIterator',
// 'toStringTag' }

@@ -73,0 +22,0 @@ const SKIP_PARSE_FLAG = 'prototype-prop-define-skip'

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc