jsonschema-key-compression
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -0,1 +1,17 @@ | ||
var __read = (this && this.__read) || function (o, n) { | ||
var m = typeof Symbol === "function" && o[Symbol.iterator]; | ||
if (!m) return o; | ||
var i = m.call(o), r, ar = [], e; | ||
try { | ||
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); | ||
} | ||
catch (error) { e = { error: error }; } | ||
finally { | ||
try { | ||
if (r && !r.done && (m = i["return"])) m.call(i); | ||
} | ||
finally { if (e) throw e.error; } | ||
} | ||
return ar; | ||
}; | ||
import { numberToLetter, alphabeticCompare } from './util'; | ||
@@ -31,3 +47,4 @@ /** | ||
if (schema.properties) { | ||
Object.keys(schema.properties).forEach(function (property) { | ||
Object.entries(schema.properties).forEach(function (_a) { | ||
var _b = __read(_a, 2), property = _b[0], deepSchema = _b[1]; | ||
ret.add(property); | ||
@@ -37,3 +54,2 @@ if (!schema.properties) { | ||
} | ||
var deepSchema = schema.properties[property]; | ||
addSchema(deepSchema); | ||
@@ -40,0 +56,0 @@ }); |
"use strict"; | ||
var __read = (this && this.__read) || function (o, n) { | ||
var m = typeof Symbol === "function" && o[Symbol.iterator]; | ||
if (!m) return o; | ||
var i = m.call(o), r, ar = [], e; | ||
try { | ||
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); | ||
} | ||
catch (error) { e = { error: error }; } | ||
finally { | ||
try { | ||
if (r && !r.done && (m = i["return"])) m.call(i); | ||
} | ||
finally { if (e) throw e.error; } | ||
} | ||
return ar; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -35,3 +51,4 @@ exports.uncompressedToCompressedTable = exports.compressedToUncompressedTable = exports.getPropertiesOfSchema = exports.createCompressionTable = exports.DEFAULT_COMPRESSION_FLAG = void 0; | ||
if (schema.properties) { | ||
Object.keys(schema.properties).forEach(function (property) { | ||
Object.entries(schema.properties).forEach(function (_a) { | ||
var _b = __read(_a, 2), property = _b[0], deepSchema = _b[1]; | ||
ret.add(property); | ||
@@ -41,3 +58,2 @@ if (!schema.properties) { | ||
} | ||
var deepSchema = schema.properties[property]; | ||
addSchema(deepSchema); | ||
@@ -44,0 +60,0 @@ }); |
{ | ||
"name": "jsonschema-key-compression", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "Compress json-data based on its json-schema", | ||
@@ -51,4 +51,4 @@ "author": "pubkey", | ||
"tslint": "6.1.3", | ||
"typescript": "4.2.4" | ||
"typescript": "4.3.2" | ||
} | ||
} |
@@ -54,3 +54,3 @@ import type { | ||
if (schema.properties) { | ||
Object.keys(schema.properties).forEach(property => { | ||
Object.entries(schema.properties).forEach(([property, deepSchema]) => { | ||
ret.add(property); | ||
@@ -60,3 +60,2 @@ if (!schema.properties) { | ||
} | ||
const deepSchema = schema.properties[property]; | ||
addSchema(deepSchema); | ||
@@ -63,0 +62,0 @@ }); |
Sorry, the diff of this file is not supported yet
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
84948
1354