From 0c1096328548c0d246ebb4950d3a4f8ff10c28b8 Mon Sep 17 00:00:00 2001 From: Angelo Ashmore Date: Wed, 2 Nov 2022 15:49:13 -1000 Subject: [PATCH] export `DevalueError` --- index.js | 1 + test/test.js | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 2bdd761..1e8fc6b 100644 --- a/index.js +++ b/index.js @@ -1,3 +1,4 @@ export { uneval } from './src/uneval.js'; export { parse, unflatten } from './src/parse.js'; export { stringify } from './src/stringify.js'; +export { DevalueError } from './src/utils.js'; diff --git a/test/test.js b/test/test.js index babd59d..5043b25 100644 --- a/test/test.js +++ b/test/test.js @@ -1,7 +1,7 @@ import * as vm from 'vm'; import * as assert from 'uvu/assert'; import * as uvu from 'uvu'; -import { uneval, unflatten, parse, stringify } from '../index.js'; +import { uneval, unflatten, parse, stringify, DevalueError } from '../index.js'; const fixtures = { basics: [ @@ -527,4 +527,8 @@ uvu.test('does not create duplicate parameter names', () => { eval(serialized); }); +uvu.test('DevalueError is exported', () => { + assert.ok(DevalueError); +}); + uvu.test.run();