Socket
Socket
Sign inDemoInstall

@effect/data

Package Overview
Dependencies
Maintainers
3
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@effect/data - npm Package Compare versions

Comparing version 0.12.4 to 0.12.5

2

package.json
{
"name": "@effect/data",
"version": "0.12.4",
"version": "0.12.5",
"license": "MIT",

@@ -5,0 +5,0 @@ "repository": {

@@ -125,4 +125,4 @@ /**

export declare const collect: {
<K extends string, A, B>(f: (key: K, a: A) => B): (self: Readonly<Record<K, A>>) => Array<B>;
<K extends string, A, B>(self: Readonly<Record<K, A>>, f: (key: string, a: A) => B): Array<B>;
<K extends string, A, B>(f: (key: K, a: A) => B): (self: Record<K, A>) => Array<B>;
<K extends string, A, B>(self: Record<K, A>, f: (key: string, a: A) => B): Array<B>;
};

@@ -143,3 +143,3 @@ /**

*/
export declare const toEntries: <K extends string, A>(self: Readonly<Record<K, A>>) => Array<[K, A]>;
export declare const toEntries: <K extends string, A>(self: Record<K, A>) => Array<[K, A]>;
/**

@@ -161,3 +161,3 @@ * Takes a record and returns an array of tuples containing its keys and values.

*/
export declare const toArray: <K extends string, A>(self: Readonly<Record<K, A>>) => Array<[K, A]>;
export declare const toArray: <K extends string, A>(self: Record<K, A>) => Array<[K, A]>;
/**

@@ -326,4 +326,4 @@ * Returns the number of key/value pairs in a `ReadonlyRecord`.

export declare const map: {
<K extends string, A, B>(f: (a: A, key: K) => B): (self: Readonly<Record<K, A>>) => Record<K, B>;
<K extends string, A, B>(self: Readonly<Record<K, A>>, f: (a: A, key: K) => B): Record<K, B>;
<K extends string, A, B>(f: (a: A, key: K) => B): (self: Record<K, A>) => Record<K, B>;
<K extends string, A, B>(self: Record<K, A>, f: (a: A, key: K) => B): Record<K, B>;
};

@@ -330,0 +330,0 @@ /**

@@ -167,4 +167,4 @@ /**

export const collect: {
<K extends string, A, B>(f: (key: K, a: A) => B): (self: Readonly<Record<K, A>>) => Array<B>
<K extends string, A, B>(self: Readonly<Record<K, A>>, f: (key: string, a: A) => B): Array<B>
<K extends string, A, B>(f: (key: K, a: A) => B): (self: Record<K, A>) => Array<B>
<K extends string, A, B>(self: Record<K, A>, f: (key: string, a: A) => B): Array<B>
} = dual(

@@ -195,3 +195,3 @@ 2,

*/
export const toEntries: <K extends string, A>(self: Readonly<Record<K, A>>) => Array<[K, A]> = collect((
export const toEntries: <K extends string, A>(self: Record<K, A>) => Array<[K, A]> = collect((
key,

@@ -217,3 +217,3 @@ value

*/
export const toArray: <K extends string, A>(self: Readonly<Record<K, A>>) => Array<[K, A]> = toEntries
export const toArray: <K extends string, A>(self: Record<K, A>) => Array<[K, A]> = toEntries

@@ -420,4 +420,4 @@ // -------------------------------------------------------------------------------------

export const map: {
<K extends string, A, B>(f: (a: A, key: K) => B): (self: Readonly<Record<K, A>>) => Record<K, B>
<K extends string, A, B>(self: Readonly<Record<K, A>>, f: (a: A, key: K) => B): Record<K, B>
<K extends string, A, B>(f: (a: A, key: K) => B): (self: Record<K, A>) => Record<K, B>
<K extends string, A, B>(self: Record<K, A>, f: (a: A, key: K) => B): Record<K, B>
} = dual(

@@ -424,0 +424,0 @@ 2,

@@ -200,3 +200,3 @@ /**

if (Object.prototype.hasOwnProperty.call(obj, k)) {
// @ts-ignore
// @ts-expect-error
out[k] = t[k](obj[k])

@@ -203,0 +203,0 @@ }

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

if (Object.prototype.hasOwnProperty.call(obj, k)) {
// @ts-ignore
// @ts-expect-error
out[k] = t[k](obj[k]);

@@ -178,0 +178,0 @@ }

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