Socket
Socket
Sign inDemoInstall

@babel/plugin-syntax-import-assertions

Package Overview
Dependencies
Maintainers
4
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-syntax-import-assertions - npm Package Compare versions

Comparing version 7.24.7 to 7.25.6

20

lib/index.js

@@ -12,4 +12,20 @@ "use strict";

name: "syntax-import-assertions",
manipulateOptions(opts, parserOpts) {
parserOpts.plugins.push("importAssertions");
manipulateOptions(opts, {
plugins
}) {
for (let i = 0; i < plugins.length; i++) {
const plugin = plugins[i];
if (plugin === "importAttributes") {
plugins[i] = ["importAttributes", {
deprecatedAssertSyntax: true
}];
return;
}
if (Array.isArray(plugin) && plugin[0] === "importAttributes") {
if (plugin.length < 2) plugins[i].push({});
plugin[1].deprecatedAssertSyntax = true;
return;
}
}
plugins.push("importAssertions");
}

@@ -16,0 +32,0 @@ };

6

package.json
{
"name": "@babel/plugin-syntax-import-assertions",
"version": "7.24.7",
"version": "7.25.6",
"description": "Allow parsing of the module assertion attributes in the import statement",

@@ -19,3 +19,3 @@ "repository": {

"dependencies": {
"@babel/helper-plugin-utils": "^7.24.7"
"@babel/helper-plugin-utils": "^7.24.8"
},

@@ -26,3 +26,3 @@ "peerDependencies": {

"devDependencies": {
"@babel/core": "^7.24.7"
"@babel/core": "^7.25.2"
},

@@ -29,0 +29,0 @@ "engines": {

@@ -15,4 +15,7 @@ /* This file is automatically generated by scripts/generators/tsconfig.js */

"path": "../../packages/babel-helper-plugin-utils"
},
{
"path": "../../packages/babel-core"
}
]
}

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