You've already forked obsidian-visualiser
Changing package.json logic to bun with patches for unstorage and nuxt/content
This commit is contained in:
17
patches/@nuxt%2Fcontent@2.13.2.patch
Normal file
17
patches/@nuxt%2Fcontent@2.13.2.patch
Normal file
@@ -0,0 +1,17 @@
|
||||
diff --git a/dist/runtime/server/storage.js b/dist/runtime/server/storage.js
|
||||
index b9bb602074f15488fe7ee700bbed281b42b463d9..96382bc576ab0145c854d06d67649b31138e76f4 100644
|
||||
--- a/dist/runtime/server/storage.js
|
||||
+++ b/dist/runtime/server/storage.js
|
||||
@@ -40,10 +40,10 @@ const contentIgnorePredicate = (key) => {
|
||||
if (key.startsWith("preview:") || isIgnored(key)) {
|
||||
return false;
|
||||
}
|
||||
- if (invalidKeyCharacters.some((ik) => key.includes(ik))) {
|
||||
+ /*if (invalidKeyCharacters.some((ik) => key.includes(ik))) {
|
||||
console.warn(`Ignoring [${key}]. File name should not contain any of the following characters: ${invalidKeyCharacters.join(", ")}`);
|
||||
return false;
|
||||
- }
|
||||
+ }*/
|
||||
return true;
|
||||
};
|
||||
export const getContentsIds = async (event, prefix) => {
|
||||
26
patches/unstorage@1.10.2.patch
Normal file
26
patches/unstorage@1.10.2.patch
Normal file
@@ -0,0 +1,26 @@
|
||||
diff --git a/drivers/github.cjs b/drivers/github.cjs
|
||||
index 606d742980420c0a60f991803bc1cc4604112f54..322c61f73c85aa7ccaf684d2cf64af5b20a9c579 100644
|
||||
--- a/drivers/github.cjs
|
||||
+++ b/drivers/github.cjs
|
||||
@@ -21,7 +21,7 @@ module.exports = (0, _utils.defineDriver)(_opts => {
|
||||
...defaultOptions,
|
||||
..._opts
|
||||
};
|
||||
- const rawUrl = (0, _ufo.joinURL)(opts.cdnURL, opts.repo, opts.branch, opts.dir);
|
||||
+ const rawUrl = (0, _ufo.joinURL)(opts.cdnURL, opts.repo, 'raw', 'branch', opts.branch, opts.dir);
|
||||
let files = {};
|
||||
let lastCheck = 0;
|
||||
let syncPromise;
|
||||
diff --git a/drivers/github.mjs b/drivers/github.mjs
|
||||
index ae9833dfe933d3d68050ed55d7ca202c4a995d0d..2c6dfd006e5495ed2a4c2a057c7a1a8b50b5659b 100644
|
||||
--- a/drivers/github.mjs
|
||||
+++ b/drivers/github.mjs
|
||||
@@ -12,7 +12,7 @@ const defaultOptions = {
|
||||
const DRIVER_NAME = "github";
|
||||
export default defineDriver((_opts) => {
|
||||
const opts = { ...defaultOptions, ..._opts };
|
||||
- const rawUrl = joinURL(opts.cdnURL, opts.repo, opts.branch, opts.dir);
|
||||
+ const rawUrl = joinURL(opts.cdnURL, opts.repo, 'raw', 'branch', opts.branch, opts.dir);
|
||||
let files = {};
|
||||
let lastCheck = 0;
|
||||
let syncPromise;
|
||||
Reference in New Issue
Block a user