@vot.js/node
Advanced tools
Comparing version 2.0.6 to 2.0.7
@@ -9,3 +9,3 @@ import { parseFromString } from "dom-parser"; | ||
SITE_ORIGIN = this.isPrivatePlayer() | ||
? this.service?.url?.slice(0, -1) ?? this.DEFAULT_SITE_ORIGIN | ||
? (this.service?.url?.slice(0, -1) ?? this.DEFAULT_SITE_ORIGIN) | ||
: this.DEFAULT_SITE_ORIGIN; | ||
@@ -228,4 +228,4 @@ isErrorData(data) { | ||
? embedId.replace("video/", "") | ||
: embedId ?? /[^/]+$/.exec(url.pathname)?.[0]; | ||
: (embedId ?? /[^/]+$/.exec(url.pathname)?.[0]); | ||
} | ||
} |
@@ -8,2 +8,6 @@ import { BaseHelper } from "./base.js"; | ||
} | ||
const idInsidePlaylist = /\/playlist\/[^/]+\/(video-\d{8,9}_\d{9})/.exec(url.pathname); | ||
if (idInsidePlaylist) { | ||
return idInsidePlaylist[1]; | ||
} | ||
const paramZ = url.searchParams.get("z"); | ||
@@ -10,0 +14,0 @@ if (paramZ) { |
{ | ||
"name": "@vot.js/node", | ||
"description": "package for runtimes", | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"author": "Toil", | ||
@@ -85,4 +85,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"@vot.js/shared": "^2.0.6", | ||
"@vot.js/core": "^2.0.6", | ||
"@vot.js/shared": "^2.0.7", | ||
"@vot.js/core": "^2.0.7", | ||
"dom-parser": "^1.1.5" | ||
@@ -89,0 +89,0 @@ }, |
Sorry, the diff of this file is not supported yet
118299
2459
Updated@vot.js/core@^2.0.7
Updated@vot.js/shared@^2.0.7