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

@json-schema-tools/traverse

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@json-schema-tools/traverse - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

2

build/index.d.ts

@@ -1,2 +0,2 @@

import { CoreSchemaMetaSchema as JSONMetaSchema } from "@json-schema-tools/meta-schema";
import { JSONMetaSchema } from "@json-schema-tools/meta-schema";
/**

@@ -3,0 +3,0 @@ * Signature of the mutation method passed to traverse.

@@ -0,1 +1,8 @@

## [1.1.2](https://github.com/json-schema-tools/traverse/compare/1.1.1...1.1.2) (2020-06-27)
### Bug Fixes
* update to latest JSON schema meta schema ([#53](https://github.com/json-schema-tools/traverse/issues/53)) ([c02585d](https://github.com/json-schema-tools/traverse/commit/c02585de7d37395be839b37b6e61c2c8bbde3d6f))
## [1.1.1](https://github.com/json-schema-tools/traverse/compare/1.1.0...1.1.1) (2020-06-25)

@@ -2,0 +9,0 @@

{
"name": "@json-schema-tools/traverse",
"version": "1.1.1",
"version": "1.1.2",
"description": "",

@@ -17,6 +17,6 @@ "main": "build/index.js",

"devDependencies": {
"@json-schema-tools/meta-schema": "^1.0.9",
"@types/jest": "^26.0.0",
"@json-schema-tools/meta-schema": "^1.0.10",
"@types/jest": "^26.0.3",
"@types/lodash.merge": "^4.6.6",
"@types/node": "^14.0.13",
"@types/node": "^14.0.14",
"jest": "^24.9.0",

@@ -28,5 +28,4 @@ "ts-jest": "^24.3.0",

"dependencies": {
"@json-schema-tools/meta-schema": "^1.0.3",
"lodash.merge": "^4.6.2"
}
}
import traverse from "./";
import { CoreSchemaMetaSchema } from "@json-schema-tools/meta-schema";
import { JSONMetaSchema } from "@json-schema-tools/meta-schema";

@@ -20,3 +20,3 @@ describe("traverse", () => {

const result = traverse(testSchema, mutator) as CoreSchemaMetaSchema;
const result = traverse(testSchema, mutator) as JSONMetaSchema;

@@ -34,3 +34,3 @@ expect(result.hello).toBe("world");

const result = traverse(testSchema, mergeProducer, opts) as CoreSchemaMetaSchema;
const result = traverse(testSchema, mergeProducer, opts) as JSONMetaSchema;

@@ -46,3 +46,3 @@ expect(result.hello).toBe("world");

const mutator = jest.fn((s: CoreSchemaMetaSchema) => ({
const mutator = jest.fn((s: JSONMetaSchema) => ({
...s,

@@ -54,3 +54,3 @@ properties: {

const result = traverse(testSchema, mutator) as CoreSchemaMetaSchema;
const result = traverse(testSchema, mutator) as JSONMetaSchema;

@@ -66,3 +66,3 @@ expect(result.properties).toBeDefined();

};
const mergeProducer = jest.fn((s: CoreSchemaMetaSchema) => ({
const mergeProducer = jest.fn((s: JSONMetaSchema) => ({
...s,

@@ -76,3 +76,3 @@ properties: {

const result = traverse(testSchema, mergeProducer, opts) as CoreSchemaMetaSchema;
const result = traverse(testSchema, mergeProducer, opts) as JSONMetaSchema;

@@ -469,3 +469,3 @@ expect(result.properties).toBeDefined();

let i = 0;
const result: CoreSchemaMetaSchema = traverse(schema, (s: CoreSchemaMetaSchema) => {
const result: JSONMetaSchema = traverse(schema, (s: JSONMetaSchema) => {
s.i = i;

@@ -472,0 +472,0 @@ i += 1;

import merge from "lodash.merge";
import { CoreSchemaMetaSchema as JSONMetaSchema } from "@json-schema-tools/meta-schema";
import { JSONMetaSchema } from "@json-schema-tools/meta-schema";

@@ -4,0 +4,0 @@ /**

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