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 0.0.3 to 0.0.5

4

dist/types/module.d.ts

@@ -1,4 +0,4 @@

import { Merger, Options } from './type';
export declare function baseMerger<A extends Record<string, any>, B extends Record<string, any>>(options: Options, target: A, ...sources: B[]): A & B;
import { Merger, MergerResult, Options } from './type';
export declare function baseMerger<A extends Record<string, any>, B extends Record<string, any>>(options: Options, target: A, ...sources: B[]): MergerResult<A, B>;
export declare function createMerger(input?: Partial<Options>): Merger;
export declare const merge: Merger;

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

export declare type Merger = <A extends Record<string, any>, B extends Record<string, any>>(target: A, ...sources: B[]) => A & B;
export declare type MergerResult<A, B> = A extends B ? B extends A ? A : (A & B) : (A & B);
export declare type Merger = <A extends Record<string, any>, B extends Record<string, any>>(target: A, ...sources: B[]) => MergerResult<A, B>;
export declare type Options = {

@@ -3,0 +4,0 @@ array: boolean;

{
"name": "smob",
"version": "0.0.3",
"version": "0.0.5",
"description": "Zero dependency library to safe merge objects.",

@@ -17,2 +17,3 @@ "main": "dist/index.cjs.js",

"build": "rimraf dist && npm run build:types && npm run build:js",
"commit": "npx git-cz",
"lint": "eslint --ext .js,.ts ./src",

@@ -22,2 +23,3 @@ "lint:fix": "npm run lint -- --fix",

"test:coverage": "npm run test -- --coverage",
"prepare": "npx husky install",
"prepublishOnly": "npm run build"

@@ -47,22 +49,37 @@ },

"devDependencies": {
"@babel/core": "^7.18.10",
"@babel/core": "^7.19.3",
"@babel/plugin-proposal-class-properties": "7.18.6",
"@babel/plugin-proposal-object-rest-spread": "7.18.9",
"@babel/preset-env": "^7.18.10",
"@babel/plugin-proposal-object-rest-spread": "7.19.4",
"@babel/preset-env": "^7.19.4",
"@babel/preset-typescript": "^7.18.6",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^22.0.2",
"@rollup/plugin-node-resolve": "^13.3.0",
"@tada5hi/eslint-config-typescript": "^1.0.7",
"@commitlint/cli": "^17.1.2",
"@commitlint/config-angular": "^17.1.0",
"@commitlint/config-conventional": "^17.1.0",
"@commitlint/cz-commitlint": "^17.1.2",
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/commit-analyzer": "^9.0.2",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^8.0.6",
"@semantic-release/npm": "^9.0.1",
"@semantic-release/release-notes-generator": "^10.0.3",
"@rollup/plugin-babel": "^6.0.0",
"@rollup/plugin-commonjs": "^23.0.0",
"@rollup/plugin-node-resolve": "^15.0.0",
"@tada5hi/eslint-config-typescript": "^1.0.8",
"@types/jest": "^27.5.0",
"@types/node": "^18.7.17",
"@types/node": "^18.8.5",
"cross-env": "^7.0.3",
"eslint": "^8.23.1",
"eslint": "^8.25.0",
"husky": "^8.0.1",
"jest": "^27.5.1",
"np": "^7.6.2",
"rollup": "^2.78.1",
"rollup": "^2.79.1",
"rollup-plugin-terser": "^7.0.2",
"ts-jest": "^27.1.4",
"typescript": "^4.8.3"
"typescript": "^4.8.4"
},
"config": {
"commitizen": {
"path": "@commitlint/cz-commitlint"
}
}
}

@@ -6,2 +6,4 @@ # SMOB 🧪

[![codecov](https://codecov.io/gh/tada5hi/smob/branch/master/graph/badge.svg?token=0VL41WO0CG)](https://codecov.io/gh/tada5hi/smob)
[![Known Vulnerabilities](https://snyk.io/test/github/Tada5hi/smob/badge.svg?targetFile=package.json)](https://snyk.io/test/github/Tada5hi/smob?targetFile=package.json)
[![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release)

@@ -15,2 +17,3 @@ Zero dependency library to **s**afe **m**erge **ob**jects.

- [Merger](#merger)
- [License](#license)

@@ -108,1 +111,7 @@ ## Installation

Return **undefined** if the default merge behaviour should be used for the current target source pair.
## License
Made with 💚
Published under [MIT License](./LICENSE).

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