acorn-import-assertions
Advanced tools
Comparing version 1.7.1 to 1.7.2
@@ -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
24061