@iflyrpa/playwright 1.2.64 → 1.2.65

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/index.cjs CHANGED
@@ -2557,9 +2557,7 @@ var __webpack_exports__ = {};
2557
2557
  RpaTask: ()=>RpaTask
2558
2558
  });
2559
2559
  const actions_namespaceObject = require("@iflyrpa/actions");
2560
- var package_namespaceObject = {
2561
- i8: "1.2.63"
2562
- };
2560
+ var package_namespaceObject = JSON.parse('{"i8":"1.2.65-beta.0"}');
2563
2561
  const external_node_fs_namespaceObject = require("node:fs");
2564
2562
  var external_node_fs_default = /*#__PURE__*/ __webpack_require__.n(external_node_fs_namespaceObject);
2565
2563
  const external_node_path_namespaceObject = require("node:path");
@@ -5498,11 +5496,15 @@ app.on("window-all-closed", (e) => e.preventDefault());
5498
5496
  sandbox: true
5499
5497
  }
5500
5498
  });
5501
- if (pageParams.cookies) await Promise.all(pageParams.cookies.map((cookie)=>electron.session.defaultSession.cookies.set({
5502
- ...cookie,
5503
- url: (null == cookie ? void 0 : cookie.domain) || "",
5504
- sameSite: "lax"
5505
- })));
5499
+ if (pageParams.cookies) {
5500
+ const cookies = pageParams.cookies.map((cookie)=>({
5501
+ ...cookie,
5502
+ url: (null == cookie ? void 0 : cookie.domain) ? `http${cookie.secure ? "s" : ""}://${cookie.domain}${cookie.path || ""}` : "",
5503
+ expirationDate: cookie.expires || -1,
5504
+ sameSite: "lax"
5505
+ }));
5506
+ await Promise.all(cookies.map((ck)=>electron.session.defaultSession.cookies.set(ck)));
5507
+ }
5506
5508
  await window1.loadURL(pageParams.url);
5507
5509
  }, {
5508
5510
  pageParams
package/dist/index.js CHANGED
@@ -2550,9 +2550,7 @@ function __webpack_require__(moduleId) {
2550
2550
  });
2551
2551
  };
2552
2552
  })();
2553
- var package_namespaceObject = {
2554
- i8: "1.2.63"
2555
- };
2553
+ var package_namespaceObject = JSON.parse('{"i8":"1.2.65-beta.0"}');
2556
2554
  function _define_property(obj, key, value) {
2557
2555
  if (key in obj) Object.defineProperty(obj, key, {
2558
2556
  value: value,
@@ -5474,11 +5472,15 @@ class Task {
5474
5472
  sandbox: true
5475
5473
  }
5476
5474
  });
5477
- if (pageParams.cookies) await Promise.all(pageParams.cookies.map((cookie)=>electron.session.defaultSession.cookies.set({
5478
- ...cookie,
5479
- url: (null == cookie ? void 0 : cookie.domain) || "",
5480
- sameSite: "lax"
5481
- })));
5475
+ if (pageParams.cookies) {
5476
+ const cookies = pageParams.cookies.map((cookie)=>({
5477
+ ...cookie,
5478
+ url: (null == cookie ? void 0 : cookie.domain) ? `http${cookie.secure ? "s" : ""}://${cookie.domain}${cookie.path || ""}` : "",
5479
+ expirationDate: cookie.expires || -1,
5480
+ sameSite: "lax"
5481
+ }));
5482
+ await Promise.all(cookies.map((ck)=>electron.session.defaultSession.cookies.set(ck)));
5483
+ }
5482
5484
  await window1.loadURL(pageParams.url);
5483
5485
  }, {
5484
5486
  pageParams
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@iflyrpa/playwright",
3
3
  "type": "module",
4
- "version": "1.2.64",
4
+ "version": "1.2.65",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
@@ -28,8 +28,8 @@
28
28
  "extract-zip": "^2.0.1",
29
29
  "loglevel": "^1.9.2",
30
30
  "@iflyrpa/pacote": "1.0.1",
31
- "@iflyrpa/actions": "1.2.31",
32
- "@iflyrpa/share": "0.0.17"
31
+ "@iflyrpa/actions": "1.2.32",
32
+ "@iflyrpa/share": "0.0.18"
33
33
  },
34
34
  "scripts": {
35
35
  "build": "rslib build",