Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

acorn-import-attributes

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

acorn-import-attributes - npm Package Compare versions

Comparing version 1.9.4 to 1.9.5

9

lib/index.js

@@ -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

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