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

@dhmk/utils

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dhmk/utils - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

6

esm/data-adapter.js

@@ -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": [

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