Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: deps update #16919

Merged
merged 19 commits into from Apr 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -40,7 +40,7 @@
"@babel/preset-react": "^7.10.4",
"@types/es-module-lexer": "^0.4.1",
"@types/jest": "^27.4.0",
"@types/node": "^17.0.16",
"@types/node": "^18.15.11",
"assemblyscript": "^0.19.16",
"babel-loader": "^8.1.0",
"benchmark": "^2.1.4",
Expand Down
24 changes: 12 additions & 12 deletions test/__snapshots__/StatsTestCases.basictest.js.snap
Expand Up @@ -753,10 +753,10 @@ exports[`StatsTestCases should print correct stats for concat-and-sideeffects 1`
`;

exports[`StatsTestCases should print correct stats for context-independence 1`] = `
"asset main-5fe8293e1c67cc6234cb.js 12.7 KiB [emitted] [immutable] (name: main)
sourceMap main-5fe8293e1c67cc6234cb.js.map 11 KiB [emitted] [dev] (auxiliary name: main)
asset 695-4dd37417c69a0af66bac.js 455 bytes [emitted] [immutable]
sourceMap 695-4dd37417c69a0af66bac.js.map 342 bytes [emitted] [dev]
"asset main-5479233a626f640195f9.js 12.7 KiB [emitted] [immutable] (name: main)
sourceMap main-5479233a626f640195f9.js.map 11 KiB [emitted] [dev] (auxiliary name: main)
asset 695-d9846ea7920868a759cd.js 455 bytes [emitted] [immutable]
sourceMap 695-d9846ea7920868a759cd.js.map 347 bytes [emitted] [dev]
runtime modules 6.59 KiB 9 modules
orphan modules 19 bytes [orphan] 1 module
built modules 500 bytes [built]
Expand All @@ -769,10 +769,10 @@ built modules 500 bytes [built]
./a/chunk.js + 1 modules (in Xdir/context-independence/a) 66 bytes [built] [code generated]
webpack x.x.x compiled successfully in X ms

asset main-5fe8293e1c67cc6234cb.js 12.7 KiB [emitted] [immutable] (name: main)
sourceMap main-5fe8293e1c67cc6234cb.js.map 11 KiB [emitted] [dev] (auxiliary name: main)
asset 695-4dd37417c69a0af66bac.js 455 bytes [emitted] [immutable]
sourceMap 695-4dd37417c69a0af66bac.js.map 342 bytes [emitted] [dev]
asset main-5479233a626f640195f9.js 12.7 KiB [emitted] [immutable] (name: main)
sourceMap main-5479233a626f640195f9.js.map 11 KiB [emitted] [dev] (auxiliary name: main)
asset 695-d9846ea7920868a759cd.js 455 bytes [emitted] [immutable]
sourceMap 695-d9846ea7920868a759cd.js.map 347 bytes [emitted] [dev]
runtime modules 6.59 KiB 9 modules
orphan modules 19 bytes [orphan] 1 module
built modules 500 bytes [built]
Expand All @@ -785,8 +785,8 @@ built modules 500 bytes [built]
./b/chunk.js + 1 modules (in Xdir/context-independence/b) 66 bytes [built] [code generated]
webpack x.x.x compiled successfully in X ms

asset main-7c4bd4d93894bc8263e9.js 14.8 KiB [emitted] [immutable] (name: main)
asset 695-828eb5c7418e1b8270bb.js 1.5 KiB [emitted] [immutable]
asset main-afc6c97c5c3aafd6f882.js 14.8 KiB [emitted] [immutable] (name: main)
asset 695-3a54289b6e0375f1e753.js 1.51 KiB [emitted] [immutable]
runtime modules 6.59 KiB 9 modules
orphan modules 19 bytes [orphan] 1 module
built modules 500 bytes [built]
Expand All @@ -799,8 +799,8 @@ built modules 500 bytes [built]
./a/chunk.js + 1 modules (in Xdir/context-independence/a) 66 bytes [built] [code generated]
webpack x.x.x compiled successfully in X ms

asset main-7c4bd4d93894bc8263e9.js 14.8 KiB [emitted] [immutable] (name: main)
asset 695-828eb5c7418e1b8270bb.js 1.5 KiB [emitted] [immutable]
asset main-afc6c97c5c3aafd6f882.js 14.8 KiB [emitted] [immutable] (name: main)
asset 695-3a54289b6e0375f1e753.js 1.51 KiB [emitted] [immutable]
runtime modules 6.59 KiB 9 modules
orphan modules 19 bytes [orphan] 1 module
built modules 500 bytes [built]
Expand Down
18 changes: 13 additions & 5 deletions types.d.ts
Expand Up @@ -82,7 +82,11 @@ import {
WithStatement,
YieldExpression
} from "estree";
import { ServerOptions as ServerOptionsImport } from "http";
import {
IncomingMessage,
ServerOptions as ServerOptionsImport,
ServerResponse
} from "http";
import { ListenOptions, Server } from "net";
import { validate as validateFunction } from "schema-utils";
import { default as ValidationError } from "schema-utils/declarations/ValidationError";
Expand Down Expand Up @@ -6133,7 +6137,10 @@ declare interface LazyCompilationDefaultBackendOptions {
/**
* Specifies how to create the server handling the EventSource requests.
*/
server?: ServerOptionsImport | ServerOptionsHttps | (() => typeof Server);
server?:
| ServerOptionsImport<typeof IncomingMessage>
| ServerOptionsHttps<typeof IncomingMessage, typeof ServerResponse>
| (() => typeof Server);
}

/**
Expand Down Expand Up @@ -10888,9 +10895,10 @@ declare abstract class Serializer {
serialize(obj?: any, context?: any): any;
deserialize(value?: any, context?: any): any;
}
type ServerOptionsHttps = SecureContextOptions &
TlsOptions &
ServerOptionsImport;
type ServerOptionsHttps<
Request extends typeof IncomingMessage = typeof IncomingMessage,
Response extends typeof ServerResponse = typeof ServerResponse
> = SecureContextOptions & TlsOptions & ServerOptionsImport<Request, Response>;
declare class SharePlugin {
constructor(options: SharePluginOptions);

Expand Down