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

@stoplight/json

Package Overview
Dependencies
Maintainers
7
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stoplight/json - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

index.d.ts
export * from './decycle';
export * from './get';
export * from './safeParse';
export * from './safeStringify';
export * from './set';
export * from './startsWith';
export * from './trimStart';

16

index.js
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./decycle"));
__export(require("./get"));
__export(require("./safeParse"));
__export(require("./safeStringify"));
__export(require("./set"));
__export(require("./startsWith"));
__export(require("./trimStart"));
const tslib_1 = require("tslib");
tslib_1.__exportStar(require("./decycle"), exports);
tslib_1.__exportStar(require("./safeParse"), exports);
tslib_1.__exportStar(require("./safeStringify"), exports);
tslib_1.__exportStar(require("./startsWith"), exports);
tslib_1.__exportStar(require("./trimStart"), exports);
//# sourceMappingURL=index.js.map
{
"name": "@stoplight/json",
"version": "1.0.0",
"version": "1.0.1",
"description": "Useful functions when working with JSON.",

@@ -29,3 +29,3 @@ "keywords": [

"@stoplight/fast-safe-stringify": "2.1.2",
"@stoplight/types": "1.2.0",
"@stoplight/types": "2.x.x",
"json-source-map": "0.4.0",

@@ -32,0 +32,0 @@ "lodash": "4.x.x"

@@ -23,3 +23,4 @@ # @stoplight/json

// basic example of parseWithPointers
import { parseWithPointers } from "@stoplight/json";
// note: parseWithPointers is not exported from root, ust import by name
import { parseWithPointers } from "@stoplight/json/parseWithPointers";

@@ -32,7 +33,5 @@ const result = parseWithPointers('{"foo": "bar"'});

- **decycle**: Remove circular references with support for an optional replacer.
- **get**: Wrapper around `lodash.get`.
- **parseWithPointers**: Like `JSON.parse(val)` but also returns a source map that includes a JSON path pointer for every property in the result (with line information).
- **safeParse**: Like `JSON.parse(val)` but does not throw on invalid JSON.
- **safeStringify**: Like `JSON.stringify(val)` but handles circular references.
- **set**: Wrapper around `lodash.set`.
- **startsWith**: Like native JS `x.startsWith(y)` but works with strings AND arrays.

@@ -39,0 +38,0 @@ - **trimStart**: Like `lodash.startsWith(x, y)` but works with strings AND arrays.

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