Socket
Socket
Sign inDemoInstall

immutable

Package Overview
Dependencies
0
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.0-beta.4 to 5.0.0-beta.5

3

dist/es/Collection.js
/**
* @license
* MIT License

@@ -24,3 +25,3 @@ *

*/
import { Seq, IndexedSeq, KeyedSeq, SetSeq } from './Seq.js';
import { Seq, KeyedSeq, IndexedSeq, SetSeq } from './Seq.js';
import { isCollection } from './predicates/isCollection.js';

@@ -27,0 +28,0 @@ import { isKeyed } from './predicates/isKeyed.js';

/**
* @license
* MIT License

@@ -25,8 +26,7 @@ *

import { Collection, KeyedCollection, IndexedCollection, SetCollection } from './Collection.js';
export { Collection } from './Collection.js';
import { isCollection, IS_COLLECTION_SYMBOL } from './predicates/isCollection.js';
import { IS_COLLECTION_SYMBOL, isCollection } from './predicates/isCollection.js';
import { isAssociative } from './predicates/isAssociative.js';
import { isKeyed, IS_KEYED_SYMBOL } from './predicates/isKeyed.js';
import { isIndexed, IS_INDEXED_SYMBOL } from './predicates/isIndexed.js';
import { isOrdered, IS_ORDERED_SYMBOL } from './predicates/isOrdered.js';
import { IS_ORDERED_SYMBOL, isOrdered } from './predicates/isOrdered.js';
import { is } from './is.js';

@@ -36,3 +36,3 @@ import { ensureSize, returnTrue, NOT_SET, resolveBegin, wrapIndex } from './TrieUtils.js';

import { imul, smi } from './Math.js';
import { Iterator, ITERATE_ENTRIES, ITERATE_KEYS, ITERATE_VALUES, ITERATOR_SYMBOL } from './Iterator.js';
import { ITERATE_ENTRIES, ITERATE_KEYS, ITERATE_VALUES, ITERATOR_SYMBOL, Iterator } from './Iterator.js';
import arrCopy from './utils/arrCopy.js';

@@ -51,3 +51,3 @@ import assertNotInfinite from './utils/assertNotInfinite.js';

import { Range } from './Range.js';
import { ArraySeq, KeyedSeq, IndexedSeq, SetSeq } from './Seq.js';
import { ArraySeq, IndexedSeq, KeyedSeq, SetSeq } from './Seq.js';
import { ToIndexedSequence, ToKeyedSequence, ToSetSequence, reify, concatFactory, filterFactory, partitionFactory, mapFactory, reverseFactory, sliceFactory, sortFactory, countByFactory, flatMapFactory, flattenFactory, FromEntriesSequence, groupByFactory, maxFactory, skipWhileFactory, takeWhileFactory, flipFactory, interposeFactory, zipWithFactory } from './Operations.js';

@@ -784,2 +784,2 @@ import { getIn } from './methods/getIn.js';

export { CollectionPrototype, IndexedCollectionPrototype };
export { Collection, CollectionPrototype, IndexedCollectionPrototype };
/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -68,3 +69,2 @@ *

import { Collection } from './Collection.js';
export { Collection } from './Collection.js';

@@ -74,2 +74,2 @@ // Note: Iterable is deprecated

export { Iterable };
export { Collection, Iterable };
/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -24,3 +25,3 @@ *

*/
import { wrapIndex, MASK, SHIFT, wholeSlice, DELETE, SIZE, SetRef, OwnerID, MakeRef, resolveEnd, resolveBegin } from './TrieUtils.js';
import { wrapIndex, MASK, SHIFT, wholeSlice, DELETE, SetRef, OwnerID, SIZE, MakeRef, resolveEnd, resolveBegin } from './TrieUtils.js';
import { isList, IS_LIST_SYMBOL } from './predicates/isList.js';

@@ -27,0 +28,0 @@ import { IndexedCollection } from './Collection.js';

/**
* @license
* MIT License

@@ -30,3 +31,3 @@ *

import { hash } from './Hash.js';
import { iteratorValue, iteratorDone, Iterator } from './Iterator.js';
import { iteratorDone, Iterator, iteratorValue } from './Iterator.js';
import { sortFactory } from './Operations.js';

@@ -33,0 +34,0 @@ import arrCopy from './utils/arrCopy.js';

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -25,3 +26,3 @@ *

import { ensureSize, NOT_SET, wholeSlice, wrapIndex, resolveBegin, resolveEnd } from './TrieUtils.js';
import { KeyedCollection, IndexedCollection, SetCollection, Collection } from './Collection.js';
import { KeyedCollection, Collection, IndexedCollection, SetCollection } from './Collection.js';
import { isCollection } from './predicates/isCollection.js';

@@ -28,0 +29,0 @@ import { isKeyed } from './predicates/isKeyed.js';

/**
* @license
* MIT License

@@ -27,3 +28,3 @@ *

import { isOrderedMap } from './predicates/isOrderedMap.js';
import { emptyMap, Map } from './Map.js';
import { Map, emptyMap } from './Map.js';
import { emptyList } from './List.js';

@@ -30,0 +31,0 @@ import { DELETE, NOT_SET, SIZE } from './TrieUtils.js';

/**
* @license
* MIT License

@@ -24,3 +25,3 @@ *

*/
import { SetCollection, KeyedCollection } from './Collection.js';
import { KeyedCollection, SetCollection } from './Collection.js';
import { IS_ORDERED_SYMBOL } from './predicates/isOrdered.js';

