From 622731d1bda3acd0678fa0bfdce68665c734446d Mon Sep 17 00:00:00 2001 From: Francis Dinh Date: Fri, 26 Aug 2022 01:35:33 -0400 Subject: [PATCH] sw: switch to foundkey-js --- packages/sw/package.json | 3 +-- packages/sw/src/filters/user.ts | 4 ++-- packages/sw/src/scripts/operations.ts | 2 +- packages/sw/src/types.ts | 2 +- yarn.lock | 9 --------- 5 files changed, 5 insertions(+), 15 deletions(-) diff --git a/packages/sw/package.json b/packages/sw/package.json index 5434ccfbe..868440857 100644 --- a/packages/sw/package.json +++ b/packages/sw/package.json @@ -10,8 +10,7 @@ "resolutions": {}, "dependencies": { "esbuild": "^0.14.13", - "idb-keyval": "^6.0.3", - "misskey-js": "0.0.14" + "idb-keyval": "^6.0.3" }, "devDependencies": { "eslint": "^8.20.0" diff --git a/packages/sw/src/filters/user.ts b/packages/sw/src/filters/user.ts index 09437eb19..87cbe3a6b 100644 --- a/packages/sw/src/filters/user.ts +++ b/packages/sw/src/filters/user.ts @@ -1,5 +1,5 @@ -import * as misskey from 'misskey-js'; -import * as Acct from 'misskey-js/built/acct'; +import * as misskey from 'foundkey-js'; +import * as Acct from 'foundkey-js/built/acct'; export const acct = (user: misskey.Acct) => { return Acct.toString(user); diff --git a/packages/sw/src/scripts/operations.ts b/packages/sw/src/scripts/operations.ts index 02cf0d96c..ab74ba294 100644 --- a/packages/sw/src/scripts/operations.ts +++ b/packages/sw/src/scripts/operations.ts @@ -4,7 +4,7 @@ */ declare var self: ServiceWorkerGlobalScope; -import * as Misskey from 'misskey-js'; +import * as Misskey from 'foundkey-js'; import { SwMessage, swMessageOrderType } from '@/types'; import { acct as getAcct } from '@/filters/user'; import { getAccountFromId } from '@/scripts/get-account-from-id'; diff --git a/packages/sw/src/types.ts b/packages/sw/src/types.ts index 6aa3726ea..1f7fe6ce7 100644 --- a/packages/sw/src/types.ts +++ b/packages/sw/src/types.ts @@ -1,4 +1,4 @@ -import * as Misskey from 'misskey-js'; +import * as Misskey from 'foundkey-js'; export type swMessageOrderType = 'post' | 'push'; diff --git a/yarn.lock b/yarn.lock index 38fb02492..f276605f0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8896,15 +8896,6 @@ minizlib@^2.1.1, minizlib@^2.1.2: minipass "^3.0.0" yallist "^4.0.0" -misskey-js@0.0.14: - version "0.0.14" - resolved "https://registry.yarnpkg.com/misskey-js/-/misskey-js-0.0.14.tgz#1a616bdfbe81c6ee6900219eaf425bb5c714dd4d" - integrity sha512-bvLx6U3OwQwqHfp/WKwIVwdvNYAAPk0+YblXyxmSG3dwlzCgBRRLcB8o6bNruUDyJgh3t73pLDcOz3myxcUmww== - dependencies: - autobind-decorator "^2.4.0" - eventemitter3 "^4.0.7" - reconnecting-websocket "^4.4.0" - mixin-deep@^1.2.0: version "1.3.2" resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.2.tgz#1120b43dc359a785dce65b55b82e257ccf479566"