Skip to content

Commit

Permalink
feat: browser support
Browse files Browse the repository at this point in the history
  • Loading branch information
starknt committed Sep 27, 2022
1 parent 9a1b912 commit fdc58eb
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 279 deletions.
1 change: 1 addition & 0 deletions browser.d.ts
@@ -0,0 +1 @@
export * from './dist/browser'
14 changes: 9 additions & 5 deletions package.json
Expand Up @@ -18,12 +18,19 @@
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.mjs"
},
"./browser": {
"types": "./dist/browser.d.ts",
"require": "./dist/browser.cjs",
"import": "./dist/browser.mjs"
}
},
"files": [
"dist"
"dist",
"browser.d.ts"
],
"keywords": [
"bilibili",
Expand All @@ -33,10 +40,7 @@
],
"sideEffects": false,
"dependencies": {
"bilibili-live-ws": "^6.2.1",
"buffer": "^6.0.3",
"events": "^3.3.0",
"pako": "^2.0.4"
"tiny-bilibili-ws": "^0.0.2"
},
"devDependencies": {
"tsup": "^6.2.3",
Expand Down

0 comments on commit fdc58eb

Please sign in to comment.