untube 2.0.0 → 2.0.2
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solver-bundle.d.ts","sourceRoot":"","sources":["../src/solver-bundle.ts"],"names":[],"mappings":"AA2DA,QAAA,IAAI,GAAG;;;CA2Wa,CAAC;
|
|
1
|
+
{"version":3,"file":"solver-bundle.d.ts","sourceRoot":"","sources":["../src/solver-bundle.ts"],"names":[],"mappings":"AA2DA,QAAA,IAAI,GAAG;;;CA2Wa,CAAC;AAGrB,eAAe,GAAG,CAAC"}
|
package/dist/solver-bundle.js
CHANGED
|
@@ -1864,7 +1864,7 @@ var jsc = (function (meriyah, astring) {
|
|
|
1864
1864
|
function createSolver(expression) {
|
|
1865
1865
|
return generateArrowFunction(`\n({sig, n}) => {\n const url = (${astring.generate(expression)})("https://youtube.com/watch?v=yt-dlp-wins", "s", sig ? encodeURIComponent(sig) : undefined);\n url.set("n", n);\n const proto = Object.getPrototypeOf(url);\n const keys = Object.keys(proto).concat(Object.getOwnPropertyNames(proto));\n for (const key of keys) {\n if (!["constructor", "set", "get", "clone"].includes(key)) {\n url[key]();\n break;\n }\n }\n const s = url.get("s");\n return {\n sig: s ? decodeURIComponent(s) : null,\n n: url.get("n") ?? null,\n };\n}\n`);
|
|
1866
1866
|
}
|
|
1867
|
-
const setupNodes = meriyah.parse(`\nif (typeof globalThis.XMLHttpRequest === "undefined") {\n globalThis.XMLHttpRequest = { prototype: {} };\n}\
|
|
1867
|
+
const setupNodes = meriyah.parse(`\nif (typeof globalThis.XMLHttpRequest === "undefined") {\n globalThis.XMLHttpRequest = { prototype: {} };\n}\nif (typeof URL === "undefined") {\n globalThis.location = {\n hash: "",\n host: "www.youtube.com",\n hostname: "www.youtube.com",\n href: "https://www.youtube.com/watch?v=yt-dlp-wins",\n origin: "https://www.youtube.com",\n password: "",\n pathname: "/watch",\n port: "",\n protocol: "https:",\n search: "?v=yt-dlp-wins",\n username: "",\n };\n} else {\n globalThis.location = new URL("https://www.youtube.com/watch?v=yt-dlp-wins");\n}\nif (typeof globalThis.document === "undefined") {\n globalThis.document = Object.create(null);\n}\nif (typeof globalThis.navigator === "undefined") {\n globalThis.navigator = Object.create(null);\n}\nif (typeof globalThis.self === "undefined") {\n globalThis.self = globalThis;\n}\nif (typeof globalThis.window === "undefined") {\n globalThis.window = globalThis;\n}\n`).body;
|
|
1868
1868
|
function _optionalChain(ops) {
|
|
1869
1869
|
let lastAccessLHS = undefined;
|
|
1870
1870
|
let value = ops[0];
|