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

@babel/plugin-transform-json-strings

Package Overview
Dependencies
Maintainers
4
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-json-strings - npm Package Compare versions

Comparing version 7.23.4 to 7.24.1

4

lib/index.js

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

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