Skip to content

Commit 1ec26f2

Browse files
chore(deps): update (#484)
1 parent 6d27b83 commit 1ec26f2

File tree

11 files changed

+3058
-2198
lines changed

11 files changed

+3058
-2198
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: [main]
88

99
permissions:
10-
contents: read # to fetch code (actions/checkout)
10+
contents: read
1111

1212
jobs:
1313
lint:
@@ -48,12 +48,12 @@ jobs:
4848
cache: npm
4949
- name: Install dependencies
5050
run: |
51-
npm install -D typescript@^4 --ignore-scripts
51+
npm install -D typescript@^4 jest@^27 memfs@^3 --ignore-scripts
5252
npm install --ignore-scripts
53-
if: matrix.node-version == '10.x' || matrix.node-version == '12.x' || matrix.node-version == '14.x'
53+
if: matrix.node-version == '10.x' || matrix.node-version == '12.x' || matrix.node-version == '14.x' || matrix.node-version == '16.x'
5454
- name: Install dependencies
5555
run: npm ci
56-
if: matrix.node-version != '10.x' && matrix.node-version != '12.x' && matrix.node-version != '14.x'
56+
if: matrix.node-version != '10.x' && matrix.node-version != '12.x' && matrix.node-version != '14.x' && matrix.node-version != '16.x'
5757
- name: Run tests with coverage
5858
run: npm run test:coverage -- --ci
5959
- uses: codecov/codecov-action@v5

jest.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@
33
module.exports = {
44
prettierPath: require.resolve("prettier-2"),
55
moduleFileExtensions: ["js", "mjs", "cjs", "ts"],
6+
snapshotFormat: {
7+
escapeString: true,
8+
printBasicPrototype: true,
9+
},
610
};

lib/Resolver.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ const {
139139
* (path: PathOrFileDescriptor, options: ({ encoding?: null | undefined, flag?: string | undefined } & import("events").Abortable) | undefined | null, callback: BufferCallback): void,
140140
* (path: PathOrFileDescriptor, options: ({ encoding: BufferEncoding, flag?: string | undefined } & import("events").Abortable) | BufferEncoding, callback: StringCallback): void,
141141
* (path: PathOrFileDescriptor, options: (ObjectEncodingOptions & { flag?: string | undefined } & import("events").Abortable) | BufferEncoding | undefined | null, callback: StringOrBufferCallback): void,
142-
* (path: PathOrFileDescriptor, callback: BufferCallback): void
142+
* (path: PathOrFileDescriptor, callback: BufferCallback): void,
143143
* }} ReadFile
144144
*/
145145

@@ -151,7 +151,7 @@ const {
151151
* @typedef {{
152152
* (path: PathOrFileDescriptor, options?: { encoding?: null | undefined, flag?: string | undefined } | null): Buffer,
153153
* (path: PathOrFileDescriptor, options: { encoding: BufferEncoding, flag?: string | undefined } | BufferEncoding): string,
154-
* (path: PathOrFileDescriptor, options?: (ObjectEncodingOptions & { flag?: string | undefined }) | BufferEncoding | null): string | Buffer
154+
* (path: PathOrFileDescriptor, options?: (ObjectEncodingOptions & { flag?: string | undefined }) | BufferEncoding | null): string | Buffer,
155155
* }} ReadFileSync
156156
*/
157157

@@ -162,7 +162,7 @@ const {
162162
* (path: PathLike, options: (ObjectEncodingOptions & { withFileTypes?: false | undefined, recursive?: boolean | undefined }) | BufferEncoding | undefined | null, callback: (err: NodeJS.ErrnoException | null, files?: string[] | Buffer[]) => void): void,
163163
* (path: PathLike, callback: (err: NodeJS.ErrnoException | null, files?: string[]) => void): void,
164164
* (path: PathLike, options: ObjectEncodingOptions & { withFileTypes: true, recursive?: boolean | undefined }, callback: (err: NodeJS.ErrnoException | null, files?: Dirent<string>[]) => void): void,
165-
* (path: PathLike, options: { encoding: "buffer", withFileTypes: true, recursive?: boolean | undefined }, callback: (err: NodeJS.ErrnoException | null, files: Dirent<Buffer>[]) => void): void
165+
* (path: PathLike, options: { encoding: "buffer", withFileTypes: true, recursive?: boolean | undefined }, callback: (err: NodeJS.ErrnoException | null, files: Dirent<Buffer>[]) => void): void,
166166
* }} Readdir
167167
*/
168168

@@ -172,7 +172,7 @@ const {
172172
* (path: PathLike, options: { encoding: "buffer", withFileTypes?: false | undefined, recursive?: boolean | undefined } | "buffer"): Buffer[],
173173
* (path: PathLike, options?: (ObjectEncodingOptions & { withFileTypes?: false | undefined, recursive?: boolean | undefined }) | BufferEncoding | null): string[] | Buffer[],
174174
* (path: PathLike, options: ObjectEncodingOptions & { withFileTypes: true, recursive?: boolean | undefined }): Dirent[],
175-
* (path: PathLike, options: { encoding: "buffer", withFileTypes: true, recursive?: boolean | undefined }): Dirent<Buffer>[]
175+
* (path: PathLike, options: { encoding: "buffer", withFileTypes: true, recursive?: boolean | undefined }): Dirent<Buffer>[],
176176
* }} ReaddirSync
177177
*/
178178