@@ -27,0 +28,0 @@ import { isOrderedSet } from './predicates/isOrderedSet.js';

/**
* @license
* MIT License

@@ -24,4 +25,4 @@ *

*/
var version = "5.0.0-beta.4";
var version = "5.0.0-beta.5";
export { version };
/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -24,2 +25,3 @@ *

*/
// Note: value is unchanged to not break immutable-devtools.
var IS_COLLECTION_SYMBOL = '@@__IMMUTABLE_ITERABLE__@@';

@@ -26,0 +28,0 @@

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -37,2 +38,4 @@ *

function Range(start, end, step) {
if ( step === void 0 ) step = 1;
if (!(this instanceof Range)) {

@@ -42,7 +45,12 @@ return new Range(start, end, step);

invariant(step !== 0, 'Cannot step a Range by 0');
start = start || 0;
if (end === undefined) {
end = Infinity;
}
step = step === undefined ? 1 : Math.abs(step);
invariant(
start !== undefined,
'You must define a start value when using Range'
);
invariant(
end !== undefined,
'You must define an end value when using Range'
);
step = Math.abs(step);
if (end < start) {

@@ -49,0 +57,0 @@ step = -step;

/**
* @license
* MIT License

@@ -28,3 +29,3 @@ *

import { List } from './List.js';
import { ITERATE_ENTRIES, ITERATOR_SYMBOL } from './Iterator.js';
import { ITERATOR_SYMBOL, ITERATE_ENTRIES } from './Iterator.js';
import { isRecord, IS_RECORD_SYMBOL } from './predicates/isRecord.js';

@@ -31,0 +32,0 @@ import { CollectionPrototype } from './CollectionImpl.js';

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -33,3 +34,3 @@ *

import { IS_ORDERED_SYMBOL } from './predicates/isOrdered.js';
import { Iterator, iteratorDone, iteratorValue, hasIterator, isEntriesIterable, isKeysIterable, getIterator, isIterator } from './Iterator.js';
import { Iterator, iteratorDone, iteratorValue, isEntriesIterable, isKeysIterable, hasIterator, getIterator, isIterator } from './Iterator.js';
import hasOwnProperty from './utils/hasOwnProperty.js';

@@ -36,0 +37,0 @@ import isArrayLike from './utils/isArrayLike.js';

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -3,0 +4,0 @@ *

/**
* @license
* MIT License

@@ -24,2 +25,3 @@ *

*/
// Used for setting prototype methods that IE8 chokes on.
var DELETE = 'delete';

@@ -26,0 +28,0 @@

/**
* @license
* MIT License

@@ -24,2 +25,3 @@ *

*/
// http://jsperf.com/copy-array-inline
function arrCopy(arr, offset) {

@@ -35,2 +37,2 @@ offset = offset || 0;

export default arrCopy;
export { arrCopy as default };
/**
* @license
* MIT License

@@ -33,2 +34,2 @@ *

export default assertNotInfinite;
export { assertNotInfinite as default };
/**
* @license
* MIT License

@@ -39,2 +40,2 @@ *

export default coerceKeyPath;
export { coerceKeyPath as default };
/**
* @license
* MIT License

@@ -98,2 +99,2 @@ *

export default deepEqual;
export { deepEqual as default };
/**
* @license
* MIT License

@@ -26,2 +27,2 @@ *

export default hasOwnProperty;
export { hasOwnProperty as default };
/**
* @license
* MIT License

@@ -28,2 +29,2 @@ *

export default invariant;
export { invariant as default };
/**
* @license
* MIT License

@@ -43,2 +44,2 @@ *

export default isArrayLike;
export { isArrayLike as default };
/**
* @license
* MIT License

@@ -38,2 +39,2 @@ *

export default isDataStructure;
export { isDataStructure as default };
/**
* @license
* MIT License

@@ -51,2 +52,2 @@ *

export default isPlainObject;
export { isPlainObject as default };
/**
* @license
* MIT License

@@ -24,2 +25,5 @@ *

*/
/**
* Contributes additional methods to a constructor
*/
function mixin(ctor, methods) {

@@ -35,2 +39,2 @@ var keyCopier = function (key) {

export default mixin;
export { mixin as default };
/**
* @license
* MIT License

@@ -24,2 +25,5 @@ *

*/
/**
* Converts a value to a string, adding quotes if a string was provided.
*/
function quoteString(value) {

@@ -33,2 +37,2 @@ try {

export default quoteString;
export { quoteString as default };
/**
* @license
* MIT License

@@ -40,2 +41,2 @@ *

export default shallowCopy;
export { shallowCopy as default };
{
"name": "immutable",
"version": "5.0.0-beta.4",
"version": "5.0.0-beta.5",
"description": "Immutable Data Collections",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -5,3 +5,3 @@ # Immutable collections for JavaScript

[Read the docs](https://immutable-js.com) and eat your vegetables.
[Read the docs](https://immutable-js.com/docs/) and eat your vegetables.

@@ -8,0 +8,0 @@ Docs are automatically generated from [README.md][] and [immutable.d.ts][].

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc