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

json-dry

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-dry - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

4

CHANGELOG.md

@@ -0,1 +1,5 @@

## 2.0.2 (2023-10-05)
* Add `BigInt` support
## 2.0.1 (2023-01-23)

@@ -2,0 +6,0 @@

@@ -276,3 +276,3 @@ "use strict";

* @since 2.0.0
* @version 2.0.1
* @version 2.0.2
*

@@ -316,2 +316,4 @@ * @param {Object} holder The object that holds the value

return new EscapedObjectValue(holder, key, value.value, parent, this);
} else if (dry_type === 'bigint') {
return new BigIntValue(holder, key, value, parent, this);
} else {

@@ -335,3 +337,3 @@ result = new UnknownUndrierValue(holder, key, value, parent, this);

* @since 2.0.0
* @version 2.0.1
* @version 2.0.2
*

@@ -362,2 +364,5 @@ * @param {Object} holder The object that holds the value

return new NumberValue(holder, key, value, parent, this);
case 'bigint':
return new BigIntValue(holder, key, value, parent, this);

@@ -781,2 +786,19 @@ default:

/**
* Represent a BigInt value
*
* @author Jelle De Loecker <jelle@elevenways.be>
* @since 2.0.2
* @version 2.0.2
*/
class BigIntValue extends Value {
driedValue() {
return {dry: 'bigint', value: '' + this.value};
}
initialRevive(value) {
return BigInt(value.value);
}
}
/**
* Represent a regexp value

@@ -783,0 +805,0 @@ * (For undrying)

2

package.json
{
"name": "json-dry",
"description": "Don't repeat yourself, JSON: Add support for (circular) references, class instances, ...",
"version": "2.0.1",
"version": "2.0.2",
"author": "Jelle De Loecker <jelle@elevenways.be>",

@@ -6,0 +6,0 @@ "keywords": [

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