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

@synatic/json-magic

Package Overview
Dependencies
Maintainers
11
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@synatic/json-magic - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

8

lib/Magic.js
const $check = require('check-types');
const jsonPointer = require('./JSONPointer.js');
const serializeError = require('serialize-error');

@@ -35,4 +36,3 @@ class Magic {

if (ignoreSeparator)
return [path];
if (ignoreSeparator) return [path];
return path.split(sep);

@@ -330,2 +330,6 @@ } else {

static fixForMongo(obj) {
if ($check.instanceStrict(obj, Error)) {
obj = serializeError.serializeError(obj);
}
return Magic.renameKey(obj, (key, path) => {

@@ -332,0 +336,0 @@ if (!key) return key;

{
"name": "@synatic/json-magic",
"version": "1.0.1",
"version": "1.0.2",
"description": "Utilities for manipulating JSON objects.",

@@ -45,3 +45,4 @@ "main": "index.js",

"dependencies": {
"check-types": "11.2.2"
"check-types": "11.2.2",
"serialize-error": "8.1.0"
},

@@ -48,0 +49,0 @@ "devDependencies": {

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