@@ -189,15 +189,15 @@ const {
189189
* (path: PathLike, options: EncodingOption, callback: StringCallback): void,
190190
* (path: PathLike, options: BufferEncodingOption, callback: BufferCallback): void,
191191
* (path: PathLike, options: EncodingOption, callback: StringOrBufferCallback): void,
192-
* (path: PathLike, callback: StringCallback): void
192+
* (path: PathLike, callback: StringCallback): void,
193193
* }} Readlink
194194
*/
195195

196196
/**
197197
* @typedef {{
198198
* (path: PathLike, options?: EncodingOption): string,
199199
* (path: PathLike, options: BufferEncodingOption): Buffer,
200-
* (path: PathLike, options?: EncodingOption): string | Buffer
200+
* (path: PathLike, options?: EncodingOption): string | Buffer,
201201
* }} ReadlinkSync
202202
*/
203203

@@ -206,7 +206,7 @@ const {
206206
* (path: PathLike, callback: StatsCallback): void,
207207
* (path: PathLike, options: (StatOptions & { bigint?: false | undefined }) | undefined, callback: StatsCallback): void,
208208
* (path: PathLike, options: StatOptions & { bigint: true }, callback: BigIntStatsCallback): void,
209-
* (path: PathLike, options: StatOptions | undefined, callback: StatsOrBigIntStatsCallback): void
209+
* (path: PathLike, options: StatOptions | undefined, callback: StatsOrBigIntStatsCallback): void,
210210
* }} LStat
211211
*/
212212

@@ -218,7 +218,7 @@ const {
218218
* (path: PathLike, options?: StatSyncOptions & { bigint?: false | undefined }): IStats,
219219
* (path: PathLike, options: StatSyncOptions & { bigint: true }): IBigIntStats,
220220
* (path: PathLike, options: StatSyncOptions & { bigint: boolean, throwIfNoEntry?: false | undefined }): IStats | IBigIntStats,
221-
* (path: PathLike, options?: StatSyncOptions): IStats | IBigIntStats | undefined
221+
* (path: PathLike, options?: StatSyncOptions): IStats | IBigIntStats | undefined,
222222
* }} LStatSync
223223
*/
224224

@@ -227,7 +227,7 @@ const {
227227
* (path: PathLike, callback: StatsCallback): void,
228228
* (path: PathLike, options: (StatOptions & { bigint?: false | undefined }) | undefined, callback: StatsCallback): void,
229229
* (path: PathLike, options: StatOptions & { bigint: true }, callback: BigIntStatsCallback): void,
230-
* (path: PathLike, options: StatOptions | undefined, callback: StatsOrBigIntStatsCallback): void
230+
* (path: PathLike, options: StatOptions | undefined, callback: StatsOrBigIntStatsCallback): void,
231231
* }} Stat
232232
*/
233233

@@ -239,7 +239,7 @@ const {
239239
* (path: PathLike, options?: StatSyncOptions & { bigint?: false | undefined }): IStats,
240240
* (path: PathLike, options: StatSyncOptions & { bigint: true }): IBigIntStats,
241241
* (path: PathLike, options: StatSyncOptions & { bigint: boolean, throwIfNoEntry?: false | undefined }): IStats | IBigIntStats,
242-
* (path: PathLike, options?: StatSyncOptions): IStats | IBigIntStats | undefined
242+
* (path: PathLike, options?: StatSyncOptions): IStats | IBigIntStats | undefined,
243243
* }} StatSync
244244
*/
245245

@@ -248,15 +248,15 @@ const {
248248
* (path: PathLike, options: EncodingOption, callback: StringCallback): void,
249249
* (path: PathLike, options: BufferEncodingOption, callback: BufferCallback): void,
250250
* (path: PathLike, options: EncodingOption, callback: StringOrBufferCallback): void,
251-
* (path: PathLike, callback: StringCallback): void
251+
* (path: PathLike, callback: StringCallback): void,
252252
* }} RealPath
253253
*/
254254

255255
/**
256256
* @typedef {{
257257
* (path: PathLike, options?: EncodingOption): string,
258258
* (path: PathLike, options: BufferEncodingOption): Buffer,
259-
* (path: PathLike, options?: EncodingOption): string | Buffer
259+
* (path: PathLike, options?: EncodingOption): string | Buffer,
260260
* }} RealPathSync
261261
*/
262262

lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ const memoize = require("./util/memoize");
2424
* (context: Context, path: string, request: string, resolveContext: ResolveContext, callback: ResolveCallback): void,
2525
* (context: Context, path: string, request: string, callback: ResolveCallback): void,
2626
* (path: string, request: string, resolveContext: ResolveContext, callback: ResolveCallback): void,
27-
* (path: string, request: string, callback: ResolveCallback): void
27+
* (path: string, request: string, callback: ResolveCallback): void,
2828
* }} ResolveFunctionAsync
2929
*/
3030

3131
/**
3232
* @typedef {{
3333
* (context: Context, path: string, request: string): string | false,
34-
* (path: string, request: string): string | false
34+
* (path: string, request: string): string | false,
3535
* }} ResolveFunction
3636
*/
3737

0 commit comments

Comments
 (0)