Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit69a4cf2

Browse files
rhodgkinswesleytodd
authored andcommitted
deps: cookie@0.6.0
closes#5404
1 parent4ee853e commit69a4cf2

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

‎History.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
unreleased
2+
==========
3+
4+
* deps: cookie@0.6.0
5+
16
4.18.3 / 2024-02-29
27
==========
38

@@ -6,6 +11,8 @@
611
- Fix strict json error message on Node.js 19+
712
- deps: content-type@~1.0.5
813
- deps: raw-body@2.5.2
14+
* deps: cookie@0.6.0
15+
- Add`partitioned` option
916

1017
4.18.2 / 2022-10-08
1118
===================

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"body-parser":"1.20.2",
3434
"content-disposition":"0.5.4",
3535
"content-type":"~1.0.4",
36-
"cookie":"0.5.0",
36+
"cookie":"0.6.0",
3737
"cookie-signature":"1.0.6",
3838
"debug":"2.6.9",
3939
"depd":"2.0.0",

‎test/res.cookie.js‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,22 @@ describe('res', function(){
8282
})
8383
})
8484

85+
describe('partitioned',function(){
86+
it('should set partitioned',function(done){
87+
varapp=express();
88+
89+
app.use(function(req,res){
90+
res.cookie('name','tobi',{partitioned:true});
91+
res.end();
92+
});
93+
94+
request(app)
95+
.get('/')
96+
.expect('Set-Cookie','name=tobi; Path=/; Partitioned')
97+
.expect(200,done)
98+
})
99+
})
100+
85101
describe('maxAge',function(){
86102
it('should set relative expires',function(done){
87103
varapp=express();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp