New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@orisomething/reconcile-utils

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@orisomething/reconcile-utils

A library that contains a single utility (in the future maybe more) called `reconcile` which merges two data structures, by returning a new data structure that reflects the changes from the new object while preserving references to unchanged parts of the

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

Reconcile Utils

A library that contains a single utility (in the future maybe more) called reconcile which merges two data structures, by returning a new data structure that reflects the changes from the new object while preserving references to unchanged parts of the first object.

Usage

const current = { x: {} };
const next = { x: {}, y: {} };

const result = reconcile(current, next);

result.x === current.x; // -> true

Supported data structures

  • Primitives - boolean, number, bigint, string, symbol, null, and undefined
  • Plain objects
  • Date
  • Set - supporting only values of type primitives
  • Map - supporting only keys of type primitives

Installing

pnpm install @orisomething/reconcile-utils

FAQs

Package last updated on 09 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts