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

@contentful/rich-text-react-renderer

Package Overview
Dependencies
Maintainers
99
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contentful/rich-text-react-renderer - npm Package Compare versions

Comparing version 14.1.2 to 14.1.3

CHANGELOG.md

174

dist/rich-text-react-renderer.es5.js

@@ -62,9 +62,10 @@ 'use strict';

var global_1 =
// eslint-disable-next-line no-undef
// eslint-disable-next-line es/no-global-this -- safe
check(typeof globalThis == 'object' && globalThis) ||
check(typeof window == 'object' && window) ||
// eslint-disable-next-line no-restricted-globals -- safe
check(typeof self == 'object' && self) ||
check(typeof commonjsGlobal$1 == 'object' && commonjsGlobal$1) ||
// eslint-disable-next-line no-new-func
Function('return this')();
// eslint-disable-next-line no-new-func -- fallback
(function () { return this; })() || Function('return this')();

@@ -79,19 +80,21 @@ var fails = function (exec) {

// Thank's IE8 for his funny defineProperty
// Detect IE8's incomplete defineProperty implementation
var descriptors = !fails(function () {
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
});
var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
var $propertyIsEnumerable = {}.propertyIsEnumerable;
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
// Nashorn ~ JDK8 bug
var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
// `Object.prototype.propertyIsEnumerable` method implementation
// https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
var f = NASHORN_BUG ? function propertyIsEnumerable(V) {
var descriptor = getOwnPropertyDescriptor(this, V);
return !!descriptor && descriptor.enumerable;
} : nativePropertyIsEnumerable;
} : $propertyIsEnumerable;

