@creejs/commons-lang 2.1.29 → 2.1.30
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/cjs/index-dev.cjs +12 -2
- package/dist/cjs/index-dev.cjs.map +1 -1
- package/dist/cjs/index-min.cjs +1 -1
- package/dist/cjs/index-min.cjs.map +1 -1
- package/dist/esm/index-dev.js +12 -2
- package/dist/esm/index-dev.js.map +1 -1
- package/dist/esm/index-min.js +1 -1
- package/dist/esm/index-min.js.map +1 -1
- package/dist/umd/index.dev.js +12 -2
- package/dist/umd/index.dev.js.map +1 -1
- package/dist/umd/index.min.js +1 -1
- package/dist/umd/index.min.js.map +1 -1
- package/package.json +1 -1
- package/types/_error.d.ts +8 -1
package/package.json
CHANGED
package/types/_error.d.ts
CHANGED
|
@@ -15,6 +15,13 @@ export default class _Error extends Error {
|
|
|
15
15
|
static isErrorLike(err: {
|
|
16
16
|
[key: string]: any;
|
|
17
17
|
}): boolean;
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @param {string} message
|
|
21
|
+
* @param {number} time ms
|
|
22
|
+
* @returns {_Error}
|
|
23
|
+
*/
|
|
24
|
+
static timeout(message: string, time: number): _Error;
|
|
18
25
|
/**
|
|
19
26
|
* "412 Precondition Failed" indicates that one or more conditions
|
|
20
27
|
* given in the request header fields evaluated to false when tested on the server.
|
|
@@ -27,7 +34,7 @@ export default class _Error extends Error {
|
|
|
27
34
|
* @param {string} message
|
|
28
35
|
* @returns {_Error}
|
|
29
36
|
*/
|
|
30
|
-
static
|
|
37
|
+
static preconditionFailed(message: string): _Error;
|
|
31
38
|
/**
|
|
32
39
|
* Creates and returns a 404 Not Found error instance with the given message.
|
|
33
40
|
* @param {string} message - The error message to include.
|