Skip to content

Commit

Permalink
feat: rewrite in TS and start using named exports
Browse files Browse the repository at this point in the history
BREAKING CHANGE: previously you'd import like: "import compare from ..." - now do: "import { compare
} from ..."
  • Loading branch information
revelt committed Dec 24, 2020
1 parent edf92c8 commit 6a75380
Show file tree
Hide file tree
Showing 34 changed files with 2,936 additions and 3,122 deletions.
3 changes: 2 additions & 1 deletion packages/ast-compare/.npmignore
@@ -1,4 +1,4 @@
# .... generated using www.npmjs.com/package/lect ....
# generated using codsen.com/os/lect
#
#
# __ ______ ______ ______
Expand All @@ -23,3 +23,4 @@ test
.prettierignore
rollup.config.js
testStats.md
tsconfig.json
2 changes: 1 addition & 1 deletion packages/ast-compare/README.md
Expand Up @@ -34,7 +34,7 @@ npm i ast-compare

```js
import { strict as assert } from "assert";
import compare from "ast-compare";
import { compare } from "ast-compare";

// Find out, does an object/array/string/nested-mix is a subset or equal to another input:
assert.equal(
Expand Down
2 changes: 1 addition & 1 deletion packages/ast-compare/coverage/coverage-summary.json
@@ -1 +1 @@
{"total":{"lines":{"total":91,"covered":91,"skipped":0,"pct":100},"statements":{"total":97,"covered":97,"skipped":0,"pct":100},"functions":{"total":11,"covered":11,"skipped":0,"pct":100},"branches":{"total":143,"covered":143,"skipped":0,"pct":100}}}
{"total":{"lines":{"total":73,"covered":73,"skipped":0,"pct":100},"statements":{"total":80,"covered":80,"skipped":0,"pct":100},"functions":{"total":5,"covered":5,"skipped":0,"pct":100},"branches":{"total":118,"covered":118,"skipped":0,"pct":100}}}

0 comments on commit 6a75380

Please sign in to comment.