@@ -122,3 +125,3 @@ var objectPropertyIsEnumerable = {

// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
// eslint-disable-next-line no-prototype-builtins
// eslint-disable-next-line no-prototype-builtins -- safe
return !Object('z').propertyIsEnumerable(0);

@@ -130,3 +133,3 @@ }) ? function (it) {

// `RequireObjectCoercible` abstract operation
// https://tc39.github.io/ecma262/#sec-requireobjectcoercible
// https://tc39.es/ecma262/#sec-requireobjectcoercible
var requireObjectCoercible = function (it) {

@@ -150,3 +153,3 @@ if (it == undefined) throw TypeError("Can't call method on " + it);

// `ToPrimitive` abstract operation
// https://tc39.github.io/ecma262/#sec-toprimitive
// https://tc39.es/ecma262/#sec-toprimitive
// instead of the ES6 spec version, we didn't implement @@toPrimitive case

@@ -179,2 +182,3 @@ // and the second argument - flag - preferred type is a string

var ie8DomDefine = !descriptors && !fails(function () {
// eslint-disable-next-line es/no-object-defineproperty -- requied for testing
return Object.defineProperty(documentCreateElement('div'), 'a', {

@@ -185,11 +189,12 @@ get: function () { return 7; }

var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
// `Object.getOwnPropertyDescriptor` method
// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor
var f$1 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
var f$1 = descriptors ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
O = toIndexedObject(O);
P = toPrimitive(P, true);
if (ie8DomDefine) try {
return nativeGetOwnPropertyDescriptor(O, P);
return $getOwnPropertyDescriptor(O, P);
} catch (error) { /* empty */ }

@@ -209,7 +214,8 @@ if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);

var nativeDefineProperty = Object.defineProperty;
// eslint-disable-next-line es/no-object-defineproperty -- safe
var $defineProperty = Object.defineProperty;
// `Object.defineProperty` method
// https://tc39.github.io/ecma262/#sec-object.defineproperty
var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
// https://tc39.es/ecma262/#sec-object.defineproperty
var f$2 = descriptors ? $defineProperty : function defineProperty(O, P, Attributes) {
anObject(O);

@@ -219,3 +225,3 @@ P = toPrimitive(P, true);

if (ie8DomDefine) try {
return nativeDefineProperty(O, P, Attributes);
return $defineProperty(O, P, Attributes);
} catch (error) { /* empty */ }

@@ -270,5 +276,5 @@ if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');

})('versions', []).push({
version: '3.6.5',
version: '3.10.1',
mode: 'global',
copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
});

@@ -309,3 +315,3 @@ });

if (nativeWeakMap) {
var store$1 = new WeakMap$1();
var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$1());
var wmget = store$1.get;

@@ -315,2 +321,3 @@ var wmhas = store$1.has;

set = function (it, metadata) {
metadata.facade = it;
wmset.call(store$1, it, metadata);

@@ -329,2 +336,3 @@ return metadata;

set = function (it, metadata) {
metadata.facade = it;
createNonEnumerableProperty(it, STATE, metadata);

@@ -358,5 +366,11 @@ return metadata;

var noTargetGet = options ? !!options.noTargetGet : false;
var state;
if (typeof value == 'function') {
if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key);
enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
if (typeof key == 'string' && !has(value, 'name')) {
createNonEnumerableProperty(value, 'name', key);
}
state = enforceInternalState(value);
if (!state.source) {
state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
}
}

@@ -395,3 +409,3 @@ if (O === global_1) {

// `ToInteger` abstract operation
// https://tc39.github.io/ecma262/#sec-tointeger
// https://tc39.es/ecma262/#sec-tointeger
var toInteger = function (argument) {

@@ -404,3 +418,3 @@ return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);

// `ToLength` abstract operation
// https://tc39.github.io/ecma262/#sec-tolength
// https://tc39.es/ecma262/#sec-tolength
var toLength = function (argument) {

@@ -429,6 +443,6 @@ return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991

// Array#includes uses SameValueZero equality algorithm
// eslint-disable-next-line no-self-compare
// eslint-disable-next-line no-self-compare -- NaN check
if (IS_INCLUDES && el != el) while (length > index) {
value = O[index++];
// eslint-disable-next-line no-self-compare
// eslint-disable-next-line no-self-compare -- NaN check
if (value != value) return true;

@@ -444,6 +458,6 @@ // Array#indexOf ignores holes, Array#includes - not

// `Array.prototype.includes` method
// https://tc39.github.io/ecma262/#sec-array.prototype.includes
// https://tc39.es/ecma262/#sec-array.prototype.includes
includes: createMethod(true),
// `Array.prototype.indexOf` method
// https://tc39.github.io/ecma262/#sec-array.prototype.indexof
// https://tc39.es/ecma262/#sec-array.prototype.indexof
indexOf: createMethod(false)

@@ -482,3 +496,4 @@ };

// `Object.getOwnPropertyNames` method
// https://tc39.github.io/ecma262/#sec-object.getownpropertynames
// https://tc39.es/ecma262/#sec-object.getownpropertynames
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {

@@ -492,2 +507,3 @@ return objectKeysInternal(O, hiddenKeys$1);

// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
var f$4 = Object.getOwnPropertySymbols;

@@ -591,3 +607,4 @@

// `Object.keys` method
// https://tc39.github.io/ecma262/#sec-object.keys
// https://tc39.es/ecma262/#sec-object.keys
// eslint-disable-next-line es/no-object-keys -- safe
var objectKeys = Object.keys || function keys(O) {

@@ -620,6 +637,6 @@ return objectKeysInternal(O, enumBugKeys);

// `Object.entries` method
// https://tc39.github.io/ecma262/#sec-object.entries
// https://tc39.es/ecma262/#sec-object.entries
entries: createMethod$1(true),
// `Object.values` method
// https://tc39.github.io/ecma262/#sec-object.values
// https://tc39.es/ecma262/#sec-object.values
values: createMethod$1(false)

@@ -631,3 +648,3 @@ };

// `Object.values` method
// https://tc39.github.io/ecma262/#sec-object.values
// https://tc39.es/ecma262/#sec-object.values
_export({ target: 'Object', stat: true }, {

@@ -641,12 +658,38 @@ values: function values(O) {

var engineIsNode = classofRaw(global_1.process) == 'process';
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
var process = global_1.process;
var versions = process && process.versions;
var v8 = versions && versions.v8;
var match, version;
if (v8) {
match = v8.split('.');
version = match[0] + match[1];
} else if (engineUserAgent) {
match = engineUserAgent.match(/Edge\/(\d+)/);
if (!match || match[1] >= 74) {
match = engineUserAgent.match(/Chrome\/(\d+)/);
if (match) version = match[1];
}
}
var engineV8Version = version && +version;
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
// Chrome 38 Symbol has incorrect toString conversion
// eslint-disable-next-line no-undef
return !String(Symbol());
// eslint-disable-next-line es/no-symbol -- required for testing
return !Symbol.sham &&
// Chrome 38 Symbol has incorrect toString conversion
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
(engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41);
});
/* eslint-disable es/no-symbol -- required for testing */
var useSymbolAsUid = nativeSymbol
// eslint-disable-next-line no-undef
&& !Symbol.sham
// eslint-disable-next-line no-undef
&& typeof Symbol.iterator == 'symbol';

@@ -659,5 +702,8 @@

var wellKnownSymbol = function (name) {
if (!has(WellKnownSymbolsStore, name)) {
if (nativeSymbol && has(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name];
else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
if (!has(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
if (nativeSymbol && has(Symbol$1, name)) {
WellKnownSymbolsStore[name] = Symbol$1[name];
} else {
WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
}
} return WellKnownSymbolsStore[name];

@@ -667,3 +713,4 @@ };

// `Object.defineProperties` method
// https://tc39.github.io/ecma262/#sec-object.defineproperties
// https://tc39.es/ecma262/#sec-object.defineproperties
// eslint-disable-next-line es/no-object-defineproperties -- safe
var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {

@@ -727,3 +774,3 @@ anObject(O);

try {
/* global ActiveXObject */
/* global ActiveXObject -- old IE */
activeXDocument = document.domain && new ActiveXObject('htmlfile');

@@ -740,3 +787,3 @@ } catch (error) { /* ignore */ }

// `Object.create` method
// https://tc39.github.io/ecma262/#sec-object.create
// https://tc39.es/ecma262/#sec-object.create
var objectCreate = Object.create || function create(O, Properties) {

@@ -758,3 +805,3 @@ var result;

// Array.prototype[@@unscopables]
// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
if (ArrayPrototype[UNSCOPABLES] == undefined) {

@@ -772,35 +819,8 @@ objectDefineProperty.f(ArrayPrototype, UNSCOPABLES, {

var defineProperty = Object.defineProperty;
var cache = {};
var thrower = function (it) { throw it; };
var arrayMethodUsesToLength = function (METHOD_NAME, options) {
if (has(cache, METHOD_NAME)) return cache[METHOD_NAME];
if (!options) options = {};
var method = [][METHOD_NAME];
var ACCESSORS = has(options, 'ACCESSORS') ? options.ACCESSORS : false;
var argument0 = has(options, 0) ? options[0] : thrower;
var argument1 = has(options, 1) ? options[1] : undefined;
return cache[METHOD_NAME] = !!method && !fails(function () {
if (ACCESSORS && !descriptors) return true;
var O = { length: -1 };
if (ACCESSORS) defineProperty(O, 1, { enumerable: true, get: thrower });
else O[1] = 1;
method.call(O, argument0, argument1);
});
};
var $includes = arrayIncludes.includes;
var USES_TO_LENGTH = arrayMethodUsesToLength('indexOf', { ACCESSORS: true, 1: 0 });
// `Array.prototype.includes` method
// https://tc39.github.io/ecma262/#sec-array.prototype.includes
_export({ target: 'Array', proto: true, forced: !USES_TO_LENGTH }, {
// https://tc39.es/ecma262/#sec-array.prototype.includes
_export({ target: 'Array', proto: true }, {
includes: function includes(el /* , fromIndex = 0 */) {

@@ -811,3 +831,3 @@ return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);

// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
addToUnscopables('includes');

@@ -814,0 +834,0 @@

{
"name": "@contentful/rich-text-react-renderer",
"version": "14.1.2",
"version": "14.1.3",
"main": "dist/rich-text-react-renderer.es5.js",

@@ -30,4 +30,4 @@ "typings": "dist/types/index.d.ts",

"peerDependencies": {
"react": "^16.8.6",
"react-dom": "^16.8.6"
"react": "^16.8.6 || ^17.0.0",
"react-dom": "^16.8.6 || ^17.0.0"
},

@@ -51,3 +51,3 @@ "devDependencies": {

},
"gitHead": "35fb04f51d386d6b093f289f289de56312cefa82"
"gitHead": "6d28c01aed4c960b8281c1e1456a5fb372dde72b"
}

Sorry, the diff of this file is not supported yet

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