@skrillex1224/playwright-toolkit 3.0.9 → 3.0.10

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.
package/dist/browser.js CHANGED
@@ -2853,6 +2853,7 @@ var createActorInfo = (info) => {
2853
2853
  const buildLandingUrl = ({ protocol: protocol2, domain: domain2, path: path2 }) => {
2854
2854
  const safeProtocol = String(protocol2).trim();
2855
2855
  const safeDomain = normalizeDomain(domain2);
2856
+ if (!safeDomain) return "";
2856
2857
  const safePath = normalizePath(path2);
2857
2858
  return `${safeProtocol}://${safeDomain}${safePath}`;
2858
2859
  };
@@ -3060,6 +3061,17 @@ var ActorInfo = {
3060
3061
  prefix: "",
3061
3062
  xurl: []
3062
3063
  }
3064
+ }),
3065
+ webpage: createActorInfo({
3066
+ key: "webpage",
3067
+ name: "\u901A\u7528\u7F51\u9875",
3068
+ domain: "",
3069
+ path: "/",
3070
+ share: {
3071
+ mode: "dom",
3072
+ prefix: "",
3073
+ xurl: []
3074
+ }
3063
3075
  })
3064
3076
  };
3065
3077
 
package/dist/index.cjs CHANGED
@@ -149,6 +149,7 @@ var createActorInfo = (info) => {
149
149
  const buildLandingUrl = ({ protocol: protocol2, domain: domain2, path: path4 }) => {
150
150
  const safeProtocol = String(protocol2).trim();
151
151
  const safeDomain = normalizeDomain(domain2);
152
+ if (!safeDomain) return "";
152
153
  const safePath = normalizePath(path4);
153
154
  return `${safeProtocol}://${safeDomain}${safePath}`;
154
155
  };
@@ -356,6 +357,17 @@ var ActorInfo = {
356
357
  prefix: "",
357
358
  xurl: []
358
359
  }
360
+ }),
361
+ webpage: createActorInfo({
362
+ key: "webpage",
363
+ name: "\u901A\u7528\u7F51\u9875",
364
+ domain: "",
365
+ path: "/",
366
+ share: {
367
+ mode: "dom",
368
+ prefix: "",
369
+ xurl: []
370
+ }
359
371
  })
360
372
  };
361
373
 
package/dist/index.js CHANGED
@@ -122,6 +122,7 @@ var createActorInfo = (info) => {
122
122
  const buildLandingUrl = ({ protocol: protocol2, domain: domain2, path: path4 }) => {
123
123
  const safeProtocol = String(protocol2).trim();
124
124
  const safeDomain = normalizeDomain(domain2);
125
+ if (!safeDomain) return "";
125
126
  const safePath = normalizePath(path4);
126
127
  return `${safeProtocol}://${safeDomain}${safePath}`;
127
128
  };
@@ -329,6 +330,17 @@ var ActorInfo = {
329
330
  prefix: "",
330
331
  xurl: []
331
332
  }
333
+ }),
334
+ webpage: createActorInfo({
335
+ key: "webpage",
336
+ name: "\u901A\u7528\u7F51\u9875",
337
+ domain: "",
338
+ path: "/",
339
+ share: {
340
+ mode: "dom",
341
+ prefix: "",
342
+ xurl: []
343
+ }
332
344
  })
333
345
  };
334
346
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skrillex1224/playwright-toolkit",
3
- "version": "3.0.9",
3
+ "version": "3.0.10",
4
4
  "description": "一个在 Apify/Crawlee Actor 中启用实时截图视图的实用工具库。",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",