Changing package.json logic to bun with patches for unstorage and nuxt/content

This commit is contained in:
2024-07-25 14:42:01 +02:00
parent 39299a268c
commit 4b901a87d7
9 changed files with 97 additions and 6 deletions

View 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) => {

View 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;