@babel/plugin-transform-json-strings
Advanced tools
Comparing version 7.23.4 to 7.24.1
@@ -9,3 +9,3 @@ "use strict"; | ||
var _default = exports.default = (0, _helperPluginUtils.declare)(api => { | ||
api.assertVersion(7); | ||
api.assertVersion("^7.0.0-0 || >8.0.0-alpha <8.0.0-beta"); | ||
const regex = /(\\*)([\u2028\u2029])/g; | ||
@@ -19,3 +19,3 @@ function replace(match, escapes, separator) { | ||
name: "transform-json-strings", | ||
inherits: require("@babel/plugin-syntax-json-strings").default, | ||
inherits: api.version[0] === "8" ? undefined : require("@babel/plugin-syntax-json-strings").default, | ||
visitor: { | ||
@@ -22,0 +22,0 @@ "DirectiveLiteral|StringLiteral"({ |
{ | ||
"name": "@babel/plugin-transform-json-strings", | ||
"version": "7.23.4", | ||
"version": "7.24.1", | ||
"description": "Escape U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR in JS strings", | ||
@@ -20,3 +20,3 @@ "repository": { | ||
"dependencies": { | ||
"@babel/helper-plugin-utils": "^7.22.5", | ||
"@babel/helper-plugin-utils": "^7.24.0", | ||
"@babel/plugin-syntax-json-strings": "^7.8.3" | ||
@@ -28,4 +28,4 @@ }, | ||
"devDependencies": { | ||
"@babel/core": "^7.23.3", | ||
"@babel/helper-plugin-test-runner": "^7.22.5" | ||
"@babel/core": "^7.24.1", | ||
"@babel/helper-plugin-test-runner": "^7.24.1" | ||
}, | ||
@@ -32,0 +32,0 @@ "engines": { |
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
5957