New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.0.5 to 1.0.6

2

dist/es6/compress.js

@@ -80,3 +80,3 @@ /**

if (query.sort) {
ret.sort = query.sort.map(item => {
ret.sort = query.sort.map((item) => {
if (typeof item === 'string') {

@@ -83,0 +83,0 @@ const hasMinus = item.startsWith('-');

{
"name": "jsonschema-key-compression",
"version": "1.0.5",
"version": "1.0.6",
"description": "Compress json-data based on it's json-schema",

@@ -5,0 +5,0 @@ "author": "pubkey",

@@ -22,3 +22,3 @@ import {

// object
const ret = {};
const ret: PlainJsonObject = {};
Object.keys(obj).forEach(key => {

@@ -126,3 +126,3 @@ const compressedKey = compressedAndFlaggedKey(

if (query.sort) {
ret.sort = (query.sort as any).map(item => {
ret.sort = (query.sort as any[]).map((item: string | any) => {
if (typeof item === 'string') {

@@ -164,3 +164,3 @@ const hasMinus = item.startsWith('-');

} else if (typeof selector === 'object' && selector !== null) {
const ret = {};
const ret: any = {};
Object.keys(selector).forEach(key => {

@@ -167,0 +167,0 @@ let useKey;

@@ -16,3 +16,3 @@ import {

// object
const ret = {};
const ret: PlainJsonObject = {};
Object.keys(obj).forEach(key => {

@@ -19,0 +19,0 @@ const decompressed = decompressedKey(

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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