@stoplight/json
Advanced tools
Comparing version 1.0.0 to 1.0.1
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
23475
24
154
49
+ Added@stoplight/types@2.0.0(transitive)
- Removed@stoplight/types@1.2.0(transitive)
Updated@stoplight/types@2.x.x