Node updated. Some todos.
This commit is contained in:
5
Scripts/node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.d.ts
generated
vendored
5
Scripts/node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.d.ts
generated
vendored
@ -16,7 +16,7 @@
|
||||
*/
|
||||
import type { ErrorResponse } from './generated/webdriver-bidi.js';
|
||||
import { ErrorCode } from './generated/webdriver-bidi.js';
|
||||
export declare class Exception {
|
||||
export declare class Exception extends Error {
|
||||
error: ErrorCode;
|
||||
message: string;
|
||||
stacktrace?: string | undefined;
|
||||
@ -26,6 +26,9 @@ export declare class Exception {
|
||||
export declare class InvalidArgumentException extends Exception {
|
||||
constructor(message: string, stacktrace?: string);
|
||||
}
|
||||
export declare class InvalidSelectorException extends Exception {
|
||||
constructor(message: string, stacktrace?: string);
|
||||
}
|
||||
export declare class InvalidSessionIdException extends Exception {
|
||||
constructor(message: string, stacktrace?: string);
|
||||
}
|
||||
|
||||
11
Scripts/node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.js
generated
vendored
11
Scripts/node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.js
generated
vendored
@ -1,11 +1,12 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.UnderspecifiedStoragePartitionException = exports.UnableToSetFileInputException = exports.UnableToSetCookieException = exports.NoSuchStoragePartitionException = exports.UnsupportedOperationException = exports.UnableToCloseBrowserException = exports.UnableToCaptureScreenException = exports.UnknownErrorException = exports.UnknownCommandException = exports.SessionNotCreatedException = exports.NoSuchUserContextException = exports.NoSuchScriptException = exports.NoSuchRequestException = exports.NoSuchNodeException = exports.NoSuchInterceptException = exports.NoSuchHistoryEntryException = exports.NoSuchHandleException = exports.NoSuchFrameException = exports.NoSuchElementException = exports.NoSuchAlertException = exports.MoveTargetOutOfBoundsException = exports.InvalidSessionIdException = exports.InvalidArgumentException = exports.Exception = void 0;
|
||||
class Exception {
|
||||
exports.UnderspecifiedStoragePartitionException = exports.UnableToSetFileInputException = exports.UnableToSetCookieException = exports.NoSuchStoragePartitionException = exports.UnsupportedOperationException = exports.UnableToCloseBrowserException = exports.UnableToCaptureScreenException = exports.UnknownErrorException = exports.UnknownCommandException = exports.SessionNotCreatedException = exports.NoSuchUserContextException = exports.NoSuchScriptException = exports.NoSuchRequestException = exports.NoSuchNodeException = exports.NoSuchInterceptException = exports.NoSuchHistoryEntryException = exports.NoSuchHandleException = exports.NoSuchFrameException = exports.NoSuchElementException = exports.NoSuchAlertException = exports.MoveTargetOutOfBoundsException = exports.InvalidSessionIdException = exports.InvalidSelectorException = exports.InvalidArgumentException = exports.Exception = void 0;
|
||||
class Exception extends Error {
|
||||
error;
|
||||
message;
|
||||
stacktrace;
|
||||
constructor(error, message, stacktrace) {
|
||||
super();
|
||||
this.error = error;
|
||||
this.message = message;
|
||||
this.stacktrace = stacktrace;
|
||||
@ -27,6 +28,12 @@ class InvalidArgumentException extends Exception {
|
||||
}
|
||||
}
|
||||
exports.InvalidArgumentException = InvalidArgumentException;
|
||||
class InvalidSelectorException extends Exception {
|
||||
constructor(message, stacktrace) {
|
||||
super("invalid selector" /* ErrorCode.InvalidSelector */, message, stacktrace);
|
||||
}
|
||||
}
|
||||
exports.InvalidSelectorException = InvalidSelectorException;
|
||||
class InvalidSessionIdException extends Exception {
|
||||
constructor(message, stacktrace) {
|
||||
super("invalid session id" /* ErrorCode.InvalidSessionId */, message, stacktrace);
|
||||
|
||||
2
Scripts/node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.js.map
generated
vendored
2
Scripts/node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.js.map
generated
vendored
@ -1 +1 @@
|
||||
{"version":3,"file":"ErrorResponse.js","sourceRoot":"","sources":["../../../src/protocol/ErrorResponse.ts"],"names":[],"mappings":";;;AAmBA,MAAa,SAAS;IAEX;IACA;IACA;IAHT,YACS,KAAgB,EAChB,OAAe,EACf,UAAmB;QAFnB,UAAK,GAAL,KAAK,CAAW;Q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S;IACvD,YAAY,OAAe,EAAE,UAAmB;QAC9C,KAAK,2DAA8B,OAAO,EAAE,UAAU,CAAC,CAAC;IAC1D,CAAC;CACF;AAJD,gEAIC;AAED,MAAa,6BAA8B,SAAQ,SAAS;IAC1D,YAAY,OAAe,EAAE,UAAmB;QAC9C,KAAK,kEAAiC,OAAO,EAAE,UAAU,CAAC,CAAC;IAC7D,CAAC;CACF;AAJD,sEAIC;AAED,MAAa,uCAAwC,SAAQ,SAAS;IACpE,YAAY,OAAe,EAAE,UAAmB;QAC9C,KAAK,oFAA2C,OAAO,EAAE,UAAU,CAAC,CAAC;IACvE,CAAC;CACF;AAJD,0FAIC"}
|
||||
16
Scripts/node_modules/chromium-bidi/lib/cjs/protocol/cdp.d.ts
generated
vendored
16
Scripts/node_modules/chromium-bidi/lib/cjs/protocol/cdp.d.ts
generated
vendored
@ -16,19 +16,19 @@
|
||||
*/
|
||||
import type { Protocol } from 'devtools-protocol';
|
||||
import type { ProtocolMapping } from 'devtools-protocol/types/protocol-mapping.js';
|
||||
import type { BrowsingContext, JsUint } from './generated/webdriver-bidi.js';
|
||||
import type { BrowsingContext, JsUint, Script } from './generated/webdriver-bidi.js';
|
||||
export type EventNames = Event['method'];
|
||||
export type Message = CommandResponse | Event;
|
||||
export type Command = {
|
||||
id: JsUint;
|
||||
} & CommandData;
|
||||
export type CommandData = SendCommandCommand | GetSessionCommand;
|
||||
export type CommandData = SendCommandCommand | GetSessionCommand | ResolveRealmCommand;
|
||||
export type CommandResponse = {
|
||||
type: 'success';
|
||||
id: JsUint;
|
||||
result: ResultData;
|
||||
};
|
||||
export type ResultData = SendCommandResult | GetSessionResult;
|
||||
export type ResultData = SendCommandResult | GetSessionResult | ResolveRealmResult;
|
||||
export type SendCommandCommand = {
|
||||
method: 'cdp.sendCommand';
|
||||
params: SendCommandParameters;
|
||||
@ -52,6 +52,16 @@ export type GetSessionParameters = {
|
||||
export type GetSessionResult = {
|
||||
session?: Protocol.Target.SessionID;
|
||||
};
|
||||
export type ResolveRealmCommand = {
|
||||
method: 'cdp.resolveRealm';
|
||||
params: ResolveRealmParameters;
|
||||
};
|
||||
export type ResolveRealmParameters = {
|
||||
realm: Script.Realm;
|
||||
};
|
||||
export type ResolveRealmResult = {
|
||||
executionContextId: Protocol.Runtime.ExecutionContextId;
|
||||
};
|
||||
export type Event = {
|
||||
type: 'event';
|
||||
} & EventData;
|
||||
|
||||
6
Scripts/node_modules/chromium-bidi/lib/cjs/protocol/chromium-bidi.d.ts
generated
vendored
6
Scripts/node_modules/chromium-bidi/lib/cjs/protocol/chromium-bidi.d.ts
generated
vendored
@ -17,7 +17,7 @@
|
||||
import type * as Cdp from './cdp.js';
|
||||
import type * as WebDriverBidiPermissions from './generated/webdriver-bidi-permissions.js';
|
||||
import type * as WebDriverBidi from './generated/webdriver-bidi.js';
|
||||
export type EventNames = BiDiModule | BrowsingContext.EventNames | Cdp.EventNames | Log.EventNames | Network.EventNames | Script.EventNames;
|
||||
export type EventNames = Cdp.EventNames | `${BiDiModule}` | `${BrowsingContext.EventNames}` | `${Log.EventNames}` | `${Network.EventNames}` | `${Script.EventNames}`;
|
||||
export declare enum BiDiModule {
|
||||
Browser = "browser",
|
||||
BrowsingContext = "browsingContext",
|
||||
@ -74,8 +74,6 @@ export type Event = WebDriverBidi.Event | Cdp.Event;
|
||||
export declare const EVENT_NAMES: Set<BiDiModule | BrowsingContext.EventNames | Log.EventNames.LogEntryAdded | Network.EventNames | Script.EventNames>;
|
||||
export type ResultData = WebDriverBidi.ResultData | Cdp.ResultData;
|
||||
export type BidiPlusChannel = string | null;
|
||||
export type Message = (WebDriverBidi.Message | Cdp.Message | {
|
||||
launched: true;
|
||||
}) & {
|
||||
export type Message = (WebDriverBidi.Message | Cdp.Message) & {
|
||||
channel?: BidiPlusChannel;
|
||||
};
|
||||
|
||||
@ -15,7 +15,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* THIS FILE IS AUTOGENERATED. Run `npm run bidi-types` to regenerate.
|
||||
* THIS FILE IS AUTOGENERATED by cddlconv 0.1.5.
|
||||
* Run `node tools/generate-bidi-types.mjs` to regenerate.
|
||||
* @see https://github.com/w3c/webdriver-bidi/blob/master/index.bs
|
||||
*/
|
||||
export type PermissionsCommand = Permissions.SetPermission;
|
||||
@ -42,5 +43,6 @@ export declare namespace Permissions {
|
||||
descriptor: Permissions.PermissionDescriptor;
|
||||
state: Permissions.PermissionState;
|
||||
origin: string;
|
||||
userContext?: string;
|
||||
};
|
||||
}
|
||||
|
||||
106
Scripts/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi.d.ts
generated
vendored
106
Scripts/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi.d.ts
generated
vendored
@ -15,7 +15,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* THIS FILE IS AUTOGENERATED. Run `npm run bidi-types` to regenerate.
|
||||
* THIS FILE IS AUTOGENERATED by cddlconv 0.1.5.
|
||||
* Run `node tools/generate-bidi-types.mjs` to regenerate.
|
||||
* @see https://github.com/w3c/webdriver-bidi/blob/master/index.bs
|
||||
*/
|
||||
export type Event = {
|
||||
@ -55,6 +56,7 @@ export type JsInt = number;
|
||||
export type JsUint = number;
|
||||
export declare const enum ErrorCode {
|
||||
InvalidArgument = "invalid argument",
|
||||
InvalidSelector = "invalid selector",
|
||||
InvalidSessionId = "invalid session id",
|
||||
MoveTargetOutOfBounds = "move target out of bounds",
|
||||
NoSuchAlert = "no such alert",
|
||||
@ -96,7 +98,7 @@ export declare namespace Session {
|
||||
browserVersion?: string;
|
||||
platformName?: string;
|
||||
proxy?: Session.ProxyConfiguration;
|
||||
webSocketUrl?: boolean;
|
||||
unhandledPromptBehavior?: Session.UserPromptHandler;
|
||||
} & Extensible;
|
||||
}
|
||||
export declare namespace Session {
|
||||
@ -139,10 +141,29 @@ export declare namespace Session {
|
||||
proxyType: 'system';
|
||||
} & Extensible;
|
||||
}
|
||||
export declare namespace Session {
|
||||
type UserPromptHandler = {
|
||||
alert?: Session.UserPromptHandlerType;
|
||||
beforeUnload?: Session.UserPromptHandlerType;
|
||||
confirm?: Session.UserPromptHandlerType;
|
||||
default?: Session.UserPromptHandlerType;
|
||||
prompt?: Session.UserPromptHandlerType;
|
||||
};
|
||||
}
|
||||
export declare namespace Session {
|
||||
const enum UserPromptHandlerType {
|
||||
Accept = "accept",
|
||||
Dismiss = "dismiss",
|
||||
Ignore = "ignore"
|
||||
}
|
||||
}
|
||||
export declare namespace Session {
|
||||
type SubscriptionRequest = {
|
||||
events: [...string[]];
|
||||
contexts?: [...BrowsingContext.BrowsingContext[]];
|
||||
events: [string, ...string[]];
|
||||
contexts?: [
|
||||
BrowsingContext.BrowsingContext,
|
||||
...BrowsingContext.BrowsingContext[]
|
||||
];
|
||||
};
|
||||
}
|
||||
export declare namespace Session {
|
||||
@ -177,7 +198,9 @@ export declare namespace Session {
|
||||
browserVersion: string;
|
||||
platformName: string;
|
||||
setWindowRect: boolean;
|
||||
userAgent: string;
|
||||
proxy?: Session.ProxyConfiguration;
|
||||
unhandledPromptBehavior?: Session.UserPromptHandler;
|
||||
webSocketUrl?: string;
|
||||
} & Extensible;
|
||||
};
|
||||
@ -239,9 +262,12 @@ export declare namespace Browser {
|
||||
export declare namespace Browser {
|
||||
type RemoveUserContext = {
|
||||
method: 'browser.removeUserContext';
|
||||
params: {
|
||||
userContext: Browser.UserContext;
|
||||
};
|
||||
params: Browser.RemoveUserContextParameters;
|
||||
};
|
||||
}
|
||||
export declare namespace Browser {
|
||||
type RemoveUserContextParameters = {
|
||||
userContext: Browser.UserContext;
|
||||
};
|
||||
}
|
||||
export type BrowsingContextCommand = BrowsingContext.Activate | BrowsingContext.CaptureScreenshot | BrowsingContext.Close | BrowsingContext.Create | BrowsingContext.GetTree | BrowsingContext.HandleUserPrompt | BrowsingContext.LocateNodes | BrowsingContext.Navigate | BrowsingContext.Print | BrowsingContext.Reload | BrowsingContext.SetViewport | BrowsingContext.TraverseHistory;
|
||||
@ -257,13 +283,23 @@ export declare namespace BrowsingContext {
|
||||
type Info = {
|
||||
children: BrowsingContext.InfoList | null;
|
||||
context: BrowsingContext.BrowsingContext;
|
||||
originalOpener: BrowsingContext.BrowsingContext | null;
|
||||
url: string;
|
||||
userContext: Browser.UserContext;
|
||||
parent?: BrowsingContext.BrowsingContext | null;
|
||||
};
|
||||
}
|
||||
export declare namespace BrowsingContext {
|
||||
type Locator = BrowsingContext.CssLocator | BrowsingContext.InnerTextLocator | BrowsingContext.XPathLocator;
|
||||
type Locator = BrowsingContext.AccessibilityLocator | BrowsingContext.CssLocator | BrowsingContext.InnerTextLocator | BrowsingContext.XPathLocator;
|
||||
}
|
||||
export declare namespace BrowsingContext {
|
||||
type AccessibilityLocator = {
|
||||
type: 'accessibility';
|
||||
value: {
|
||||
name?: string;
|
||||
role?: string;
|
||||
};
|
||||
};
|
||||
}
|
||||
export declare namespace BrowsingContext {
|
||||
type CssLocator = {
|
||||
@ -304,6 +340,14 @@ export declare namespace BrowsingContext {
|
||||
Complete = "complete"
|
||||
}
|
||||
}
|
||||
export declare namespace BrowsingContext {
|
||||
const enum UserPromptType {
|
||||
Alert = "alert",
|
||||
Beforeunload = "beforeunload",
|
||||
Confirm = "confirm",
|
||||
Prompt = "prompt"
|
||||
}
|
||||
}
|
||||
export declare namespace BrowsingContext {
|
||||
type Activate = {
|
||||
method: 'browsingContext.activate';
|
||||
@ -399,7 +443,7 @@ export declare namespace BrowsingContext {
|
||||
* @defaultValue `false`
|
||||
*/
|
||||
background?: boolean;
|
||||
userContext?: Browser.UserContext | null;
|
||||
userContext?: Browser.UserContext;
|
||||
};
|
||||
}
|
||||
export declare namespace BrowsingContext {
|
||||
@ -445,8 +489,6 @@ export declare namespace BrowsingContext {
|
||||
* Must be greater than or equal to `1`.
|
||||
*/
|
||||
maxNodeCount?: JsUint;
|
||||
ownership?: Script.ResultOwnership;
|
||||
sandbox?: string;
|
||||
serializationOptions?: Script.SerializationOptions;
|
||||
startNodes?: [Script.SharedReference, ...Script.SharedReference[]];
|
||||
};
|
||||
@ -676,6 +718,7 @@ export declare namespace BrowsingContext {
|
||||
type UserPromptClosedParameters = {
|
||||
context: BrowsingContext.BrowsingContext;
|
||||
accepted: boolean;
|
||||
type: BrowsingContext.UserPromptType;
|
||||
userText?: string;
|
||||
};
|
||||
}
|
||||
@ -688,12 +731,13 @@ export declare namespace BrowsingContext {
|
||||
export declare namespace BrowsingContext {
|
||||
type UserPromptOpenedParameters = {
|
||||
context: BrowsingContext.BrowsingContext;
|
||||
type: 'alert' | 'confirm' | 'prompt' | 'beforeunload';
|
||||
handler: Session.UserPromptHandlerType;
|
||||
message: string;
|
||||
type: BrowsingContext.UserPromptType;
|
||||
defaultValue?: string;
|
||||
};
|
||||
}
|
||||
export type NetworkCommand = Network.AddIntercept | Network.ContinueRequest | Network.ContinueResponse | Network.ContinueWithAuth | Network.FailRequest | Network.ProvideResponse | Network.RemoveIntercept;
|
||||
export type NetworkCommand = Network.AddIntercept | Network.ContinueRequest | Network.ContinueResponse | Network.ContinueWithAuth | Network.FailRequest | Network.ProvideResponse | Network.RemoveIntercept | Network.SetCacheBehavior;
|
||||
export type NetworkEvent = Network.AuthRequired | Network.BeforeRequestSent | Network.FetchError | Network.ResponseCompleted | Network.ResponseStarted;
|
||||
export type NetworkResult = Network.AddInterceptResult;
|
||||
export declare namespace Network {
|
||||
@ -829,7 +873,7 @@ export declare namespace Network {
|
||||
headersSize: JsUint | null;
|
||||
bodySize: JsUint | null;
|
||||
content: Network.ResponseContent;
|
||||
authChallenge?: Network.AuthChallenge;
|
||||
authChallenges?: [...Network.AuthChallenge[]];
|
||||
};
|
||||
}
|
||||
export declare namespace Network {
|
||||
@ -867,6 +911,10 @@ export declare namespace Network {
|
||||
export declare namespace Network {
|
||||
type AddInterceptParameters = {
|
||||
phases: [Network.InterceptPhase, ...Network.InterceptPhase[]];
|
||||
contexts?: [
|
||||
BrowsingContext.BrowsingContext,
|
||||
...BrowsingContext.BrowsingContext[]
|
||||
];
|
||||
urlPatterns?: [...Network.UrlPattern[]];
|
||||
};
|
||||
}
|
||||
@ -980,6 +1028,21 @@ export declare namespace Network {
|
||||
intercept: Network.Intercept;
|
||||
};
|
||||
}
|
||||
export declare namespace Network {
|
||||
type SetCacheBehavior = {
|
||||
method: 'network.setCacheBehavior';
|
||||
params: Network.SetCacheBehaviorParameters;
|
||||
};
|
||||
}
|
||||
export declare namespace Network {
|
||||
type SetCacheBehaviorParameters = {
|
||||
cacheBehavior: 'default' | 'bypass';
|
||||
contexts?: [
|
||||
BrowsingContext.BrowsingContext,
|
||||
...BrowsingContext.BrowsingContext[]
|
||||
];
|
||||
};
|
||||
}
|
||||
export type ScriptEvent = Script.Message | Script.RealmCreated | Script.RealmDestroyed;
|
||||
export declare namespace Network {
|
||||
type AuthRequiredParameters = Network.BaseParameters & {
|
||||
@ -1210,13 +1273,11 @@ export declare namespace Script {
|
||||
export declare namespace Script {
|
||||
type SharedWorkerRealmInfo = Script.BaseRealmInfo & {
|
||||
type: 'shared-worker';
|
||||
owners: [Script.Realm, ...Script.Realm[]];
|
||||
};
|
||||
}
|
||||
export declare namespace Script {
|
||||
type ServiceWorkerRealmInfo = Script.BaseRealmInfo & {
|
||||
type: 'service-worker';
|
||||
owners: [...Script.Realm[]];
|
||||
};
|
||||
}
|
||||
export declare namespace Script {
|
||||
@ -1251,7 +1312,7 @@ export declare namespace Script {
|
||||
];
|
||||
}
|
||||
export declare namespace Script {
|
||||
type RemoteValue = Script.PrimitiveProtocolValue | Script.SymbolRemoteValue | Script.ArrayRemoteValue | Script.ObjectRemoteValue | Script.FunctionRemoteValue | Script.RegExpRemoteValue | Script.DateRemoteValue | Script.MapRemoteValue | Script.SetRemoteValue | Script.WeakMapRemoteValue | Script.WeakSetRemoteValue | Script.IteratorRemoteValue | Script.GeneratorRemoteValue | Script.ErrorRemoteValue | Script.ProxyRemoteValue | Script.PromiseRemoteValue | Script.TypedArrayRemoteValue | Script.ArrayBufferRemoteValue | Script.NodeListRemoteValue | Script.HtmlCollectionRemoteValue | Script.NodeRemoteValue | Script.WindowProxyRemoteValue;
|
||||
type RemoteValue = Script.PrimitiveProtocolValue | Script.SymbolRemoteValue | Script.ArrayRemoteValue | Script.ObjectRemoteValue | Script.FunctionRemoteValue | Script.RegExpRemoteValue | Script.DateRemoteValue | Script.MapRemoteValue | Script.SetRemoteValue | Script.WeakMapRemoteValue | Script.WeakSetRemoteValue | Script.GeneratorRemoteValue | Script.ErrorRemoteValue | Script.ProxyRemoteValue | Script.PromiseRemoteValue | Script.TypedArrayRemoteValue | Script.ArrayBufferRemoteValue | Script.NodeListRemoteValue | Script.HtmlCollectionRemoteValue | Script.NodeRemoteValue | Script.WindowProxyRemoteValue;
|
||||
}
|
||||
export declare namespace Script {
|
||||
type RemoteReference = Script.SharedReference | Script.RemoteObjectReference;
|
||||
@ -1340,13 +1401,6 @@ export declare namespace Script {
|
||||
internalId?: Script.InternalId;
|
||||
};
|
||||
}
|
||||
export declare namespace Script {
|
||||
type IteratorRemoteValue = {
|
||||
type: 'iterator';
|
||||
handle?: Script.Handle;
|
||||
internalId?: Script.InternalId;
|
||||
};
|
||||
}
|
||||
export declare namespace Script {
|
||||
type GeneratorRemoteValue = {
|
||||
type: 'generator';
|
||||
@ -1498,7 +1552,7 @@ export declare namespace Script {
|
||||
};
|
||||
}
|
||||
export declare namespace Script {
|
||||
type Target = Script.RealmTarget | Script.ContextTarget;
|
||||
type Target = Script.ContextTarget | Script.RealmTarget;
|
||||
}
|
||||
export declare namespace Script {
|
||||
type AddPreloadScript = {
|
||||
@ -1877,7 +1931,7 @@ export declare namespace Input {
|
||||
type PointerUpAction = {
|
||||
type: 'pointerUp';
|
||||
button: JsUint;
|
||||
} & Input.PointerCommonProperties;
|
||||
};
|
||||
}
|
||||
export declare namespace Input {
|
||||
type PointerDownAction = {
|
||||
|
||||
Reference in New Issue
Block a user