Skip to content

Commit

Permalink
update deps (#844)
Browse files Browse the repository at this point in the history
fixes nsfwjs error in b3f73d7
  • Loading branch information
u1-liquid authored Dec 25, 2024
1 parent 8abe8ae commit 531565a
Show file tree
Hide file tree
Showing 10 changed files with 280 additions and 277 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ COPY --chown=misskey:misskey . ./
USER misskey
ENV LD_PRELOAD=/usr/local/lib/libjemalloc.so
ENV MALLOC_CONF=background_thread:true,metadata_thp:auto,dirty_decay_ms:30000,muzzy_decay_ms:30000
ENV TF_CPP_MIN_LOG_LEVEL=2
ENV NODE_ENV=production
HEALTHCHECK --interval=5s --retries=20 CMD ["/bin/bash", "/misskey/healthcheck.sh"]
ENTRYPOINT ["/usr/bin/tini", "--"]
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
"esbuild": "0.24.2",
"jpeg-js": "0.4.4",
"lodash": "4.17.21",
"punycode": "npm:[email protected]",
"sharp": "0.33.5",
"tough-cookie": "5.0.0",
"web-streams-polyfill": "4.0.0"
Expand Down
16 changes: 8 additions & 8 deletions packages/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"@peertube/http-signature": "1.7.0",
"@simplewebauthn/server": "13.0.0",
"@sinonjs/fake-timers": "11.3.1",
"@smithy/node-http-handler": "3.3.2",
"@smithy/node-http-handler": "3.3.3",
"@swc/cli": "0.5.2",
"@swc/core": "1.10.1",
"@twemoji/parser": "15.1.1",
Expand All @@ -102,7 +102,7 @@
"bullmq": "5.34.4",
"cacheable-lookup": "7.0.0",
"cbor": "10.0.3",
"chalk": "5.4.0",
"chalk": "5.4.1",
"chalk-template": "1.1.0",
"chokidar": "4.0.3",
"cli-highlight": "2.1.11",
Expand Down Expand Up @@ -130,9 +130,9 @@
"js-yaml": "4.1.0",
"jsdom": "25.0.1",
"json5": "2.2.3",
"jsonld": "8.3.2",
"jsonld": "8.3.3",
"jsrsasign": "11.1.0",
"meilisearch": "0.46.0",
"meilisearch": "0.47.0",
"mfm-js": "0.24.0",
"microformats-parser": "2.0.2",
"mime-types": "2.1.35",
Expand All @@ -152,7 +152,7 @@
"otpauth": "9.3.6",
"parse5": "7.2.1",
"pg": "8.13.1",
"pino": "9.5.0",
"pino": "9.6.0",
"pino-pretty": "13.0.0",
"pkce-challenge": "4.1.0",
"probe-image-size": "7.2.3",
Expand All @@ -175,7 +175,7 @@
"slacc": "0.0.10",
"strict-event-emitter-types": "2.0.0",
"stringz": "2.1.0",
"systeminformation": "5.23.14",
"systeminformation": "5.23.21",
"tinycolor2": "1.6.0",
"tmp": "0.2.3",
"tsc-alias": "1.8.10",
Expand All @@ -201,7 +201,7 @@
"@types/color-convert": "2.0.4",
"@types/content-disposition": "0.5.8",
"@types/fluent-ffmpeg": "2.1.27",
"@types/htmlescape": "^1.1.3",
"@types/htmlescape": "1.1.3",
"@types/http-link-header": "1.0.7",
"@types/jest": "29.5.14",
"@types/js-yaml": "4.0.9",
Expand Down Expand Up @@ -239,7 +239,7 @@
"eslint": "8.57.1",
"eslint-plugin-import": "2.31.0",
"execa": "9.5.2",
"fkill": "^9.0.0",
"fkill": "9.0.0",
"jest": "29.7.0",
"jest-mock": "29.7.0",
"nodemon": "3.1.9",
Expand Down
6 changes: 3 additions & 3 deletions packages/backend/src/core/AiService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ export class AiService {
const sharp = await sharpBmp(path, mime);
const { data, info } = await sharp
.resize(299, 299, { fit: 'inside' })
.ensureAlpha()
.raw({ depth: 'int' })
.removeAlpha()
.raw({ depth: 'uchar' })
.toBuffer({ resolveWithObject: true });

const image = tf.tensor3d(data, [info.height, info.width, info.channels], 'int32');
const image = tf.tensor3d(data, [info.height, info.width, info.channels], 'bool');
try {
return await this.model.classify(image);
} finally {
Expand Down
6 changes: 3 additions & 3 deletions packages/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"rollup": "4.29.1",
"sanitize-html": "2.14.0",
"sass": "1.83.0",
"shiki": "1.24.3",
"shiki": "1.24.4",
"strict-event-emitter-types": "2.0.0",
"textarea-caret": "3.1.0",
"three": "0.171.0",
Expand Down Expand Up @@ -138,8 +138,8 @@
"vite-plugin-turbosnap": "1.0.3",
"vitest": "2.1.8",
"vitest-fetch-mock": "0.3.0",
"vue-component-type-helpers": "2.1.10",
"vue-component-type-helpers": "2.2.0",
"vue-eslint-parser": "9.4.3",
"vue-tsc": "2.1.10"
"vue-tsc": "2.2.0"
}
}
2 changes: 1 addition & 1 deletion packages/misskey-bubble-game/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"built"
],
"dependencies": {
"esbuild": "0.24.0",
"esbuild": "0.24.2",
"eventemitter3": "5.0.1",
"glob": "11.0.0",
"matter-js": "0.20.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/misskey-js/generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"generate": "tsx src/generator.ts && eslint ./built/**/* --ext .ts --fix"
},
"devDependencies": {
"@misskey-dev/eslint-plugin": "^1.0.0",
"@misskey-dev/eslint-plugin": "1.0.0",
"@readme/openapi-parser": "2.6.0",
"@types/node": "22.10.2",
"@typescript-eslint/eslint-plugin": "7.10.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/misskey-reversi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"dependencies": {
"crc-32": "1.2.2",
"esbuild": "0.24.0",
"esbuild": "0.24.2",
"glob": "11.0.0"
},
"files": [
Expand Down
4 changes: 2 additions & 2 deletions packages/sw/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
"lint": "pnpm typecheck && pnpm eslint"
},
"dependencies": {
"esbuild": "0.24.0",
"esbuild": "0.24.2",
"idb-keyval": "6.2.1",
"misskey-js": "workspace:*"
},
"devDependencies": {
"@misskey-dev/eslint-plugin": "1.0.0",
"@types/serviceworker": "0.0.107",
"@types/serviceworker": "0.0.108",
"@typescript-eslint/parser": "7.10.0",
"eslint": "8.57.1",
"eslint-plugin-import": "2.31.0",
Expand Down
Loading

0 comments on commit 531565a

Please sign in to comment.