tough-cookie 5.1.1 → 5.1.2

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.
@@ -74,7 +74,7 @@ function domainMatch(domain, cookieDomain, canonicalize) {
74
74
  }
75
75
  /* " o All of the following [three] conditions hold:" */
76
76
  /* "* The domain string is a suffix of the string" */
77
- const idx = _str.lastIndexOf(cookieDomain);
77
+ const idx = _str.lastIndexOf(_domStr);
78
78
  if (idx <= 0) {
79
79
  return false; // it's a non-match (-1) or prefix (0)
80
80
  }
package/dist/version.d.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  * The version of `tough-cookie`
3
3
  * @public
4
4
  */
5
- export declare const version = "5.1.1";
5
+ export declare const version = "5.1.2";
package/dist/version.js CHANGED
@@ -5,4 +5,4 @@ exports.version = void 0;
5
5
  * The version of `tough-cookie`
6
6
  * @public
7
7
  */
8
- exports.version = '5.1.1';
8
+ exports.version = '5.1.2';
package/package.json CHANGED
@@ -75,7 +75,7 @@
75
75
  "RFC6265",
76
76
  "RFC2965"
77
77
  ],
78
- "version": "5.1.1",
78
+ "version": "5.1.2",
79
79
  "homepage": "https://github.com/salesforce/tough-cookie",
80
80
  "repository": {
81
81
  "type": "git",