@fluid-topics/ft-wc-utils 1.2.55 → 1.2.57

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/build/helpers.js CHANGED
@@ -20,12 +20,7 @@ export function flatDeep(arr, getChildren) {
20
20
  return arr.flatMap(o => [o, ...flatDeep(getChildren(o), getChildren)]);
21
21
  }
22
22
  export function dateReviver(...dateKeys) {
23
- return function (key, value) {
24
- if (!dateKeys.includes(key)) {
25
- return value;
26
- }
27
- return parseDate(value);
28
- };
23
+ return (key, value) => dateKeys.includes(key) ? parseDate(value) : value;
29
24
  }
30
25
  export function parseDate(value) {
31
26
  // That's for safari :-(
@@ -163,8 +158,7 @@ export function getComposedPathTo(element) {
163
158
  return path;
164
159
  }
165
160
  export function deepCopy(value) {
166
- // @ts-ignore
167
- if (window.structuredClone) {
161
+ if (typeof window.structuredClone === "function") {
168
162
  return structuredClone(value);
169
163
  }
170
164
  return value != null ? JSON.parse(JSON.stringify(value)) : value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-wc-utils",
3
- "version": "1.2.55",
3
+ "version": "1.2.57",
4
4
  "description": "Internal web components tools",
5
5
  "author": "Fluid Topics <devtopics@antidot.net>",
6
6
  "license": "ISC",
@@ -15,7 +15,7 @@
15
15
  "dependencies": {
16
16
  "@floating-ui/dom": "1.5.3",
17
17
  "@fluid-topics/design-system-variables": "0.1.92",
18
- "@fluid-topics/public-api": "1.0.91",
18
+ "@fluid-topics/public-api": "1.0.93",
19
19
  "@reduxjs/toolkit": "1.9.5",
20
20
  "@types/mark.js": "8.11.12",
21
21
  "@webcomponents/scoped-custom-element-registry": "0.0.9",
@@ -24,5 +24,5 @@
24
24
  "mark.js": "8.11.1",
25
25
  "moment": "2.29.4"
26
26
  },
27
- "gitHead": "a9eaad0e420f0114aaa6cad55e73f0d917715878"
27
+ "gitHead": "de398ffdf9a4c4cbca79a276735ee0cd07cb610d"
28
28
  }