baja-lite 1.5.4 → 1.5.6

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/object.d.ts CHANGED
@@ -110,7 +110,7 @@ export declare const arraySplit: <T = any>(datas: T[], { everyLength, groupCount
110
110
  * @param os
111
111
  * @returns
112
112
  */
113
- export declare const assginObject: <T extends Object>(source: T, ...os: T[]) => T;
113
+ export declare const assginObject: <T extends Object>(source: T, ...os: T[]) => void;
114
114
  export declare const P2C: (pro: string, IF?: boolean) => string;
115
115
  export declare const C2P: (pro: string, IF?: boolean) => string;
116
116
  export declare function C2P2<T extends Object = any, L extends Object = T>(datas: L[], hump?: boolean, convert?: Record<string, (data: any) => any>): T[];
package/object.js CHANGED
@@ -244,9 +244,7 @@ export const arraySplit = (datas, { everyLength = 0, groupCount = 0 } = {}) => {
244
244
  * @returns
245
245
  */
246
246
  export const assginObject = (source, ...os) => {
247
- const result = { ...source };
248
- os.forEach(o => Object.entries(o).forEach(([key, value]) => value !== null && value !== undefined && `${value}`.trim() !== '' && (result[key] = value)));
249
- return result;
247
+ os.forEach(o => Object.entries(o).forEach(([key, value]) => value !== null && value !== undefined && `${value}`.trim() !== '' && (source[key] = value)));
250
248
  };
251
249
  const P2CEX = /[A-Z]/g;
252
250
  export const P2C = (pro, IF = true) => (IF ? pro.replace(P2CEX, (a) => `_${a.toLowerCase()}`) : pro);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "baja-lite",
3
- "version": "1.5.4",
3
+ "version": "1.5.6",
4
4
  "description": "some util for self",
5
5
  "homepage": "https://github.com/void-soul/baja-lite",
6
6
  "repository": {
@@ -38,7 +38,7 @@
38
38
  "@msgpack/msgpack": "3.1.2",
39
39
  "@types/request-promise": "4.1.51",
40
40
  "axios": "1.10.0",
41
- "baja-lite-field": "1.4.3",
41
+ "baja-lite-field": "1.4.4",
42
42
  "decimal.js": "10.5.0",
43
43
  "html-parse-stringify": "3.0.1",
44
44
  "iterare": "1.2.1",
@@ -49,7 +49,7 @@
49
49
  "reflect-metadata": "0.2.2",
50
50
  "request": "2.88.2",
51
51
  "request-promise": "4.2.6",
52
- "sql-formatter": "15.6.5",
52
+ "sql-formatter": "15.6.6",
53
53
  "sqlstring": "2.3.3",
54
54
  "tslib": "2.8.1"
55
55
  },
@@ -57,16 +57,16 @@
57
57
  "@types/better-sqlite3": "7.6.13",
58
58
  "@types/lodash.get": "4.4.9",
59
59
  "@types/mustache": "4.2.6",
60
- "@types/node": "24.0.3",
60
+ "@types/node": "24.0.7",
61
61
  "@types/shelljs": "0.8.16",
62
62
  "@types/sqlstring": "2.3.2",
63
63
  "@typescript-eslint/eslint-plugin": "8.35.0",
64
64
  "@typescript-eslint/parser": "8.35.0",
65
- "better-sqlite3": "12.1.0",
65
+ "better-sqlite3": "12.2.0",
66
66
  "ioredis": "5.6.1",
67
67
  "mongodb": "6.17.0",
68
68
  "mysql2": "3.14.1",
69
- "pg": "8.16.2",
69
+ "pg": "8.16.3",
70
70
  "pg-pool": "3.10.1",
71
71
  "redlock": "5.0.0-beta.2",
72
72
  "shelljs": "0.10.0",