Address code review: restore package-lock name, cleanup build tools in Dockerfile, add bind() comment

Co-authored-by: MarSeventh <[email protected]>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-03 15:56:10 +00:00
co-authored by MarSeventh
parent 99323bdc6b
commit 5abd8bbe0f
3 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -8,7 +8,9 @@ RUN apt-get update && \
WORKDIR /app
COPY . .
RUN npm install --omit=dev
RUN npm install --omit=dev && \
apt-get purge -y --auto-remove python3 make g++ && \
rm -rf /root/.npm /tmp/*
EXPOSE 8080
CMD ["node", "--import", "./server/register.mjs", "server/index.js"]
+1 -1
View File
@@ -1,5 +1,5 @@
{
"name": "CloudFlare-ImgBed",
"name": "self-imgbed",
"lockfileVersion": 3,
"requires": true,
"packages": {
+1
View File
@@ -41,6 +41,7 @@ class SqliteD1Statement {
* 绑定参数(模拟 D1 的 bind 方法)
*/
bind(...params) {
// SQLite 不支持 undefined,转换为 null 以兼容 D1 行为
this._params = params.map(p => p === undefined ? null : p);
return this;
}