Socket
Socket
Sign inDemoInstall

@rimbu/sorted

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rimbu/sorted - npm Package Compare versions

Comparing version 0.9.10 to 0.9.11

4

dist/main/map-custom/implementation/context.js

@@ -20,3 +20,3 @@ "use strict";

_this.minEntries = _this.maxEntries >>> 1;
_this._empty = new map_custom_2.SortedMapEmpty(_this);
_this._empty = Object.freeze(new map_custom_2.SortedMapEmpty(_this));
return _this;

@@ -69,5 +69,5 @@ }

var _a, _b;
return new SortedMapContext((_a = options === null || options === void 0 ? void 0 : options.blockSizeBits) !== null && _a !== void 0 ? _a : 5, (_b = options === null || options === void 0 ? void 0 : options.comp) !== null && _b !== void 0 ? _b : common_1.Comp.defaultComp());
return Object.freeze(new SortedMapContext((_a = options === null || options === void 0 ? void 0 : options.blockSizeBits) !== null && _a !== void 0 ? _a : 5, (_b = options === null || options === void 0 ? void 0 : options.comp) !== null && _b !== void 0 ? _b : common_1.Comp.defaultComp()));
}
exports.createSortedMapContext = createSortedMapContext;
//# sourceMappingURL=context.js.map

@@ -7,5 +7,5 @@ "use strict";

var _defaultContext = (0, map_custom_1.createSortedMapContext)();
exports.SortedMap = tslib_1.__assign(tslib_1.__assign({}, _defaultContext), { createContext: map_custom_1.createSortedMapContext, defaultContext: function () {
exports.SortedMap = Object.freeze(tslib_1.__assign(tslib_1.__assign({}, _defaultContext), { createContext: map_custom_1.createSortedMapContext, defaultContext: function () {
return _defaultContext;
} });
} }));
//# sourceMappingURL=index.js.map

@@ -20,3 +20,3 @@ "use strict";

_this.minEntries = _this.maxEntries >>> 1;
_this._empty = new set_custom_2.SortedSetEmpty(_this);
_this._empty = Object.freeze(new set_custom_2.SortedSetEmpty(_this));
return _this;

@@ -72,5 +72,5 @@ }

var _a, _b;
return new SortedSetContext((_a = options === null || options === void 0 ? void 0 : options.blockSizeBits) !== null && _a !== void 0 ? _a : 5, (_b = options === null || options === void 0 ? void 0 : options.comp) !== null && _b !== void 0 ? _b : common_1.Comp.defaultComp());
return Object.freeze(new SortedSetContext((_a = options === null || options === void 0 ? void 0 : options.blockSizeBits) !== null && _a !== void 0 ? _a : 5, (_b = options === null || options === void 0 ? void 0 : options.comp) !== null && _b !== void 0 ? _b : common_1.Comp.defaultComp()));
}
exports.createSortedSetContext = createSortedSetContext;
//# sourceMappingURL=context.js.map

@@ -7,5 +7,5 @@ "use strict";

var _defaultContext = (0, set_custom_1.createSortedSetContext)();
exports.SortedSet = tslib_1.__assign(tslib_1.__assign({}, _defaultContext), { createContext: set_custom_1.createSortedSetContext, defaultContext: function () {
exports.SortedSet = Object.freeze(tslib_1.__assign(tslib_1.__assign({}, _defaultContext), { createContext: set_custom_1.createSortedSetContext, defaultContext: function () {
return _defaultContext;
} });
} }));
//# sourceMappingURL=index.js.map

@@ -15,3 +15,3 @@ import { RMapBase } from '@rimbu/collection-types/map-custom';

this.minEntries = this.maxEntries >>> 1;
this._empty = new SortedMapEmpty(this);
this._empty = Object.freeze(new SortedMapEmpty(this));
}

@@ -61,4 +61,4 @@ isNonEmptyInstance(source) {

var _a, _b;
return new SortedMapContext((_a = options === null || options === void 0 ? void 0 : options.blockSizeBits) !== null && _a !== void 0 ? _a : 5, (_b = options === null || options === void 0 ? void 0 : options.comp) !== null && _b !== void 0 ? _b : Comp.defaultComp());
return Object.freeze(new SortedMapContext((_a = options === null || options === void 0 ? void 0 : options.blockSizeBits) !== null && _a !== void 0 ? _a : 5, (_b = options === null || options === void 0 ? void 0 : options.comp) !== null && _b !== void 0 ? _b : Comp.defaultComp()));
}
//# sourceMappingURL=context.js.map
import { createSortedMapContext } from '@rimbu/sorted/map-custom';
const _defaultContext = createSortedMapContext();
export const SortedMap = Object.assign(Object.assign({}, _defaultContext), { createContext: createSortedMapContext, defaultContext() {
export const SortedMap = Object.freeze(Object.assign(Object.assign({}, _defaultContext), { createContext: createSortedMapContext, defaultContext() {
return _defaultContext;
} });
} }));
//# sourceMappingURL=index.js.map

@@ -15,3 +15,3 @@ import { RSetBase } from '@rimbu/collection-types/set-custom';

this.minEntries = this.maxEntries >>> 1;
this._empty = new SortedSetEmpty(this);
this._empty = Object.freeze(new SortedSetEmpty(this));
}

