@domql/utils 2.5.48 → 2.5.64

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.
@@ -21,7 +21,7 @@ __export(object_exports, {
21
21
  clone: () => clone,
22
22
  deepClone: () => deepClone,
23
23
  deepCloneExclude: () => deepCloneExclude,
24
- deepCloneWithExtnd: () => deepCloneWithExtnd,
24
+ deepCloneWithExtend: () => deepCloneWithExtend,
25
25
  deepContains: () => deepContains,
26
26
  deepDestringify: () => deepDestringify,
27
27
  deepDiff: () => deepDiff,
@@ -152,7 +152,7 @@ const deepClone = (obj, excludeFrom = [], cleanUndefined = false) => {
152
152
  }
153
153
  return o;
154
154
  };
155
- const deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
155
+ const deepCloneWithExtend = (obj, excludeFrom = [], cleanUndefined = false) => {
156
156
  const o = (0, import_types.isArray)(obj) ? [] : {};
157
157
  for (const prop in obj) {
158
158
  if (prop === "__proto__")
@@ -163,7 +163,7 @@ const deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
163
163
  if (cleanUndefined && (0, import_types.isUndefined)(objProp))
164
164
  continue;
165
165
  if ((0, import_types.isObjectLike)(objProp)) {
166
- o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
166
+ o[prop] = deepCloneWithExtend(objProp, excludeFrom, cleanUndefined);
167
167
  } else
168
168
  o[prop] = objProp;
169
169
  }
@@ -18,6 +18,7 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var string_exports = {};
20
20
  __export(string_exports, {
21
+ lowercaseFirstLetter: () => lowercaseFirstLetter,
21
22
  replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
22
23
  stringIncludesAny: () => stringIncludesAny,
23
24
  trimStringFromSymbols: () => trimStringFromSymbols
@@ -57,3 +58,6 @@ const replaceLiteralsWithObjectFields = (str, state) => {
57
58
  }
58
59
  });
59
60
  };
61
+ const lowercaseFirstLetter = (inputString) => {
62
+ return `${inputString.charAt(0).toLowerCase()}${inputString.slice(1)}`;
63
+ };
package/object.js CHANGED
@@ -114,7 +114,7 @@ export const deepClone = (obj, excludeFrom = [], cleanUndefined = false) => {
114
114
  /**
115
115
  * Deep cloning of object
116
116
  */
117
- export const deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
117
+ export const deepCloneWithExtend = (obj, excludeFrom = [], cleanUndefined = false) => {
118
118
  const o = isArray(obj) ? [] : {}
119
119
  for (const prop in obj) {
120
120
  if (prop === '__proto__') continue
@@ -122,7 +122,7 @@ export const deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false
122
122
  const objProp = obj[prop]
123
123
  if (cleanUndefined && isUndefined(objProp)) continue
124
124
  if (isObjectLike(objProp)) {
125
- o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined)
125
+ o[prop] = deepCloneWithExtend(objProp, excludeFrom, cleanUndefined)
126
126
  } else o[prop] = objProp
127
127
  }
128
128
  return o
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domql/utils",
3
- "version": "2.5.48",
3
+ "version": "2.5.64",
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": "68ea5ab143d09bdb009664526b638e7c804480c6",
26
+ "gitHead": "ed8570ce73011589d920684013958c081147a39c",
27
27
  "devDependencies": {
28
28
  "@babel/core": "^7.12.0"
29
29
  }
package/string.js CHANGED
@@ -45,3 +45,7 @@ export const replaceLiteralsWithObjectFields = (str, state) => {
45
45
  }
46
46
  })
47
47
  }
48
+
49
+ export const lowercaseFirstLetter = (inputString) => {
50
+ return `${inputString.charAt(0).toLowerCase()}${inputString.slice(1)}`
51
+ }