tough-cookie 2.3.3 → 2.5.0

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.
@@ -0,0 +1,38 @@
1
+ /*!
2
+ * Copyright (c) 2018, Salesforce.com, Inc.
3
+ * All rights reserved.
4
+ *
5
+ * Redistribution and use in source and binary forms, with or without
6
+ * modification, are permitted provided that the following conditions are met:
7
+ *
8
+ * 1. Redistributions of source code must retain the above copyright notice,
9
+ * this list of conditions and the following disclaimer.
10
+ *
11
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ * this list of conditions and the following disclaimer in the documentation
13
+ * and/or other materials provided with the distribution.
14
+ *
15
+ * 3. Neither the name of Salesforce.com nor the names of its contributors may
16
+ * be used to endorse or promote products derived from this software without
17
+ * specific prior written permission.
18
+ *
19
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
23
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29
+ * POSSIBILITY OF SUCH DAMAGE.
30
+ */
31
+ 'use strict';
32
+ var psl = require('psl');
33
+
34
+ function getPublicSuffix(domain) {
35
+ return psl.get(domain);
36
+ }
37
+
38
+ exports.getPublicSuffix = getPublicSuffix;
package/lib/store.js CHANGED
@@ -66,6 +66,10 @@ Store.prototype.removeCookies = function(domain, path, cb) {
66
66
  throw new Error('removeCookies is not implemented');
67
67
  };
68
68
 
69
+ Store.prototype.removeAllCookies = function(cb) {
70
+ throw new Error('removeAllCookies is not implemented');
71
+ }
72
+
69
73
  Store.prototype.getAllCookies = function(cb) {
70
74
  throw new Error('getAllCookies is not implemented (therefore jar cannot be serialized)');
71
75
  };
package/lib/version.js ADDED
@@ -0,0 +1,2 @@
1
+ // generated by genversion
2
+ module.exports = '2.5.0'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": {
3
3
  "name": "Jeremy Stashewsky",
4
- "email": "jstashewsky@salesforce.com",
4
+ "email": "jstash@gmail.com",
5
5
  "website": "https://github.com/stash"
6
6
  },
7
7
  "contributors": [
@@ -43,7 +43,7 @@
43
43
  "RFC6265",
44
44
  "RFC2965"
45
45
  ],
46
- "version": "2.3.3",
46
+ "version": "2.5.0",
47
47
  "homepage": "https://github.com/salesforce/tough-cookie",
48
48
  "repository": {
49
49
  "type": "git",
@@ -57,18 +57,22 @@
57
57
  "lib"
58
58
  ],
59
59
  "scripts": {
60
- "suffixup": "curl -o public_suffix_list.dat https://publicsuffix.org/list/public_suffix_list.dat && ./generate-pubsuffix.js",
61
- "test": "vows test/*_test.js"
60
+ "version": "genversion lib/version.js && git add lib/version.js",
61
+ "test": "vows test/*_test.js",
62
+ "cover": "nyc --reporter=lcov --reporter=html vows test/*_test.js"
62
63
  },
63
64
  "engines": {
64
65
  "node": ">=0.8"
65
66
  },
66
67
  "devDependencies": {
67
68
  "async": "^1.4.2",
69
+ "genversion": "^2.1.0",
70
+ "nyc": "^11.6.0",
68
71
  "string.prototype.repeat": "^0.2.0",
69
- "vows": "^0.8.1"
72
+ "vows": "^0.8.2"
70
73
  },
71
74
  "dependencies": {
72
- "punycode": "^1.4.1"
75
+ "psl": "^1.1.28",
76
+ "punycode": "^2.1.1"
73
77
  }
74
78
  }