@types/node 20.12.6 → 20.12.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.
- node/README.md +1 -1
- node/assert.d.ts +47 -0
- node/package.json +2 -2
node/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated: Tue, 09 Apr 2024
|
|
11
|
+
* Last updated: Tue, 09 Apr 2024 21:07:24 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
node/assert.d.ts
CHANGED
|
@@ -959,6 +959,53 @@ declare module "assert" {
|
|
|
959
959
|
* @since v13.6.0, v12.16.0
|
|
960
960
|
*/
|
|
961
961
|
function doesNotMatch(value: string, regExp: RegExp, message?: string | Error): void;
|
|
962
|
+
/**
|
|
963
|
+
* In strict assertion mode, non-strict methods behave like their corresponding strict methods. For example,
|
|
964
|
+
* {@link deepEqual} will behave like {@link deepStrictEqual}.
|
|
965
|
+
*
|
|
966
|
+
* In strict assertion mode, error messages for objects display a diff. In legacy assertion mode, error
|
|
967
|
+
* messages for objects display the objects, often truncated.
|
|
968
|
+
*
|
|
969
|
+
* To use strict assertion mode:
|
|
970
|
+
*
|
|
971
|
+
* ```js
|
|
972
|
+
* import { strict as assert } from 'node:assert';COPY
|
|
973
|
+
* import assert from 'node:assert/strict';
|
|
974
|
+
* ```
|
|
975
|
+
*
|
|
976
|
+
* Example error diff:
|
|
977
|
+
*
|
|
978
|
+
* ```js
|
|
979
|
+
* import { strict as assert } from 'node:assert';
|
|
980
|
+
*
|
|
981
|
+
* assert.deepEqual([[[1, 2, 3]], 4, 5], [[[1, 2, '3']], 4, 5]);
|
|
982
|
+
* // AssertionError: Expected inputs to be strictly deep-equal:
|
|
983
|
+
* // + actual - expected ... Lines skipped
|
|
984
|
+
* //
|
|
985
|
+
* // [
|
|
986
|
+
* // [
|
|
987
|
+
* // ...
|
|
988
|
+
* // 2,
|
|
989
|
+
* // + 3
|
|
990
|
+
* // - '3'
|
|
991
|
+
* // ],
|
|
992
|
+
* // ...
|
|
993
|
+
* // 5
|
|
994
|
+
* // ]
|
|
995
|
+
* ```
|
|
996
|
+
*
|
|
997
|
+
* To deactivate the colors, use the `NO_COLOR` or `NODE_DISABLE_COLORS` environment variables. This will also
|
|
998
|
+
* deactivate the colors in the REPL. For more on color support in terminal environments, read the tty
|
|
999
|
+
* `getColorDepth()` documentation.
|
|
1000
|
+
*
|
|
1001
|
+
* @since v15.0.0, v13.9.0, v12.16.2, v9.9.0
|
|
1002
|
+
*/
|
|
1003
|
+
namespace strict {
|
|
1004
|
+
type AssertionError = assert.AssertionError;
|
|
1005
|
+
type AssertPredicate = assert.AssertPredicate;
|
|
1006
|
+
type CallTrackerCall = assert.CallTrackerCall;
|
|
1007
|
+
type CallTrackerReportInformation = assert.CallTrackerReportInformation;
|
|
1008
|
+
}
|
|
962
1009
|
const strict:
|
|
963
1010
|
& Omit<
|
|
964
1011
|
typeof assert,
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "20.12.
|
|
3
|
+
"version": "20.12.7",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -212,6 +212,6 @@
|
|
|
212
212
|
"dependencies": {
|
|
213
213
|
"undici-types": "~5.26.4"
|
|
214
214
|
},
|
|
215
|
-
"typesPublisherContentHash": "
|
|
215
|
+
"typesPublisherContentHash": "257832cf20d61375d191770b6747feddc6c529ce9401986ddec96cc397099d0a",
|
|
216
216
|
"typeScriptVersion": "4.7"
|
|
217
217
|
}
|