File tree Expand file tree Collapse file tree 2 files changed +24
-12
lines changed
Expand file tree Collapse file tree 2 files changed +24
-12
lines changed Original file line number Diff line number Diff line change 66 "types" : " ./dist/index.d.ts" ,
77 "exports" : {
88 "." : {
9- "import " : {
10- "browser " : " ./esm/index .js" ,
11- "default " : " ./esm/index .js"
9+ "browser " : {
10+ "import " : " ./esm/browser .js" ,
11+ "require " : " ./dist/browser .js"
1212 },
13- "require" : {
14- "browser" : " ./dist/index.js" ,
15- "default" : " ./dist/index.js"
16- }
17- },
18- "./localFile" : {
19- "browser" : null ,
20- "import" : " ./esm/localFile.js" ,
21- "require" : " ./dist/localFile.js"
13+ "import" : " ./esm/index.js" ,
14+ "require" : " ./dist/index.js"
2215 }
2316 },
2417 "repository" : " GMOD/generic-filehandle2" ,
Original file line number Diff line number Diff line change 1+ // Browser-specific exports that exclude Node.js-only modules
2+ export * from './filehandle.ts'
3+
4+ export { default as BlobFile } from './blobFile.ts'
5+ export { default as RemoteFile } from './remoteFile.ts'
6+
7+ export class LocalFile {
8+ readFile ( ) {
9+ throw new Error ( 'unimplemented' )
10+ }
11+ read ( ) {
12+ throw new Error ( 'unimplemented' )
13+ }
14+ close ( ) {
15+ throw new Error ( 'unimplemented' )
16+ }
17+ }
18+
19+ export { type GenericFilehandle } from './filehandle.ts'
You can’t perform that action at this time.
0 commit comments