chai 4.3.3 → 4.3.4

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/chai.js CHANGED
@@ -8746,6 +8746,9 @@ function formatPrimitive(ctx, value) {
8746
8746
 
8747
8747
  case 'symbol':
8748
8748
  return ctx.stylize(value.toString(), 'symbol');
8749
+
8750
+ case 'bigint':
8751
+ return ctx.stylize(value.toString() + 'n', 'bigint');
8749
8752
  }
8750
8753
  // For some reason typeof null is "object", so special case here.
8751
8754
  if (value === null) {
@@ -218,6 +218,9 @@ function formatPrimitive(ctx, value) {
218
218
 
219
219
  case 'symbol':
220
220
  return ctx.stylize(value.toString(), 'symbol');
221
+
222
+ case 'bigint':
223
+ return ctx.stylize(value.toString() + 'n', 'bigint');
221
224
  }
222
225
  // For some reason typeof null is "object", so special case here.
223
226
  if (value === null) {
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "Veselin Todorov <hi@vesln.com>",
18
18
  "John Firebaugh <john.firebaugh@gmail.com>"
19
19
  ],
20
- "version": "4.3.3",
20
+ "version": "4.3.4",
21
21
  "repository": {
22
22
  "type": "git",
23
23
  "url": "https://github.com/chaijs/chai"