Socket
Socket
Sign inDemoInstall

acorn-import-assertions

Package Overview
Dependencies
1
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.7.1 to 1.7.2

2

lib/index.js

@@ -57,3 +57,3 @@ "use strict";

if (this._codeAt(i) !== 32 && this._codeAt(i) !== 123) {
if (this._codeAt(this.pos + i) !== 32 && this._codeAt(this.pos + i) !== 123) {
return super.readToken(code);

@@ -60,0 +60,0 @@ } // If we're inside a dynamic import expression we'll parse

{
"name": "acorn-import-assertions",
"version": "1.7.1",
"version": "1.7.2",
"description": "Support for import assertions in acorn",

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

@@ -42,3 +42,3 @@ import _acorn from "acorn";

// ie `assert{...` or `assert {...`
if (this._codeAt(i) !== 32 && this._codeAt(i) !== 123) {
if (this._codeAt(this.pos + i) !== 32 && this._codeAt(this.pos + i) !== 123) {
return super.readToken(code);

@@ -45,0 +45,0 @@ }

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