Socket
Socket
Sign inDemoInstall

@json-schema-tools/traverse

Package Overview
Dependencies
0
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.7.7 to 1.7.8

26

build/index.js

@@ -13,8 +13,6 @@ "use strict";

};
var __spreadArrays = (this && this.__spreadArrays) || function () {
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
for (var r = Array(s), k = 0, i = 0; i < il; i++)
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
r[k] = a[j];
return r;
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
to[j] = from[i];
return to;
};

@@ -104,3 +102,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

mutableSchema.anyOf = schema.anyOf.map(function (x, i) {
var result = rec(x, __spreadArrays(pathStack, ["anyOf", i.toString()]));
var result = rec(x, __spreadArray(__spreadArray([], pathStack), ["anyOf", i.toString()]));
return result;

@@ -111,3 +109,3 @@ });

mutableSchema.allOf = schema.allOf.map(function (x, i) {
var result = rec(x, __spreadArrays(pathStack, ["allOf", i.toString()]));
var result = rec(x, __spreadArray(__spreadArray([], pathStack), ["allOf", i.toString()]));
return result;

@@ -118,3 +116,3 @@ });

mutableSchema.oneOf = schema.oneOf.map(function (x, i) {
var result = rec(x, __spreadArrays(pathStack, ["oneOf", i.toString()]));
var result = rec(x, __spreadArray(__spreadArray([], pathStack), ["oneOf", i.toString()]));
return result;

@@ -128,3 +126,3 @@ });

mutableSchema.items = schema.items.map(function (x, i) {
var result = rec(x, __spreadArrays(pathStack, ["items", i.toString()]));
var result = rec(x, __spreadArray(__spreadArray([], pathStack), ["items", i.toString()]));
return result;

@@ -157,3 +155,3 @@ });

if (schema.additionalItems !== undefined && !!schema.additionalItems === true && !itemsIsSingleSchema) {
mutableSchema.additionalItems = rec(schema.additionalItems, __spreadArrays(pathStack, ["additionalItems"]));
mutableSchema.additionalItems = rec(schema.additionalItems, __spreadArray(__spreadArray([], pathStack), ["additionalItems"]));
}

@@ -164,3 +162,3 @@ if (schema.properties !== undefined) {

Object.keys(schema.properties).forEach(function (schemaPropKey) {
mutableProps_1[schemaPropKey] = rec(sProps_1[schemaPropKey], __spreadArrays(pathStack, ["properties", schemaPropKey.toString()]));
mutableProps_1[schemaPropKey] = rec(sProps_1[schemaPropKey], __spreadArray(__spreadArray([], pathStack), ["properties", schemaPropKey.toString()]));
});

@@ -173,3 +171,3 @@ mutableSchema.properties = mutableProps_1;

Object.keys(schema.patternProperties).forEach(function (regex) {
mutableProps_2[regex] = rec(sProps_2[regex], __spreadArrays(pathStack, ["patternProperties", regex.toString()]));
mutableProps_2[regex] = rec(sProps_2[regex], __spreadArray(__spreadArray([], pathStack), ["patternProperties", regex.toString()]));
});

@@ -179,3 +177,3 @@ mutableSchema.patternProperties = mutableProps_2;

if (schema.additionalProperties !== undefined && !!schema.additionalProperties === true) {
mutableSchema.additionalProperties = rec(schema.additionalProperties, __spreadArrays(pathStack, ["additionalProperties"]));
mutableSchema.additionalProperties = rec(schema.additionalProperties, __spreadArray(__spreadArray([], pathStack), ["additionalProperties"]));
}

@@ -182,0 +180,0 @@ }

@@ -0,1 +1,11 @@

## [1.7.8](https://github.com/json-schema-tools/traverse/compare/1.7.7...1.7.8) (2021-06-08)
### Bug Fixes
* big dep bump for next release ([12bb092](https://github.com/json-schema-tools/traverse/commit/12bb0922b128df44bc734cc36a424d48d8da9221))
* get typedoc working again ([43fa0e8](https://github.com/json-schema-tools/traverse/commit/43fa0e86dc40c48faa780a608ebf85b176ed3059))
* github workflow for linting fixup ([191c69e](https://github.com/json-schema-tools/traverse/commit/191c69e164cb1947b0446f84dcb39eafdf20aeed))
* remove dependabot status from readme ([ecfffc9](https://github.com/json-schema-tools/traverse/commit/ecfffc9fece521e1ef75c614cbcee47022357166))
## [1.7.7](https://github.com/json-schema-tools/traverse/compare/1.7.6...1.7.7) (2020-11-03)

@@ -2,0 +12,0 @@

{
"name": "@json-schema-tools/traverse",
"version": "1.7.7",
"version": "1.7.8",
"description": "This package exports a method that will traverse a JSON-Schema, calling a mutation function for each sub schema found. It is useful for building tools to work with JSON Schemas.",

@@ -30,14 +30,14 @@ "main": "build/index.js",

"devDependencies": {
"@json-schema-tools/meta-schema": "^1.5.9",
"@types/jest": "^26.0.15",
"@types/node": "^14.14.6",
"@typescript-eslint/eslint-plugin": "^4.5.0",
"@typescript-eslint/parser": "^4.5.0",
"eslint": "^7.12.1",
"jest": "^26.6.1",
"ts-jest": "^26.4.3",
"typedoc": "^0.19.2",
"typescript": "^4.0.5"
"@json-schema-tools/meta-schema": "^1.6.10",
"@types/jest": "^26.0.23",
"@types/node": "^14.17.3",
"@typescript-eslint/eslint-plugin": "^4.26.1",
"@typescript-eslint/parser": "^4.26.1",
"eslint": "^7.28.0",
"jest": "^26.6.3",
"ts-jest": "^26.5.6",
"typedoc": "^0.20.36",
"typescript": "4.2.4"
},
"dependencies": {}
}

@@ -7,3 +7,2 @@ # JSON Schema Traverse

<img src="https://codecov.io/gh/json-schema-tools/traverse/branch/master/graph/badge.svg" />
<img alt="Dependabot status" src="https://api.dependabot.com/badges/status?host=github&repo=json-schema-tools/traverse" />
<img alt="npm" src="https://img.shields.io/npm/dt/@json-schema-tools/traverse.svg" />

@@ -10,0 +9,0 @@ <img alt="GitHub release" src="https://img.shields.io/github/release/json-schema-tools/traverse.svg" />

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc