@domql/utils 2.5.34 → 2.5.36

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.
@@ -181,7 +181,7 @@ const objectToString = (obj, indent = 0) => {
181
181
  const spaces = " ".repeat(indent);
182
182
  let str = "{\n";
183
183
  for (const [key, value] of Object.entries(obj)) {
184
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "/", "!"]);
184
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
185
185
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
186
186
  str += `${spaces} ${stringedKey}: `;
187
187
  if ((0, import_types.isArray)(value)) {
package/object.js CHANGED
@@ -147,7 +147,7 @@ export const objectToString = (obj, indent = 0) => {
147
147
  let str = '{\n'
148
148
 
149
149
  for (const [key, value] of Object.entries(obj)) {
150
- const keyNotAllowdChars = stringIncludesAny(key, ['-', ':', '@', '.', '/', '!'])
150
+ const keyNotAllowdChars = stringIncludesAny(key, ['&', '*', '-', ':', '@', '.', '/', '!'])
151
151
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key
152
152
  str += `${spaces} ${stringedKey}: `
153
153
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domql/utils",
3
- "version": "2.5.34",
3
+ "version": "2.5.36",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "index.js",
@@ -23,7 +23,7 @@
23
23
  "build": "yarn build:cjs",
24
24
  "prepublish": "rimraf -I dist && yarn build && yarn copy:package:cjs"
25
25
  },
26
- "gitHead": "a4fa65bb359c1d58cf63e3402a76d75cfcd2b727",
26
+ "gitHead": "415ff0018f1ffcb72ccca9713e1793d186bee698",
27
27
  "devDependencies": {
28
28
  "@babel/core": "^7.12.0"
29
29
  }