jsonschema-key-compression
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -106,2 +106,5 @@ "use strict"; | ||
exports.compressQuery = compressQuery; | ||
/** | ||
* @recursive | ||
*/ | ||
function compressQuerySelector(table, selector) { | ||
@@ -111,2 +114,5 @@ if (Array.isArray(selector)) { | ||
} | ||
else if (selector instanceof RegExp) { | ||
return selector; | ||
} | ||
else if (typeof selector === 'object' && selector !== null) { | ||
@@ -113,0 +119,0 @@ var ret_2 = {}; |
@@ -99,2 +99,5 @@ /** | ||
} | ||
/** | ||
* @recursive | ||
*/ | ||
export function compressQuerySelector(table, selector) { | ||
@@ -104,2 +107,5 @@ if (Array.isArray(selector)) { | ||
} | ||
else if (selector instanceof RegExp) { | ||
return selector; | ||
} | ||
else if (typeof selector === 'object' && selector !== null) { | ||
@@ -106,0 +112,0 @@ const ret = {}; |
{ | ||
"name": "jsonschema-key-compression", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Compress json-data based on it's json-schema", | ||
@@ -5,0 +5,0 @@ "author": "pubkey", |
@@ -150,2 +150,5 @@ import { | ||
/** | ||
* @recursive | ||
*/ | ||
export function compressQuerySelector( | ||
@@ -157,2 +160,4 @@ table: CompressionTable, | ||
return selector.map(item => compressQuerySelector(table, item)); | ||
} else if (selector instanceof RegExp) { | ||
return selector; | ||
} else if (typeof selector === 'object' && selector !== null) { | ||
@@ -159,0 +164,0 @@ const ret = {}; |
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
71995
1119