Socket
Socket
Sign inDemoInstall

merge-anything

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

merge-anything - npm Package Compare versions

Comparing version 2.2.2 to 2.2.3

6

package.json
{
"name": "merge-anything",
"version": "2.2.2",
"version": "2.2.3",
"description": "Merge objects & other types recursively. A simple & small integration.",

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

"ava": "1.0.0-beta.8",
"copy-anything": "^1.1.0",
"copy-anything": "^1.1.1",
"rollup": "^0.65.2",
"rollup-plugin-typescript2": "^0.17.0",
"rollup-plugin-typescript2": "^0.19.2",
"typescript": "^3.0.3"

@@ -55,0 +55,0 @@ },

@@ -134,3 +134,3 @@ # Merge anything 🥡

However, **there is a really easy solution**. We can just copy the merge result to get rid of any reactivity. For this we can use the [copy-anything](https://github.com/mesqueeb/copy-anything) library. This library makes sure that special class instances do not break, so you can use it without fear of breaking stuff!
However, **there is a really easy solution**. We can just copy the merge result to get rid of any reactivity. For this we can use the [copy-anything](https://github.com/mesqueeb/copy-anything) library. This library also makes sure that _special class instances do not break_, so you can use it without fear of breaking stuff!

@@ -148,5 +148,5 @@ See below how we integrate 'copy-anything':

original.airport.airplane = '🛬'
// `original` and `merged` are not linked anymore!
// `original` and `mergedNotReactive` are not linked anymore!
original.airport.airplane === '🛬' // true
merged.airport.airplane === '🛫' // true
mergedNotReactive.airport.airplane === '🛫' // true
```

@@ -153,0 +153,0 @@

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