@@ -64,4 +64,4 @@ isNonEmptyInstance(source) {

var _a, _b;
return new SortedSetContext((_a = options === null || options === void 0 ? void 0 : options.blockSizeBits) !== null && _a !== void 0 ? _a : 5, (_b = options === null || options === void 0 ? void 0 : options.comp) !== null && _b !== void 0 ? _b : Comp.defaultComp());
return Object.freeze(new SortedSetContext((_a = options === null || options === void 0 ? void 0 : options.blockSizeBits) !== null && _a !== void 0 ? _a : 5, (_b = options === null || options === void 0 ? void 0 : options.comp) !== null && _b !== void 0 ? _b : Comp.defaultComp()));
}
//# sourceMappingURL=context.js.map
import { createSortedSetContext } from '@rimbu/sorted/set-custom';
const _defaultContext = createSortedSetContext();
export const SortedSet = Object.assign(Object.assign({}, _defaultContext), { createContext: createSortedSetContext, defaultContext() {
export const SortedSet = Object.freeze(Object.assign(Object.assign({}, _defaultContext), { createContext: createSortedSetContext, defaultContext() {
return _defaultContext;
} });
} }));
//# sourceMappingURL=index.js.map

@@ -14,3 +14,3 @@ import { RMapBase } from '@rimbu/collection-types/map-custom';

isNonEmptyInstance(source: any): source is any;
builder: <K extends UK, V>() => SortedMapBuilder<K, V>;
readonly builder: <K extends UK, V>() => SortedMapBuilder<K, V>;
createBuilder<K extends UK, V>(source?: SortedMap<K, V>): SortedMapBuilder<K, V>;

@@ -17,0 +17,0 @@ isValidKey(key: any): key is UK;

@@ -15,3 +15,3 @@ import { RSetBase } from '@rimbu/collection-types/set-custom';

isValidValue(value: any): value is UT;
builder: <T extends UT>() => SortedSetBuilder<T>;
readonly builder: <T extends UT>() => SortedSetBuilder<T>;
createBuilder<T extends UT>(source?: SortedSet<T>): SortedSetBuilder<T>;

@@ -18,0 +18,0 @@ findIndex(value: UT, entries: readonly UT[]): number;

{
"name": "@rimbu/sorted",
"version": "0.9.10",
"version": "0.9.11",
"description": "Immutable SortedMap and SortedSet implementations for TypeScript",

@@ -72,6 +72,6 @@ "keywords": [

"dependencies": {
"@rimbu/base": "^0.8.2",
"@rimbu/collection-types": "^0.9.10",
"@rimbu/common": "^0.9.2",
"@rimbu/stream": "^0.10.10",
"@rimbu/base": "^0.9.0",
"@rimbu/collection-types": "^0.9.11",
"@rimbu/common": "^0.9.3",
"@rimbu/stream": "^0.10.11",
"tslib": "^2.4.0"

@@ -86,3 +86,3 @@ },

},
"gitHead": "33dd7ca935f19f513586834a2ce1b1f886352ae7"
"gitHead": "4efaf8c469d606381517984436383fd6b1b61ec0"
}

@@ -29,3 +29,3 @@ import { RMapBase } from '@rimbu/collection-types/map-custom';

this._empty = new SortedMapEmpty<any, any>(this);
this._empty = Object.freeze(new SortedMapEmpty<any, any>(this));
}

@@ -39,3 +39,3 @@

builder = <K extends UK, V>(): SortedMapBuilder<K, V> => {
readonly builder = <K extends UK, V>(): SortedMapBuilder<K, V> => {
return new SortedMapBuilder(this as any);

@@ -100,6 +100,8 @@ };

}): SortedMap.Context<UK> {
return new SortedMapContext<UK>(
options?.blockSizeBits ?? 5,
options?.comp ?? Comp.defaultComp()
return Object.freeze(
new SortedMapContext<UK>(
options?.blockSizeBits ?? 5,
options?.comp ?? Comp.defaultComp()
)
);
}

@@ -475,3 +475,3 @@ import type { RMapBase } from '@rimbu/collection-types/map-custom';

export const SortedMap: SortedMapCreators = {
export const SortedMap: SortedMapCreators = Object.freeze({
..._defaultContext,

@@ -482,2 +482,2 @@ createContext: createSortedMapContext,

},
};
});

@@ -29,3 +29,3 @@ import { RSetBase } from '@rimbu/collection-types/set-custom';

this._empty = new SortedSetEmpty<any>(this);
this._empty = Object.freeze(new SortedSetEmpty<any>(this));
}

@@ -43,3 +43,3 @@

builder = <T extends UT>(): SortedSetBuilder<T> => {
readonly builder = <T extends UT>(): SortedSetBuilder<T> => {
return new SortedSetBuilder(this as unknown as SortedSetContext<T>);

@@ -106,6 +106,8 @@ };

}): SortedSet.Context<UT> {
return new SortedSetContext<UT>(
options?.blockSizeBits ?? 5,
options?.comp ?? Comp.defaultComp()
return Object.freeze(
new SortedSetContext<UT>(
options?.blockSizeBits ?? 5,
options?.comp ?? Comp.defaultComp()
)
);
}

@@ -298,3 +298,3 @@ import type { RSet } from '@rimbu/collection-types/set';

export const SortedSet: SortedSetCreators = {
export const SortedSet: SortedSetCreators = Object.freeze({
..._defaultContext,

@@ -305,2 +305,2 @@ createContext: createSortedSetContext,

},
};
});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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