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

jsonschema-key-compression

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonschema-key-compression - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

20

dist/es/create-compression-table.js

@@ -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 @@ });

4

package.json
{
"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

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