@contentful/field-editor-shared
Advanced tools
Comparing version 1.4.2 to 1.4.4
@@ -42,3 +42,2 @@ "use strict"; | ||
const _isObject = _interop_require_default(require("lodash/isObject")); | ||
const _isString = _interop_require_default(require("lodash/isString")); | ||
function _interop_require_default(obj) { | ||
@@ -50,3 +49,3 @@ return obj && obj.__esModule ? obj : { | ||
function titleOrDefault(title, defaultTitle) { | ||
if (!(0, _isString.default)(title)) { | ||
if (!(title != null && typeof title.valueOf() === 'string')) { | ||
return defaultTitle; | ||
@@ -53,0 +52,0 @@ } |
import get from 'lodash/get'; | ||
import isObject from 'lodash/isObject'; | ||
import isString from 'lodash/isString'; | ||
function titleOrDefault(title, defaultTitle) { | ||
if (!isString(title)) { | ||
if (!(title != null && typeof title.valueOf() === 'string')) { | ||
return defaultTitle; | ||
@@ -7,0 +6,0 @@ } |
@@ -1,2 +0,2 @@ | ||
import * as React from 'react'; | ||
/// <reference types="react" /> | ||
interface CharCounterProps { | ||
@@ -6,3 +6,3 @@ value?: string; | ||
} | ||
export declare function CharCounter(props: CharCounterProps): React.JSX.Element; | ||
export declare function CharCounter(props: CharCounterProps): JSX.Element; | ||
export {}; |
@@ -1,2 +0,2 @@ | ||
import * as React from 'react'; | ||
/// <reference types="react" /> | ||
import { ValidationType } from './types'; | ||
@@ -6,3 +6,3 @@ interface CharValidationProps { | ||
} | ||
export declare function CharValidation(props: CharValidationProps): React.JSX.Element; | ||
export declare function CharValidation(props: CharValidationProps): JSX.Element; | ||
export {}; |
@@ -1,2 +0,2 @@ | ||
import * as React from 'react'; | ||
export declare function PredefinedValuesError(): React.JSX.Element; | ||
/// <reference types="react" /> | ||
export declare function PredefinedValuesError(): JSX.Element; |
{ | ||
"name": "@contentful/field-editor-shared", | ||
"version": "1.4.2", | ||
"version": "1.4.4", | ||
"main": "dist/cjs/index.js", | ||
@@ -39,3 +39,3 @@ "module": "dist/esm/index.js", | ||
"@contentful/app-sdk": "^4.17.1", | ||
"@contentful/field-editor-test-utils": "^1.4.3" | ||
"@contentful/field-editor-test-utils": "^1.4.5" | ||
}, | ||
@@ -52,3 +52,6 @@ "dependencies": { | ||
}, | ||
"gitHead": "ef0adb263ad287e6f78888a05727d0f2f4f8968d" | ||
"publishConfig": { | ||
"registry": "https://npm.pkg.github.com/" | ||
}, | ||
"gitHead": "b1f62d6b934520b6d4dc328921dd500381d1e22c" | ||
} |
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
63689
1863