Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cookieman

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cookieman - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

2

lib/domains.js

@@ -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)
})
})
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc