You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
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

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": {