Skip to content

Commit 4ff5174

Browse files
Fix bug exporting definitions of parse and compile
1 parent badeb6f commit 4ff5174

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

Diff for: .npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.github/
2+
assets/
23
coverage/
34
docs/
45
dst/cjs/*.d.ts

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "complex-js",
3-
"version": "7.0.0",
3+
"version": "7.0.1",
44
"description": "Complex math module for JavaScript",
55
"repository": "github:patrickroberts/complex",
66
"homepage": "https://patrickroberts.github.io/complex/",

Diff for: src/compiler/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { Bindings, Value, bindings, default } from './compile';
1+
export { Bindings, Value, bindings, default as compile } from './compile';

Diff for: src/index.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
export { default as Complex } from './complex';
1+
import Complex from './complex';
2+
import parse from './parser';
3+
24
export { E, I, LN10, LN2, LOG10E, LOG2E, PI, SQRT1_2, SQRT2 } from './constants';
35
export { BinaryExpression, CallExpression, Expression, Identifier, Literal, UnaryExpression } from './expressions';
46
export {
57
acos, acosh, add, asin, asinh, atan, atanh, cartesian, cbrt, conj, cos, cosh, div, exp, from, log,
68
mod, mul, polar, pow, proj, sin, sinh, sqrt, sub, tan, tanh, trunc,
79
} from './static';
8-
export { default as parse } from './parser';
9-
export { Bindings, Value, bindings, default as compile } from './compiler';
10+
export { Bindings, Value, bindings, compile } from './compiler';
11+
export { Complex, parse };

0 commit comments

Comments
 (0)