@vpmedia/simplify 1.53.0 → 1.55.0
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/CHANGELOG.md +52 -0
- package/package.json +16 -16
- package/src/index.js +9 -19
- package/src/logging/Logger.js +1 -1
- package/src/logging/OpenTelemetryLogHandler.js +1 -1
- package/src/logging/util.js +2 -0
- package/src/logging/util.test.js +4 -1
- package/src/pagelifecycle/util.js +17 -21
- package/src/util/async.js +20 -0
- package/src/util/{delayPromise.test.js → async.test.js} +1 -1
- package/src/util/{getErrorDetails.test.js → error.test.js} +1 -1
- package/src/util/{fetchRetry.js → fetch.js} +6 -4
- package/src/util/number.js +116 -0
- package/src/util/number.test.js +115 -0
- package/src/util/object.js +97 -0
- package/src/util/object.test.js +205 -0
- package/src/util/{getURLParam.js → query.js} +12 -2
- package/src/util/{sanitizeURLParam.test.js → query.test.js} +18 -1
- package/src/util/{serverDataToState.js → state.js} +1 -1
- package/src/util/{serverDataToState.test.js → state.test.js} +1 -1
- package/src/util/string.js +54 -0
- package/src/util/{capitalize.test.js → string.test.js} +19 -1
- package/src/util/validate.js +272 -0
- package/src/util/validate.test.js +325 -0
- package/tsconfig.build.json +24 -0
- package/types/index.d.ts +9 -19
- package/types/logging/util.d.ts.map +1 -1
- package/types/pagelifecycle/util.d.ts +1 -1
- package/types/pagelifecycle/util.d.ts.map +1 -1
- package/types/util/async.d.ts +3 -0
- package/types/util/async.d.ts.map +1 -0
- package/types/util/{getErrorDetails.d.ts → error.d.ts} +1 -1
- package/types/util/error.d.ts.map +1 -0
- package/types/util/{fetchRetry.d.ts → fetch.d.ts} +1 -1
- package/types/util/fetch.d.ts.map +1 -0
- package/types/util/number.d.ts +13 -0
- package/types/util/number.d.ts.map +1 -0
- package/types/util/object.d.ts +6 -0
- package/types/util/object.d.ts.map +1 -0
- package/types/util/{getURLParam.d.ts → query.d.ts} +2 -1
- package/types/util/query.d.ts.map +1 -0
- package/types/util/{serverDataToState.d.ts → state.d.ts} +1 -1
- package/types/util/state.d.ts.map +1 -0
- package/types/util/string.d.ts +5 -0
- package/types/util/string.d.ts.map +1 -0
- package/types/util/validate.d.ts +54 -0
- package/types/util/validate.d.ts.map +1 -0
- package/src/util/addLeadingZero.js +0 -16
- package/src/util/addLeadingZero.test.js +0 -11
- package/src/util/capitalize.js +0 -15
- package/src/util/deepMerge.js +0 -24
- package/src/util/deepMerge.test.js +0 -103
- package/src/util/deg2rad.js +0 -8
- package/src/util/deg2rad.test.js +0 -5
- package/src/util/delayPromise.js +0 -6
- package/src/util/fixFloatPrecision.js +0 -16
- package/src/util/fixFloatPrecision.test.js +0 -27
- package/src/util/getObjArrayPropSum.js +0 -11
- package/src/util/getObjValueByPath.js +0 -20
- package/src/util/getObjValueByPath.test.js +0 -51
- package/src/util/getRandomInt.js +0 -9
- package/src/util/getRandomInt.test.js +0 -24
- package/src/util/getURLParam.test.js +0 -18
- package/src/util/loadJSON.js +0 -10
- package/src/util/purgeObject.js +0 -13
- package/src/util/purgeObject.test.js +0 -8
- package/src/util/safeFloat.js +0 -31
- package/src/util/safeFloat.test.js +0 -13
- package/src/util/sanitizeURLParam.js +0 -11
- package/src/util/saveAsFile.js +0 -14
- package/src/util/setObjValueByPath.js +0 -26
- package/src/util/setObjValueByPath.test.js +0 -47
- package/src/util/underscoreToCamelCase.js +0 -10
- package/src/util/underscoreToCamelCase.test.js +0 -7
- package/typedefs/global.d.ts +0 -5
- package/types/util/addLeadingZero.d.ts +0 -2
- package/types/util/addLeadingZero.d.ts.map +0 -1
- package/types/util/capitalize.d.ts +0 -2
- package/types/util/capitalize.d.ts.map +0 -1
- package/types/util/deepMerge.d.ts +0 -2
- package/types/util/deepMerge.d.ts.map +0 -1
- package/types/util/deg2rad.d.ts +0 -2
- package/types/util/deg2rad.d.ts.map +0 -1
- package/types/util/delayPromise.d.ts +0 -2
- package/types/util/delayPromise.d.ts.map +0 -1
- package/types/util/fetchRetry.d.ts.map +0 -1
- package/types/util/fixFloatPrecision.d.ts +0 -7
- package/types/util/fixFloatPrecision.d.ts.map +0 -1
- package/types/util/getErrorDetails.d.ts.map +0 -1
- package/types/util/getObjArrayPropSum.d.ts +0 -2
- package/types/util/getObjArrayPropSum.d.ts.map +0 -1
- package/types/util/getObjValueByPath.d.ts +0 -2
- package/types/util/getObjValueByPath.d.ts.map +0 -1
- package/types/util/getRandomInt.d.ts +0 -2
- package/types/util/getRandomInt.d.ts.map +0 -1
- package/types/util/getURLParam.d.ts.map +0 -1
- package/types/util/loadJSON.d.ts +0 -7
- package/types/util/loadJSON.d.ts.map +0 -1
- package/types/util/purgeObject.d.ts +0 -2
- package/types/util/purgeObject.d.ts.map +0 -1
- package/types/util/safeFloat.d.ts +0 -22
- package/types/util/safeFloat.d.ts.map +0 -1
- package/types/util/sanitizeURLParam.d.ts +0 -2
- package/types/util/sanitizeURLParam.d.ts.map +0 -1
- package/types/util/saveAsFile.d.ts +0 -2
- package/types/util/saveAsFile.d.ts.map +0 -1
- package/types/util/serverDataToState.d.ts.map +0 -1
- package/types/util/setObjValueByPath.d.ts +0 -2
- package/types/util/setObjValueByPath.d.ts.map +0 -1
- package/types/util/underscoreToCamelCase.d.ts +0 -2
- package/types/util/underscoreToCamelCase.d.ts.map +0 -1
- /package/src/util/{getErrorDetails.js → error.js} +0 -0
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Convenience method for floating point precision handling.
|
|
3
|
-
* @param {number} value - The number to process.
|
|
4
|
-
* @param {number} p - The precision. Defaults to 2.
|
|
5
|
-
* @returns {number} The processed value.
|
|
6
|
-
*/
|
|
7
|
-
export function fixFloat(value: number, p?: number): number;
|
|
8
|
-
/**
|
|
9
|
-
* Adds two value with floating point precision.
|
|
10
|
-
* @param {number} a - The number a.
|
|
11
|
-
* @param {number} b - The number b.
|
|
12
|
-
* @returns {number} The processed value.
|
|
13
|
-
*/
|
|
14
|
-
export function addFloat(a: number, b: number): number;
|
|
15
|
-
/**
|
|
16
|
-
* Substracts two value with floating point precision.
|
|
17
|
-
* @param {number} a - The number a.
|
|
18
|
-
* @param {number} b - The number b.
|
|
19
|
-
* @returns {number} The processed value.
|
|
20
|
-
*/
|
|
21
|
-
export function subFloat(a: number, b: number): number;
|
|
22
|
-
//# sourceMappingURL=safeFloat.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"safeFloat.d.ts","sourceRoot":"","sources":["../../src/util/safeFloat.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,gCAJW,MAAM,MACN,MAAM,GACJ,MAAM,CAIlB;AAED;;;;;GAKG;AACH,4BAJW,MAAM,KACN,MAAM,GACJ,MAAM,CAKlB;AAED;;;;;GAKG;AACH,4BAJW,MAAM,KACN,MAAM,GACJ,MAAM,CAKlB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sanitizeURLParam.d.ts","sourceRoot":"","sources":["../../src/util/sanitizeURLParam.js"],"names":[],"mappings":"AAKO,wCAHI,MAAM,GACJ,MAAM,CAOlB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"saveAsFile.d.ts","sourceRoot":"","sources":["../../src/util/saveAsFile.js"],"names":[],"mappings":"AAKO,qCAHI,MAAM,QACN,MAAM,QAUhB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serverDataToState.d.ts","sourceRoot":"","sources":["../../src/util/serverDataToState.js"],"names":[],"mappings":"AAQO,wCAJI,MAAM,gBACN,OAAO,GACL,MAAM,CAiBlB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setObjValueByPath.d.ts","sourceRoot":"","sources":["../../src/util/setObjValueByPath.js"],"names":[],"mappings":"AAOO,uCALI,MAAM,QACN,MAAM,SACN,MAAM,GAAG,IAAI,GAAG,SAAS,QAqBnC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"underscoreToCamelCase.d.ts","sourceRoot":"","sources":["../../src/util/underscoreToCamelCase.js"],"names":[],"mappings":"AAKO,6CAHI,MAAM,GACJ,MAAM,CAMlB"}
|
|
File without changes
|