tough-cookie 2.2.0 → 2.2.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.
- package/lib/cookie.js +1 -1
- package/package.json +1 -1
package/lib/cookie.js
CHANGED
|
@@ -1265,7 +1265,6 @@ CookieJar.deserialize = function(strOrObj, store, cb) {
|
|
|
1265
1265
|
});
|
|
1266
1266
|
};
|
|
1267
1267
|
|
|
1268
|
-
CookieJar.fromJSON = CookieJar.deserializeSync;
|
|
1269
1268
|
CookieJar.deserializeSync = function(strOrObj, store) {
|
|
1270
1269
|
var serialized = typeof strOrObj === 'string' ?
|
|
1271
1270
|
JSON.parse(strOrObj) : strOrObj;
|
|
@@ -1279,6 +1278,7 @@ CookieJar.deserializeSync = function(strOrObj, store) {
|
|
|
1279
1278
|
jar._importCookiesSync(serialized);
|
|
1280
1279
|
return jar;
|
|
1281
1280
|
};
|
|
1281
|
+
CookieJar.fromJSON = CookieJar.deserializeSync;
|
|
1282
1282
|
|
|
1283
1283
|
CAN_BE_SYNC.push('clone');
|
|
1284
1284
|
CookieJar.prototype.clone = function(newStore, cb) {
|