@symbo.ls/scratch 2.27.0 → 2.27.11

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) => {
@@ -124,8 +122,7 @@ var deepClone = (obj, options = {}) => {
124
122
  const clone2 = targetWindow ? isArray(obj) ? new targetWindow.Array() : new targetWindow.Object() : isArray(obj) ? [] : {};
125
123
  visited.set(obj, clone2);
126
124
  for (const key in obj) {
127
- if (!Object.prototype.hasOwnProperty.call(obj, key))
128
- continue;
125
+ if (!Object.prototype.hasOwnProperty.call(obj, key)) continue;
129
126
  if (exclude.includes(key) || key.startsWith("__") || key === "__proto__")
130
127
  continue;
131
128
  const value = obj[key];
@@ -384,9 +381,9 @@ var getActiveConfig = (def) => {
384
381
  return FACTORY[def || FACTORY.active] || CONFIG;
385
382
  };
386
383
  var setActiveConfig = (newConfig) => {
387
- if (!isObject(newConfig))
388
- return;
384
+ if (!isObject(newConfig)) return;
389
385
  FACTORY.active = "1";
390
386
  FACTORY["1"] = deepMerge(newConfig, deepClone(cachedConfig));
391
387
  return newConfig;
392
388
  };
389
+ // @preserve-env