File tree Expand file tree Collapse file tree 6 files changed +18
-10
lines changed Expand file tree Collapse file tree 6 files changed +18
-10
lines changed Original file line number Diff line number Diff line change 50
50
" ./doc/scripts/header.js"
51
51
]
52
52
}
53
+ },
54
+ {
55
+ "name" : " esdoc-ecmascript-proposal-plugin" ,
56
+ "option" : {
57
+ "all" : true
58
+ }
53
59
}
54
60
]
55
61
}
Original file line number Diff line number Diff line change 17
17
run : npm run build-gh-pages
18
18
19
19
- name : Deploy 🚀
20
- uses : JamesIves/github-pages-deploy-action@4.1.1
20
+ uses : JamesIves/github-pages-deploy-action@v4.4.0
21
21
with :
22
22
branch : gh-pages
23
23
folder : gh-pages
Original file line number Diff line number Diff line change 4
4
Lempel-Ziv lossless data compression algorithms for JavaScript.
5
5
See [ docs] ( https://compression-algorithm.github.io/lempel-ziv/index.html ) .
6
6
7
- > :warning : The code requires ` regeneratorRuntime ` to be defined, for instance by importing
7
+ > :warning : Depending on your environment, the code may require
8
+ > ` regeneratorRuntime ` to be defined, for instance by importing
8
9
> [ regenerator-runtime/runtime] ( https://www.npmjs.com/package/regenerator-runtime ) .
9
10
10
11
``` js
Original file line number Diff line number Diff line change 1
1
# Usage
2
2
3
- > :warning : The code requires ` regeneratorRuntime ` to be defined, for instance by importing
3
+ > :warning : Depending on your environment, the code may require
4
+ > ` regeneratorRuntime ` to be defined, for instance by importing
4
5
> [ regenerator-runtime/runtime] ( https://www.npmjs.com/package/regenerator-runtime ) .
5
6
6
7
First, require the polyfill at the entry point of your application
7
8
``` js
8
- await import ( ' regenerator-runtime/runtime.js' );
9
+ await import (' regenerator-runtime/runtime.js' );
9
10
// or
10
- import ' regenerator-runtime/runtime.js' ;
11
+ import ' regenerator-runtime/runtime.js' ;
11
12
```
12
13
13
14
Then, import the library where needed
14
15
``` js
15
- const lempelziv = await import ( ' @compression-algorithm/lempel-ziv' ) ;
16
+ const { lz78 } = await import (' @compression-algorithm/lempel-ziv' ) ;
16
17
// or
17
- import * as lempelziv from ' @compression-algorithm/lempel-ziv' ;
18
+ import { lz78 } from ' @compression-algorithm/lempel-ziv' ;
18
19
```
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const domReady = function (callback) {
10
10
domReady ( ( ) => {
11
11
const projectname = document . createElement ( 'a' ) ;
12
12
projectname . classList . add ( 'project-name' ) ;
13
- projectname . text = 'compression-algorithm/lempel-ziv' ;
13
+ projectname . text = '@ compression-algorithm/lempel-ziv' ;
14
14
projectname . href = './index.html' ;
15
15
16
16
const header = document . querySelector ( 'header' ) ;
Original file line number Diff line number Diff line change 6
6
"author" : " make-github-pseudonymous-again" ,
7
7
"homepage" : " https://compression-algorithm.github.io/lempel-ziv" ,
8
8
"repository" : {
9
- "type " : " git " ,
10
- "url " : " https://github.com/compression-algorithm/lempel-ziv "
9
+ "url " : " https://github.com/compression-algorithm/lempel-ziv " ,
10
+ "type " : " git "
11
11
},
12
12
"bugs" : {
13
13
"url" : " https://github.com/compression-algorithm/lempel-ziv/issues"
You can’t perform that action at this time.
0 commit comments