Fix tabbing
This commit is contained in:
+4
-2
@@ -1,5 +1,7 @@
|
||||
fetch("https://kv-logger.xominus.workers.dev", {
|
||||
method: "POST",
|
||||
headers: { "content-type": "application/json" },
|
||||
body: JSON.stringify({ "test": 1 })
|
||||
}).catch((e) => { console.error(e) });
|
||||
body: JSON.stringify({ test: 1 }),
|
||||
}).catch((e) => {
|
||||
console.error(e);
|
||||
});
|
||||
|
||||
Vendored
+1
-1
@@ -2,4 +2,4 @@
|
||||
"files.associations": {
|
||||
"wrangler.json": "jsonc"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,4 +15,4 @@
|
||||
"vitest": "~3.2.0",
|
||||
"wrangler": "^4.38.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ export default {
|
||||
switch (request.method) {
|
||||
case 'GET':
|
||||
const listResponse = await env.media.list({ prefix, limit: 1000 });
|
||||
const keys = listResponse.objects.map(o => o.key);
|
||||
const keys = listResponse.objects.map((o) => o.key);
|
||||
|
||||
const headers = new Headers();
|
||||
headers.set('Content-Type', 'application/json');
|
||||
@@ -24,6 +24,5 @@ export default {
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
},
|
||||
} satisfies ExportedHandler<Env>;
|
||||
|
||||
@@ -36,9 +36,7 @@
|
||||
|
||||
/* Skip type checking all .d.ts files. */
|
||||
"skipLibCheck": true,
|
||||
"types": [
|
||||
"./worker-configuration.d.ts"
|
||||
]
|
||||
"types": ["./worker-configuration.d.ts"]
|
||||
},
|
||||
"exclude": ["test"],
|
||||
"include": ["worker-configuration.d.ts", "src/**/*.ts"]
|
||||
|
||||
Vendored
+6987
-6367
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user