@remirror/core-helpers
Advanced tools
Comparing version 0.0.0-pr1801.3 to 0.0.0-pr1862.1
@@ -50,5 +50,5 @@ import { BaseError } from 'make-error'; | ||
* | ||
* @default false | ||
* @defaultValue false | ||
*/ | ||
disableLogging?: boolean; | ||
} |
@@ -479,4 +479,4 @@ import type { ClassName } from '@linaria/core/types/cx'; | ||
* | ||
* @template Obj - the object type | ||
* @template Property - the property which can be a string | number | symbol | ||
* @typeParam Obj - the object type | ||
* @typeParam Property - the property which can be a string | number | symbol | ||
*/ | ||
@@ -483,0 +483,0 @@ export declare function hasOwnProperty<Obj extends object, Property extends string | number | symbol>(object_: Obj, key: Property): object_ is Property extends keyof Obj ? Obj : Obj & { |
@@ -16,3 +16,3 @@ /** | ||
* | ||
* @default undefined | ||
* @defaultValue undefined | ||
*/ | ||
@@ -19,0 +19,0 @@ requireKeys?: boolean; |
export * from './core-errors'; | ||
export * from './core-helpers'; | ||
export * from './default-import'; | ||
export * from './freeze'; |
@@ -469,2 +469,15 @@ var __defProp = Object.defineProperty; | ||
// packages/remirror__core-helpers/src/default-import.ts | ||
function defaultImport(mod) { | ||
var _a; | ||
if (typeof mod !== "object" || mod === null) { | ||
return mod; | ||
} | ||
const defaultVal = Symbol.toStringTag in mod && mod[Symbol.toStringTag] === "Module" ? (_a = mod.default) != null ? _a : mod : mod; | ||
if ("__esModule" in defaultVal && defaultVal.__esModule && defaultVal.default !== void 0) { | ||
return defaultVal.default; | ||
} | ||
return defaultVal; | ||
} | ||
// packages/remirror__core-helpers/src/freeze.ts | ||
@@ -511,2 +524,3 @@ import { ErrorConstant as ErrorConstant2 } from "@remirror/core-constants"; | ||
deepMerge, | ||
defaultImport, | ||
entries, | ||
@@ -513,0 +527,0 @@ findMatches, |
{ | ||
"name": "@remirror/core-helpers", | ||
"version": "0.0.0-pr1801.3", | ||
"version": "0.0.0-pr1862.1", | ||
"description": "Provide helper functions for the remirror codebase, kinda like a tiny lodash", | ||
@@ -20,8 +20,8 @@ "homepage": "https://github.com/remirror/remirror/tree/HEAD/packages/remirror__core-helpers", | ||
"import": "./dist/remirror-core-helpers.js", | ||
"types": "./dist-types/index.d.ts", | ||
"default": "./dist/remirror-core-helpers.js" | ||
"require": "./dist/remirror-core-helpers.cjs", | ||
"types": "./dist-types/index.d.ts" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"main": "./dist/remirror-core-helpers.js", | ||
"main": "./dist/remirror-core-helpers.cjs", | ||
"module": "./dist/remirror-core-helpers.js", | ||
@@ -36,4 +36,4 @@ "types": "./dist-types/index.d.ts", | ||
"@linaria/core": "3.0.0-beta.13", | ||
"@remirror/core-constants": "0.0.0-pr1801.3", | ||
"@remirror/types": "0.0.0-pr1801.3", | ||
"@remirror/core-constants": "0.0.0-pr1862.1", | ||
"@remirror/types": "0.0.0-pr1862.1", | ||
"@types/object.omit": "^3.0.0", | ||
@@ -40,0 +40,0 @@ "@types/object.pick": "^1.3.1", |
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
208451
13
1868
2
+ Added@remirror/core-constants@0.0.0-pr1862.1(transitive)
+ Added@remirror/types@0.0.0-pr1862.1(transitive)
+ Addedtype-fest@2.19.0(transitive)
- Removed@remirror/core-constants@0.0.0-pr1801.3(transitive)
- Removed@remirror/types@0.0.0-pr1801.3(transitive)
- Removedtype-fest@1.4.0(transitive)