File tree Expand file tree Collapse file tree 8 files changed +184
-184
lines changed
web/spec-extension/adapters Expand file tree Collapse file tree 8 files changed +184
-184
lines changed Original file line number Diff line number Diff line change 114
114
"@types/html-validator" : " 5.0.3" ,
115
115
"@types/http-proxy" : " 1.17.3" ,
116
116
"@types/jest" : " 29.5.5" ,
117
- "@types/node" : " 20.12.3 " ,
117
+ "@types/node" : " 20.17.6 " ,
118
118
"@types/node-fetch" : " 2.6.1" ,
119
119
"@types/react" :
" npm:[email protected] " ,
120
120
"@types/react-dom" :
" npm:[email protected] " ,
246
246
"tree-kill" : " 1.2.2" ,
247
247
"tsec" : " 0.2.1" ,
248
248
"turbo" : " 2.1.2" ,
249
- "typescript" : " 5.5 .3" ,
249
+ "typescript" : " 5.6 .3" ,
250
250
"unfetch" : " 4.2.0" ,
251
251
"wait-port" : " 0.2.2" ,
252
252
"webpack" : " 5.96.1" ,
265
265
"webpack" : " 5.96.1" ,
266
266
"browserslist" : " 4.22.2" ,
267
267
"caniuse-lite" : " 1.0.30001579" ,
268
- "@types/node" : " 20.12.3 " ,
268
+ "@types/node" : " 20.17.6 " ,
269
269
"@babel/core" : " 7.22.5" ,
270
270
"@babel/parser" : " 7.22.5" ,
271
271
"@babel/types" : " 7.22.5" ,
Original file line number Diff line number Diff line change 319
319
"text-table" : " 0.2.0" ,
320
320
"timers-browserify" : " 2.0.12" ,
321
321
"tty-browserify" : " 0.0.1" ,
322
- "typescript" : " 5.5 .3" ,
322
+ "typescript" : " 5.6 .3" ,
323
323
"ua-parser-js" : " 1.0.35" ,
324
324
"unistore" : " 3.4.1" ,
325
325
"util" : " 0.12.4" ,
Original file line number Diff line number Diff line change @@ -70,10 +70,12 @@ export class LRUCache<T> {
70
70
71
71
private evictLeastRecentlyUsed ( ) : void {
72
72
const lruKey = this . cache . keys ( ) . next ( ) . value
73
- const lruSize = this . sizes . get ( lruKey ) || 0
74
- this . totalSize -= lruSize
75
- this . cache . delete ( lruKey )
76
- this . sizes . delete ( lruKey )
73
+ if ( lruKey !== undefined ) {
74
+ const lruSize = this . sizes . get ( lruKey ) || 0
75
+ this . totalSize -= lruSize
76
+ this . cache . delete ( lruKey )
77
+ this . sizes . delete ( lruKey )
78
+ }
77
79
}
78
80
79
81
reset ( ) {
Original file line number Diff line number Diff line change @@ -432,6 +432,10 @@ export class MockedResponse extends Stream.Writable implements ServerResponse {
432
432
public addTrailers ( ) : void {
433
433
throw new Error ( 'Method not implemented.' )
434
434
}
435
+
436
+ public setHeaders ( ) : this {
437
+ throw new Error ( 'Method not implemented.' )
438
+ }
435
439
}
436
440
437
441
interface RequestResponseMockerOptions {
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ export class HeadersAdapter extends Headers {
197
197
}
198
198
}
199
199
200
- public * entries ( ) : IterableIterator < [ string , string ] > {
200
+ public * entries ( ) : HeadersIterator < [ string , string ] > {
201
201
for ( const key of Object . keys ( this . headers ) ) {
202
202
const name = key . toLowerCase ( )
203
203
// We assert here that this is a string because we got it from the
@@ -208,14 +208,14 @@ export class HeadersAdapter extends Headers {
208
208
}
209
209
}
210
210
211
- public * keys ( ) : IterableIterator < string > {
211
+ public * keys ( ) : HeadersIterator < string > {
212
212
for ( const key of Object . keys ( this . headers ) ) {
213
213
const name = key . toLowerCase ( )
214
214
yield name
215
215
}
216
216
}
217
217
218
- public * values ( ) : IterableIterator < string > {
218
+ public * values ( ) : HeadersIterator < string > {
219
219
for ( const key of Object . keys ( this . headers ) ) {
220
220
// We assert here that this is a string because we got it from the
221
221
// Object.keys() call above.
@@ -225,7 +225,7 @@ export class HeadersAdapter extends Headers {
225
225
}
226
226
}
227
227
228
- public [ Symbol . iterator ] ( ) : IterableIterator < [ string , string ] > {
228
+ public [ Symbol . iterator ] ( ) : HeadersIterator < [ string , string ] > {
229
229
return this . entries ( )
230
230
}
231
231
}
Original file line number Diff line number Diff line change @@ -412,7 +412,7 @@ declare module 'next/dist/compiled/amphtml-validator' {
412
412
}
413
413
414
414
declare module 'next/dist/compiled/superstruct' {
415
- import m from 'superstruct'
415
+ import * as m from 'superstruct'
416
416
export = m
417
417
}
418
418
declare module 'next/dist/compiled/async-retry'
@@ -544,7 +544,7 @@ declare module 'next/dist/compiled/picomatch' {
544
544
export = m
545
545
}
546
546
declare module 'next/dist/compiled/nanoid/index.cjs' {
547
- import m from 'nanoid'
547
+ import * as m from 'nanoid'
548
548
export = m
549
549
}
550
550
declare module 'next/dist/compiled/ora' {
@@ -590,7 +590,7 @@ declare module 'next/dist/compiled/tar' {
590
590
}
591
591
592
592
declare module 'next/dist/compiled/terser' {
593
- import m from 'terser'
593
+ import * as m from 'terser'
594
594
export = m
595
595
}
596
596
declare module 'next/dist/compiled/semver' {
@@ -619,7 +619,7 @@ declare module 'next/dist/compiled/unistore' {
619
619
export = m
620
620
}
621
621
declare module 'next/dist/compiled/web-vitals' {
622
- import m from 'web-vitals'
622
+ import * as m from 'web-vitals'
623
623
export = m
624
624
}
625
625
declare module 'next/dist/compiled/web-vitals-attribution' { }
You can’t perform that action at this time.
0 commit comments