You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

acorn5-object-spread

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

Comparing version 3.1.0 to 4.0.0

5

CHANGELOG.md
# acorn5-object-spread changelog
## 4.0.0
* Remove support for complex rest properties since they are forbidded by the
spec
## 3.1.0

@@ -4,0 +9,0 @@

8

inject.js

@@ -25,3 +25,9 @@ 'use strict';

if (this.type === tt.ellipsis) {
prop = isPattern ? this.parseRestBinding() : this.parseSpread(refDestructuringErrors)
if (isPattern) {
this.next()
prop.argument = this.parseIdent()
this.finishNode(prop, "RestElement")
} else {
prop = this.parseSpread(refDestructuringErrors)
}
node.properties.push(prop)

@@ -28,0 +34,0 @@ if (this.type === tt.comma) {

2

package.json

@@ -20,3 +20,3 @@ {

},
"version": "3.1.0"
"version": "4.0.0"
}

@@ -36,4 +36,5 @@ # Spread and rest properties support in acorn 5

* acorn-object-rest-spread overwrites acorn`s `parseObj` with a modified copy from acorn 4,
* acorn-object-rest-spread overwrites acorn's `parseObj` with a modified copy from acorn 4,
so that an acorn instance with that plugin cannot for example parse `({async, foo})`
and [wrongly complains about duplicate property names in patterns](https://github.com/ternjs/acorn/commit/4ee71d7c67f73c407c5f6e28f743858b936ea885).
* acorn-object-rest-spread emits `SpreadElement`s with a

@@ -40,0 +41,0 @@ [non-standard](https://github.com/estree/estree/blob/master/es2015.md#expressions)

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc