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

@remirror/core-helpers

Package Overview
Dependencies
Maintainers
1
Versions
264
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@remirror/core-helpers - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

6

dist/declarations/src/core-helpers.d.ts
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

@@ -1269,2 +1276,3 @@ *

exports.isInteger = isInteger;
exports.isJSONPrimitive = isJSONPrimitive;
exports.isMap = isMap;

@@ -1271,0 +1279,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

@@ -1177,2 +1184,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

@@ -1269,2 +1276,3 @@ *

exports.isInteger = isInteger;
exports.isJSONPrimitive = isJSONPrimitive;
exports.isMap = isMap;

@@ -1271,0 +1279,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

@@ -1249,2 +1256,3 @@ *

exports.isInteger = isInteger;
exports.isJSONPrimitive = isJSONPrimitive;
exports.isMap = isMap;

@@ -1251,0 +1259,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

@@ -1177,2 +1184,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 };

4

package.json
{
"name": "@remirror/core-helpers",
"version": "1.0.2",
"version": "1.0.3",
"description": "Provide helper functions for the remirror codebase, kinda like a tiny lodash",

@@ -41,3 +41,3 @@ "homepage": "https://github.com/remirror/remirror/tree/HEAD/packages/remirror__core-helpers",

"@remirror/core-constants": "^1.0.1",
"@remirror/types": "^0.1.0",
"@remirror/types": "^0.1.1",
"@types/object.omit": "^3.0.0",

@@ -44,0 +44,0 @@ "@types/object.pick": "^1.3.1",

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