schemaglobin
Advanced tools
Comparing version 5.8.1 to 5.9.0
@@ -9,2 +9,6 @@ import type { UnknownObject } from "../types"; | ||
export declare const objectFromEntries: <V>(entries: [string, V][]) => Record<string, V>; | ||
/** Extract the key from an object entry. */ | ||
export declare const getEntryKey: ([k]: [string, unknown]) => string; | ||
/** Extract the value from an object entry. */ | ||
export declare const getEntryValue: <V>([, p]: [string, V]) => V; | ||
/** Symbol that allows you to filter out results during mapping. */ | ||
@@ -11,0 +15,0 @@ export declare const SKIP: unique symbol; |
"use strict"; | ||
/* eslint-disable no-param-reassign */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getProp = exports.updateProp = exports.setProp = exports.deleteProp = exports.resolveObject = exports.objectFromKeys = exports.mapObjectKeys = exports.mapObject = exports.SKIP = exports.objectFromEntries = exports.isObject = void 0; | ||
exports.getProp = exports.updateProp = exports.setProp = exports.deleteProp = exports.resolveObject = exports.objectFromKeys = exports.mapObjectKeys = exports.mapObject = exports.SKIP = exports.getEntryValue = exports.getEntryKey = exports.objectFromEntries = exports.isObject = void 0; | ||
/** Is a value an unknown object? (is a TypeScript assertion object that asserts various things). */ | ||
@@ -21,2 +21,6 @@ exports.isObject = (value) => typeof value === "object" && value !== null; | ||
}; | ||
/** Extract the key from an object entry. */ | ||
exports.getEntryKey = ([k]) => k; | ||
/** Extract the value from an object entry. */ | ||
exports.getEntryValue = ([, p]) => p; | ||
/** Symbol that allows you to filter out results during mapping. */ | ||
@@ -23,0 +27,0 @@ exports.SKIP = Symbol("schemaglobin/object/SKIP"); |
{ | ||
"name": "schemaglobin", | ||
"description": "Validate user-entered data.", | ||
"version": "5.8.1", | ||
"version": "5.9.0", | ||
"repository": "https://github.com/dhoulb/schemaglobin", | ||
@@ -30,14 +30,14 @@ "author": "Dave Houlbrooke <dave@shax.com>", | ||
"devDependencies": { | ||
"@types/jest": "^26.0.13", | ||
"@typescript-eslint/eslint-plugin": "^4.1.0", | ||
"@typescript-eslint/parser": "^4.1.0", | ||
"eslint": "^7.8.1", | ||
"eslint-config-prettier": "^6.11.0", | ||
"eslint-plugin-import": "^2.22.0", | ||
"@types/jest": "^26.0.14", | ||
"@typescript-eslint/eslint-plugin": "^4.3.0", | ||
"@typescript-eslint/parser": "^4.3.0", | ||
"eslint": "^7.10.0", | ||
"eslint-config-prettier": "^6.12.0", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"jest": "^26.4.2", | ||
"prettier": "^2.1.1", | ||
"ts-jest": "^26.3.0", | ||
"typescript": "^4.0.2" | ||
"prettier": "^2.1.2", | ||
"ts-jest": "^26.4.1", | ||
"typescript": "^4.0.3" | ||
} | ||
} |
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
148790
2738