harper.js 0.18.0 → 0.18.1

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/docs.sh CHANGED
@@ -14,7 +14,7 @@ for file in ./markdown/*.md
14
14
  do
15
15
  BASE=$(basename $file .md)
16
16
  pandoc $file -o html/$BASE.html
17
- sed -i 's/"\(.*\).md"/"\1.html"/g' html/$BASE.html
17
+ perl -pi -e 's/"\K([^"]+)\.md(?=")/\1.html/g' html/$BASE.html
18
18
 
19
19
  echo '<link rel="stylesheet" href="https://unpkg.com/mvp.css">' >> html/$BASE.html
20
20
  done
@@ -1,6 +1,5 @@
1
- import * as harper from 'harper.js';
2
-
3
1
  async function main() {
2
+ const harper = await import('harper.js');
4
3
  // We cannot use `WorkerLinter` on Node.js since it relies on web-specific APIs.
5
4
  let linter = new harper.LocalLinter();
6
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "harper.js",
3
- "version": "0.18.0",
3
+ "version": "0.18.1",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Elijah Potter",
6
6
  "description": "The grammar checker for developers.",