From 485a25af7391a9bc2f5213dc92b9943ca638e2d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristj=C3=A1n=20Oddsson?= Date: Wed, 18 Oct 2023 15:59:04 +0200 Subject: [PATCH] update assertion-error --- lib/chai.js | 2 +- lib/chai/assertion.js | 2 +- lib/chai/core/assertions.js | 2 +- lib/chai/interface/assert.js | 2 +- lib/chai/interface/expect.js | 2 +- lib/chai/interface/should.js | 2 +- lib/chai/utils/expectTypes.js | 2 +- package-lock.json | 10 +++++----- package.json | 2 +- 9 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/chai.js b/lib/chai.js index 5a994e54..fa3a0cf0 100644 --- a/lib/chai.js +++ b/lib/chai.js @@ -5,7 +5,7 @@ */ import * as util from './chai/utils/index.js'; -import AssertionError from 'assertion-error'; +import {AssertionError} from 'assertion-error'; import {config} from './chai/config.js'; import './chai/core/assertions.js'; import {expect} from './chai/interface/expect.js'; diff --git a/lib/chai/assertion.js b/lib/chai/assertion.js index 24a4fb1f..417a8a47 100644 --- a/lib/chai/assertion.js +++ b/lib/chai/assertion.js @@ -6,7 +6,7 @@ */ import {config} from './config.js'; -import AssertionError from 'assertion-error'; +import {AssertionError} from 'assertion-error'; import * as util from './utils/index.js'; /*! diff --git a/lib/chai/core/assertions.js b/lib/chai/core/assertions.js index 2820327e..bcda3800 100644 --- a/lib/chai/core/assertions.js +++ b/lib/chai/core/assertions.js @@ -6,7 +6,7 @@ */ import {Assertion} from '../assertion.js'; -import AssertionError from 'assertion-error'; +import {AssertionError} from 'assertion-error'; import * as _ from '../utils/index.js'; const {flag} = _; diff --git a/lib/chai/interface/assert.js b/lib/chai/interface/assert.js index fed7a54a..2ce98696 100644 --- a/lib/chai/interface/assert.js +++ b/lib/chai/interface/assert.js @@ -6,7 +6,7 @@ import {Assertion} from '../assertion.js'; import {flag, inspect} from '../utils/index.js'; -import AssertionError from 'assertion-error'; +import {AssertionError} from 'assertion-error'; /** * ### assert(expression, message) diff --git a/lib/chai/interface/expect.js b/lib/chai/interface/expect.js index 20caf3b6..72e05f6e 100644 --- a/lib/chai/interface/expect.js +++ b/lib/chai/interface/expect.js @@ -5,7 +5,7 @@ */ import {Assertion} from '../assertion.js'; -import AssertionError from 'assertion-error'; +import {AssertionError} from 'assertion-error'; function expect(val, message) { return new Assertion(val, message); diff --git a/lib/chai/interface/should.js b/lib/chai/interface/should.js index 841788fd..8269a58b 100644 --- a/lib/chai/interface/should.js +++ b/lib/chai/interface/should.js @@ -5,7 +5,7 @@ */ import {Assertion} from '../assertion.js'; -import AssertionError from 'assertion-error'; +import {AssertionError} from 'assertion-error'; function loadShould () { // explicitly define this method as function as to have it's name to include as `ssfi` diff --git a/lib/chai/utils/expectTypes.js b/lib/chai/utils/expectTypes.js index 4b2b54df..0c643dad 100644 --- a/lib/chai/utils/expectTypes.js +++ b/lib/chai/utils/expectTypes.js @@ -18,7 +18,7 @@ * @api public */ -import AssertionError from 'assertion-error'; +import {AssertionError} from 'assertion-error'; import {flag} from './flag.js'; import {default as type} from 'type-detect'; diff --git a/package-lock.json b/package-lock.json index 4095e05a..afc36650 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "5.0.0-alpha.1", "license": "MIT", "dependencies": { - "assertion-error": "^1.1.0", + "assertion-error": "^2.0.0", "check-error": "^2.0.0", "deep-eql": "^4.1.2", "loupe": "^2.3.1", @@ -978,11 +978,11 @@ } }, "node_modules/assertion-error": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", - "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.0.tgz", + "integrity": "sha512-Q0en67fcMTcBp1xn4DTYasTSKD4KAo86UhA6lr+c6neaz2gelKi5ILIqLcYl9JGWkGGbooYLs2iGQv7v1e83AA==", "engines": { - "node": "*" + "node": ">=12" } }, "node_modules/async": { diff --git a/package.json b/package.json index 7c04a591..915d258f 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "node": ">=12" }, "dependencies": { - "assertion-error": "^1.1.0", + "assertion-error": "^2.0.0", "check-error": "^2.0.0", "deep-eql": "^4.1.2", "loupe": "^2.3.1",