dasha 3.1.1 → 3.1.3

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.
Files changed (4) hide show
  1. package/dist/dasha.js +1556 -6
  2. package/dist/dasha.mjs +1566 -6
  3. package/package.json +11 -10
  4. package/dasha.js +0 -27
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dasha",
3
- "version": "3.1.1",
3
+ "version": "3.1.3",
4
4
  "description": "Streaming manifest parser",
5
5
  "files": [
6
6
  "dist",
@@ -11,10 +11,11 @@
11
11
  "types": "tsc -p tsconfig.json",
12
12
  "lint": "eslint . && prettier --check .",
13
13
  "fix": "eslint . --fix && prettier --write .",
14
- "build": "tsup dasha.js --format esm,cjs --minify",
14
+ "build": "tsup dasha.js --format esm,cjs",
15
15
  "prepublishOnly": "npm run build"
16
16
  },
17
- "main": "dasha.js",
17
+ "main": "./dist/dasha.js",
18
+ "module": "./dist/dasha.mjs",
18
19
  "types": "./types/dasha.d.ts",
19
20
  "repository": {
20
21
  "type": "git",
@@ -54,14 +55,14 @@
54
55
  "m3u8-parser": "^7.2.0"
55
56
  },
56
57
  "devDependencies": {
57
- "@eslint/js": "^9.13.0",
58
- "@types/node": "^22.7.9",
59
- "eslint": "^9.13.0",
58
+ "@eslint/js": "^9.15.0",
59
+ "@types/node": "^22.10.0",
60
+ "eslint": "^9.15.0",
60
61
  "eslint-config-prettier": "^9.1.0",
61
62
  "eslint-plugin-prettier": "^5.2.1",
62
- "globals": "^15.11.0",
63
- "prettier": "^3.3.3",
64
- "tsup": "^8.3.0",
65
- "typescript": "^5.6.3"
63
+ "globals": "^15.12.0",
64
+ "prettier": "^3.4.1",
65
+ "tsup": "^8.3.5",
66
+ "typescript": "^5.7.2"
66
67
  }
67
68
  }
package/dasha.js DELETED
@@ -1,27 +0,0 @@
1
- 'use strict';
2
-
3
- const dash = require('./lib/dash');
4
- const hls = require('./lib/hls');
5
- const {
6
- filterByResolution,
7
- filterByQuality,
8
- filterByCodecs,
9
- filterByLanguages,
10
- filterByChannels,
11
- } = require('./lib/track');
12
-
13
- const parse = (text, url, fallbackLanguage) => {
14
- if (text.includes('<MPD'))
15
- return dash.parseManifest(text, url, fallbackLanguage);
16
- else if (text.includes('#EXTM3U')) return hls.parseManifest(text, url);
17
- else throw new Error('Invalid manifest');
18
- };
19
-
20
- module.exports = {
21
- parse,
22
- filterByResolution,
23
- filterByQuality,
24
- filterByCodecs,
25
- filterByLanguages,
26
- filterByChannels,
27
- };