@domql/utils 2.5.164 → 2.5.167

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/component.js CHANGED
@@ -200,7 +200,7 @@ export const getExtendsInElement = (obj) => {
200
200
  }
201
201
 
202
202
  // Check if the key is "extend" and it's either a string or an array
203
- if (key === 'extend') {
203
+ if (key === 'extend' || key === 'extends') {
204
204
  // Add the value of the extend key to the result array
205
205
  if (typeof o[key] === 'string') {
206
206
  result.push(o[key])
@@ -210,7 +210,7 @@ const getExtendsInElement = (obj) => {
210
210
  if (checkIfKeyIsComponent(key)) {
211
211
  result.push(key);
212
212
  }
213
- if (key === "extend") {
213
+ if (key === "extend" || key === "extends") {
214
214
  if (typeof o[key] === "string") {
215
215
  result.push(o[key]);
216
216
  } else if (Array.isArray(o[key])) {
@@ -199,7 +199,7 @@ const getExtendsInElement = (obj) => {
199
199
  if (checkIfKeyIsComponent(key)) {
200
200
  result.push(key);
201
201
  }
202
- if (key === "extend") {
202
+ if (key === "extend" || key === "extends") {
203
203
  if (typeof o[key] === "string") {
204
204
  result.push(o[key]);
205
205
  } else if (Array.isArray(o[key])) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domql/utils",
3
- "version": "2.5.164",
3
+ "version": "2.5.167",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "index.js",
@@ -25,7 +25,7 @@
25
25
  "build": "npm run build:cjs; npm run build:esm",
26
26
  "prepublish": "rimraf -I dist; npm run build; npm run copy:package:cjs"
27
27
  },
28
- "gitHead": "f422277e2788d65dfbbea741fbcc630056a11a7a",
28
+ "gitHead": "3851b6d1029397dcf61c44682be5b9c234993e74",
29
29
  "devDependencies": {
30
30
  "@babel/core": "^7.12.0"
31
31
  }