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

smob

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smob - npm Package Compare versions

Comparing version 1.3.0-alpha.1 to 1.3.0-alpha.2

dist/utils/clone.d.ts

26

dist/type.d.ts

@@ -8,7 +8,29 @@ import type { PriorityName } from './constants';

export type Options = {
/**
* Merge array object attributes?
*/
array: boolean;
/**
* Remove duplicates in array.
*/
arrayDistinct: boolean;
/**
* Strategy to merge different object keys.
*
* @param target
* @param key
* @param value
*/
strategy?: (target: Record<string, any>, key: string, value: unknown) => Record<string, any> | undefined;
modifyTarget?: boolean;
cloneSource?: boolean;
/**
* Merge sources in place.
*/
inPlace?: boolean;
/**
* Deep clone input arrays/objects.
*/
clone?: boolean;
/**
* Merge sources from left-right or left-right.
*/
priority: `${PriorityName}`;

@@ -15,0 +37,0 @@ };

export * from './array';
export * from './check';
export * from './clone';
export * from './cut';
export * from './has-own-property';
export * from './options';

2

package.json
{
"name": "smob",
"version": "1.3.0-alpha.1",
"version": "1.3.0-alpha.2",
"description": "Zero dependency library to safe merge objects.",

@@ -5,0 +5,0 @@ "main": "dist/index.cjs",

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