New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

acorn-loose

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

acorn-loose - npm Package Compare versions

Comparing version 7.1.0 to 8.0.0

10

CHANGELOG.md

@@ -0,1 +1,11 @@

## 8.0.0 (2020-08-12)
### New features
The package can now be loaded directly as an ECMAScript module in node 13+.
### Breaking changes
The `ecmaVersion` option is now required. For the moment, omitting it will still work with a warning, but that will change in a future release.
## 7.1.0 (2020-06-11)

@@ -2,0 +12,0 @@

2

dist/acorn-loose.js

@@ -1030,3 +1030,3 @@ (function (global, factory) {

node.raw = this.input.slice(this.tok.start, this.tok.end);
if (this.tok.type === acorn.tokTypes.num && node.raw.charCodeAt(node.raw.length - 1) === 110) { node.bigint = node.raw.slice(0, -1); }
if (this.tok.type === acorn.tokTypes.num && node.raw.charCodeAt(node.raw.length - 1) === 110) { node.bigint = node.raw.slice(0, -1).replace(/_/g, ""); }
this.next();

@@ -1033,0 +1033,0 @@ return this.finishNode(node, "Literal")

@@ -7,6 +7,10 @@ {

"module": "dist/acorn-loose.mjs",
"version": "7.1.0",
"exports": {
"import": "./dist/acorn-loose.mjs",
"require": "./dist/acorn-loose.js"
},
"version": "8.0.0",
"engines": {"node": ">=0.4.0"},
"dependencies": {
"acorn": "^7.0.0"
"acorn": "^8.0.0"
},

@@ -13,0 +17,0 @@ "maintainers": [

@@ -55,3 +55,3 @@ # Acorn loose parser

var acornLoose = require("acorn-loose");
console.log(acornLoose.parse("1 / * 4 )[2]"));
console.log(acornLoose.parse("1 / * 4 )[2]", {ecmaVersion: 2020}));
```

@@ -58,0 +58,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc