Comparing version 0.0.5 to 0.0.6
@@ -36,2 +36,8 @@ | ||
var eq_idx = pair.indexOf('=') | ||
// skip things that don't look like key=value | ||
if (eq_idx < 0) { | ||
return; | ||
} | ||
var key = pair.substr(0, eq_idx).trim() | ||
@@ -38,0 +44,0 @@ var val = pair.substr(++eq_idx, pair.length).trim(); |
@@ -5,3 +5,3 @@ { | ||
"description": "cookie parsing and serialization", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
@@ -29,1 +29,5 @@ | ||
}); | ||
test('ignore non values', function() { | ||
assert.deepEqual({ foo: '%1', bar: 'bar' }, cookie.parse('foo=%1;bar=bar;HttpOnly;Secure')); | ||
}); |
Sorry, the diff of this file is not supported yet
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
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
6933
9
0
123
0