@checkly/playwright-core 1.51.18 → 1.51.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -61,7 +61,7 @@ const addSecret = secret => {
61
61
  const secretValue = extractAuthorizationHeaderValue(secret);
62
62
  if (!secretValue) return;
63
63
  dynamicallyAddedSecrets.add(secretValue);
64
- const escapedSecrets = Array.from(dynamicallyAddedSecrets).map(s => {
64
+ const escapedSecrets = Array.from(dynamicallyAddedSecrets).sort((a, b) => b.length - a.length).map(s => {
65
65
  try {
66
66
  return (0, _escapeRegExp.default)(s);
67
67
  } catch {
@@ -95,7 +95,7 @@ const secretsFilter = () => {
95
95
  if (keylist.length === 0) {
96
96
  cachedRegex = null;
97
97
  } else {
98
- const escapedList = keylist.map(_escapeRegExp.default);
98
+ const escapedList = keylist.sort((a, b) => b.length - a.length).map(_escapeRegExp.default);
99
99
  cachedRegex = new RegExp(escapedList.join('|'), 'g');
100
100
  }
101
101
  cachedKeys = keys;
@@ -16,7 +16,6 @@ var _fileUtils = require("./fileUtils");
16
16
  var _headers = require("../utils/isomorphic/headers");
17
17
  var _rtti = require("../utils/isomorphic/rtti");
18
18
  var _fetch = require("../checkly/fetch");
19
- var _secretsFilter = require("../checkly/secretsFilter");
20
19
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
21
20
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
22
21
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -219,13 +218,6 @@ class APIRequestContext extends _channelOwner.ChannelOwner {
219
218
  const fixtures = {
220
219
  __testHookLookup: options.__testHookLookup
221
220
  };
222
-
223
- // [Checkly] We need to parse the headers in case there is the Authorization one.
224
- for (const header of headers || []) {
225
- if (header.name.toLowerCase() === 'authorization') (0, _secretsFilter.addSecret)(header.value);
226
- }
227
- // [/Checkly]
228
-
229
221
  const result = await this._channel.fetch({
230
222
  url,
231
223
  params: typeof options.params === 'object' ? objectToArray(options.params) : undefined,
@@ -20,3 +20,4 @@ module.exports = __toCommonJS(bidiCommands_d_exports);
20
20
  * Modifications copyright (c) Microsoft Corporation.
21
21
  * SPDX-License-Identifier: Apache-2.0
22
22
  */
23
+ //# sourceMappingURL=bidiCommands.d.js.map
@@ -150,3 +150,4 @@ var Input;
150
150
  Script,
151
151
  Session
152
152
  });
153
+ //# sourceMappingURL=bidiProtocolCore.js.map
@@ -40,3 +40,4 @@ var Permissions;
40
40
  0 && (module.exports = {
41
41
  Permissions
42
42
  });
43
+ //# sourceMappingURL=bidiProtocolPermissions.js.map
@@ -14,3 +14,4 @@ var __copyProps = (to, from, except, desc) => {
14
14
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
15
  var protocol_d_exports = {};
16
16
  module.exports = __toCommonJS(protocol_d_exports);
17
+ //# sourceMappingURL=protocol.d.js.map
@@ -24,6 +24,7 @@ var _progress = require("./progress");
24
24
  var _socksClientCertificatesInterceptor = require("./socksClientCertificatesInterceptor");
25
25
  var _happyEyeballs = require("./utils/happyEyeballs");
26
26
  var _tracing = require("./trace/recorder/tracing");
27
+ var _secretsFilter = require("../checkly/secretsFilter");
27
28
  var _fetch = require("../checkly/fetch");
28
29
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
29
30
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -131,6 +132,13 @@ class APIRequestContext extends _instrumentation.SdkObject {
131
132
  const postData = serializePostData(params, headers);
132
133
  if (postData) setHeader(headers, 'content-length', String(postData.byteLength));
133
134
  const controller = new _progress.ProgressController(metadata, this);
135
+
136
+ // [Checkly] We need to parse the headers in case there is the Authorization one.
137
+ for (const [headerKey, headerValue] of Object.entries(headers)) {
138
+ if (headerKey.toLowerCase() === 'authorization') (0, _secretsFilter.addSecret)(headerValue);
139
+ }
140
+ // [/Checkly]
141
+
134
142
  const fetchResponse = await controller.run(progress => {
135
143
  return this._sendRequestWithRetries(progress, requestUrl, options, postData, params.maxRetries);
136
144
  });
@@ -14,3 +14,4 @@ var __copyProps = (to, from, except, desc) => {
14
14
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
15
  var protocol_d_exports = {};
16
16
  module.exports = __toCommonJS(protocol_d_exports);
17
+ //# sourceMappingURL=protocol.d.js.map
@@ -86,3 +86,4 @@ function createPageBindingScript(playwrightBinding, name, needsHandle) {
86
86
  deliverBindingResult,
87
87
  takeBindingHandle
88
88
  });
89
+ //# sourceMappingURL=pageBinding.js.map
@@ -81,3 +81,4 @@ class RecorderSignalProcessor {
81
81
  0 && (module.exports = {
82
82
  RecorderSignalProcessor
83
83
  });
84
+ //# sourceMappingURL=recorderSignalProcessor.js.map
@@ -14,3 +14,4 @@ var __copyProps = (to, from, except, desc) => {
14
14
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
15
  var protocol_d_exports = {};
16
16
  module.exports = __toCommonJS(protocol_d_exports);
17
+ //# sourceMappingURL=protocol.d.js.map
@@ -88,3 +88,4 @@ const Set = instance.Set;
88
88
  setInterval,
89
89
  setTimeout
90
90
  });
91
+ //# sourceMappingURL=builtins.js.map
@@ -66,3 +66,4 @@ function renderTitleForCall(metadata) {
66
66
  formatProtocolParam,
67
67
  renderTitleForCall
68
68
  });
69
+ //# sourceMappingURL=protocolFormatter.js.map
@@ -63,7 +63,7 @@ const methodMetainfo = /* @__PURE__ */ new Map([
63
63
  ["Browser.defaultUserAgentForTest", { internal: true }],
64
64
  ["Browser.newContext", { title: "Create context" }],
65
65
  ["Browser.newContextForReuse", { internal: true }],
66
- ["Browser.stopPendingOperations", { internal: true, title: "Stop pending operations" }],
66
+ ["Browser.disconnectFromReusedContext", { internal: true }],
67
67
  ["Browser.newBrowserCDPSession", { internal: true, title: "Create CDP session" }],
68
68
  ["Browser.startTracing", { internal: true }],
69
69
  ["Browser.stopTracing", { internal: true }],
@@ -93,6 +93,7 @@ const methodMetainfo = /* @__PURE__ */ new Map([
93
93
  ["BrowserContext.storageState", { title: "Get storage state" }],
94
94
  ["BrowserContext.pause", { title: "Pause" }],
95
95
  ["BrowserContext.enableRecorder", { internal: true }],
96
+ ["BrowserContext.disableRecorder", { internal: true }],
96
97
  ["BrowserContext.newCDPSession", { internal: true }],
97
98
  ["BrowserContext.harStart", { internal: true }],
98
99
  ["BrowserContext.harExport", { internal: true }],
@@ -159,6 +160,7 @@ const methodMetainfo = /* @__PURE__ */ new Map([
159
160
  ["Frame.fill", { title: 'Fill "{value}"', slowMo: true, snapshot: true, pausesBeforeInput: true }],
160
161
  ["Frame.focus", { title: "Focus", slowMo: true, snapshot: true }],
161
162
  ["Frame.frameElement", { internal: true }],
163
+ ["Frame.generateLocatorString", { internal: true }],
162
164
  ["Frame.highlight", { internal: true }],
163
165
  ["Frame.getAttribute", { internal: true, snapshot: true }],
164
166
  ["Frame.goto", { title: 'Navigate to "{url}"', slowMo: true, snapshot: true }],
@@ -212,7 +214,6 @@ const methodMetainfo = /* @__PURE__ */ new Map([
212
214
  ["ElementHandle.dispatchEvent", { title: "Dispatch event", slowMo: true, snapshot: true }],
213
215
  ["ElementHandle.fill", { title: 'Fill "{value}"', slowMo: true, snapshot: true, pausesBeforeInput: true }],
214
216
  ["ElementHandle.focus", { title: "Focus", slowMo: true, snapshot: true }],
215
- ["ElementHandle.generateLocatorString", { internal: true }],
216
217
  ["ElementHandle.getAttribute", { internal: true }],
217
218
  ["ElementHandle.hover", { title: "Hover", slowMo: true, snapshot: true, pausesBeforeInput: true }],
218
219
  ["ElementHandle.innerHTML", { title: "Get HTML", snapshot: true }],
@@ -318,3 +319,4 @@ const methodMetainfo = /* @__PURE__ */ new Map([
318
319
  0 && (module.exports = {
319
320
  methodMetainfo
320
321
  });
322
+ //# sourceMappingURL=protocolMetainfo.js.map
@@ -249,3 +249,4 @@ ${value.stack}`;
249
249
  parseEvaluationResultValue,
250
250
  serializeAsCallArgument
251
251
  });
252
+ //# sourceMappingURL=utilityScriptSerializers.js.map