New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

morphism

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

morphism - npm Package Compare versions

Comparing version 1.12.2 to 1.12.3

10

dist/types/types.d.ts

@@ -1,2 +0,2 @@

import { SCHEMA_OPTIONS_SYMBOL, SchemaOptions } from './morphism';
import { SCHEMA_OPTIONS_SYMBOL, SchemaOptions } from "./morphism";
/**

@@ -36,3 +36,3 @@ * A structure-preserving object from a source data towards a target data.

(iteratee: Source, source: Source[], target: Target[destinationProperty]): Target[destinationProperty];
} | ActionAggregator<Source> | ActionSelector<Source, Target> | StrictSchema<Target[destinationProperty], Source>;
} | ActionAggregator<Source> | ActionSelector<Source, Target, destinationProperty> | StrictSchema<Target[destinationProperty], Source>;
} & {

@@ -44,3 +44,3 @@ [SCHEMA_OPTIONS_SYMBOL]?: SchemaOptions<Target>;

(iteratee: Source, source: Source[], target: Target[destinationProperty]): Target[destinationProperty];
} | ActionAggregator<Source> | ActionSelector<Source, Target> | Schema<Target[destinationProperty], Source>;
} | ActionAggregator<Source> | ActionSelector<Source, Target, destinationProperty> | Schema<Target[destinationProperty], Source>;
} & {

@@ -153,5 +153,5 @@ [SCHEMA_OPTIONS_SYMBOL]?: SchemaOptions<Target | any>;

*/
export interface ActionSelector<Source = object, R = any> {
export interface ActionSelector<Source = object, Target = any, TargetProperty extends keyof Target = any> {
path: ActionString<Source> | ActionAggregator<Source>;
fn: (fieldValue: any, object: Source, items: Source, objectToCompute: R) => R;
fn: (fieldValue: any, object: Source, items: Source, objectToCompute: Target) => Target[TargetProperty];
}

@@ -158,0 +158,0 @@ export interface Constructable<T> {

{
"name": "morphism",
"version": "1.12.2",
"version": "1.12.3",
"description": "Do not repeat anymore your objects transformations.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/nobrainr/morphism",

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