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

safe-flat

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

safe-flat - npm Package Compare versions

Comparing version 2.0.3 to 2.1.0

types/index.d.ts

8

CHANGELOG.md

@@ -0,1 +1,9 @@

# [2.1.0](https://github.com/jessie-codes/safe-flat/compare/2.0.3...2.1.0) (2023-11-30)
### Features
* Adds type definitions to both flatten and unflatten fns. ([4618622](https://github.com/jessie-codes/safe-flat/commit/46186224042b0f7a0dfb8dac37c7dd568bbab632)), closes [#50](https://github.com/jessie-codes/safe-flat/issues/50)
## [2.0.3](https://github.com/jessie-codes/safe-flat/compare/2.0.2...2.0.3) (2023-11-30)

@@ -2,0 +10,0 @@

5

package.json
{
"name": "safe-flat",
"version": "2.0.3",
"version": "2.1.0",
"description": "Safely flatten a nested JavaScript object.",

@@ -52,3 +52,4 @@ "main": "src/index.js",

}
}
},
"types": "types/index.d.ts"
}

4

README.md

@@ -22,3 +22,3 @@ # safe-flat

Flats an object to one level deep. Optionally takes a custom `delimiter`, otherwise uses `.` by default. Circular references within the object will be replaced with `[Circular]`.
Flattens an object to one level deep. Optionally takes a custom `delimiter`, otherwise uses `.` by default. Circular references within the object will be replaced with `[Circular]`.

@@ -70,3 +70,3 @@ ``` javascript

Unflats an object back to its original nested form. Optionally takes a custom `delimiter`, otherwise uses `.` by default. Circular references denoted by `[Circular]` are treated as Strings.
Unflattens an object back to its original nested form. Optionally takes a custom `delimiter`, otherwise uses `.` by default. Circular references denoted by `[Circular]` are treated as Strings.

@@ -73,0 +73,0 @@ ``` javascript

Sorry, the diff of this file is not supported yet

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