Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ language: node_js
node_js:
- "4"
- "6"
- "8"
- "10"
- stable
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{
"name" : "client-sessions",
"version" : "0.8.0",
"description" : "secure sessions stored in cookies",
"main" : "lib/client-sessions",
"repository" : {
"type" : "git",
"url" : "https://github.com/mozilla/node-client-sessions"
"name": "client-sessions",
"version": "0.8.0",
"description": "secure sessions stored in cookies",
"main": "lib/client-sessions",
"repository": {
"type": "git",
"url": "https://github.com/mozilla/node-client-sessions"
},
"dependencies" : {
"cookies" : "^0.7.0"
"dependencies": {
"cookies": "^0.8.0"
},
"devDependencies": {
"vows": "0.8.1",
"vows": "0.8.3",
"express": "4.15.2",
"request": "2.81.0"
},
"author" : {
"name" : "Ben Adida",
"email" : "ben@adida.net"
"author": {
"name": "Ben Adida",
"email": "ben@adida.net"
},
"scripts" : {
"scripts": {
"test": "vows --spec"
},
"engines": {
Expand Down
6 changes: 3 additions & 3 deletions test/all-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,7 @@ suite.addBatch({

var browser = createBrowser(app);
browser.get('/bar', {
headers: { 'Cookie': firstHijack + '; ' + secondHijack }
headers: { 'Cookie': firstHijack + '; ' + secondHijack }
}, function(res, $){
browser.done();
});
Expand Down Expand Up @@ -1296,7 +1296,7 @@ suite.addBatch({
secret: 'yo',
activeDuration: 0,
cookie: {
sameSite: 'lax'
sameSite: 'none'
}
}));

Expand All @@ -1312,7 +1312,7 @@ suite.addBatch({
});
},
"has samesite attribute": function(err, res) {
assert.match(res.headers['set-cookie'][0], /samesite=lax/, "cookie uses samesite");
assert.match(res.headers['set-cookie'][0], /samesite=none/, "cookie uses samesite");
}
}
});
Expand Down