llonebot-dist 6.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dist/default_config.json +68 -0
- dist/llonebot.js +48348 -0
- dist/llonebot.js.map +1 -0
- dist/node_modules/@borewit/text-codec/LICENSE.txt +9 -0
- dist/node_modules/@borewit/text-codec/README.md +76 -0
- dist/node_modules/@borewit/text-codec/lib/index.d.ts +8 -0
- dist/node_modules/@borewit/text-codec/lib/index.js +161 -0
- dist/node_modules/@borewit/text-codec/package.json +68 -0
- dist/node_modules/@minatojs/sql.js/LICENSE +44 -0
- dist/node_modules/@minatojs/sql.js/README.md +357 -0
- dist/node_modules/@minatojs/sql.js/dist/sql-wasm.d.ts +316 -0
- dist/node_modules/@minatojs/sql.js/dist/sql-wasm.js +225 -0
- dist/node_modules/@minatojs/sql.js/dist/sql-wasm.wasm +0 -0
- dist/node_modules/@minatojs/sql.js/package.json +58 -0
- dist/node_modules/@tokenizer/inflate/LICENSE +15 -0
- dist/node_modules/@tokenizer/inflate/README.md +114 -0
- dist/node_modules/@tokenizer/inflate/lib/GzipHandler.d.ts +6 -0
- dist/node_modules/@tokenizer/inflate/lib/GzipHandler.js +19 -0
- dist/node_modules/@tokenizer/inflate/lib/ZipHandler.d.ts +26 -0
- dist/node_modules/@tokenizer/inflate/lib/ZipHandler.js +233 -0
- dist/node_modules/@tokenizer/inflate/lib/ZipToken.d.ts +94 -0
- dist/node_modules/@tokenizer/inflate/lib/ZipToken.js +117 -0
- dist/node_modules/@tokenizer/inflate/lib/index.d.ts +3 -0
- dist/node_modules/@tokenizer/inflate/lib/index.js +2 -0
- dist/node_modules/@tokenizer/inflate/package.json +76 -0
- dist/node_modules/@tokenizer/token/README.md +19 -0
- dist/node_modules/@tokenizer/token/index.d.ts +30 -0
- dist/node_modules/@tokenizer/token/package.json +33 -0
- dist/node_modules/debug/LICENSE +20 -0
- dist/node_modules/debug/README.md +481 -0
- dist/node_modules/debug/package.json +64 -0
- dist/node_modules/debug/src/browser.js +272 -0
- dist/node_modules/debug/src/common.js +292 -0
- dist/node_modules/debug/src/index.js +10 -0
- dist/node_modules/debug/src/node.js +263 -0
- dist/node_modules/file-type/core.d.ts +253 -0
- dist/node_modules/file-type/core.js +1899 -0
- dist/node_modules/file-type/index.d.ts +98 -0
- dist/node_modules/file-type/index.js +86 -0
- dist/node_modules/file-type/license +9 -0
- dist/node_modules/file-type/package.json +288 -0
- dist/node_modules/file-type/readme.md +674 -0
- dist/node_modules/file-type/supported.js +356 -0
- dist/node_modules/file-type/util.js +60 -0
- dist/node_modules/ieee754/LICENSE +11 -0
- dist/node_modules/ieee754/README.md +51 -0
- dist/node_modules/ieee754/index.d.ts +10 -0
- dist/node_modules/ieee754/index.js +85 -0
- dist/node_modules/ieee754/package.json +52 -0
- dist/node_modules/ms/index.js +162 -0
- dist/node_modules/ms/license.md +21 -0
- dist/node_modules/ms/package.json +38 -0
- dist/node_modules/ms/readme.md +59 -0
- dist/node_modules/silk-wasm/LICENSE +21 -0
- dist/node_modules/silk-wasm/README.md +85 -0
- dist/node_modules/silk-wasm/lib/index.cjs +16 -0
- dist/node_modules/silk-wasm/lib/index.d.ts +70 -0
- dist/node_modules/silk-wasm/lib/index.mjs +16 -0
- dist/node_modules/silk-wasm/lib/silk.wasm +0 -0
- dist/node_modules/silk-wasm/lib/utils.d.ts +4 -0
- dist/node_modules/silk-wasm/package.json +39 -0
- dist/node_modules/strtok3/LICENSE.txt +21 -0
- dist/node_modules/strtok3/README.md +399 -0
- dist/node_modules/strtok3/lib/AbstractTokenizer.d.ts +76 -0
- dist/node_modules/strtok3/lib/AbstractTokenizer.js +108 -0
- dist/node_modules/strtok3/lib/BlobTokenizer.d.ts +29 -0
- dist/node_modules/strtok3/lib/BlobTokenizer.js +53 -0
- dist/node_modules/strtok3/lib/BufferTokenizer.d.ts +29 -0
- dist/node_modules/strtok3/lib/BufferTokenizer.js +52 -0
- dist/node_modules/strtok3/lib/FileTokenizer.d.ts +37 -0
- dist/node_modules/strtok3/lib/FileTokenizer.js +61 -0
- dist/node_modules/strtok3/lib/ReadStreamTokenizer.d.ts +31 -0
- dist/node_modules/strtok3/lib/ReadStreamTokenizer.js +102 -0
- dist/node_modules/strtok3/lib/core.d.ts +40 -0
- dist/node_modules/strtok3/lib/core.js +62 -0
- dist/node_modules/strtok3/lib/index.d.ts +16 -0
- dist/node_modules/strtok3/lib/index.js +22 -0
- dist/node_modules/strtok3/lib/stream/AbstractStreamReader.d.ts +54 -0
- dist/node_modules/strtok3/lib/stream/AbstractStreamReader.js +71 -0
- dist/node_modules/strtok3/lib/stream/Deferred.d.ts +6 -0
- dist/node_modules/strtok3/lib/stream/Deferred.js +10 -0
- dist/node_modules/strtok3/lib/stream/Errors.d.ts +10 -0
- dist/node_modules/strtok3/lib/stream/Errors.js +16 -0
- dist/node_modules/strtok3/lib/stream/StreamReader.d.ts +29 -0
- dist/node_modules/strtok3/lib/stream/StreamReader.js +83 -0
- dist/node_modules/strtok3/lib/stream/WebStreamByobReader.d.ts +14 -0
- dist/node_modules/strtok3/lib/stream/WebStreamByobReader.js +27 -0
- dist/node_modules/strtok3/lib/stream/WebStreamDefaultReader.d.ts +19 -0
- dist/node_modules/strtok3/lib/stream/WebStreamDefaultReader.js +62 -0
- dist/node_modules/strtok3/lib/stream/WebStreamReader.d.ts +14 -0
- dist/node_modules/strtok3/lib/stream/WebStreamReader.js +13 -0
- dist/node_modules/strtok3/lib/stream/WebStreamReaderFactory.d.ts +5 -0
- dist/node_modules/strtok3/lib/stream/WebStreamReaderFactory.js +19 -0
- dist/node_modules/strtok3/lib/stream/index.d.ts +6 -0
- dist/node_modules/strtok3/lib/stream/index.js +5 -0
- dist/node_modules/strtok3/lib/types.d.ts +139 -0
- dist/node_modules/strtok3/lib/types.js +1 -0
- dist/node_modules/strtok3/package.json +94 -0
- dist/node_modules/token-types/LICENSE.txt +9 -0
- dist/node_modules/token-types/README.md +120 -0
- dist/node_modules/token-types/lib/index.d.ts +135 -0
- dist/node_modules/token-types/lib/index.js +401 -0
- dist/node_modules/token-types/package.json +81 -0
- dist/node_modules/uint8array-extras/index.d.ts +312 -0
- dist/node_modules/uint8array-extras/index.js +321 -0
- dist/node_modules/uint8array-extras/license +9 -0
- dist/node_modules/uint8array-extras/package.json +54 -0
- dist/node_modules/uint8array-extras/readme.md +301 -0
- dist/node_modules/ws/LICENSE +20 -0
- dist/node_modules/ws/README.md +548 -0
- dist/node_modules/ws/browser.js +8 -0
- dist/node_modules/ws/index.js +13 -0
- dist/node_modules/ws/lib/buffer-util.js +131 -0
- dist/node_modules/ws/lib/constants.js +18 -0
- dist/node_modules/ws/lib/event-target.js +292 -0
- dist/node_modules/ws/lib/extension.js +203 -0
- dist/node_modules/ws/lib/limiter.js +55 -0
- dist/node_modules/ws/lib/permessage-deflate.js +528 -0
- dist/node_modules/ws/lib/receiver.js +706 -0
- dist/node_modules/ws/lib/sender.js +602 -0
- dist/node_modules/ws/lib/stream.js +161 -0
- dist/node_modules/ws/lib/subprotocol.js +62 -0
- dist/node_modules/ws/lib/validation.js +152 -0
- dist/node_modules/ws/lib/websocket-server.js +550 -0
- dist/node_modules/ws/lib/websocket.js +1388 -0
- dist/node_modules/ws/package.json +69 -0
- dist/node_modules/ws/wrapper.mjs +8 -0
- dist/package.json +1 -0
- dist/webui/assets/index-B9vGhdCO.js +256 -0
- dist/webui/assets/index-DaqFU7JR.css +1 -0
- dist/webui/index.html +13 -0
- dist/webui/logo.jpg +0 -0
- dist//344/275/277/347/224/250/350/257/264/346/230/216.txt +11 -0
- dist//346/233/264/346/226/260/346/227/245/345/277/227.txt +399 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
Typings for Node.js specific entry point.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import type {Readable as NodeReadableStream} from 'node:stream';
|
|
6
|
+
import type {AnyWebByteStream} from 'strtok3';
|
|
7
|
+
import {
|
|
8
|
+
type FileTypeResult,
|
|
9
|
+
type StreamOptions,
|
|
10
|
+
type AnyWebReadableStream,
|
|
11
|
+
type AnyWebReadableByteStreamWithFileType,
|
|
12
|
+
type FileTypeOptions,
|
|
13
|
+
FileTypeParser as DefaultFileTypeParser,
|
|
14
|
+
} from './core.js';
|
|
15
|
+
|
|
16
|
+
export type ReadableStreamWithFileType = NodeReadableStream & {
|
|
17
|
+
readonly fileType?: FileTypeResult;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
Extending `FileTypeParser` with Node.js engine specific functions.
|
|
22
|
+
*/
|
|
23
|
+
export declare class FileTypeParser extends DefaultFileTypeParser {
|
|
24
|
+
/**
|
|
25
|
+
@param stream - Node.js `stream.Readable` or web `ReadableStream`.
|
|
26
|
+
*/
|
|
27
|
+
fromStream(stream: AnyWebReadableStream<Uint8Array> | NodeReadableStream): Promise<FileTypeResult | undefined>;
|
|
28
|
+
|
|
29
|
+
fromFile(filePath: string): Promise<FileTypeResult | undefined>;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
Works the same way as {@link fileTypeStream}, additionally taking into account custom detectors (if any were provided to the constructor).
|
|
33
|
+
*/
|
|
34
|
+
toDetectionStream(readableStream: NodeReadableStream, options?: FileTypeOptions & StreamOptions): Promise<ReadableStreamWithFileType>;
|
|
35
|
+
toDetectionStream(webStream: AnyWebReadableStream<Uint8Array>, options?: FileTypeOptions & StreamOptions): Promise<AnyWebReadableByteStreamWithFileType>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
Detect the file type of a file path.
|
|
40
|
+
|
|
41
|
+
The file type is detected by checking the [magic number](https://en.wikipedia.org/wiki/Magic_number_(programming)#Magic_numbers_in_files) of the file.
|
|
42
|
+
|
|
43
|
+
This is for Node.js only.
|
|
44
|
+
|
|
45
|
+
To read from a [`File`](https://developer.mozilla.org/docs/Web/API/File), see `fileTypeFromBlob()`.
|
|
46
|
+
|
|
47
|
+
The file type is detected by checking the [magic number](https://en.wikipedia.org/wiki/Magic_number_(programming)#Magic_numbers_in_files) of the buffer.
|
|
48
|
+
|
|
49
|
+
@returns The detected file type and MIME type or `undefined` when there is no match.
|
|
50
|
+
*/
|
|
51
|
+
export function fileTypeFromFile(filePath: string, options?: FileTypeOptions): Promise<FileTypeResult | undefined>;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
Detect the file type of a [web `ReadableStream`](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream).
|
|
55
|
+
|
|
56
|
+
If the engine is Node.js, this may also be a [Node.js `stream.Readable`](https://nodejs.org/api/stream.html#stream_class_stream_readable).
|
|
57
|
+
|
|
58
|
+
Direct support for Node.js streams will be dropped in the future, when Node.js streams can be converted to Web streams (see [`toWeb()`](https://nodejs.org/api/stream.html#streamreadabletowebstreamreadable-options)).
|
|
59
|
+
|
|
60
|
+
The file type is detected by checking the [magic number](https://en.wikipedia.org/wiki/Magic_number_(programming)#Magic_numbers_in_files) of the buffer.
|
|
61
|
+
|
|
62
|
+
@param stream - A [web `ReadableStream`](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream) or [Node.js `stream.Readable`](https://nodejs.org/api/stream.html#stream_class_stream_readable) streaming a file to examine.
|
|
63
|
+
@param options - Options to override default behaviour.
|
|
64
|
+
@returns A `Promise` for an object with the detected file type, or `undefined` when there is no match.
|
|
65
|
+
*/
|
|
66
|
+
export function fileTypeFromStream(stream: AnyWebReadableStream<Uint8Array> | NodeReadableStream, options?: FileTypeOptions): Promise<FileTypeResult | undefined>;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
Returns a `Promise` which resolves to the original readable stream argument, but with an added `fileType` property, which is an object like the one returned from `fileTypeFromFile()`.
|
|
70
|
+
|
|
71
|
+
This method can be handy to put in between a stream, but it comes with a price.
|
|
72
|
+
Internally `stream()` builds up a buffer of `sampleSize` bytes, used as a sample, to determine the file type.
|
|
73
|
+
The sample size impacts the file detection resolution.
|
|
74
|
+
A smaller sample size will result in lower probability of the best file type detection.
|
|
75
|
+
|
|
76
|
+
@param readableStream - A [web `ReadableStream`](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream) or [Node.js `stream.Readable`](https://nodejs.org/api/stream.html#stream_class_stream_readable), streaming a file to examine.
|
|
77
|
+
@param options - May be used to override the default sample size.
|
|
78
|
+
@returns A `Promise` which resolves to the original readable stream argument, but with an added `fileType` property, which is an object like the one returned from `fileTypeFromFile()`.
|
|
79
|
+
|
|
80
|
+
@example
|
|
81
|
+
```
|
|
82
|
+
import got from 'got';
|
|
83
|
+
import {fileTypeStream} from 'file-type';
|
|
84
|
+
|
|
85
|
+
const url = 'https://upload.wikimedia.org/wikipedia/en/a/a9/Example.jpg';
|
|
86
|
+
|
|
87
|
+
const stream1 = got.stream(url);
|
|
88
|
+
const stream2 = await fileTypeStream(stream1, {sampleSize: 1024});
|
|
89
|
+
|
|
90
|
+
if (stream2.fileType?.mime === 'image/jpeg') {
|
|
91
|
+
// stream2 can be used to stream the JPEG image (from the very beginning of the stream)
|
|
92
|
+
}
|
|
93
|
+
```
|
|
94
|
+
*/
|
|
95
|
+
export function fileTypeStream(readableStream: NodeReadableStream, options?: FileTypeOptions & StreamOptions): Promise<ReadableStreamWithFileType>;
|
|
96
|
+
export function fileTypeStream(webStream: AnyWebByteStream, options?: FileTypeOptions & StreamOptions): Promise<AnyWebReadableByteStreamWithFileType>;
|
|
97
|
+
|
|
98
|
+
export * from './core.js';
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
Node.js specific entry point.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import {ReadableStream as WebReadableStream} from 'node:stream/web';
|
|
6
|
+
import {pipeline, PassThrough, Readable} from 'node:stream';
|
|
7
|
+
import * as strtok3 from 'strtok3';
|
|
8
|
+
import {FileTypeParser as DefaultFileTypeParser, reasonableDetectionSizeInBytes} from './core.js';
|
|
9
|
+
|
|
10
|
+
export class FileTypeParser extends DefaultFileTypeParser {
|
|
11
|
+
async fromStream(stream) {
|
|
12
|
+
const tokenizer = await (stream instanceof WebReadableStream ? strtok3.fromWebStream(stream, this.tokenizerOptions) : strtok3.fromStream(stream, this.tokenizerOptions));
|
|
13
|
+
try {
|
|
14
|
+
return await super.fromTokenizer(tokenizer);
|
|
15
|
+
} finally {
|
|
16
|
+
await tokenizer.close();
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
async fromFile(path) {
|
|
21
|
+
const tokenizer = await strtok3.fromFile(path);
|
|
22
|
+
try {
|
|
23
|
+
return await super.fromTokenizer(tokenizer);
|
|
24
|
+
} finally {
|
|
25
|
+
await tokenizer.close();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
async toDetectionStream(readableStream, options = {}) {
|
|
30
|
+
if (!(readableStream instanceof Readable)) {
|
|
31
|
+
return super.toDetectionStream(readableStream, options);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const {sampleSize = reasonableDetectionSizeInBytes} = options;
|
|
35
|
+
|
|
36
|
+
return new Promise((resolve, reject) => {
|
|
37
|
+
readableStream.on('error', reject);
|
|
38
|
+
|
|
39
|
+
readableStream.once('readable', () => {
|
|
40
|
+
(async () => {
|
|
41
|
+
try {
|
|
42
|
+
// Set up output stream
|
|
43
|
+
const pass = new PassThrough();
|
|
44
|
+
const outputStream = pipeline ? pipeline(readableStream, pass, () => {}) : readableStream.pipe(pass);
|
|
45
|
+
|
|
46
|
+
// Read the input stream and detect the filetype
|
|
47
|
+
const chunk = readableStream.read(sampleSize) ?? readableStream.read() ?? new Uint8Array(0);
|
|
48
|
+
try {
|
|
49
|
+
pass.fileType = await this.fromBuffer(chunk);
|
|
50
|
+
} catch (error) {
|
|
51
|
+
if (error instanceof strtok3.EndOfStreamError) {
|
|
52
|
+
pass.fileType = undefined;
|
|
53
|
+
} else {
|
|
54
|
+
reject(error);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
resolve(outputStream);
|
|
59
|
+
} catch (error) {
|
|
60
|
+
reject(error);
|
|
61
|
+
}
|
|
62
|
+
})();
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export async function fileTypeFromFile(path, options) {
|
|
69
|
+
return (new FileTypeParser(options)).fromFile(path, options);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export async function fileTypeFromStream(stream, options) {
|
|
73
|
+
return (new FileTypeParser(options)).fromStream(stream);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export async function fileTypeStream(readableStream, options = {}) {
|
|
77
|
+
return new FileTypeParser(options).toDetectionStream(readableStream, options);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export {
|
|
81
|
+
fileTypeFromTokenizer,
|
|
82
|
+
fileTypeFromBuffer,
|
|
83
|
+
fileTypeFromBlob,
|
|
84
|
+
supportedMimeTypes,
|
|
85
|
+
supportedExtensions,
|
|
86
|
+
} from './core.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "file-type",
|
|
3
|
+
"version": "21.1.1",
|
|
4
|
+
"description": "Detect the file type of a file, stream, or data",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "sindresorhus/file-type",
|
|
7
|
+
"funding": "https://github.com/sindresorhus/file-type?sponsor=1",
|
|
8
|
+
"author": {
|
|
9
|
+
"name": "Sindre Sorhus",
|
|
10
|
+
"email": "sindresorhus@gmail.com",
|
|
11
|
+
"url": "https://sindresorhus.com"
|
|
12
|
+
},
|
|
13
|
+
"type": "module",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"node": {
|
|
17
|
+
"types": "./index.d.ts",
|
|
18
|
+
"import": "./index.js",
|
|
19
|
+
"module-sync": "./index.js"
|
|
20
|
+
},
|
|
21
|
+
"default": {
|
|
22
|
+
"types": "./core.d.ts",
|
|
23
|
+
"import": "./core.js",
|
|
24
|
+
"module-sync": "./core.js"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"./core": {
|
|
28
|
+
"types": "./core.d.ts",
|
|
29
|
+
"default": "./core.js"
|
|
30
|
+
},
|
|
31
|
+
"./node": {
|
|
32
|
+
"types": "./index.d.ts",
|
|
33
|
+
"default": "./index.js"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"sideEffects": false,
|
|
37
|
+
"engines": {
|
|
38
|
+
"node": ">=20"
|
|
39
|
+
},
|
|
40
|
+
"scripts": {
|
|
41
|
+
"test": "xo && ava && tsd"
|
|
42
|
+
},
|
|
43
|
+
"files": [
|
|
44
|
+
"index.js",
|
|
45
|
+
"index.d.ts",
|
|
46
|
+
"core.js",
|
|
47
|
+
"core.d.ts",
|
|
48
|
+
"supported.js",
|
|
49
|
+
"util.js"
|
|
50
|
+
],
|
|
51
|
+
"keywords": [
|
|
52
|
+
"mime",
|
|
53
|
+
"file",
|
|
54
|
+
"type",
|
|
55
|
+
"magic",
|
|
56
|
+
"archive",
|
|
57
|
+
"image",
|
|
58
|
+
"img",
|
|
59
|
+
"pic",
|
|
60
|
+
"picture",
|
|
61
|
+
"flash",
|
|
62
|
+
"photo",
|
|
63
|
+
"video",
|
|
64
|
+
"detect",
|
|
65
|
+
"check",
|
|
66
|
+
"is",
|
|
67
|
+
"exif",
|
|
68
|
+
"elf",
|
|
69
|
+
"macho",
|
|
70
|
+
"exe",
|
|
71
|
+
"binary",
|
|
72
|
+
"buffer",
|
|
73
|
+
"uint8array",
|
|
74
|
+
"jpg",
|
|
75
|
+
"png",
|
|
76
|
+
"apng",
|
|
77
|
+
"gif",
|
|
78
|
+
"webp",
|
|
79
|
+
"flif",
|
|
80
|
+
"xcf",
|
|
81
|
+
"cr2",
|
|
82
|
+
"cr3",
|
|
83
|
+
"orf",
|
|
84
|
+
"arw",
|
|
85
|
+
"dng",
|
|
86
|
+
"nef",
|
|
87
|
+
"rw2",
|
|
88
|
+
"raf",
|
|
89
|
+
"tif",
|
|
90
|
+
"bmp",
|
|
91
|
+
"icns",
|
|
92
|
+
"jxr",
|
|
93
|
+
"psd",
|
|
94
|
+
"indd",
|
|
95
|
+
"zip",
|
|
96
|
+
"tar",
|
|
97
|
+
"rar",
|
|
98
|
+
"gz",
|
|
99
|
+
"bz2",
|
|
100
|
+
"7z",
|
|
101
|
+
"dmg",
|
|
102
|
+
"mp4",
|
|
103
|
+
"mid",
|
|
104
|
+
"mkv",
|
|
105
|
+
"webm",
|
|
106
|
+
"mov",
|
|
107
|
+
"avi",
|
|
108
|
+
"mpg",
|
|
109
|
+
"mp2",
|
|
110
|
+
"mp3",
|
|
111
|
+
"m4a",
|
|
112
|
+
"ogg",
|
|
113
|
+
"opus",
|
|
114
|
+
"flac",
|
|
115
|
+
"wav",
|
|
116
|
+
"amr",
|
|
117
|
+
"pdf",
|
|
118
|
+
"epub",
|
|
119
|
+
"mobi",
|
|
120
|
+
"swf",
|
|
121
|
+
"rtf",
|
|
122
|
+
"woff",
|
|
123
|
+
"woff2",
|
|
124
|
+
"eot",
|
|
125
|
+
"ttf",
|
|
126
|
+
"otf",
|
|
127
|
+
"ttc",
|
|
128
|
+
"ico",
|
|
129
|
+
"flv",
|
|
130
|
+
"ps",
|
|
131
|
+
"xz",
|
|
132
|
+
"sqlite",
|
|
133
|
+
"xpi",
|
|
134
|
+
"cab",
|
|
135
|
+
"deb",
|
|
136
|
+
"ar",
|
|
137
|
+
"rpm",
|
|
138
|
+
"Z",
|
|
139
|
+
"lz",
|
|
140
|
+
"cfb",
|
|
141
|
+
"mxf",
|
|
142
|
+
"mts",
|
|
143
|
+
"wasm",
|
|
144
|
+
"webassembly",
|
|
145
|
+
"blend",
|
|
146
|
+
"bpg",
|
|
147
|
+
"docx",
|
|
148
|
+
"pptx",
|
|
149
|
+
"xlsx",
|
|
150
|
+
"3gp",
|
|
151
|
+
"j2c",
|
|
152
|
+
"jp2",
|
|
153
|
+
"jpm",
|
|
154
|
+
"jpx",
|
|
155
|
+
"mj2",
|
|
156
|
+
"aif",
|
|
157
|
+
"odt",
|
|
158
|
+
"ods",
|
|
159
|
+
"odp",
|
|
160
|
+
"xml",
|
|
161
|
+
"heic",
|
|
162
|
+
"ics",
|
|
163
|
+
"glb",
|
|
164
|
+
"pcap",
|
|
165
|
+
"dsf",
|
|
166
|
+
"lnk",
|
|
167
|
+
"alias",
|
|
168
|
+
"voc",
|
|
169
|
+
"ac3",
|
|
170
|
+
"3g2",
|
|
171
|
+
"m4b",
|
|
172
|
+
"m4p",
|
|
173
|
+
"m4v",
|
|
174
|
+
"f4a",
|
|
175
|
+
"f4b",
|
|
176
|
+
"f4p",
|
|
177
|
+
"f4v",
|
|
178
|
+
"mie",
|
|
179
|
+
"qcp",
|
|
180
|
+
"asf",
|
|
181
|
+
"ogv",
|
|
182
|
+
"ogm",
|
|
183
|
+
"oga",
|
|
184
|
+
"spx",
|
|
185
|
+
"ogx",
|
|
186
|
+
"ape",
|
|
187
|
+
"wv",
|
|
188
|
+
"cur",
|
|
189
|
+
"nes",
|
|
190
|
+
"crx",
|
|
191
|
+
"ktx",
|
|
192
|
+
"dcm",
|
|
193
|
+
"mpc",
|
|
194
|
+
"arrow",
|
|
195
|
+
"shp",
|
|
196
|
+
"aac",
|
|
197
|
+
"mp1",
|
|
198
|
+
"it",
|
|
199
|
+
"s3m",
|
|
200
|
+
"xm",
|
|
201
|
+
"skp",
|
|
202
|
+
"avif",
|
|
203
|
+
"eps",
|
|
204
|
+
"lzh",
|
|
205
|
+
"pgp",
|
|
206
|
+
"asar",
|
|
207
|
+
"stl",
|
|
208
|
+
"chm",
|
|
209
|
+
"3mf",
|
|
210
|
+
"zst",
|
|
211
|
+
"jxl",
|
|
212
|
+
"vcf",
|
|
213
|
+
"jls",
|
|
214
|
+
"pst",
|
|
215
|
+
"dwg",
|
|
216
|
+
"parquet",
|
|
217
|
+
"class",
|
|
218
|
+
"arj",
|
|
219
|
+
"cpio",
|
|
220
|
+
"ace",
|
|
221
|
+
"avro",
|
|
222
|
+
"icc",
|
|
223
|
+
"fbx",
|
|
224
|
+
"vsdx",
|
|
225
|
+
"vtt",
|
|
226
|
+
"apk",
|
|
227
|
+
"drc",
|
|
228
|
+
"lz4",
|
|
229
|
+
"potx",
|
|
230
|
+
"xltx",
|
|
231
|
+
"dotx",
|
|
232
|
+
"xltm",
|
|
233
|
+
"ots",
|
|
234
|
+
"odg",
|
|
235
|
+
"otg",
|
|
236
|
+
"otp",
|
|
237
|
+
"ott",
|
|
238
|
+
"xlsm",
|
|
239
|
+
"docm",
|
|
240
|
+
"dotm",
|
|
241
|
+
"potm",
|
|
242
|
+
"pptm",
|
|
243
|
+
"jar",
|
|
244
|
+
"rm",
|
|
245
|
+
"ppsm",
|
|
246
|
+
"ppsx",
|
|
247
|
+
"tar.gz",
|
|
248
|
+
"reg",
|
|
249
|
+
"dat"
|
|
250
|
+
],
|
|
251
|
+
"dependencies": {
|
|
252
|
+
"@tokenizer/inflate": "^0.4.1",
|
|
253
|
+
"strtok3": "^10.3.4",
|
|
254
|
+
"token-types": "^6.1.1",
|
|
255
|
+
"uint8array-extras": "^1.4.0"
|
|
256
|
+
},
|
|
257
|
+
"devDependencies": {
|
|
258
|
+
"@tokenizer/token": "^0.3.0",
|
|
259
|
+
"@types/node": "^22.15.21",
|
|
260
|
+
"ava": "^6.3.0",
|
|
261
|
+
"commonmark": "^0.31.2",
|
|
262
|
+
"get-stream": "^9.0.1",
|
|
263
|
+
"noop-stream": "^1.0.0",
|
|
264
|
+
"tsd": "^0.32.0",
|
|
265
|
+
"xo": "^0.60.0"
|
|
266
|
+
},
|
|
267
|
+
"xo": {
|
|
268
|
+
"envs": [
|
|
269
|
+
"node",
|
|
270
|
+
"browser"
|
|
271
|
+
],
|
|
272
|
+
"ignores": [
|
|
273
|
+
"fixture"
|
|
274
|
+
],
|
|
275
|
+
"rules": {
|
|
276
|
+
"no-inner-declarations": "warn",
|
|
277
|
+
"no-await-in-loop": "warn",
|
|
278
|
+
"no-bitwise": "off",
|
|
279
|
+
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
280
|
+
"unicorn/text-encoding-identifier-case": "off",
|
|
281
|
+
"unicorn/switch-case-braces": "off",
|
|
282
|
+
"unicorn/prefer-top-level-await": "off"
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
"ava": {
|
|
286
|
+
"serial": true
|
|
287
|
+
}
|
|
288
|
+
}
|