curl-wrap 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +3 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -849,6 +849,9 @@ class Curl {
849
849
  else if (cookieValue === null || cookieValue === false) {
850
850
  delete this._cookies[cookieName];
851
851
  }
852
+ else {
853
+ this._cookies[cookieName] = JSON.stringify(cookieValue);
854
+ }
852
855
  }
853
856
 
854
857
  return this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "curl-wrap",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Nodejs library that wraps curl command line",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",