import-in-the-middle
Advanced tools
Comparing version 1.4.2 to 1.5.0
@@ -103,3 +103,7 @@ // Unless explicitly stated otherwise all files in this repository are licensed under the Apache 2.0 License. | ||
if (context.importAssertions && context.importAssertions.type === 'json') { | ||
// Node.js v21 renames importAssertions to importAttributes | ||
if ( | ||
(context.importAssertions && context.importAssertions.type === 'json') || | ||
(context.importAttributes && context.importAttributes.type === 'json') | ||
) { | ||
return url | ||
@@ -106,0 +110,0 @@ } |
{ | ||
"name": "import-in-the-middle", | ||
"version": "1.4.2", | ||
"version": "1.5.0", | ||
"description": "Intercept imports in Node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
41861
950