mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-09 01:16:15 -08:00
Supersedes #1252 and #872. uuid 14 is ESM-only, apps/web/jest.config.ts only kept v9 working by mapping `^uuid$` at a `wrapper.mjs` that v14 no longer ships, and the specifier also has to be synced in libs/shared/m3u-utils/package.json or @nx/dependency-checks fails lint. All four call sites only used `v4()`, so the dependency goes away instead. `createRandomId()` prefers `crypto.randomUUID()` and falls back to building the same v4 shape from `crypto.getRandomValues()` — that fallback is load-bearing, because randomUUID is only exposed in secure contexts and the self-hosted PWA is regularly served over plain http on a LAN address. getRandomValues stays available there, and it is what uuid's own v4 used. `@types/uuid` goes too; it only existed for the untyped v9 package.
13 lines
282 B
JSON
13 lines
282 B
JSON
{
|
|
"name": "@iptvnator/shared/m3u-utils",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"type": "commonjs",
|
|
"main": "./src/index.js",
|
|
"types": "./src/index.d.ts",
|
|
"dependencies": {
|
|
"@iptvnator/shared/interfaces": "0.0.1",
|
|
"tslib": "^2.3.0"
|
|
}
|
|
}
|