Socket
Socket
Sign inDemoInstall

simple-update-in

Package Overview
Dependencies
0
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous123567Next

1.4.0

Diff

Changelog

Source

[1.4.0] - 2018-10-08

Changed

  • Add default exports for CommonJS
  • Bump
    • @babel/core@7.1.2
    • merge@1.2.1 (via npm audit fix)
    • jest@23.6.0
compulim
published 1.4.0-master.615065c •

compulim
published 1.4.0-0 •

compulim
published 1.3.2-master.62c7b4d •

compulim
published 1.3.1 •

Changelog

Source

[1.3.1] - 2018-10-05

Fixed

  • Using a predicate on a non-existing key/index should not throw error and return the original value as-is
    • updateIn({}, ['Hello', () => true], () => 'World!']) will return {}
    • updateIn([], [0, () => true], () => 'Aloha']) will return []
compulim
published 1.3.1-master.f84f35c •

compulim
published 1.3.1-master.023101b •

compulim
published 1.3.0 •

Changelog

Source

[1.3.0] - 2018-08-17

Added

  • Support predicate function
    • updateIn([1, 2, 3, 4, 5], [v => v % 2], v => v * 10) will return [10, 2, 30, 4, 50]
    • Predicate function can be used as branching function to update multiple subtrees in a single call
compulim
published 1.2.1-master.730f2f4 •

compulim
published 1.2.1-master.b143fb6 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc