New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-object-to-json-parse

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-object-to-json-parse - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

4

dist/utils.js

@@ -37,4 +37,4 @@ "use strict";

if (/[\t\f\r\n\b]/g.test(value)) {
const codes = ['\t', '\f', '\r', '\n', '\t', '\b'];
const replaceCodes = ['\\t', '\\f', '\\r', '\\n', '\\t', '\\b'];
const codes = ['\f', '\r', '\n', '\t', '\b'];
const replaceCodes = ['\\f', '\\r', '\\n', '\\t', '\\b'];
for (let i = 0; i < codes.length; i++) {

@@ -41,0 +41,0 @@ value = value.replace(new RegExp(codes[i]), replaceCodes[i]);

{
"name": "babel-plugin-object-to-json-parse",
"version": "0.1.1",
"version": "0.1.2",
"main": "dist/index.js",

@@ -9,3 +9,3 @@ "scripts": {

"lint": "eslint 'src/**/*.ts' --fix",
"test": "ls test/__fixtures__/**/*.js | xargs -L1 node && jest"
"test": "find test/__fixtures__ -name *.js | xargs -L1 node && jest"
},

@@ -12,0 +12,0 @@ "dependencies": {

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