-
Notifications
You must be signed in to change notification settings - Fork 559
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(deps): bundle
youtubei.js
(temporary solution) (#1292)
- Loading branch information
1 parent
8b7045f
commit a22f7fe
Showing
4 changed files
with
255 additions
and
18 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
diff --git a/node_modules/youtubei.js/bundle/node.cjs b/node_modules/youtubei.js/bundle/node.cjs | ||
index 7e3072e..bf5be6a 100644 | ||
--- a/node_modules/youtubei.js/bundle/node.cjs | ||
+++ b/node_modules/youtubei.js/bundle/node.cjs | ||
@@ -16969,7 +16969,13 @@ var _Cache_createCache; | ||
var meta_url = import_meta.url; | ||
var is_cjs = !meta_url; | ||
var __dirname__ = is_cjs ? __dirname : import_path.default.dirname((0, import_url.fileURLToPath)(meta_url)); | ||
-var package_json = JSON.parse((0, import_fs.readFileSync)(import_path.default.resolve(__dirname__, is_cjs ? "../package.json" : "../../package.json"), "utf-8")); | ||
+var package_json = { | ||
+ homepage: "https://github.com/LuanRT/YouTube.js#readme", | ||
+ version: "6.4.1", | ||
+ bugs: { | ||
+ url: "https://github.com/LuanRT/YouTube.js/issues" | ||
+ } | ||
+}; | ||
var repo_url = (_a3 = package_json.homepage) === null || _a3 === void 0 ? void 0 : _a3.split("#")[0]; | ||
var Cache = class { | ||
constructor(persistent = false, persistent_directory) { | ||
diff --git a/node_modules/youtubei.js/dist/src/platform/node.js b/node_modules/youtubei.js/dist/src/platform/node.js | ||
index 0e1b2ca..17b437c 100644 | ||
--- a/node_modules/youtubei.js/dist/src/platform/node.js | ||
+++ b/node_modules/youtubei.js/dist/src/platform/node.js | ||
@@ -16,7 +16,13 @@ import evaluate from './jsruntime/jinter.js'; | ||
const meta_url = import.meta.url; | ||
const is_cjs = !meta_url; | ||
const __dirname__ = is_cjs ? __dirname : path.dirname(fileURLToPath(meta_url)); | ||
-const package_json = JSON.parse(readFileSync(path.resolve(__dirname__, is_cjs ? '../package.json' : '../../package.json'), 'utf-8')); | ||
+const package_json = { | ||
+ homepage: "https://github.com/LuanRT/YouTube.js#readme", | ||
+ version: "6.4.1", | ||
+ bugs: { | ||
+ url: "https://github.com/LuanRT/YouTube.js/issues" | ||
+ } | ||
+}; | ||
const repo_url = (_a = package_json.homepage) === null || _a === void 0 ? void 0 : _a.split('#')[0]; | ||
class Cache { | ||
constructor(persistent = false, persistent_directory) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters