File tree Expand file tree Collapse file tree 5 files changed +496
-1348
lines changed Expand file tree Collapse file tree 5 files changed +496
-1348
lines changed Original file line number Diff line number Diff line change 7
7
" TextDecoder"
8
8
],
9
9
"type" : " module" ,
10
- "browser" : " ./src/lib.browser.js" ,
11
10
"react-native" : " ./src/lib.react-native.js" ,
12
11
"main" : " ./src/lib.cjs" ,
13
- "module" : " ./src/lib.js " ,
12
+ "module" : " ./src/lib.mjs " ,
14
13
"types" : " ./src/lib.d.ts" ,
15
14
"exports" : {
16
15
"." : {
17
- "browser" : " ./src/lib.browser.js" ,
18
- "import" : " ./src/lib.js" ,
16
+ "import" : " ./src/lib.mjs" ,
19
17
"require" : " ./src/lib.cjs"
20
18
}
21
19
},
35
33
"author" :
" Irakli Gozalishvili <[email protected] >" ,
36
34
"homepage" : " https://github.com/gozala/web-encoding" ,
37
35
"devDependencies" : {
36
+ "assert" : " ^2.0.0" ,
38
37
"jest" : " ^26.6.3" ,
39
38
"metro-react-native-babel-preset" : " ^0.64.0" ,
40
- "mocha" : " 8.2.1 " ,
41
- "playwright-test" : " 1.2 .0" ,
39
+ "mocha" : " 8.3.2 " ,
40
+ "playwright-test" : " 2.1 .0" ,
42
41
"react-native" : " ^0.63.4"
43
42
},
44
43
"optionalDependencies" : {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- "use strict"
2
-
3
1
// In node `export { TextEncoder }` throws:
4
2
// "Export 'TextEncoder' is not definedin module"
5
3
// To workaround we first define constants and then export with as.
Original file line number Diff line number Diff line change 1
- import { TextEncoder , TextDecoder } from "../src/lib.js "
1
+ import { TextEncoder , TextDecoder } from "../src/lib.mjs "
2
2
import assert from "assert"
3
3
4
4
describe ( "text encode/decode" , ( ) => {
You can’t perform that action at this time.
0 commit comments