@symbo.ls/scratch 2.25.3 → 2.27.8

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.
@@ -40,8 +40,7 @@ var isDOMNode = (obj) => {
40
40
 
41
41
  // ../../../domql/packages/utils/dist/esm/types.js
42
42
  var isObject = (arg) => {
43
- if (arg === null)
44
- return false;
43
+ if (arg === null) return false;
45
44
  return typeof arg === "object" && arg.constructor === Object;
46
45
  };
47
46
  var isString = (arg) => typeof arg === "string";
@@ -52,8 +51,7 @@ var isNull = (arg) => arg === null;
52
51
  var isArray = (arg) => Array.isArray(arg);
53
52
  var isDate = (d) => d instanceof Date;
54
53
  var isObjectLike = (arg) => {
55
- if (arg === null)
56
- return false;
54
+ if (arg === null) return false;
57
55
  return typeof arg === "object";
58
56
  };
59
57
  var isDefined = (arg) => {
@@ -65,7 +63,10 @@ var isUndefined = (arg) => {
65
63
 
66
64
  // ../../../domql/packages/utils/dist/esm/array.js
67
65
  var mergeArray = (arr, exclude = []) => {
68
- return arr.reduce((a, c) => deepMerge(a, deepClone(c, { exclude }), exclude), {});
66
+ return arr.reduce(
67
+ (a, c) => deepMerge(a, deepClone(c, { exclude }), exclude),
68
+ {}
69
+ );
69
70
  };
70
71
 
71
72
  // ../../../domql/packages/utils/dist/esm/object.js
@@ -121,8 +122,7 @@ var deepClone = (obj, options = {}) => {
121
122
  const clone2 = targetWindow ? isArray(obj) ? new targetWindow.Array() : new targetWindow.Object() : isArray(obj) ? [] : {};
122
123
  visited.set(obj, clone2);
123
124
  for (const key in obj) {
124
- if (!Object.prototype.hasOwnProperty.call(obj, key))
125
- continue;
125
+ if (!Object.prototype.hasOwnProperty.call(obj, key)) continue;
126
126
  if (exclude.includes(key) || key.startsWith("__") || key === "__proto__")
127
127
  continue;
128
128
  const value = obj[key];
@@ -381,8 +381,7 @@ var getActiveConfig = (def) => {
381
381
  return FACTORY[def || FACTORY.active] || CONFIG;
382
382
  };
383
383
  var setActiveConfig = (newConfig) => {
384
- if (!isObject(newConfig))
385
- return;
384
+ if (!isObject(newConfig)) return;
386
385
  FACTORY.active = "1";
387
386
  FACTORY["1"] = deepMerge(newConfig, deepClone(cachedConfig));
388
387
  return newConfig;