babel-plugin-prototype-prop-define
Advanced tools
Comparing version 2.0.1 to 2.0.2
{ | ||
"name": "babel-plugin-prototype-prop-define", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Transform assignments to properties on built-in prototypes to Object.defineProperty calls", | ||
@@ -42,5 +42,2 @@ "main": "src/index.js", | ||
], | ||
"babel": { | ||
"presets": "kcd-scripts/babel" | ||
}, | ||
"repository": { | ||
@@ -47,0 +44,0 @@ "type": "git", |
@@ -23,4 +23,4 @@ import path from 'path' | ||
const x = {} | ||
x.a = () => true | ||
const x = {} | ||
x.a = () => true | ||
@@ -52,2 +52,8 @@ `, | ||
`, | ||
'ignore alternate assigment expressions': ` | ||
const x = {} | ||
x.toString += 1 | ||
`, | ||
// 'key as string': ` | ||
@@ -54,0 +60,0 @@ |
@@ -78,2 +78,4 @@ const primordialKeySet = new Set([ | ||
const {node} = path | ||
// ensure basic assignment (not += etc) | ||
if (node.operator !== '=') return | ||
// member -> "Xyz.toString" | ||
@@ -80,0 +82,0 @@ const member = node.left |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
27099
241
0