File tree Expand file tree Collapse file tree 6 files changed +13
-157
lines changed Expand file tree Collapse file tree 6 files changed +13
-157
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 2
2
"name" : " @novnc/novnc" ,
3
3
"version" : " 1.6.0" ,
4
4
"description" : " An HTML5 VNC client" ,
5
- "browser" : " lib/rfb" ,
6
- "directories" : {
7
- "lib" : " lib" ,
8
- "doc" : " docs" ,
9
- "test" : " tests"
10
- },
5
+ "type" : " module" ,
11
6
"files" : [
12
- " lib" ,
7
+ " core" ,
8
+ " vendor" ,
13
9
" AUTHORS" ,
14
10
" VERSION" ,
15
11
" docs/API.md" ,
16
12
" docs/LIBRARY.md" ,
17
13
" docs/LICENSE*"
18
14
],
15
+ "exports" : " ./core/rfb.js" ,
19
16
"scripts" : {
20
17
"lint" : " eslint app core po/po2js po/xgettext-html tests utils" ,
21
- "test" : " karma start karma.conf.js" ,
22
- "prepublish" : " node ./utils/convert.js --clean"
18
+ "test" : " karma start karma.conf.cjs"
23
19
},
24
20
"repository" : {
25
21
"type" : " git" ,
Original file line number Diff line number Diff line change 17
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18
18
*/
19
19
20
- const { program } = require ( 'commander' ) ;
21
- const fs = require ( 'fs' ) ;
22
- const pofile = require ( "pofile" ) ;
20
+ import { program } from 'commander' ;
21
+ import fs from 'fs' ;
22
+ import pofile from "pofile" ;
23
23
24
24
program
25
25
. argument ( '<input>' )
Original file line number Diff line number Diff line change 5
5
* Licensed under MPL 2.0 (see LICENSE.txt)
6
6
*/
7
7
8
- const { program } = require ( 'commander' ) ;
9
- const jsdom = require ( " jsdom" ) ;
10
- const fs = require ( "fs" ) ;
8
+ import { program } from 'commander' ;
9
+ import jsdom from ' jsdom' ;
10
+ import fs from 'fs' ;
11
11
12
12
program
13
13
. argument ( '<INPUT...>' )
@@ -106,7 +106,7 @@ let output = "";
106
106
107
107
for ( let str in strings ) {
108
108
output += "#:" ;
109
- for ( location in strings [ str ] ) {
109
+ for ( let location in strings [ str ] ) {
110
110
output += " " + location ;
111
111
}
112
112
output += "\n" ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 7
7
8
8
"use strict" ;
9
9
10
- const fs = require ( 'fs' ) ;
10
+ import fs from 'fs' ;
11
11
12
12
let showHelp = process . argv . length === 2 ;
13
13
let filename ;
You can’t perform that action at this time.
0 commit comments