@remirror/core-helpers
Advanced tools
Comparing version 0.0.0-pr1158.1 to 0.0.0-pr1161.1
import type { ClassName } from '@linaria/core/types/cx'; | ||
import omit from 'object.omit'; | ||
import pick from 'object.pick'; | ||
import type { AnyConstructor, AnyFunction, ConditionalExcept, Nullable, Primitive, Shape, UnknownShape } from '@remirror/types'; | ||
import type { AnyConstructor, AnyFunction, ConditionalExcept, JsonPrimitive, Nullable, Primitive, Shape, UnknownShape } from '@remirror/types'; | ||
declare type TupleRange<Size extends number> = Size extends Size ? number extends Size ? number[] : _NumberRangeTuple<[], Size> : never; | ||
@@ -147,2 +147,6 @@ declare type _NumberRangeTuple<Tuple extends readonly unknown[], Length extends number> = Tuple['length'] extends Length ? Tuple : _NumberRangeTuple<[...Tuple, Tuple['length']], Length>; | ||
/** | ||
* Predicate check for whether passed in value is a JSON primitive value | ||
*/ | ||
export declare function isJSONPrimitive(value: unknown): value is JsonPrimitive; | ||
/** | ||
* Utility predicate check that value is either null or undefined | ||
@@ -149,0 +153,0 @@ * |
@@ -302,2 +302,9 @@ 'use strict'; | ||
/** | ||
* Predicate check for whether passed in value is a JSON primitive value | ||
*/ | ||
function isJSONPrimitive(value) { | ||
return value == null || ['boolean', 'number', 'string'].includes(typeof value); | ||
} | ||
/** | ||
* Utility predicate check that value is either null or undefined | ||
@@ -1308,2 +1315,3 @@ * | ||
exports.isInteger = isInteger; | ||
exports.isJSONPrimitive = isJSONPrimitive; | ||
exports.isMap = isMap; | ||
@@ -1310,0 +1318,0 @@ exports.isNativePromise = isNativePromise; |
@@ -292,2 +292,9 @@ import { BaseError } from 'make-error'; | ||
/** | ||
* Predicate check for whether passed in value is a JSON primitive value | ||
*/ | ||
function isJSONPrimitive(value) { | ||
return value == null || ['boolean', 'number', 'string'].includes(typeof value); | ||
} | ||
/** | ||
* Utility predicate check that value is either null or undefined | ||
@@ -1192,2 +1199,2 @@ * | ||
export { Cast, RemirrorError, assert, assertGet, callIfDefined, capitalize, clamp, cleanupOS, clone, cx, deepMerge, entries, findMatches, flattenArray, format, freeze, get, getLazyArray, hasOwnProperty, includes, invariant, isAndroidOS, isArray, isBoolean, isClass, isDate, isDirectInstanceOf, isEmptyArray, isEmptyObject, isEqual, isError, isFunction, isInstanceOf, isInteger, isMap, isNativePromise, isNonEmptyArray, isNull, isNullOrUndefined, isNumber, isObject, isPlainObject, isPrimitive, isPromise, isRegExp, isSafeInteger, isSet, isString, isSymbol, isUndefined, keys, last, noop, object, omitUndefined, randomFloat, randomInt, range, set, shallowClone, sort, startCase, take, toString, uniqueArray, uniqueBy, uniqueId, unset, values, within }; | ||
export { Cast, RemirrorError, assert, assertGet, callIfDefined, capitalize, clamp, cleanupOS, clone, cx, deepMerge, entries, findMatches, flattenArray, format, freeze, get, getLazyArray, hasOwnProperty, includes, invariant, isAndroidOS, isArray, isBoolean, isClass, isDate, isDirectInstanceOf, isEmptyArray, isEmptyObject, isEqual, isError, isFunction, isInstanceOf, isInteger, isJSONPrimitive, isMap, isNativePromise, isNonEmptyArray, isNull, isNullOrUndefined, isNumber, isObject, isPlainObject, isPrimitive, isPromise, isRegExp, isSafeInteger, isSet, isString, isSymbol, isUndefined, keys, last, noop, object, omitUndefined, randomFloat, randomInt, range, set, shallowClone, sort, startCase, take, toString, uniqueArray, uniqueBy, uniqueId, unset, values, within }; |
@@ -302,2 +302,9 @@ 'use strict'; | ||
/** | ||
* Predicate check for whether passed in value is a JSON primitive value | ||
*/ | ||
function isJSONPrimitive(value) { | ||
return value == null || ['boolean', 'number', 'string'].includes(typeof value); | ||
} | ||
/** | ||
* Utility predicate check that value is either null or undefined | ||
@@ -1308,2 +1315,3 @@ * | ||
exports.isInteger = isInteger; | ||
exports.isJSONPrimitive = isJSONPrimitive; | ||
exports.isMap = isMap; | ||
@@ -1310,0 +1318,0 @@ exports.isNativePromise = isNativePromise; |
@@ -302,2 +302,9 @@ 'use strict'; | ||
/** | ||
* Predicate check for whether passed in value is a JSON primitive value | ||
*/ | ||
function isJSONPrimitive(value) { | ||
return value == null || ['boolean', 'number', 'string'].includes(typeof value); | ||
} | ||
/** | ||
* Utility predicate check that value is either null or undefined | ||
@@ -1246,2 +1253,3 @@ * | ||
exports.isInteger = isInteger; | ||
exports.isJSONPrimitive = isJSONPrimitive; | ||
exports.isMap = isMap; | ||
@@ -1248,0 +1256,0 @@ exports.isNativePromise = isNativePromise; |
@@ -292,2 +292,9 @@ import { BaseError } from 'make-error'; | ||
/** | ||
* Predicate check for whether passed in value is a JSON primitive value | ||
*/ | ||
function isJSONPrimitive(value) { | ||
return value == null || ['boolean', 'number', 'string'].includes(typeof value); | ||
} | ||
/** | ||
* Utility predicate check that value is either null or undefined | ||
@@ -1192,2 +1199,2 @@ * | ||
export { Cast, RemirrorError, assert, assertGet, callIfDefined, capitalize, clamp, cleanupOS, clone, cx, deepMerge, entries, findMatches, flattenArray, format, freeze, get, getLazyArray, hasOwnProperty, includes, invariant, isAndroidOS, isArray, isBoolean, isClass, isDate, isDirectInstanceOf, isEmptyArray, isEmptyObject, isEqual, isError, isFunction, isInstanceOf, isInteger, isMap, isNativePromise, isNonEmptyArray, isNull, isNullOrUndefined, isNumber, isObject, isPlainObject, isPrimitive, isPromise, isRegExp, isSafeInteger, isSet, isString, isSymbol, isUndefined, keys, last, noop, object, omitUndefined, randomFloat, randomInt, range, set, shallowClone, sort, startCase, take, toString, uniqueArray, uniqueBy, uniqueId, unset, values, within }; | ||
export { Cast, RemirrorError, assert, assertGet, callIfDefined, capitalize, clamp, cleanupOS, clone, cx, deepMerge, entries, findMatches, flattenArray, format, freeze, get, getLazyArray, hasOwnProperty, includes, invariant, isAndroidOS, isArray, isBoolean, isClass, isDate, isDirectInstanceOf, isEmptyArray, isEmptyObject, isEqual, isError, isFunction, isInstanceOf, isInteger, isJSONPrimitive, isMap, isNativePromise, isNonEmptyArray, isNull, isNullOrUndefined, isNumber, isObject, isPlainObject, isPrimitive, isPromise, isRegExp, isSafeInteger, isSet, isString, isSymbol, isUndefined, keys, last, noop, object, omitUndefined, randomFloat, randomInt, range, set, shallowClone, sort, startCase, take, toString, uniqueArray, uniqueBy, uniqueId, unset, values, within }; |
{ | ||
"name": "@remirror/core-helpers", | ||
"version": "0.0.0-pr1158.1", | ||
"version": "0.0.0-pr1161.1", | ||
"description": "Provide helper functions for the remirror codebase, kinda like a tiny lodash", | ||
@@ -36,4 +36,4 @@ "homepage": "https://github.com/remirror/remirror/tree/HEAD/packages/remirror__core-helpers", | ||
"@linaria/core": "3.0.0-beta.4", | ||
"@remirror/core-constants": "0.0.0-pr1158.1", | ||
"@remirror/types": "0.0.0-pr1158.1", | ||
"@remirror/core-constants": "0.0.0-pr1161.1", | ||
"@remirror/types": "0.0.0-pr1161.1", | ||
"@types/object.omit": "^3.0.0", | ||
@@ -40,0 +40,0 @@ "@types/object.pick": "^1.3.1", |
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
212584
6165
+ Added@remirror/core-constants@0.0.0-pr1161.1(transitive)
+ Added@remirror/types@0.0.0-pr1161.1(transitive)
- Removed@remirror/core-constants@0.0.0-pr1158.1(transitive)
- Removed@remirror/types@0.0.0-pr1158.1(transitive)