mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-25 13:39:06 +01:00
[backend] Move to our own fork of the re2 package
This fixes builds on alpine-arm64 (and presumably also other musl-arm64 distros)
This commit is contained in:
parent
b5a26e1667
commit
7cf00d1503
9 changed files with 40 additions and 36 deletions
34
.pnp.cjs
generated
34
.pnp.cjs
generated
|
@ -414,6 +414,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||||
"@humanwhocodes/object-schema",\
|
"@humanwhocodes/object-schema",\
|
||||||
"npm:1.2.1"\
|
"npm:1.2.1"\
|
||||||
],\
|
],\
|
||||||
|
[\
|
||||||
|
"@iceshrimp/re2",\
|
||||||
|
"npm:1.20.6::__archiveUrl=https%3A%2F%2Ficeshrimp.dev%2Fapi%2Fpackages%2Ficeshrimp%2Fnpm%2F%2540iceshrimp%252Fre2%2F-%2F1.20.6%2Fre2-1.20.6.tgz"\
|
||||||
|
],\
|
||||||
[\
|
[\
|
||||||
"@ioredis/commands",\
|
"@ioredis/commands",\
|
||||||
"npm:1.2.0"\
|
"npm:1.2.0"\
|
||||||
|
@ -5586,10 +5590,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||||
"rdf-canonize",\
|
"rdf-canonize",\
|
||||||
"npm:3.4.0"\
|
"npm:3.4.0"\
|
||||||
],\
|
],\
|
||||||
[\
|
|
||||||
"re2",\
|
|
||||||
"npm:1.20.5"\
|
|
||||||
],\
|
|
||||||
[\
|
[\
|
||||||
"react-is",\
|
"react-is",\
|
||||||
"npm:18.2.0"\
|
"npm:18.2.0"\
|
||||||
|
@ -9048,6 +9048,18 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||||
"linkType": "HARD"\
|
"linkType": "HARD"\
|
||||||
}]\
|
}]\
|
||||||
]],\
|
]],\
|
||||||
|
["@iceshrimp/re2", [\
|
||||||
|
["npm:1.20.6::__archiveUrl=https%3A%2F%2Ficeshrimp.dev%2Fapi%2Fpackages%2Ficeshrimp%2Fnpm%2F%2540iceshrimp%252Fre2%2F-%2F1.20.6%2Fre2-1.20.6.tgz", {\
|
||||||
|
"packageLocation": "./.yarn/unplugged/@iceshrimp-re2-npm-1.20.6-2ee015ddd5/node_modules/@iceshrimp/re2/",\
|
||||||
|
"packageDependencies": [\
|
||||||
|
["@iceshrimp/re2", "npm:1.20.6::__archiveUrl=https%3A%2F%2Ficeshrimp.dev%2Fapi%2Fpackages%2Ficeshrimp%2Fnpm%2F%2540iceshrimp%252Fre2%2F-%2F1.20.6%2Fre2-1.20.6.tgz"],\
|
||||||
|
["install-artifact-from-github", "npm:1.3.3"],\
|
||||||
|
["nan", "npm:2.18.0"],\
|
||||||
|
["node-gyp", "npm:9.4.0"]\
|
||||||
|
],\
|
||||||
|
"linkType": "HARD"\
|
||||||
|
}]\
|
||||||
|
]],\
|
||||||
["@ioredis/commands", [\
|
["@ioredis/commands", [\
|
||||||
["npm:1.2.0", {\
|
["npm:1.2.0", {\
|
||||||
"packageLocation": "./.yarn/cache/@ioredis-commands-npm-1.2.0-47541de88b-9b20225ba3.zip/node_modules/@ioredis/commands/",\
|
"packageLocation": "./.yarn/cache/@ioredis-commands-npm-1.2.0-47541de88b-9b20225ba3.zip/node_modules/@ioredis/commands/",\
|
||||||
|
@ -13935,6 +13947,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||||
["@bull-board/ui", "npm:5.6.0"],\
|
["@bull-board/ui", "npm:5.6.0"],\
|
||||||
["@discordapp/twemoji", "npm:14.1.2"],\
|
["@discordapp/twemoji", "npm:14.1.2"],\
|
||||||
["@elastic/elasticsearch", "npm:7.17.0"],\
|
["@elastic/elasticsearch", "npm:7.17.0"],\
|
||||||
|
["@iceshrimp/re2", "npm:1.20.6::__archiveUrl=https%3A%2F%2Ficeshrimp.dev%2Fapi%2Fpackages%2Ficeshrimp%2Fnpm%2F%2540iceshrimp%252Fre2%2F-%2F1.20.6%2Fre2-1.20.6.tgz"],\
|
||||||
["@koa/cors", "npm:3.4.3"],\
|
["@koa/cors", "npm:3.4.3"],\
|
||||||
["@koa/multer", "virtual:aa59773ac87791c4813d53447077fcf8a847d6de5a301d34dc31286584b1dbb26d30d3adb5b4c41c1e8aea04371e926fda05c09c6253647c432e11d872a304ba#npm:3.0.2"],\
|
["@koa/multer", "virtual:aa59773ac87791c4813d53447077fcf8a847d6de5a301d34dc31286584b1dbb26d30d3adb5b4c41c1e8aea04371e926fda05c09c6253647c432e11d872a304ba#npm:3.0.2"],\
|
||||||
["@koa/router", "npm:9.0.1"],\
|
["@koa/router", "npm:9.0.1"],\
|
||||||
|
@ -14072,7 +14085,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||||
["qs", "npm:6.11.2"],\
|
["qs", "npm:6.11.2"],\
|
||||||
["random-seed", "npm:0.3.0"],\
|
["random-seed", "npm:0.3.0"],\
|
||||||
["ratelimiter", "npm:3.4.1"],\
|
["ratelimiter", "npm:3.4.1"],\
|
||||||
["re2", "npm:1.20.5"],\
|
|
||||||
["redis-lock", "npm:0.1.4"],\
|
["redis-lock", "npm:0.1.4"],\
|
||||||
["redis-semaphore", "virtual:aa59773ac87791c4813d53447077fcf8a847d6de5a301d34dc31286584b1dbb26d30d3adb5b4c41c1e8aea04371e926fda05c09c6253647c432e11d872a304ba#npm:5.3.1"],\
|
["redis-semaphore", "virtual:aa59773ac87791c4813d53447077fcf8a847d6de5a301d34dc31286584b1dbb26d30d3adb5b4c41c1e8aea04371e926fda05c09c6253647c432e11d872a304ba#npm:5.3.1"],\
|
||||||
["reflect-metadata", "npm:0.1.13"],\
|
["reflect-metadata", "npm:0.1.13"],\
|
||||||
|
@ -27672,18 +27684,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||||
"linkType": "HARD"\
|
"linkType": "HARD"\
|
||||||
}]\
|
}]\
|
||||||
]],\
|
]],\
|
||||||
["re2", [\
|
|
||||||
["npm:1.20.5", {\
|
|
||||||
"packageLocation": "./.yarn/unplugged/re2-npm-1.20.5-851f906517/node_modules/re2/",\
|
|
||||||
"packageDependencies": [\
|
|
||||||
["re2", "npm:1.20.5"],\
|
|
||||||
["install-artifact-from-github", "npm:1.3.3"],\
|
|
||||||
["nan", "npm:2.18.0"],\
|
|
||||||
["node-gyp", "npm:9.4.0"]\
|
|
||||||
],\
|
|
||||||
"linkType": "HARD"\
|
|
||||||
}]\
|
|
||||||
]],\
|
|
||||||
["react-is", [\
|
["react-is", [\
|
||||||
["npm:17.0.2", {\
|
["npm:17.0.2", {\
|
||||||
"packageLocation": "./.yarn/cache/react-is-npm-17.0.2-091bbb8db6-9d6d111d89.zip/node_modules/react-is/",\
|
"packageLocation": "./.yarn/cache/react-is-npm-17.0.2-091bbb8db6-9d6d111d89.zip/node_modules/react-is/",\
|
||||||
|
|
BIN
.yarn/cache/@iceshrimp-re2-npm-1.20.6-2ee015ddd5-d1831fdd46.zip
(Stored with Git LFS)
vendored
Normal file
BIN
.yarn/cache/@iceshrimp-re2-npm-1.20.6-2ee015ddd5-d1831fdd46.zip
(Stored with Git LFS)
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/re2-npm-1.20.5-851f906517-94979a62e5.zip
(Stored with Git LFS)
vendored
BIN
.yarn/cache/re2-npm-1.20.5-851f906517-94979a62e5.zip
(Stored with Git LFS)
vendored
Binary file not shown.
|
@ -9,3 +9,7 @@ supportedArchitectures:
|
||||||
plugins:
|
plugins:
|
||||||
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
|
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
|
||||||
spec: "@yarnpkg/plugin-workspace-tools"
|
spec: "@yarnpkg/plugin-workspace-tools"
|
||||||
|
|
||||||
|
npmScopes:
|
||||||
|
iceshrimp:
|
||||||
|
npmRegistryServer: "https://iceshrimp.dev/api/packages/iceshrimp/npm/"
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
"@bull-board/ui": "5.6.0",
|
"@bull-board/ui": "5.6.0",
|
||||||
"@discordapp/twemoji": "14.1.2",
|
"@discordapp/twemoji": "14.1.2",
|
||||||
"@elastic/elasticsearch": "7.17.0",
|
"@elastic/elasticsearch": "7.17.0",
|
||||||
|
"@iceshrimp/re2": "^1.20.6",
|
||||||
"@koa/cors": "3.4.3",
|
"@koa/cors": "3.4.3",
|
||||||
"@koa/multer": "3.0.2",
|
"@koa/multer": "3.0.2",
|
||||||
"@koa/router": "9.0.1",
|
"@koa/router": "9.0.1",
|
||||||
|
@ -110,7 +111,6 @@
|
||||||
"qs": "6.11.2",
|
"qs": "6.11.2",
|
||||||
"random-seed": "0.3.0",
|
"random-seed": "0.3.0",
|
||||||
"ratelimiter": "3.4.1",
|
"ratelimiter": "3.4.1",
|
||||||
"re2": "^1.20.5",
|
|
||||||
"redis-lock": "0.1.4",
|
"redis-lock": "0.1.4",
|
||||||
"redis-semaphore": "5.3.1",
|
"redis-semaphore": "5.3.1",
|
||||||
"reflect-metadata": "0.1.13",
|
"reflect-metadata": "0.1.13",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { MigrationInterface, QueryRunner } from "typeorm";
|
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||||
import RE2 from "re2";
|
import RE2 from "@iceshrimp/re2";
|
||||||
|
|
||||||
export class convertHardMutes1644010796173 implements MigrationInterface {
|
export class convertHardMutes1644010796173 implements MigrationInterface {
|
||||||
name = "convertHardMutes1644010796173";
|
name = "convertHardMutes1644010796173";
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import RE2 from "re2";
|
import RE2 from "@iceshrimp/re2";
|
||||||
import type { Note } from "@/models/entities/note.js";
|
import type { Note } from "@/models/entities/note.js";
|
||||||
import type { User } from "@/models/entities/user.js";
|
import type { User } from "@/models/entities/user.js";
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import RE2 from "re2";
|
import RE2 from "@iceshrimp/re2";
|
||||||
import * as mfm from "mfm-js";
|
import * as mfm from "mfm-js";
|
||||||
import { publishMainStream, publishUserEvent } from "@/services/stream.js";
|
import { publishMainStream, publishUserEvent } from "@/services/stream.js";
|
||||||
import acceptAllFollowRequests from "@/services/following/requests/accept-all.js";
|
import acceptAllFollowRequests from "@/services/following/requests/accept-all.js";
|
||||||
|
|
24
yarn.lock
24
yarn.lock
|
@ -1387,6 +1387,17 @@ __metadata:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"@iceshrimp/re2@npm:^1.20.6":
|
||||||
|
version: 1.20.6
|
||||||
|
resolution: "@iceshrimp/re2@npm:1.20.6::__archiveUrl=https%3A%2F%2Ficeshrimp.dev%2Fapi%2Fpackages%2Ficeshrimp%2Fnpm%2F%2540iceshrimp%252Fre2%2F-%2F1.20.6%2Fre2-1.20.6.tgz"
|
||||||
|
dependencies:
|
||||||
|
install-artifact-from-github: ^1.3.3
|
||||||
|
nan: ^2.18.0
|
||||||
|
node-gyp: ^9.4.0
|
||||||
|
checksum: d1831fdd46f23cf46993773156ce796ee3cada4d5083a1916a9c8ba716d05a93a77d15f162cdadc8ff4c3fa4fa977300082b92053076ced294ca512069ab92bc
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"@ioredis/commands@npm:^1.1.1":
|
"@ioredis/commands@npm:^1.1.1":
|
||||||
version: 1.2.0
|
version: 1.2.0
|
||||||
resolution: "@ioredis/commands@npm:1.2.0"
|
resolution: "@ioredis/commands@npm:1.2.0"
|
||||||
|
@ -5289,6 +5300,7 @@ __metadata:
|
||||||
"@bull-board/ui": 5.6.0
|
"@bull-board/ui": 5.6.0
|
||||||
"@discordapp/twemoji": 14.1.2
|
"@discordapp/twemoji": 14.1.2
|
||||||
"@elastic/elasticsearch": 7.17.0
|
"@elastic/elasticsearch": 7.17.0
|
||||||
|
"@iceshrimp/re2": ^1.20.6
|
||||||
"@koa/cors": 3.4.3
|
"@koa/cors": 3.4.3
|
||||||
"@koa/multer": 3.0.2
|
"@koa/multer": 3.0.2
|
||||||
"@koa/router": 9.0.1
|
"@koa/router": 9.0.1
|
||||||
|
@ -5426,7 +5438,6 @@ __metadata:
|
||||||
qs: 6.11.2
|
qs: 6.11.2
|
||||||
random-seed: 0.3.0
|
random-seed: 0.3.0
|
||||||
ratelimiter: 3.4.1
|
ratelimiter: 3.4.1
|
||||||
re2: ^1.20.5
|
|
||||||
redis-lock: 0.1.4
|
redis-lock: 0.1.4
|
||||||
redis-semaphore: 5.3.1
|
redis-semaphore: 5.3.1
|
||||||
reflect-metadata: 0.1.13
|
reflect-metadata: 0.1.13
|
||||||
|
@ -17230,17 +17241,6 @@ __metadata:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"re2@npm:^1.20.5":
|
|
||||||
version: 1.20.5
|
|
||||||
resolution: "re2@npm:1.20.5"
|
|
||||||
dependencies:
|
|
||||||
install-artifact-from-github: ^1.3.3
|
|
||||||
nan: ^2.18.0
|
|
||||||
node-gyp: ^9.4.0
|
|
||||||
checksum: 94979a62e52cd35530ea496c64e9bc10266265ce8fb8ed233184b99c035d1cfe8e353bb46e0f5ac1648f0496bda28bc39026d71a32c7078e4b4daa984a7c510e
|
|
||||||
languageName: node
|
|
||||||
linkType: hard
|
|
||||||
|
|
||||||
"react-is@npm:^17.0.1":
|
"react-is@npm:^17.0.1":
|
||||||
version: 17.0.2
|
version: 17.0.2
|
||||||
resolution: "react-is@npm:17.0.2"
|
resolution: "react-is@npm:17.0.2"
|
||||||
|
|
Loading…
Reference in a new issue