Comparing version 1.2.2 to 1.2.3
@@ -5,3 +5,3 @@ module.exports = function getDomains (domain) { | ||
var fragments = domain.split('.') | ||
for (var i = 0; i < fragments.length - 1; i++) { | ||
for (var i = 0; i < fragments.length; i++) { | ||
fragment = fragments.slice(i, fragments.length).join('.') | ||
@@ -8,0 +8,0 @@ domains.push(fragment, '.' + fragment) |
{ | ||
"name": "cookieman", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"main": "lib/cookieman", | ||
@@ -5,0 +5,0 @@ "dependencies": {}, |
@@ -221,3 +221,3 @@ var cookieman = require('../lib/cookieman') | ||
it('should return metadata about the path and domain of the cleard cookie', function () { | ||
var domain = window.location.hostname === 'localhost' ? null : window.location.hostname | ||
var domain = window.location.hostname | ||
@@ -224,0 +224,0 @@ cookieman.set('flippy', 'magoo', { path: '/cookie' }) |
@@ -21,4 +21,4 @@ var getDomains = require('../lib/domains') | ||
it('should return nothing else', function () { | ||
expect(getDomains('just.keep.coding.com')).to.have.length(7) | ||
expect(getDomains('just.keep.coding.com')).to.have.length(9) | ||
}) | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19755