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

simple-update-in

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-update-in - npm Package Compare versions

Comparing version 2.0.2-0 to 2.0.2-master.004542e

2

CHANGELOG.md

@@ -12,3 +12,3 @@ # Changelog

- Emitting UMD bundle for browser
- `<script src="https://unpkg.com/simple-update-in/latest/dist/simple-update-in.production.min.js"></script>`
- `<script src="https://unpkg.com/simple-update-in/dist/simple-update-in.production.min.js"></script>`
- `<script>window.simpleUpdateIn({ abc: 123, def: 456 }, ['xyz'], () => 789);</script>`

@@ -15,0 +15,0 @@

{
"name": "simple-update-in",
"version": "2.0.2-0",
"version": "2.0.2-master.004542e",
"description": "",

@@ -5,0 +5,0 @@ "browser": "dist/simple-update-in.production.min.js",

@@ -28,2 +28,15 @@ # simple-update-in

Number|
String
)[],
updater?: (value: any) => any
): T
```
Or the asynchronous version, which you can provide an asynchronous predicate or updater:
```js
updateInAsync<T: Array|Map>(
target: T,
path: (
Number|
String|

@@ -33,3 +46,3 @@ (key: (Number|String), value: any) => Promise<Boolean>|Boolean

updater?: (value: any) => Promise<any>|any
): T
): Promise<T>
```

@@ -46,3 +59,3 @@

```html
<script src="https://unpkg.com/simple-update-in/latest/dist/simple-update-in.production.min.js"></script>
<script src="https://unpkg.com/simple-update-in/dist/simple-update-in.production.min.js"></script>
<script>

@@ -49,0 +62,0 @@ window.simpleUpdateIn({ abc: 123, def: 456 }, ['xyz'], () => 789);

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