acorn-import-attributes
Advanced tools
Comparing version 1.9.4 to 1.9.5
@@ -152,6 +152,7 @@ "use strict"; | ||
if (this._matchKeywordToken()) { | ||
const property = this._getProperty(); | ||
this.next(); | ||
const attributes = this.parseImportAttributes(); | ||
if (attributes) { | ||
node[this._getProperty()] = attributes; | ||
node[property] = attributes; | ||
} | ||
@@ -202,6 +203,7 @@ } | ||
if (this._matchKeywordToken()) { | ||
const property = this._getProperty(); | ||
this.next(); | ||
const attributes = this.parseImportAttributes(); | ||
if (attributes) { | ||
node[this._getProperty()] = attributes; | ||
node[property] = attributes; | ||
} | ||
@@ -235,6 +237,7 @@ } | ||
if (this._matchKeywordToken()) { | ||
const property = this._getProperty(); | ||
this.next(); | ||
const attributes = this.parseImportAttributes(); | ||
if (attributes) { | ||
node[this._getProperty()] = attributes; | ||
node[property] = attributes; | ||
} | ||
@@ -241,0 +244,0 @@ } |
{ | ||
"name": "acorn-import-attributes", | ||
"version": "1.9.4", | ||
"version": "1.9.5", | ||
"description": "Support for import attributes in acorn", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -146,6 +146,7 @@ import * as _acorn from "acorn"; | ||
if (this._matchKeywordToken()) { | ||
const property = this._getProperty(); | ||
this.next(); | ||
const attributes = this.parseImportAttributes(); | ||
if (attributes) { | ||
node[this._getProperty()] = attributes; | ||
node[property] = attributes; | ||
} | ||
@@ -191,6 +192,7 @@ } | ||
if (this._matchKeywordToken()) { | ||
const property = this._getProperty(); | ||
this.next(); | ||
const attributes = this.parseImportAttributes(); | ||
if (attributes) { | ||
node[this._getProperty()] = attributes; | ||
node[property] = attributes; | ||
} | ||
@@ -229,6 +231,7 @@ } | ||
if (this._matchKeywordToken()) { | ||
const property = this._getProperty(); | ||
this.next(); | ||
const attributes = this.parseImportAttributes(); | ||
if (attributes) { | ||
node[this._getProperty()] = attributes; | ||
node[property] = attributes; | ||
} | ||
@@ -235,0 +238,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32011
791