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.1 to 3.2.0

1

esm/data-adapter.d.ts

@@ -19,2 +19,3 @@ declare const defaultEntitiesKey = "byId";

update(context: NormalizedData<T, E, I>, where: string | ((item: T, index: number, id: string) => boolean), what: (item: T, index: number, id: string) => T): NormalizedData<T, E, I>;
toArray(context: NormalizedData<T, E, I>): ReadonlyArray<T>;
};

@@ -21,0 +22,0 @@ declare type ById = {

@@ -93,2 +93,5 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {

}
function toArray(context) {
return fromIds(context[idsKey], context[entitiesKey]);
}
return {

@@ -102,3 +105,4 @@ getId: getId,

update: update,
toArray: toArray,
};
}

@@ -19,2 +19,3 @@ declare const defaultEntitiesKey = "byId";

update(context: NormalizedData<T, E, I>, where: string | ((item: T, index: number, id: string) => boolean), what: (item: T, index: number, id: string) => T): NormalizedData<T, E, I>;
toArray(context: NormalizedData<T, E, I>): ReadonlyArray<T>;
};

@@ -21,0 +22,0 @@ declare type ById = {

@@ -98,2 +98,5 @@ "use strict";

}
function toArray(context) {
return (0, exports.fromIds)(context[idsKey], context[entitiesKey]);
}
return {

@@ -107,4 +110,5 @@ getId: getId,

update: update,
toArray: toArray,
};
}
exports.dataAdapter = dataAdapter;

2

package.json
{
"name": "@dhmk/utils",
"version": "3.1.1",
"version": "3.2.0",
"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