qmwts 1.2.6 → 1.2.7
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/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/utils/object-utils2.d.ts +1 -0
- package/dist/utils/object-utils2.js +11 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -20,3 +20,4 @@ export { isNumber, thousandths, summation } from './utils/number-utils2';
|
|
|
20
20
|
export { findTreeNodes } from './utils/array-utils2';
|
|
21
21
|
export { prototype } from './utils/prototype-utils2';
|
|
22
22
|
export { fileType } from './utils/file-utils2';
|
|
23
|
+
export { clearValues } from './utils/object-utils2';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fileType = exports.prototype = exports.findTreeNodes = exports.summation = exports.thousandths = exports.isNumber = exports.sha256Hex = exports.YearMonth = exports.LocalDateTime = exports.LocalDate = exports.StringUtils = exports.FileUtils = exports.ParamBuilder = exports.PrototypeUtils = exports.ObjectUtils = exports.JsonUtils = exports.NumberUtils = exports.Encryptor = exports.Downloader = exports.AxiosInstance = exports.FinanceUtils = exports.ArrayUtils = void 0;
|
|
3
|
+
exports.clearValues = exports.fileType = exports.prototype = exports.findTreeNodes = exports.summation = exports.thousandths = exports.isNumber = exports.sha256Hex = exports.YearMonth = exports.LocalDateTime = exports.LocalDate = exports.StringUtils = exports.FileUtils = exports.ParamBuilder = exports.PrototypeUtils = exports.ObjectUtils = exports.JsonUtils = exports.NumberUtils = exports.Encryptor = exports.Downloader = exports.AxiosInstance = exports.FinanceUtils = exports.ArrayUtils = void 0;
|
|
4
4
|
var array_utils_1 = require("./utils/array-utils");
|
|
5
5
|
Object.defineProperty(exports, "ArrayUtils", { enumerable: true, get: function () { return array_utils_1.default; } });
|
|
6
6
|
var finance_utils_1 = require("./utils/finance-utils");
|
|
@@ -43,3 +43,5 @@ var prototype_utils2_1 = require("./utils/prototype-utils2");
|
|
|
43
43
|
Object.defineProperty(exports, "prototype", { enumerable: true, get: function () { return prototype_utils2_1.prototype; } });
|
|
44
44
|
var file_utils2_1 = require("./utils/file-utils2");
|
|
45
45
|
Object.defineProperty(exports, "fileType", { enumerable: true, get: function () { return file_utils2_1.fileType; } });
|
|
46
|
+
var object_utils2_1 = require("./utils/object-utils2");
|
|
47
|
+
Object.defineProperty(exports, "clearValues", { enumerable: true, get: function () { return object_utils2_1.clearValues; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const clearValues: (o: Record<string, any> | null | undefined) => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.clearValues = void 0;
|
|
4
|
+
const prototype_utils2_1 = require("./prototype-utils2");
|
|
5
|
+
const clearValues = (o) => {
|
|
6
|
+
if ((0, prototype_utils2_1.prototype)(o) === 'Object')
|
|
7
|
+
for (const k in o)
|
|
8
|
+
if (o.hasOwnProperty(k))
|
|
9
|
+
o[k] = null;
|
|
10
|
+
};
|
|
11
|
+
exports.clearValues = clearValues;
|