sw: switch to foundkey-js

This commit is contained in:
Norm 2022-08-26 01:35:33 -04:00
parent 237c29a4b8
commit 622731d1bd
Signed by untrusted user: norm
GPG key ID: 7123E30E441E80DE
5 changed files with 5 additions and 15 deletions

View file

@ -10,8 +10,7 @@
"resolutions": {}, "resolutions": {},
"dependencies": { "dependencies": {
"esbuild": "^0.14.13", "esbuild": "^0.14.13",
"idb-keyval": "^6.0.3", "idb-keyval": "^6.0.3"
"misskey-js": "0.0.14"
}, },
"devDependencies": { "devDependencies": {
"eslint": "^8.20.0" "eslint": "^8.20.0"

View file

@ -1,5 +1,5 @@
import * as misskey from 'misskey-js'; import * as misskey from 'foundkey-js';
import * as Acct from 'misskey-js/built/acct'; import * as Acct from 'foundkey-js/built/acct';
export const acct = (user: misskey.Acct) => { export const acct = (user: misskey.Acct) => {
return Acct.toString(user); return Acct.toString(user);

View file

@ -4,7 +4,7 @@
*/ */
declare var self: ServiceWorkerGlobalScope; declare var self: ServiceWorkerGlobalScope;
import * as Misskey from 'misskey-js'; import * as Misskey from 'foundkey-js';
import { SwMessage, swMessageOrderType } from '@/types'; import { SwMessage, swMessageOrderType } from '@/types';
import { acct as getAcct } from '@/filters/user'; import { acct as getAcct } from '@/filters/user';
import { getAccountFromId } from '@/scripts/get-account-from-id'; import { getAccountFromId } from '@/scripts/get-account-from-id';

View file

@ -1,4 +1,4 @@
import * as Misskey from 'misskey-js'; import * as Misskey from 'foundkey-js';
export type swMessageOrderType = 'post' | 'push'; export type swMessageOrderType = 'post' | 'push';

View file

@ -8896,15 +8896,6 @@ minizlib@^2.1.1, minizlib@^2.1.2:
minipass "^3.0.0" minipass "^3.0.0"
yallist "^4.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: mixin-deep@^1.2.0:
version "1.3.2" version "1.3.2"
resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.2.tgz#1120b43dc359a785dce65b55b82e257ccf479566" resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.2.tgz#1120b43dc359a785dce65b55b82e257ccf479566"