diff --git a/lib/Commands.ml b/lib/Commands.ml index 5c5d6d9..723b491 100644 --- a/lib/Commands.ml +++ b/lib/Commands.ml @@ -22164,9 +22164,17 @@ and overrideNetworkState commands, which can be used together to the same effect module Params = struct type t = { - offline : bool; + offline : bool option; [@key "offline"] - [@ocaml.doc "True to emulate internet disconnection."] + [@yojson.option] + [@ocaml.doc + "True to emulate internet disconnection. Deprecated, use the \ + offline property in matchedNetworkConditions\n\ + or emulateOfflineServiceWorker instead."] + emulateOfflineServiceWorker : bool option; + [@key "emulateOfflineServiceWorker"] + [@yojson.option] + [@ocaml.doc "True to emulate offline service worker."] matchedNetworkConditions : Types.Network.NetworkConditions.t list; [@key "matchedNetworkConditions"] [@ocaml.doc @@ -22178,8 +22186,9 @@ and overrideNetworkState commands, which can be used together to the same effect } [@@deriving yojson] - let make ~offline ~matchedNetworkConditions () = - { offline; matchedNetworkConditions } + let make ?offline ?emulateOfflineServiceWorker ~matchedNetworkConditions + () = + { offline; emulateOfflineServiceWorker; matchedNetworkConditions } end module Request = struct diff --git a/lib/Types.ml b/lib/Types.ml index 0c6b438..0840cc8 100644 --- a/lib/Types.ml +++ b/lib/Types.ml @@ -20136,6 +20136,10 @@ and Network : sig [@key "packetReordering"] [@yojson.option] [@ocaml.doc "WebRTC packetReordering feature."] + offline : bool option; + [@key "offline"] + [@yojson.option] + [@ocaml.doc "True to emulate internet disconnection."] } [@@deriving yojson] [@@ocaml.doc "No description provided"] end @@ -24221,6 +24225,10 @@ end = struct [@key "packetReordering"] [@yojson.option] [@ocaml.doc "WebRTC packetReordering feature."] + offline : bool option; + [@key "offline"] + [@yojson.option] + [@ocaml.doc "True to emulate internet disconnection."] } [@@deriving yojson] [@@ocaml.doc "No description provided"] end = struct @@ -24268,6 +24276,10 @@ end = struct [@key "packetReordering"] [@yojson.option] [@ocaml.doc "WebRTC packetReordering feature."] + offline : bool option; + [@key "offline"] + [@yojson.option] + [@ocaml.doc "True to emulate internet disconnection."] } [@@deriving yojson] [@@ocaml.doc "No description provided"] end diff --git a/package.json b/package.json index bec1fb7..f2e9180 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cdp", - "version": "0.0.1611976", + "version": "0.0.1612613", "description": "Chrome Devtools Protocol Types for OCaml", "license": "MIT", "repository": {