@contentful/rich-text-react-renderer
Advanced tools
Comparing version 14.1.3 to 15.0.0
@@ -161,6 +161,12 @@ 'use strict'; | ||
// `ToObject` abstract operation | ||
// https://tc39.es/ecma262/#sec-toobject | ||
var toObject = function (argument) { | ||
return Object(requireObjectCoercible(argument)); | ||
}; | ||
var hasOwnProperty = {}.hasOwnProperty; | ||
var has = function (it, key) { | ||
return hasOwnProperty.call(it, key); | ||
var has = Object.hasOwn || function hasOwn(it, key) { | ||
return hasOwnProperty.call(toObject(it), key); | ||
}; | ||
@@ -251,3 +257,3 @@ | ||
// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper | ||
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper | ||
if (typeof sharedStore.inspectSource != 'function') { | ||
@@ -269,3 +275,3 @@ sharedStore.inspectSource = function (it) { | ||
})('versions', []).push({ | ||
version: '3.10.1', | ||
version: '3.14.0', | ||
mode: 'global', | ||
@@ -291,2 +297,3 @@ copyright: '© 2021 Denis Pushkarev (zloirock.ru)' | ||
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; | ||
var WeakMap$1 = global_1.WeakMap; | ||
@@ -308,3 +315,3 @@ var set, get, has$1; | ||
if (nativeWeakMap) { | ||
if (nativeWeakMap || sharedStore.state) { | ||
var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$1()); | ||
@@ -315,2 +322,3 @@ var wmget = store$1.get; | ||
set = function (it, metadata) { | ||
if (wmhas.call(store$1, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED); | ||
metadata.facade = it; | ||
@@ -330,2 +338,3 @@ wmset.call(store$1, it, metadata); | ||
set = function (it, metadata) { | ||
if (has(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED); | ||
metadata.facade = it; | ||
@@ -642,4 +651,2 @@ createNonEnumerableProperty(it, STATE, metadata); | ||
var engineIsNode = classofRaw(global_1.process) == 'process'; | ||
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || ''; | ||
@@ -654,3 +661,3 @@ | ||
match = v8.split('.'); | ||
version = match[0] + match[1]; | ||
version = match[0] < 4 ? 1 : match[0] + match[1]; | ||
} else if (engineUserAgent) { | ||
@@ -666,9 +673,14 @@ match = engineUserAgent.match(/Edge\/(\d+)/); | ||
/* eslint-disable es/no-symbol -- required for testing */ | ||
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing | ||
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () { | ||
// eslint-disable-next-line es/no-symbol -- required for testing | ||
return !Symbol.sham && | ||
// Chrome 38 Symbol has incorrect toString conversion | ||
var symbol = Symbol(); | ||
// Chrome 38 Symbol has incorrect toString conversion | ||
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances | ||
return !String(symbol) || !(Object(symbol) instanceof Symbol) || | ||
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances | ||
(engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41); | ||
!Symbol.sham && engineV8Version && engineV8Version < 41; | ||
}); | ||
@@ -871,2 +883,5 @@ | ||
BLOCKS["EMBEDDED_ASSET"] = "embedded-asset-block"; | ||
BLOCKS["TABLE"] = "table"; | ||
BLOCKS["TABLE_ROW"] = "table-row"; | ||
BLOCKS["TABLE_CELL"] = "table-cell"; | ||
})(BLOCKS || (BLOCKS = {})); | ||
@@ -916,2 +931,3 @@ var BLOCKS$1 = BLOCKS; | ||
BLOCKS$1.EMBEDDED_ASSET, | ||
BLOCKS$1.TABLE, | ||
]; | ||
@@ -930,2 +946,5 @@ /** | ||
_a[BLOCKS$1.QUOTE] = [BLOCKS$1.PARAGRAPH], | ||
_a[BLOCKS$1.TABLE] = [BLOCKS$1.TABLE_ROW], | ||
_a[BLOCKS$1.TABLE_ROW] = [BLOCKS$1.TABLE_CELL], | ||
_a[BLOCKS$1.TABLE_CELL] = [BLOCKS$1.PARAGRAPH], | ||
_a); | ||
@@ -932,0 +951,0 @@ |
{ | ||
"name": "@contentful/rich-text-react-renderer", | ||
"version": "14.1.3", | ||
"version": "15.0.0", | ||
"main": "dist/rich-text-react-renderer.es5.js", | ||
@@ -27,3 +27,3 @@ "typings": "dist/types/index.d.ts", | ||
"dependencies": { | ||
"@contentful/rich-text-types": "^14.1.2" | ||
"@contentful/rich-text-types": "^15.0.0" | ||
}, | ||
@@ -51,3 +51,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "6d28c01aed4c960b8281c1e1456a5fb372dde72b" | ||
"gitHead": "be7ebb0ce035f7646370ac1dab0233cbdac01b1e" | ||
} |
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
Mixed license
License(Experimental) Package contains multiple licenses.
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
179306
1955
68
1
+ Added@contentful/rich-text-types@15.15.1(transitive)
- Removed@contentful/rich-text-types@14.1.2(transitive)