lemon-mse 0.0.1 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,4 +1,17 @@
1
- {
2
- "version": "0.0.1",
3
- "name":"lemon-mse"
1
+ {
2
+ "name": "lemon-mse",
3
+ "version": "0.1.1",
4
+ "type": "module",
5
+ "scripts": {
6
+ "build": "unbuild"
7
+ },
8
+ "devDependencies": {
9
+ "unbuild": "^2.0.0"
10
+ },
11
+ "deependencies": {
12
+ "hls.js": "^1.5.8",
13
+ "xgplayer-flv": "^3.0.16",
14
+ "xgplayer-hls": "^3.0.16",
15
+ "typescript": "^5.0.0"
16
+ }
4
17
  }
package/src/hls.ts ADDED
@@ -0,0 +1,2 @@
1
+ // @ts-ignore
2
+ export { default as Hls, default } from "hls.js/dist/hls.light.mjs";
@@ -0,0 +1,4 @@
1
+ import {Flv} from 'xgplayer-flv'
2
+ import {Hls} from 'xgplayer-hls'
3
+
4
+ export default {Flv,Hls}
package/src/xg-flv.ts ADDED
@@ -0,0 +1 @@
1
+ export { Flv, Flv as default } from 'xgplayer-flv';
package/src/xg-hls.ts ADDED
@@ -0,0 +1 @@
1
+ export {Hls,Hls as default} from 'xgplayer-hls'
package/tsconfig.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "compilerOptions": {
3
+ // Enable latest features
4
+ "lib": ["ESNext", "DOM"],
5
+ "target": "ESNext",
6
+ "module": "ESNext",
7
+ "moduleDetection": "force",
8
+ "jsx": "react-jsx",
9
+ "allowJs": true,
10
+
11
+ // Bundler mode
12
+ "moduleResolution": "bundler",
13
+ "allowImportingTsExtensions": true,
14
+ "verbatimModuleSyntax": true,
15
+ "noEmit": true,
16
+ "declaration": true,
17
+
18
+ // Best practices
19
+ "strict": true,
20
+ "skipLibCheck": true,
21
+ "noFallthroughCasesInSwitch": true,
22
+
23
+ // Some stricter flags (disabled by default)
24
+ "noUnusedLocals": false,
25
+ "noUnusedParameters": false,
26
+ "noPropertyAccessFromIndexSignature": false
27
+ }
28
+ }