Framework updates
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
23
node_modules/immutable/dist/immutable.es.js
generated
vendored
23
node_modules/immutable/dist/immutable.es.js
generated
vendored
@@ -2189,6 +2189,10 @@ function isDataStructure(value) {
|
||||
(isImmutable(value) || Array.isArray(value) || isPlainObject(value)));
|
||||
}
|
||||
|
||||
function isProtoKey(key) {
|
||||
return (typeof key === 'string' && (key === '__proto__' || key === 'constructor'));
|
||||
}
|
||||
|
||||
// http://jsperf.com/copy-array-inline
|
||||
function arrCopy(arr, offset) {
|
||||
offset = offset || 0;
|
||||
@@ -2207,6 +2211,9 @@ function shallowCopy(from) {
|
||||
}
|
||||
var to = {};
|
||||
for (var key in from) {
|
||||
if (isProtoKey(key)) {
|
||||
continue;
|
||||
}
|
||||
if (hasOwnProperty.call(from, key)) {
|
||||
to[key] = from[key];
|
||||
}
|
||||
@@ -2271,6 +2278,10 @@ function mergeWithSources(collection, sources, merger) {
|
||||
merged.push(value);
|
||||
}
|
||||
: function (value, key) {
|
||||
if (isProtoKey(key)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var hasVal = hasOwnProperty.call(merged, key);
|
||||
var nextVal =
|
||||
hasVal && merger ? merger(merged[key], value, key) : value;
|
||||
@@ -3258,6 +3269,9 @@ function remove(collection, key) {
|
||||
}
|
||||
|
||||
function set(collection, key, value) {
|
||||
if (typeof key === 'string' && isProtoKey(key)) {
|
||||
return collection;
|
||||
}
|
||||
if (!isDataStructure(collection)) {
|
||||
throw new TypeError('Cannot update non-data-structure value: ' + collection);
|
||||
}
|
||||
@@ -4974,6 +4988,10 @@ function toObject() {
|
||||
assertNotInfinite(this.size);
|
||||
var object = {};
|
||||
this.__iterate(function (v, k) {
|
||||
if (isProtoKey(k)) {
|
||||
return;
|
||||
}
|
||||
|
||||
object[k] = v;
|
||||
});
|
||||
return object;
|
||||
@@ -4994,6 +5012,9 @@ function toJS(value) {
|
||||
var result$1 = {};
|
||||
// @ts-expect-error `__iterate` exists on all Keyed collections but method is not defined in the type
|
||||
value.__iterate(function (v, k) {
|
||||
if (isProtoKey(k)) {
|
||||
return;
|
||||
}
|
||||
result$1[k] = toJS(v);
|
||||
});
|
||||
return result$1;
|
||||
@@ -6170,7 +6191,7 @@ function defaultConverter(k, v) {
|
||||
return isIndexed(v) ? v.toList() : isKeyed(v) ? v.toMap() : v.toSet();
|
||||
}
|
||||
|
||||
var version = "5.1.4";
|
||||
var version = "5.1.5";
|
||||
|
||||
/* eslint-disable import/order */
|
||||
|
||||
|
||||
23
node_modules/immutable/dist/immutable.js
generated
vendored
23
node_modules/immutable/dist/immutable.js
generated
vendored
@@ -2195,6 +2195,10 @@
|
||||
(isImmutable(value) || Array.isArray(value) || isPlainObject(value)));
|
||||
}
|
||||
|
||||
function isProtoKey(key) {
|
||||
return (typeof key === 'string' && (key === '__proto__' || key === 'constructor'));
|
||||
}
|
||||
|
||||
// http://jsperf.com/copy-array-inline
|
||||
function arrCopy(arr, offset) {
|
||||
offset = offset || 0;
|
||||
@@ -2213,6 +2217,9 @@
|
||||
}
|
||||
var to = {};
|
||||
for (var key in from) {
|
||||
if (isProtoKey(key)) {
|
||||
continue;
|
||||
}
|
||||
if (hasOwnProperty.call(from, key)) {
|
||||
to[key] = from[key];
|
||||
}
|
||||
@@ -2277,6 +2284,10 @@
|
||||
merged.push(value);
|
||||
}
|
||||
: function (value, key) {
|
||||
if (isProtoKey(key)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var hasVal = hasOwnProperty.call(merged, key);
|
||||
var nextVal =
|
||||
hasVal && merger ? merger(merged[key], value, key) : value;
|
||||
@@ -3264,6 +3275,9 @@
|
||||
}
|
||||
|
||||
function set(collection, key, value) {
|
||||
if (typeof key === 'string' && isProtoKey(key)) {
|
||||
return collection;
|
||||
}
|
||||
if (!isDataStructure(collection)) {
|
||||
throw new TypeError('Cannot update non-data-structure value: ' + collection);
|
||||
}
|
||||
@@ -4980,6 +4994,10 @@
|
||||
assertNotInfinite(this.size);
|
||||
var object = {};
|
||||
this.__iterate(function (v, k) {
|
||||
if (isProtoKey(k)) {
|
||||
return;
|
||||
}
|
||||
|
||||
object[k] = v;
|
||||
});
|
||||
return object;
|
||||
@@ -5000,6 +5018,9 @@
|
||||
var result$1 = {};
|
||||
// @ts-expect-error `__iterate` exists on all Keyed collections but method is not defined in the type
|
||||
value.__iterate(function (v, k) {
|
||||
if (isProtoKey(k)) {
|
||||
return;
|
||||
}
|
||||
result$1[k] = toJS(v);
|
||||
});
|
||||
return result$1;
|
||||
@@ -6176,7 +6197,7 @@
|
||||
return isIndexed(v) ? v.toList() : isKeyed(v) ? v.toMap() : v.toSet();
|
||||
}
|
||||
|
||||
var version = "5.1.4";
|
||||
var version = "5.1.5";
|
||||
|
||||
/* eslint-disable import/order */
|
||||
|
||||
|
||||
2
node_modules/immutable/dist/immutable.min.js
generated
vendored
2
node_modules/immutable/dist/immutable.min.js
generated
vendored
File diff suppressed because one or more lines are too long
2
node_modules/immutable/package.json
generated
vendored
2
node_modules/immutable/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "immutable",
|
||||
"version": "5.1.4",
|
||||
"version": "5.1.5",
|
||||
"description": "Immutable Data Collections",
|
||||
"license": "MIT",
|
||||
"homepage": "https://immutable-js.com",
|
||||
|
||||
Reference in New Issue
Block a user