@domql/element 2.32.4 → 2.32.5

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.
@@ -47,7 +47,7 @@ const UPDATE_DEFAULT_OPTIONS = {
47
47
  const update = async function(params = {}, opts) {
48
48
  const calleeElementCache = opts == null ? void 0 : opts.calleeElement;
49
49
  const options = (0, import_utils.deepClone)(
50
- (0, import_utils.isObject)(opts) ? (0, import_utils2.deepMerge)(opts, UPDATE_DEFAULT_OPTIONS) : UPDATE_DEFAULT_OPTIONS,
50
+ typeof opts === "object" ? (0, import_utils2.deepMerge)(opts, UPDATE_DEFAULT_OPTIONS) : UPDATE_DEFAULT_OPTIONS,
51
51
  { exclude: ["calleeElement", "updatingCalleeElement"] }
52
52
  );
53
53
  const element = this;
@@ -41,7 +41,7 @@ const UPDATE_DEFAULT_OPTIONS = {
41
41
  const update = async function(params = {}, opts) {
42
42
  const calleeElementCache = opts == null ? void 0 : opts.calleeElement;
43
43
  const options = deepClone(
44
- isObject(opts) ? deepMerge(opts, UPDATE_DEFAULT_OPTIONS) : UPDATE_DEFAULT_OPTIONS,
44
+ typeof opts === "object" ? deepMerge(opts, UPDATE_DEFAULT_OPTIONS) : UPDATE_DEFAULT_OPTIONS,
45
45
  { exclude: ["calleeElement", "updatingCalleeElement"] }
46
46
  );
47
47
  const element = this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domql/element",
3
- "version": "2.32.4",
3
+ "version": "2.32.5",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "index.js",
@@ -27,12 +27,12 @@
27
27
  "prepublish": "npx rimraf -I dist && npm run build && npm run copy:package:cjs"
28
28
  },
29
29
  "dependencies": {
30
- "@domql/event": "^2.32.4",
31
- "@domql/render": "^2.32.4",
32
- "@domql/state": "^2.32.4",
33
- "@domql/utils": "^2.32.4"
30
+ "@domql/event": "^2.32.5",
31
+ "@domql/render": "^2.32.5",
32
+ "@domql/state": "^2.32.5",
33
+ "@domql/utils": "^2.32.5"
34
34
  },
35
- "gitHead": "f8f4f383ba6d7bd22698e5576eac986d372d44db",
35
+ "gitHead": "037257037dfb4f48d5f6ca381ffa2aea8f753669",
36
36
  "devDependencies": {
37
37
  "@babel/core": "^7.27.1"
38
38
  }
package/update.js CHANGED
@@ -53,7 +53,7 @@ const UPDATE_DEFAULT_OPTIONS = {
53
53
  export const update = async function (params = {}, opts) {
54
54
  const calleeElementCache = opts?.calleeElement
55
55
  const options = deepClone(
56
- isObject(opts)
56
+ typeof opts === 'object' // dont use isObject as it does not check objects from cross frames
57
57
  ? deepMerge(opts, UPDATE_DEFAULT_OPTIONS)
58
58
  : UPDATE_DEFAULT_OPTIONS,
59
59
  { exclude: ['calleeElement', 'updatingCalleeElement'] }