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

simple-cookie

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-cookie - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

2

index.js

@@ -69,3 +69,3 @@ function printExpires(expires){

tokenize: function( array ){
return array.map(function(s){ return s.name+'='+encodeURIComponent(s.value); }).join('; ');
return array.map(function(s){ return s.name+'='+s.value; }).join('; ');
}

@@ -72,0 +72,0 @@ };

{
"name": "simple-cookie",
"version": "1.0.6",
"version": "1.0.7",
"description": "Simple cookie parser & serializer",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -59,2 +59,21 @@

describe('#parseString2',function(){
it('should return the right object from cookie string',function(){
var theCookie = 'cnameSecure=cval1sec=9; expires='+date+
'; domain=.example.com; path=/; secure';
var h = cookie.parse( theCookie, 'example.com', '/is/cool' );
h.name.should.equal( 'cnameSecure' );
h.value.should.equal( 'cval1sec=9' );
h.expires.should.be.a( 'date' );
h.expires.toGMTString().should.equal( date );
h.secure.should.equal( true );
h.httponly.should.equal( false );
h.path.should.equal( '/' );
h.domain.should.equal( '.example.com' );
});
});
describe('#tokeninze',function(){

@@ -61,0 +80,0 @@ it('should return tokenized cookies ready to send', function(){

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