@dhmk/utils
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -23,6 +23,6 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||
if (idsKey === void 0) { idsKey = defaultIdsKey; } | ||
function from(dataOrIds, byId) { | ||
function from(dataOrIds, cacheById) { | ||
var _a; | ||
var data = byId ? fromIds(dataOrIds, byId) : dataOrIds; | ||
var ids = byId ? dataOrIds : data.map(getId); | ||
var data = cacheById ? fromIds(dataOrIds, cacheById) : dataOrIds; | ||
var ids = cacheById ? dataOrIds : data.map(getId); | ||
return _a = {}, | ||
@@ -29,0 +29,0 @@ _a[entitiesKey] = byId(data, getId), |
@@ -28,8 +28,8 @@ "use strict"; | ||
if (idsKey === void 0) { idsKey = defaultIdsKey; } | ||
function from(dataOrIds, byId) { | ||
function from(dataOrIds, cacheById) { | ||
var _a; | ||
var data = byId ? (0, exports.fromIds)(dataOrIds, byId) : dataOrIds; | ||
var ids = byId ? dataOrIds : data.map(getId); | ||
var data = cacheById ? (0, exports.fromIds)(dataOrIds, cacheById) : dataOrIds; | ||
var ids = cacheById ? dataOrIds : data.map(getId); | ||
return _a = {}, | ||
_a[entitiesKey] = byId(data, getId), | ||
_a[entitiesKey] = (0, exports.byId)(data, getId), | ||
_a[idsKey] = ids, | ||
@@ -36,0 +36,0 @@ _a; |
{ | ||
"name": "@dhmk/utils", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "A collection of frequently used functions and primitives", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
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
108777