Browse Source

Update TS & other deps

pull/52/head
Araragi 1 year ago
parent
commit
6d4d61cb5b
  1. 5357
      package-lock.json
  2. 44
      package.json
  3. 5
      src/Components/App.svelte
  4. 2
      src/background.ts
  5. 2
      src/filehosts.ts
  6. 2
      src/platform.ts
  7. 8
      src/processor.worker.ts
  8. 4
      tsconfig.json

5357
package-lock.json

File diff suppressed because it is too large

44
package.json

@ -15,7 +15,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"@astronautlabs/bitstream": "^4.1.2",
"@astronautlabs/bitstream": "^4.1.3",
"assert-browserify": "^2.0.0",
"base58": "^2.0.1",
"blockhash": "^0.2.0",
@ -23,41 +23,41 @@
"browserify-zlib": "^0.2.0",
"bs58": "^5.0.0",
"buffer": "^6.0.3",
"crc-32": "^1.2.0",
"crc-32": "^1.2.2",
"events": "^3.3.0",
"f5stegojs": "^0.1.2",
"file-type": "^17.0.2",
"hls.js": "^1.1.5",
"image-hash": "^5.0.1",
"jpeg-js": "^0.4.3",
"jsdom": "^19.0.0",
"linkify-string": "^3.0.4",
"file-type": "^18.0.0",
"hls.js": "^1.2.9",
"image-hash": "^5.3.1",
"jpeg-js": "^0.4.4",
"jsdom": "^20.0.3",
"linkify-string": "^4.0.2",
"lodash": "^4.17.21",
"mp4box": "^0.5.2",
"path-browserify": "^1.0.1",
"png-js": "^1.0.0",
"readable-stream": "^3.6.0",
"readable-stream": "^4.2.0",
"socks-proxy-agent": "^7.0.0",
"ts-ebml": "^2.0.2",
"util": "^0.12.4"
"util": "^0.12.5"
},
"devDependencies": {
"@tsconfig/svelte": "^3.0.0",
"@types/jsdom": "^16.2.14",
"@types/lodash": "^4.14.181",
"@types/jsdom": "^20.0.1",
"@types/lodash": "^4.14.191",
"@types/tampermonkey": "^4.0.5",
"@typescript-eslint/eslint-plugin": "^5.9.0",
"@typescript-eslint/eslint-plugin": "^5.47.0",
"crx": "^5.0.1",
"esbuild": "^0.14.48",
"esbuild-css-modules-plugin": "^2.0.9",
"esbuild": "^0.16.10",
"esbuild-css-modules-plugin": "^2.6.3",
"esbuild-plugin-inline-worker": "^0.1.1",
"esbuild-svelte": "^0.6.3",
"eslint": "^8.6.0",
"svelte": "^3.44.3",
"svelte-check": "^2.2.11",
"svelte-preprocess": "^4.10.1",
"typescript": "^4.5.4",
"web-ext": "^7.1.1",
"esbuild-svelte": "^0.7.3",
"eslint": "^8.30.0",
"svelte": "^3.55.0",
"svelte-check": "^2.10.3",
"svelte-preprocess": "^5.0.0",
"typescript": "^4.9.4",
"web-ext": "^7.4.0",
"web-ext-types": "^3.2.1"
},
"browser": {

5
src/Components/App.svelte

@ -134,10 +134,7 @@
<div class="content">
<h1>PEE Settings 0.{rev}</h1>
<h4>
<a href="https://2chen.moe/tech/">Join us on 2chen!</a>
<a href="https://git.coom.tech/araragi/JKCS/src/branch/master/README.md"
>Install JKCS!</a
>
<a href="https://2chen.moe/tech/">Join us on 2chen!</a>
</h4>
<hr />
<Tabs>

2
src/background.ts

@ -160,7 +160,7 @@ const bgCorsFetch = async (c: MessagePort,
}
};
const reader = k.body?.getReader();
let res: ReadableStreamDefaultReadResult<Uint8Array>;
let res: ReadableStreamReadResult<Uint8Array>;
for (; ;) {
res = await reader!.read();
if (res.done) break;

2
src/filehosts.ts

@ -70,4 +70,4 @@ export const filehosts: API[] = [
catbox('pomf.moe', 'a.pomf.cat'),
lolisafe('take-me-to.space'),
lolisafe('zz.ht', 'z.zz.fo'),
];
];

2
src/platform.ts

@ -351,7 +351,7 @@ export const corsFetch = async (input: string, init?: RequestInit, lsn?: EventTa
const r = rs.getReader();
await sendCmd({ name: 'fullyRead', fid: id });
const abs: Uint8Array[] = [];
let res: ReadableStreamDefaultReadResult<Uint8Array>;
let res: ReadableStreamReadResult<Uint8Array>;
do {
res = await r.read();
if (res.done) break;

8
src/processor.worker.ts

@ -127,13 +127,13 @@ const processImage = async (srcs: AsyncGenerator<string, void, void>, fn: string
return;
cumul = Buffer.alloc(0);
let found: boolean | undefined;
let chunk: ReadableStreamDefaultReadResult<Buffer> = { done: true };
let chunk: ReadableStreamReadResult<Buffer> = { done: true };
do {
const { value, done } = await iter.next(typeof found === "boolean");
if (done) {
chunk = { done: true } as ReadableStreamDefaultReadDoneResult;
chunk = { done: true } as ReadableStreamReadDoneResult<Buffer>;
} else {
chunk = { done: false, value } as ReadableStreamDefaultReadValueResult<Buffer>;
chunk = { done: false, value } as ReadableStreamReadValueResult<Buffer>;
cumul = Buffer.concat([cumul, value!]);
const v = await proc.has_embed(cumul);
if (typeof v == "string") {
@ -213,4 +213,4 @@ let init = false;
}
}
};
})();
})();

4
tsconfig.json

@ -1,7 +1,6 @@
{
"compilerOptions": {
"moduleResolution": "node",
//"target": "es2017",
/**
Svelte Preprocess cannot figure out whether you have a value or a type, so tell TypeScript
to enforce using `import type` instead of `import` for Types.
@ -9,7 +8,8 @@
"importsNotUsedAsValues": "error",
"isolatedModules": true,
"lib": [
"dom"
"dom",
"dom.iterable",
],
/**
To have warnings/errors of the Svelte compiler at the correct position,

Loading…
Cancel
Save