simple-zstd 1.4.2 → 2.0.0
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.
- package/.github/workflows/ci.yml +46 -0
- package/.github/workflows/release.yml +45 -0
- package/.prettierignore +5 -0
- package/.prettierrc +8 -0
- package/.release-it.json +28 -0
- package/CHANGELOG.md +26 -0
- package/README.md +690 -47
- package/dist/src/buffer-writable.d.ts +12 -0
- package/dist/src/buffer-writable.js +41 -0
- package/dist/src/index.d.ts +49 -0
- package/dist/src/index.js +430 -0
- package/dist/src/peek-transform.d.ts +16 -0
- package/dist/src/peek-transform.js +145 -0
- package/dist/src/process-duplex.d.ts +11 -0
- package/dist/src/process-duplex.js +157 -0
- package/dist/src/process-queue.d.ts +8 -0
- package/dist/src/process-queue.js +94 -0
- package/dist/src/types.d.ts +34 -0
- package/dist/src/types.js +3 -0
- package/eslint.config.js +49 -0
- package/package.json +32 -16
- package/src/buffer-writable.ts +30 -0
- package/src/index.ts +472 -0
- package/src/is-zst.d.ts +5 -0
- package/src/peek-transform.ts +153 -0
- package/src/process-duplex.ts +164 -0
- package/src/process-queue.ts +97 -0
- package/src/types.ts +35 -0
- package/tsconfig.json +110 -0
- package/.eslintrc.js +0 -18
- package/.nyc_output/4b36a1ef-a01d-4de7-a4be-e966f315cbd7.json +0 -1
- package/.nyc_output/5d73987b-f188-488b-8441-66c67bb19076.json +0 -1
- package/.nyc_output/processinfo/4b36a1ef-a01d-4de7-a4be-e966f315cbd7.json +0 -1
- package/.nyc_output/processinfo/5d73987b-f188-488b-8441-66c67bb19076.json +0 -1
- package/.nyc_output/processinfo/index.json +0 -1
- package/.travis.yml +0 -9
- package/coverage/base.css +0 -224
- package/coverage/block-navigation.js +0 -87
- package/coverage/buffer-writable.js.html +0 -154
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +0 -146
- package/coverage/index.js.html +0 -841
- package/coverage/oven.js.html +0 -235
- package/coverage/prettify.css +0 -1
- package/coverage/prettify.js +0 -2
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +0 -196
- package/index.js +0 -68
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { Duplex } from 'node:stream';
|
|
2
|
+
import { spawn, ChildProcess, SpawnOptions } from 'node:child_process';
|
|
3
|
+
import type { DuplexOptions } from 'node:stream';
|
|
4
|
+
|
|
5
|
+
export default class ProcessDuplex extends Duplex {
|
|
6
|
+
#process: ChildProcess;
|
|
7
|
+
#stdoutDataHandler?: (chunk: Buffer) => void;
|
|
8
|
+
#stdoutEndHandler?: () => void;
|
|
9
|
+
#stdoutErrorHandler?: (err: Error) => void;
|
|
10
|
+
#stdoutCloseHandler?: () => void;
|
|
11
|
+
#stderrDataHandler?: (chunk: Buffer) => void;
|
|
12
|
+
#processExitHandler?: (code: number | null, signal: NodeJS.Signals | null) => void;
|
|
13
|
+
#processErrorHandler?: (err: Error) => void;
|
|
14
|
+
|
|
15
|
+
constructor(
|
|
16
|
+
command: string,
|
|
17
|
+
args: string[],
|
|
18
|
+
spawnOptions?: SpawnOptions,
|
|
19
|
+
streamOptions?: DuplexOptions
|
|
20
|
+
) {
|
|
21
|
+
super(streamOptions);
|
|
22
|
+
|
|
23
|
+
// Spawn the child process
|
|
24
|
+
this.#process = spawn(command, args, spawnOptions || {});
|
|
25
|
+
|
|
26
|
+
// Forward stdout to the readable side of this duplex
|
|
27
|
+
if (this.#process.stdout) {
|
|
28
|
+
this.#stdoutDataHandler = (chunk: Buffer) => {
|
|
29
|
+
const canPushMore = this.push(chunk);
|
|
30
|
+
if (!canPushMore) {
|
|
31
|
+
this.#process.stdout?.pause();
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
this.#process.stdout.on('data', this.#stdoutDataHandler);
|
|
35
|
+
|
|
36
|
+
this.#stdoutEndHandler = () => {
|
|
37
|
+
// Signal end of readable side
|
|
38
|
+
this.push(null);
|
|
39
|
+
};
|
|
40
|
+
this.#process.stdout.on('end', this.#stdoutEndHandler);
|
|
41
|
+
|
|
42
|
+
this.#stdoutErrorHandler = (err: Error) => {
|
|
43
|
+
this.destroy(err);
|
|
44
|
+
};
|
|
45
|
+
this.#process.stdout.on('error', this.#stdoutErrorHandler);
|
|
46
|
+
|
|
47
|
+
this.#stdoutCloseHandler = () => {
|
|
48
|
+
// Ensure we signal end if not already done
|
|
49
|
+
this.push(null);
|
|
50
|
+
};
|
|
51
|
+
this.#process.stdout.on('close', this.#stdoutCloseHandler);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Forward stderr errors
|
|
55
|
+
if (this.#process.stderr) {
|
|
56
|
+
this.#stderrDataHandler = (chunk: Buffer) => {
|
|
57
|
+
// Emit stderr as a warning or error event
|
|
58
|
+
this.emit('stderr', chunk.toString());
|
|
59
|
+
};
|
|
60
|
+
this.#process.stderr.on('data', this.#stderrDataHandler);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Handle process exit
|
|
64
|
+
this.#processExitHandler = (code: number | null, signal: NodeJS.Signals | null) => {
|
|
65
|
+
this.emit('exit', code, signal);
|
|
66
|
+
};
|
|
67
|
+
this.#process.on('exit', this.#processExitHandler);
|
|
68
|
+
|
|
69
|
+
// Handle process errors
|
|
70
|
+
this.#processErrorHandler = (err: Error) => {
|
|
71
|
+
this.destroy(err);
|
|
72
|
+
};
|
|
73
|
+
this.#process.on('error', this.#processErrorHandler);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
_read(_size: number) {
|
|
77
|
+
// Resume stdout if it was paused
|
|
78
|
+
if (this.#process.stdout && this.#process.stdout.isPaused()) {
|
|
79
|
+
this.#process.stdout.resume();
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
_write(chunk: Buffer, encoding: BufferEncoding, callback: (error?: Error | null) => void) {
|
|
84
|
+
// Write to the process stdin
|
|
85
|
+
if (this.#process.stdin) {
|
|
86
|
+
if (!this.#process.stdin.write(chunk, encoding)) {
|
|
87
|
+
// If the write buffer is full, wait for drain
|
|
88
|
+
this.#process.stdin.once('drain', callback);
|
|
89
|
+
} else {
|
|
90
|
+
callback();
|
|
91
|
+
}
|
|
92
|
+
} else {
|
|
93
|
+
callback(new Error('Process stdin is not available'));
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
_final(callback: (error?: Error | null) => void) {
|
|
98
|
+
// Close stdin when the writable side is finished
|
|
99
|
+
if (this.#process.stdin) {
|
|
100
|
+
this.#process.stdin.end(callback);
|
|
101
|
+
} else {
|
|
102
|
+
callback();
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
_destroy(error: Error | null, callback: (error: Error | null) => void) {
|
|
107
|
+
// Remove all event listeners to prevent memory leaks
|
|
108
|
+
if (this.#process.stdout) {
|
|
109
|
+
if (this.#stdoutDataHandler)
|
|
110
|
+
this.#process.stdout.removeListener('data', this.#stdoutDataHandler);
|
|
111
|
+
if (this.#stdoutEndHandler)
|
|
112
|
+
this.#process.stdout.removeListener('end', this.#stdoutEndHandler);
|
|
113
|
+
if (this.#stdoutErrorHandler)
|
|
114
|
+
this.#process.stdout.removeListener('error', this.#stdoutErrorHandler);
|
|
115
|
+
if (this.#stdoutCloseHandler)
|
|
116
|
+
this.#process.stdout.removeListener('close', this.#stdoutCloseHandler);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
if (this.#process.stderr && this.#stderrDataHandler) {
|
|
120
|
+
this.#process.stderr.removeListener('data', this.#stderrDataHandler);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
if (this.#processExitHandler) {
|
|
124
|
+
this.#process.removeListener('exit', this.#processExitHandler);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
if (this.#processErrorHandler) {
|
|
128
|
+
this.#process.removeListener('error', this.#processErrorHandler);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
// Kill the child process and wait for it to exit
|
|
132
|
+
if (this.#process && !this.#process.killed) {
|
|
133
|
+
// Close stdin first so the process receives EOF and can exit cleanly
|
|
134
|
+
if (this.#process.stdin && !this.#process.stdin.destroyed) {
|
|
135
|
+
this.#process.stdin.end();
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// Wait for the process to fully exit before calling callback
|
|
139
|
+
const onClose = () => {
|
|
140
|
+
clearTimeout(forceKillTimeout);
|
|
141
|
+
callback(error);
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
// Set up close listener
|
|
145
|
+
this.#process.once('close', onClose);
|
|
146
|
+
|
|
147
|
+
// Kill the process (should exit quickly now that stdin is closed)
|
|
148
|
+
this.#process.kill();
|
|
149
|
+
|
|
150
|
+
// Force kill if process doesn't exit within 1 second
|
|
151
|
+
const forceKillTimeout = setTimeout(() => {
|
|
152
|
+
if (!this.#process.killed) {
|
|
153
|
+
this.#process.kill('SIGKILL');
|
|
154
|
+
}
|
|
155
|
+
// Remove the close listener and call callback
|
|
156
|
+
this.#process.removeListener('close', onClose);
|
|
157
|
+
callback(error);
|
|
158
|
+
}, 1000);
|
|
159
|
+
} else {
|
|
160
|
+
// Process already killed or doesn't exist
|
|
161
|
+
callback(error);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
// This is a generic class for creating a queue of worker processes.
|
|
2
|
+
|
|
3
|
+
import Debug from 'debug';
|
|
4
|
+
|
|
5
|
+
const debug = Debug('SimpleZSTDQueue');
|
|
6
|
+
|
|
7
|
+
export default class ProcessQueue<QueueItem> {
|
|
8
|
+
#targetSize;
|
|
9
|
+
|
|
10
|
+
#queue: Array<Promise<QueueItem>>;
|
|
11
|
+
|
|
12
|
+
#factory: () => Promise<QueueItem>;
|
|
13
|
+
|
|
14
|
+
#destroy: (process: Promise<QueueItem>) => void;
|
|
15
|
+
|
|
16
|
+
#hitCount;
|
|
17
|
+
|
|
18
|
+
#missCount;
|
|
19
|
+
|
|
20
|
+
#destroyed: boolean;
|
|
21
|
+
|
|
22
|
+
constructor(
|
|
23
|
+
targetSize: number,
|
|
24
|
+
factory: () => Promise<QueueItem>,
|
|
25
|
+
destroy: (process: Promise<QueueItem>) => void
|
|
26
|
+
) {
|
|
27
|
+
debug('constructor', targetSize);
|
|
28
|
+
this.#targetSize = targetSize;
|
|
29
|
+
this.#queue = [];
|
|
30
|
+
this.#factory = factory;
|
|
31
|
+
this.#destroy = destroy;
|
|
32
|
+
|
|
33
|
+
this.#hitCount = 0;
|
|
34
|
+
this.#missCount = 0;
|
|
35
|
+
this.#destroyed = false;
|
|
36
|
+
|
|
37
|
+
for (let i = 0; i < targetSize || 0; i += 1) {
|
|
38
|
+
this.#createResource();
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
get hits() {
|
|
43
|
+
return this.#hitCount;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
get misses() {
|
|
47
|
+
return this.#missCount;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
async #createResource() {
|
|
51
|
+
debug('createResource?', this.#queue.length);
|
|
52
|
+
if (this.#destroyed) {
|
|
53
|
+
debug('createResource skipped - queue destroyed');
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
if (this.#queue.length < this.#targetSize) {
|
|
57
|
+
debug('createResource call factory');
|
|
58
|
+
this.#queue.push(this.#factory());
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
async acquire(): Promise<QueueItem> {
|
|
63
|
+
debug('acquire');
|
|
64
|
+
const attempt = this.#queue.pop();
|
|
65
|
+
|
|
66
|
+
if (attempt) {
|
|
67
|
+
debug('acquire hit');
|
|
68
|
+
if (!this.#destroyed) {
|
|
69
|
+
setImmediate(() => {
|
|
70
|
+
// Double-check destroyed flag in case it changed
|
|
71
|
+
if (!this.#destroyed) {
|
|
72
|
+
this.#createResource();
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
this.#hitCount += 1;
|
|
77
|
+
return attempt;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
debug('acquire miss');
|
|
81
|
+
this.#missCount += 1;
|
|
82
|
+
return this.#factory();
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
async destroy() {
|
|
86
|
+
debug('destroy', this.#queue.length);
|
|
87
|
+
this.#destroyed = true;
|
|
88
|
+
const destroyPromises: Promise<void>[] = [];
|
|
89
|
+
while (this.#queue.length > 0) {
|
|
90
|
+
const p = this.#queue.pop();
|
|
91
|
+
if (p) {
|
|
92
|
+
destroyPromises.push(Promise.resolve(this.#destroy(p)));
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
await Promise.all(destroyPromises);
|
|
96
|
+
}
|
|
97
|
+
}
|
package/src/types.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { SpawnOptions } from 'child_process';
|
|
2
|
+
import { DuplexOptions } from 'stream';
|
|
3
|
+
|
|
4
|
+
export interface CompressOpts {
|
|
5
|
+
compLevel?: number;
|
|
6
|
+
dictionary?: Buffer | { path: string };
|
|
7
|
+
zstdOptions?: Array<string>;
|
|
8
|
+
spawnOptions?: SpawnOptions;
|
|
9
|
+
streamOptions?: DuplexOptions;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface DecompressOpts {
|
|
13
|
+
dictionary?: Buffer | { path: string };
|
|
14
|
+
zstdOptions?: Array<string>;
|
|
15
|
+
spawnOptions?: SpawnOptions;
|
|
16
|
+
streamOptions?: DuplexOptions;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface PoolOpts {
|
|
20
|
+
compressQueueSize?: number;
|
|
21
|
+
decompressQueueSize?: number;
|
|
22
|
+
compressQueue?: CompressOpts;
|
|
23
|
+
decompressQueue?: DecompressOpts;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface DictionaryObject {
|
|
27
|
+
path: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface ZSTDOpts {
|
|
31
|
+
spawnOptions?: object;
|
|
32
|
+
streamOptions?: DuplexOptions;
|
|
33
|
+
zstdOptions?: string[];
|
|
34
|
+
dictionary?: DictionaryObject | Buffer;
|
|
35
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
{
|
|
2
|
+
"include": [
|
|
3
|
+
"src/**/*",
|
|
4
|
+
"test/**/*"
|
|
5
|
+
],
|
|
6
|
+
"ts-node": {
|
|
7
|
+
"files": true
|
|
8
|
+
},
|
|
9
|
+
"compilerOptions": {
|
|
10
|
+
/* Visit https://aka.ms/tsconfig to read more about this file */
|
|
11
|
+
|
|
12
|
+
/* Projects */
|
|
13
|
+
// "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
|
|
14
|
+
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
|
|
15
|
+
// "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
|
|
16
|
+
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
|
|
17
|
+
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
|
|
18
|
+
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
|
|
19
|
+
|
|
20
|
+
/* Language and Environment */
|
|
21
|
+
"target": "es2020", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
|
22
|
+
"lib": ["es2020"], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
|
23
|
+
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
|
24
|
+
// "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */
|
|
25
|
+
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
|
|
26
|
+
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
|
|
27
|
+
// "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
|
|
28
|
+
// "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
|
|
29
|
+
// "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
|
|
30
|
+
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
|
|
31
|
+
// "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
|
|
32
|
+
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
|
33
|
+
|
|
34
|
+
/* Modules */
|
|
35
|
+
"module": "commonjs", /* Specify what module code is generated. */
|
|
36
|
+
"rootDirs": ["src", "test"], /* Specify the root folder within your source files. */
|
|
37
|
+
// "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
|
|
38
|
+
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
|
39
|
+
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
|
40
|
+
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
|
41
|
+
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
|
|
42
|
+
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
|
|
43
|
+
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
|
44
|
+
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
|
|
45
|
+
// "resolveJsonModule": true, /* Enable importing .json files. */
|
|
46
|
+
// "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
|
|
47
|
+
|
|
48
|
+
/* JavaScript Support */
|
|
49
|
+
// "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
|
|
50
|
+
// "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
|
|
51
|
+
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
|
52
|
+
|
|
53
|
+
/* Emit */
|
|
54
|
+
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
|
55
|
+
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
|
|
56
|
+
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
|
|
57
|
+
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
|
|
58
|
+
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
|
|
59
|
+
"outDir": "./dist", /* Specify an output folder for all emitted files. */
|
|
60
|
+
// "removeComments": true, /* Disable emitting comments. */
|
|
61
|
+
// "noEmit": true, /* Disable emitting files from a compilation. */
|
|
62
|
+
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
|
|
63
|
+
// "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
|
|
64
|
+
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
|
|
65
|
+
// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
|
|
66
|
+
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
|
67
|
+
"inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
|
|
68
|
+
// "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
|
|
69
|
+
// "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
|
|
70
|
+
// "newLine": "crlf", /* Set the newline character for emitting files. */
|
|
71
|
+
// "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
|
|
72
|
+
// "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
|
|
73
|
+
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
|
|
74
|
+
// "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
|
|
75
|
+
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */
|
|
76
|
+
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
|
|
77
|
+
|
|
78
|
+
/* Interop Constraints */
|
|
79
|
+
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
|
|
80
|
+
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
|
81
|
+
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
|
|
82
|
+
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
|
|
83
|
+
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
|
|
84
|
+
|
|
85
|
+
/* Type Checking */
|
|
86
|
+
"strict": true, /* Enable all strict type-checking options. */
|
|
87
|
+
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
|
|
88
|
+
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
|
|
89
|
+
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
|
|
90
|
+
// "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
|
|
91
|
+
// "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
|
|
92
|
+
// "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
|
|
93
|
+
// "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
|
|
94
|
+
// "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
|
|
95
|
+
// "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
|
|
96
|
+
// "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
|
|
97
|
+
// "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
|
|
98
|
+
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
|
|
99
|
+
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
|
|
100
|
+
// "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
|
|
101
|
+
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
|
|
102
|
+
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
|
|
103
|
+
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
|
|
104
|
+
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
|
|
105
|
+
|
|
106
|
+
/* Completeness */
|
|
107
|
+
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
|
108
|
+
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
|
109
|
+
}
|
|
110
|
+
}
|
package/.eslintrc.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
env: {
|
|
3
|
-
es6: true,
|
|
4
|
-
node: true,
|
|
5
|
-
},
|
|
6
|
-
extends: 'airbnb-base',
|
|
7
|
-
globals: {
|
|
8
|
-
Atomics: 'readonly',
|
|
9
|
-
SharedArrayBuffer: 'readonly',
|
|
10
|
-
},
|
|
11
|
-
parserOptions: {
|
|
12
|
-
ecmaVersion: 2018,
|
|
13
|
-
sourceType: 'module',
|
|
14
|
-
},
|
|
15
|
-
rules: {
|
|
16
|
-
'max-len': 'off',
|
|
17
|
-
},
|
|
18
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"/home/stieneee/git/personal/simple-zstd/index.js":{"path":"/home/stieneee/git/personal/simple-zstd/index.js","statementMap":{"0":{"start":{"line":1,"column":11},"end":{"line":1,"column":29}},"1":{"start":{"line":2,"column":22},"end":{"line":2,"column":49}},"2":{"start":{"line":3,"column":31},"end":{"line":3,"column":53}},"3":{"start":{"line":4,"column":13},"end":{"line":4,"column":33}},"4":{"start":{"line":6,"column":22},"end":{"line":6,"column":48}},"5":{"start":{"line":7,"column":21},"end":{"line":7,"column":50}},"6":{"start":{"line":8,"column":14},"end":{"line":8,"column":31}},"7":{"start":{"line":9,"column":13},"end":{"line":9,"column":35}},"8":{"start":{"line":10,"column":16},"end":{"line":10,"column":35}},"9":{"start":{"line":11,"column":17},"end":{"line":11,"column":39}},"10":{"start":{"line":12,"column":14},"end":{"line":12,"column":44}},"11":{"start":{"line":14,"column":13},"end":{"line":14,"column":30}},"12":{"start":{"line":15,"column":23},"end":{"line":15,"column":51}},"13":{"start":{"line":17,"column":22},"end":{"line":17,"column":46}},"14":{"start":{"line":19,"column":13},"end":{"line":19,"column":77}},"15":{"start":{"line":23,"column":0},"end":{"line":28,"column":1}},"16":{"start":{"line":24,"column":2},"end":{"line":24,"column":94}},"17":{"start":{"line":25,"column":2},"end":{"line":25,"column":13}},"18":{"start":{"line":27,"column":2},"end":{"line":27,"column":59}},"19":{"start":{"line":30,"column":0},"end":{"line":34,"column":1}},"20":{"start":{"line":31,"column":2},"end":{"line":31,"column":40}},"21":{"start":{"line":33,"column":2},"end":{"line":33,"column":44}},"22":{"start":{"line":37,"column":13},"end":{"line":37,"column":32}},"23":{"start":{"line":39,"column":12},"end":{"line":39,"column":21}},"24":{"start":{"line":40,"column":13},"end":{"line":40,"column":30}},"25":{"start":{"line":41,"column":2},"end":{"line":41,"column":20}},"26":{"start":{"line":41,"column":12},"end":{"line":41,"column":20}},"27":{"start":{"line":42,"column":2},"end":{"line":42,"column":35}},"28":{"start":{"line":42,"column":27},"end":{"line":42,"column":35}},"29":{"start":{"line":45,"column":17},"end":{"line":45,"column":21}},"30":{"start":{"line":46,"column":2},"end":{"line":53,"column":3}},"31":{"start":{"line":47,"column":4},"end":{"line":47,"column":49}},"32":{"start":{"line":48,"column":9},"end":{"line":53,"column":3}},"33":{"start":{"line":49,"column":30},"end":{"line":49,"column":42}},"34":{"start":{"line":50,"column":4},"end":{"line":50,"column":23}},"35":{"start":{"line":51,"column":4},"end":{"line":51,"column":38}},"36":{"start":{"line":52,"column":4},"end":{"line":52,"column":38}},"37":{"start":{"line":57,"column":2},"end":{"line":64,"column":3}},"38":{"start":{"line":58,"column":4},"end":{"line":58,"column":73}},"39":{"start":{"line":59,"column":4},"end":{"line":59,"column":73}},"40":{"start":{"line":62,"column":4},"end":{"line":62,"column":29}},"41":{"start":{"line":62,"column":18},"end":{"line":62,"column":29}},"42":{"start":{"line":63,"column":4},"end":{"line":63,"column":14}},"43":{"start":{"line":66,"column":2},"end":{"line":74,"column":5}},"44":{"start":{"line":67,"column":4},"end":{"line":67,"column":32}},"45":{"start":{"line":68,"column":4},"end":{"line":72,"column":5}},"46":{"start":{"line":69,"column":6},"end":{"line":71,"column":12}},"47":{"start":{"line":70,"column":8},"end":{"line":70,"column":86}},"48":{"start":{"line":73,"column":4},"end":{"line":73,"column":29}},"49":{"start":{"line":73,"column":18},"end":{"line":73,"column":29}},"50":{"start":{"line":76,"column":2},"end":{"line":76,"column":11}},"51":{"start":{"line":80,"column":2},"end":{"line":90,"column":5}},"52":{"start":{"line":81,"column":14},"end":{"line":81,"column":34}},"53":{"start":{"line":83,"column":4},"end":{"line":89,"column":35}},"54":{"start":{"line":88,"column":18},"end":{"line":88,"column":35}},"55":{"start":{"line":89,"column":22},"end":{"line":89,"column":33}},"56":{"start":{"line":95,"column":13},"end":{"line":95,"column":32}},"57":{"start":{"line":97,"column":13},"end":{"line":97,"column":30}},"58":{"start":{"line":98,"column":17},"end":{"line":98,"column":21}},"59":{"start":{"line":99,"column":2},"end":{"line":106,"column":3}},"60":{"start":{"line":100,"column":4},"end":{"line":100,"column":49}},"61":{"start":{"line":101,"column":9},"end":{"line":106,"column":3}},"62":{"start":{"line":102,"column":30},"end":{"line":102,"column":42}},"63":{"start":{"line":103,"column":4},"end":{"line":103,"column":23}},"64":{"start":{"line":104,"column":4},"end":{"line":104,"column":38}},"65":{"start":{"line":105,"column":4},"end":{"line":105,"column":38}},"66":{"start":{"line":110,"column":2},"end":{"line":117,"column":3}},"67":{"start":{"line":111,"column":4},"end":{"line":111,"column":61}},"68":{"start":{"line":112,"column":4},"end":{"line":112,"column":68}},"69":{"start":{"line":115,"column":4},"end":{"line":115,"column":29}},"70":{"start":{"line":115,"column":18},"end":{"line":115,"column":29}},"71":{"start":{"line":116,"column":4},"end":{"line":116,"column":14}},"72":{"start":{"line":119,"column":2},"end":{"line":127,"column":5}},"73":{"start":{"line":120,"column":4},"end":{"line":120,"column":32}},"74":{"start":{"line":121,"column":4},"end":{"line":125,"column":5}},"75":{"start":{"line":122,"column":6},"end":{"line":124,"column":12}},"76":{"start":{"line":123,"column":8},"end":{"line":123,"column":86}},"77":{"start":{"line":126,"column":4},"end":{"line":126,"column":29}},"78":{"start":{"line":126,"column":18},"end":{"line":126,"column":29}},"79":{"start":{"line":129,"column":2},"end":{"line":132,"column":5}},"80":{"start":{"line":130,"column":4},"end":{"line":130,"column":42}},"81":{"start":{"line":130,"column":21},"end":{"line":130,"column":42}},"82":{"start":{"line":131,"column":4},"end":{"line":131,"column":33}},"83":{"start":{"line":136,"column":2},"end":{"line":146,"column":5}},"84":{"start":{"line":137,"column":14},"end":{"line":137,"column":34}},"85":{"start":{"line":139,"column":4},"end":{"line":145,"column":35}},"86":{"start":{"line":144,"column":18},"end":{"line":144,"column":35}},"87":{"start":{"line":145,"column":22},"end":{"line":145,"column":33}},"88":{"start":{"line":153,"column":2},"end":{"line":153,"column":95}},"89":{"start":{"line":157,"column":12},"end":{"line":157,"column":103}},"90":{"start":{"line":158,"column":2},"end":{"line":158,"column":35}},"91":{"start":{"line":163,"column":2},"end":{"line":163,"column":86}},"92":{"start":{"line":167,"column":12},"end":{"line":167,"column":94}},"93":{"start":{"line":168,"column":2},"end":{"line":168,"column":37}},"94":{"start":{"line":183,"column":14},"end":{"line":183,"column":18}},"95":{"start":{"line":184,"column":16},"end":{"line":184,"column":20}},"96":{"start":{"line":186,"column":4},"end":{"line":214,"column":7}},"97":{"start":{"line":187,"column":6},"end":{"line":193,"column":7}},"98":{"start":{"line":188,"column":42},"end":{"line":188,"column":43}},"99":{"start":{"line":189,"column":8},"end":{"line":189,"column":17}},"100":{"start":{"line":190,"column":8},"end":{"line":190,"column":25}},"101":{"start":{"line":191,"column":8},"end":{"line":191,"column":42}},"102":{"start":{"line":192,"column":8},"end":{"line":192,"column":41}},"103":{"start":{"line":195,"column":6},"end":{"line":201,"column":8}},"104":{"start":{"line":197,"column":15},"end":{"line":197,"column":105}},"105":{"start":{"line":199,"column":10},"end":{"line":199,"column":19}},"106":{"start":{"line":203,"column":6},"end":{"line":209,"column":8}},"107":{"start":{"line":205,"column":15},"end":{"line":205,"column":107}},"108":{"start":{"line":207,"column":10},"end":{"line":207,"column":19}},"109":{"start":{"line":210,"column":6},"end":{"line":210,"column":21}},"110":{"start":{"line":212,"column":6},"end":{"line":212,"column":32}},"111":{"start":{"line":213,"column":6},"end":{"line":213,"column":21}},"112":{"start":{"line":218,"column":4},"end":{"line":218,"column":33}},"113":{"start":{"line":219,"column":4},"end":{"line":219,"column":35}},"114":{"start":{"line":220,"column":4},"end":{"line":220,"column":59}},"115":{"start":{"line":220,"column":33},"end":{"line":220,"column":59}},"116":{"start":{"line":224,"column":4},"end":{"line":224,"column":22}},"117":{"start":{"line":225,"column":4},"end":{"line":225,"column":40}},"118":{"start":{"line":229,"column":4},"end":{"line":229,"column":22}},"119":{"start":{"line":230,"column":14},"end":{"line":230,"column":48}},"120":{"start":{"line":231,"column":4},"end":{"line":231,"column":37}},"121":{"start":{"line":235,"column":4},"end":{"line":235,"column":22}},"122":{"start":{"line":236,"column":4},"end":{"line":236,"column":42}},"123":{"start":{"line":240,"column":4},"end":{"line":240,"column":22}},"124":{"start":{"line":241,"column":14},"end":{"line":241,"column":50}},"125":{"start":{"line":242,"column":4},"end":{"line":242,"column":39}},"126":{"start":{"line":246,"column":0},"end":{"line":252,"column":2}}},"fnMap":{"0":{"name":"CreateCompressStream","decl":{"start":{"line":36,"column":15},"end":{"line":36,"column":35}},"loc":{"start":{"line":36,"column":101},"end":{"line":77,"column":1}},"line":36},"1":{"name":"(anonymous_1)","decl":{"start":{"line":66,"column":15},"end":{"line":66,"column":16}},"loc":{"start":{"line":66,"column":33},"end":{"line":74,"column":3}},"line":66},"2":{"name":"(anonymous_2)","decl":{"start":{"line":69,"column":17},"end":{"line":69,"column":18}},"loc":{"start":{"line":69,"column":23},"end":{"line":71,"column":7}},"line":69},"3":{"name":"CompressBuffer","decl":{"start":{"line":79,"column":9},"end":{"line":79,"column":23}},"loc":{"start":{"line":79,"column":35},"end":{"line":91,"column":1}},"line":79},"4":{"name":"(anonymous_4)","decl":{"start":{"line":80,"column":21},"end":{"line":80,"column":22}},"loc":{"start":{"line":80,"column":42},"end":{"line":90,"column":3}},"line":80},"5":{"name":"(anonymous_5)","decl":{"start":{"line":88,"column":12},"end":{"line":88,"column":13}},"loc":{"start":{"line":88,"column":18},"end":{"line":88,"column":35}},"line":88},"6":{"name":"(anonymous_6)","decl":{"start":{"line":89,"column":13},"end":{"line":89,"column":14}},"loc":{"start":{"line":89,"column":22},"end":{"line":89,"column":33}},"line":89},"7":{"name":"CreateDecompressStream","decl":{"start":{"line":93,"column":15},"end":{"line":93,"column":37}},"loc":{"start":{"line":93,"column":92},"end":{"line":133,"column":1}},"line":93},"8":{"name":"(anonymous_8)","decl":{"start":{"line":119,"column":15},"end":{"line":119,"column":16}},"loc":{"start":{"line":119,"column":33},"end":{"line":127,"column":3}},"line":119},"9":{"name":"(anonymous_9)","decl":{"start":{"line":122,"column":17},"end":{"line":122,"column":18}},"loc":{"start":{"line":122,"column":23},"end":{"line":124,"column":7}},"line":122},"10":{"name":"(anonymous_10)","decl":{"start":{"line":129,"column":49},"end":{"line":129,"column":50}},"loc":{"start":{"line":129,"column":65},"end":{"line":132,"column":3}},"line":129},"11":{"name":"DecompressBuffer","decl":{"start":{"line":135,"column":9},"end":{"line":135,"column":25}},"loc":{"start":{"line":135,"column":37},"end":{"line":147,"column":1}},"line":135},"12":{"name":"(anonymous_12)","decl":{"start":{"line":136,"column":21},"end":{"line":136,"column":22}},"loc":{"start":{"line":136,"column":42},"end":{"line":146,"column":3}},"line":136},"13":{"name":"(anonymous_13)","decl":{"start":{"line":144,"column":12},"end":{"line":144,"column":13}},"loc":{"start":{"line":144,"column":18},"end":{"line":144,"column":35}},"line":144},"14":{"name":"(anonymous_14)","decl":{"start":{"line":145,"column":13},"end":{"line":145,"column":14}},"loc":{"start":{"line":145,"column":22},"end":{"line":145,"column":33}},"line":145},"15":{"name":"compress","decl":{"start":{"line":151,"column":9},"end":{"line":151,"column":17}},"loc":{"start":{"line":151,"column":83},"end":{"line":154,"column":1}},"line":151},"16":{"name":"compressBuffer","decl":{"start":{"line":156,"column":15},"end":{"line":156,"column":29}},"loc":{"start":{"line":156,"column":103},"end":{"line":159,"column":1}},"line":156},"17":{"name":"decompress","decl":{"start":{"line":161,"column":9},"end":{"line":161,"column":19}},"loc":{"start":{"line":161,"column":74},"end":{"line":164,"column":1}},"line":161},"18":{"name":"decompressBuffer","decl":{"start":{"line":166,"column":15},"end":{"line":166,"column":31}},"loc":{"start":{"line":166,"column":94},"end":{"line":169,"column":1}},"line":166},"19":{"name":"(anonymous_19)","decl":{"start":{"line":181,"column":2},"end":{"line":181,"column":3}},"loc":{"start":{"line":181,"column":92},"end":{"line":215,"column":3}},"line":181},"20":{"name":"(anonymous_20)","decl":{"start":{"line":186,"column":30},"end":{"line":186,"column":31}},"loc":{"start":{"line":186,"column":43},"end":{"line":211,"column":5}},"line":186},"21":{"name":"(anonymous_21)","decl":{"start":{"line":197,"column":9},"end":{"line":197,"column":10}},"loc":{"start":{"line":197,"column":15},"end":{"line":197,"column":105}},"line":197},"22":{"name":"(anonymous_22)","decl":{"start":{"line":198,"column":8},"end":{"line":198,"column":9}},"loc":{"start":{"line":198,"column":15},"end":{"line":200,"column":9}},"line":198},"23":{"name":"(anonymous_23)","decl":{"start":{"line":205,"column":9},"end":{"line":205,"column":10}},"loc":{"start":{"line":205,"column":15},"end":{"line":205,"column":107}},"line":205},"24":{"name":"(anonymous_24)","decl":{"start":{"line":206,"column":8},"end":{"line":206,"column":9}},"loc":{"start":{"line":206,"column":15},"end":{"line":208,"column":9}},"line":206},"25":{"name":"(anonymous_25)","decl":{"start":{"line":211,"column":13},"end":{"line":211,"column":14}},"loc":{"start":{"line":211,"column":22},"end":{"line":214,"column":5}},"line":211},"26":{"name":"(anonymous_26)","decl":{"start":{"line":217,"column":2},"end":{"line":217,"column":3}},"loc":{"start":{"line":217,"column":12},"end":{"line":221,"column":3}},"line":217},"27":{"name":"(anonymous_27)","decl":{"start":{"line":223,"column":2},"end":{"line":223,"column":3}},"loc":{"start":{"line":223,"column":19},"end":{"line":226,"column":3}},"line":223},"28":{"name":"(anonymous_28)","decl":{"start":{"line":228,"column":2},"end":{"line":228,"column":3}},"loc":{"start":{"line":228,"column":31},"end":{"line":232,"column":3}},"line":228},"29":{"name":"(anonymous_29)","decl":{"start":{"line":234,"column":2},"end":{"line":234,"column":3}},"loc":{"start":{"line":234,"column":21},"end":{"line":237,"column":3}},"line":234},"30":{"name":"(anonymous_30)","decl":{"start":{"line":239,"column":2},"end":{"line":239,"column":3}},"loc":{"start":{"line":239,"column":33},"end":{"line":243,"column":3}},"line":239}},"branchMap":{"0":{"loc":{"start":{"line":19,"column":13},"end":{"line":19,"column":77}},"type":"cond-expr","locations":[{"start":{"line":19,"column":46},"end":{"line":19,"column":62}},{"start":{"line":19,"column":65},"end":{"line":19,"column":77}}],"line":19},"1":{"loc":{"start":{"line":40,"column":13},"end":{"line":40,"column":30}},"type":"binary-expr","locations":[{"start":{"line":40,"column":13},"end":{"line":40,"column":24}},{"start":{"line":40,"column":28},"end":{"line":40,"column":30}}],"line":40},"2":{"loc":{"start":{"line":41,"column":2},"end":{"line":41,"column":20}},"type":"if","locations":[{"start":{"line":41,"column":2},"end":{"line":41,"column":20}},{"start":{"line":41,"column":2},"end":{"line":41,"column":20}}],"line":41},"3":{"loc":{"start":{"line":42,"column":2},"end":{"line":42,"column":35}},"type":"if","locations":[{"start":{"line":42,"column":2},"end":{"line":42,"column":35}},{"start":{"line":42,"column":2},"end":{"line":42,"column":35}}],"line":42},"4":{"loc":{"start":{"line":42,"column":6},"end":{"line":42,"column":25}},"type":"binary-expr","locations":[{"start":{"line":42,"column":6},"end":{"line":42,"column":13}},{"start":{"line":42,"column":17},"end":{"line":42,"column":25}}],"line":42},"5":{"loc":{"start":{"line":46,"column":2},"end":{"line":53,"column":3}},"type":"if","locations":[{"start":{"line":46,"column":2},"end":{"line":53,"column":3}},{"start":{"line":46,"column":2},"end":{"line":53,"column":3}}],"line":46},"6":{"loc":{"start":{"line":46,"column":6},"end":{"line":46,"column":35}},"type":"binary-expr","locations":[{"start":{"line":46,"column":6},"end":{"line":46,"column":16}},{"start":{"line":46,"column":20},"end":{"line":46,"column":35}}],"line":46},"7":{"loc":{"start":{"line":48,"column":9},"end":{"line":53,"column":3}},"type":"if","locations":[{"start":{"line":48,"column":9},"end":{"line":53,"column":3}},{"start":{"line":48,"column":9},"end":{"line":53,"column":3}}],"line":48},"8":{"loc":{"start":{"line":62,"column":4},"end":{"line":62,"column":29}},"type":"if","locations":[{"start":{"line":62,"column":4},"end":{"line":62,"column":29}},{"start":{"line":62,"column":4},"end":{"line":62,"column":29}}],"line":62},"9":{"loc":{"start":{"line":68,"column":4},"end":{"line":72,"column":5}},"type":"if","locations":[{"start":{"line":68,"column":4},"end":{"line":72,"column":5}},{"start":{"line":68,"column":4},"end":{"line":72,"column":5}}],"line":68},"10":{"loc":{"start":{"line":73,"column":4},"end":{"line":73,"column":29}},"type":"if","locations":[{"start":{"line":73,"column":4},"end":{"line":73,"column":29}},{"start":{"line":73,"column":4},"end":{"line":73,"column":29}}],"line":73},"11":{"loc":{"start":{"line":97,"column":13},"end":{"line":97,"column":30}},"type":"binary-expr","locations":[{"start":{"line":97,"column":13},"end":{"line":97,"column":24}},{"start":{"line":97,"column":28},"end":{"line":97,"column":30}}],"line":97},"12":{"loc":{"start":{"line":99,"column":2},"end":{"line":106,"column":3}},"type":"if","locations":[{"start":{"line":99,"column":2},"end":{"line":106,"column":3}},{"start":{"line":99,"column":2},"end":{"line":106,"column":3}}],"line":99},"13":{"loc":{"start":{"line":99,"column":6},"end":{"line":99,"column":35}},"type":"binary-expr","locations":[{"start":{"line":99,"column":6},"end":{"line":99,"column":16}},{"start":{"line":99,"column":20},"end":{"line":99,"column":35}}],"line":99},"14":{"loc":{"start":{"line":101,"column":9},"end":{"line":106,"column":3}},"type":"if","locations":[{"start":{"line":101,"column":9},"end":{"line":106,"column":3}},{"start":{"line":101,"column":9},"end":{"line":106,"column":3}}],"line":101},"15":{"loc":{"start":{"line":115,"column":4},"end":{"line":115,"column":29}},"type":"if","locations":[{"start":{"line":115,"column":4},"end":{"line":115,"column":29}},{"start":{"line":115,"column":4},"end":{"line":115,"column":29}}],"line":115},"16":{"loc":{"start":{"line":121,"column":4},"end":{"line":125,"column":5}},"type":"if","locations":[{"start":{"line":121,"column":4},"end":{"line":125,"column":5}},{"start":{"line":121,"column":4},"end":{"line":125,"column":5}}],"line":121},"17":{"loc":{"start":{"line":126,"column":4},"end":{"line":126,"column":29}},"type":"if","locations":[{"start":{"line":126,"column":4},"end":{"line":126,"column":29}},{"start":{"line":126,"column":4},"end":{"line":126,"column":29}}],"line":126},"18":{"loc":{"start":{"line":130,"column":4},"end":{"line":130,"column":42}},"type":"if","locations":[{"start":{"line":130,"column":4},"end":{"line":130,"column":42}},{"start":{"line":130,"column":4},"end":{"line":130,"column":42}}],"line":130},"19":{"loc":{"start":{"line":187,"column":6},"end":{"line":193,"column":7}},"type":"if","locations":[{"start":{"line":187,"column":6},"end":{"line":193,"column":7}},{"start":{"line":187,"column":6},"end":{"line":193,"column":7}}],"line":187},"20":{"loc":{"start":{"line":220,"column":4},"end":{"line":220,"column":59}},"type":"if","locations":[{"start":{"line":220,"column":4},"end":{"line":220,"column":59}},{"start":{"line":220,"column":4},"end":{"line":220,"column":59}}],"line":220}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":0,"19":1,"20":1,"21":0,"22":12,"23":12,"24":12,"25":12,"26":0,"27":12,"28":0,"29":12,"30":12,"31":1,"32":11,"33":1,"34":1,"35":1,"36":1,"37":12,"38":12,"39":12,"40":0,"41":0,"42":0,"43":12,"44":12,"45":12,"46":1,"47":1,"48":12,"49":1,"50":12,"51":4,"52":4,"53":4,"54":4,"55":0,"56":7,"57":7,"58":7,"59":7,"60":1,"61":6,"62":1,"63":1,"64":1,"65":1,"66":7,"67":7,"68":7,"69":0,"70":0,"71":0,"72":7,"73":7,"74":7,"75":0,"76":0,"77":7,"78":1,"79":7,"80":7,"81":7,"82":0,"83":4,"84":4,"85":4,"86":4,"87":0,"88":8,"89":4,"90":4,"91":3,"92":4,"93":4,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":0,"118":0,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0,"126":1},"f":{"0":12,"1":12,"2":1,"3":4,"4":4,"5":4,"6":0,"7":7,"8":7,"9":0,"10":7,"11":4,"12":4,"13":4,"14":0,"15":8,"16":4,"17":3,"18":4,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0},"b":{"0":[0,1],"1":[12,6],"2":[0,12],"3":[0,12],"4":[12,12],"5":[1,11],"6":[12,2],"7":[1,10],"8":[0,0],"9":[1,11],"10":[1,11],"11":[7,5],"12":[1,6],"13":[7,2],"14":[1,5],"15":[0,0],"16":[0,7],"17":[1,6],"18":[7,0],"19":[0,0],"20":[0,0]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"3126fea226818a4dc2c986b783eb454cf66b79bb","contentHash":"84c12f1fc497fc2148effbd09f041b4a2a8413d42cae0098fdcbe41a8488e40b"},"/home/stieneee/git/personal/simple-zstd/oven.js":{"path":"/home/stieneee/git/personal/simple-zstd/oven.js","statementMap":{"0":{"start":{"line":1,"column":14},"end":{"line":1,"column":48}},"1":{"start":{"line":13,"column":4},"end":{"line":13,"column":36}},"2":{"start":{"line":14,"column":4},"end":{"line":14,"column":21}},"3":{"start":{"line":15,"column":4},"end":{"line":15,"column":28}},"4":{"start":{"line":16,"column":4},"end":{"line":16,"column":28}},"5":{"start":{"line":18,"column":4},"end":{"line":20,"column":5}},"6":{"start":{"line":18,"column":17},"end":{"line":18,"column":18}},"7":{"start":{"line":19,"column":6},"end":{"line":19,"column":29}},"8":{"start":{"line":24,"column":4},"end":{"line":24,"column":29}},"9":{"start":{"line":25,"column":4},"end":{"line":28,"column":5}},"10":{"start":{"line":26,"column":6},"end":{"line":26,"column":43}},"11":{"start":{"line":27,"column":6},"end":{"line":27,"column":40}},"12":{"start":{"line":32,"column":4},"end":{"line":32,"column":21}},"13":{"start":{"line":33,"column":4},"end":{"line":37,"column":5}},"14":{"start":{"line":34,"column":6},"end":{"line":34,"column":29}},"15":{"start":{"line":35,"column":6},"end":{"line":35,"column":34}},"16":{"start":{"line":36,"column":6},"end":{"line":36,"column":31}},"17":{"start":{"line":38,"column":4},"end":{"line":38,"column":38}},"18":{"start":{"line":39,"column":4},"end":{"line":39,"column":26}},"19":{"start":{"line":43,"column":4},"end":{"line":43,"column":21}},"20":{"start":{"line":44,"column":4},"end":{"line":46,"column":5}},"21":{"start":{"line":45,"column":6},"end":{"line":45,"column":39}},"22":{"start":{"line":50,"column":0},"end":{"line":50,"column":22}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":12,"column":2},"end":{"line":12,"column":3}},"loc":{"start":{"line":12,"column":45},"end":{"line":21,"column":3}},"line":12},"1":{"name":"(anonymous_1)","decl":{"start":{"line":31,"column":2},"end":{"line":31,"column":3}},"loc":{"start":{"line":31,"column":18},"end":{"line":40,"column":3}},"line":31},"2":{"name":"(anonymous_2)","decl":{"start":{"line":42,"column":2},"end":{"line":42,"column":3}},"loc":{"start":{"line":42,"column":18},"end":{"line":47,"column":3}},"line":42}},"branchMap":{"0":{"loc":{"start":{"line":25,"column":4},"end":{"line":28,"column":5}},"type":"if","locations":[{"start":{"line":25,"column":4},"end":{"line":28,"column":5}},{"start":{"line":25,"column":4},"end":{"line":28,"column":5}}],"line":25},"1":{"loc":{"start":{"line":33,"column":4},"end":{"line":37,"column":5}},"type":"if","locations":[{"start":{"line":33,"column":4},"end":{"line":37,"column":5}},{"start":{"line":33,"column":4},"end":{"line":37,"column":5}}],"line":33}},"s":{"0":1,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":1},"f":{"0":0,"1":0,"2":0},"b":{"0":[0,0],"1":[0,0]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"b2b29f559bc319cc5ad4572d0d6cd7f3ee083713","contentHash":"ec710b689298f8ac87595c6415b21f43e00d7c8b676e7467c875d5eb171d8e74"},"/home/stieneee/git/personal/simple-zstd/buffer-writable.js":{"path":"/home/stieneee/git/personal/simple-zstd/buffer-writable.js","statementMap":{"0":{"start":{"line":1,"column":21},"end":{"line":1,"column":43}},"1":{"start":{"line":7,"column":4},"end":{"line":7,"column":19}},"2":{"start":{"line":8,"column":4},"end":{"line":8,"column":19}},"3":{"start":{"line":9,"column":4},"end":{"line":9,"column":23}},"4":{"start":{"line":13,"column":4},"end":{"line":13,"column":26}},"5":{"start":{"line":14,"column":4},"end":{"line":14,"column":15}},"6":{"start":{"line":18,"column":4},"end":{"line":18,"column":43}},"7":{"start":{"line":19,"column":4},"end":{"line":19,"column":15}},"8":{"start":{"line":23,"column":0},"end":{"line":23,"column":32}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":6,"column":2},"end":{"line":6,"column":3}},"loc":{"start":{"line":6,"column":23},"end":{"line":10,"column":3}},"line":6},"1":{"name":"(anonymous_1)","decl":{"start":{"line":12,"column":2},"end":{"line":12,"column":3}},"loc":{"start":{"line":12,"column":36},"end":{"line":15,"column":3}},"line":12},"2":{"name":"(anonymous_2)","decl":{"start":{"line":17,"column":2},"end":{"line":17,"column":3}},"loc":{"start":{"line":17,"column":19},"end":{"line":20,"column":3}},"line":17}},"branchMap":{},"s":{"0":1,"1":8,"2":8,"3":8,"4":920,"5":920,"6":8,"7":8,"8":1},"f":{"0":8,"1":920,"2":8},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"7f50b33c673742e2c1597892fdda3a002c2aca84","contentHash":"a8598a955102efc6ef3c01dfc9adbdb0ec9160934992c440547cc766668b665c"}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"parent":"5d73987b-f188-488b-8441-66c67bb19076","pid":297142,"argv":["/usr/bin/node","/home/stieneee/git/personal/simple-zstd/node_modules/.bin/mocha"],"execArgv":[],"cwd":"/home/stieneee/git/personal/simple-zstd","time":1659498446139,"ppid":297141,"coverageFilename":"/home/stieneee/git/personal/simple-zstd/.nyc_output/4b36a1ef-a01d-4de7-a4be-e966f315cbd7.json","externalId":"","uuid":"4b36a1ef-a01d-4de7-a4be-e966f315cbd7","files":["/home/stieneee/git/personal/simple-zstd/index.js","/home/stieneee/git/personal/simple-zstd/oven.js","/home/stieneee/git/personal/simple-zstd/buffer-writable.js"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"parent":null,"pid":297130,"argv":["/usr/bin/node","/home/stieneee/.npm-global/bin/npm","run","test"],"execArgv":[],"cwd":"/home/stieneee/git/personal/simple-zstd","time":1659498445923,"ppid":297119,"coverageFilename":"/home/stieneee/git/personal/simple-zstd/.nyc_output/5d73987b-f188-488b-8441-66c67bb19076.json","externalId":"","uuid":"5d73987b-f188-488b-8441-66c67bb19076","files":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"processes":{"4b36a1ef-a01d-4de7-a4be-e966f315cbd7":{"parent":"5d73987b-f188-488b-8441-66c67bb19076","children":[]},"5d73987b-f188-488b-8441-66c67bb19076":{"parent":null,"children":["4b36a1ef-a01d-4de7-a4be-e966f315cbd7"]}},"files":{"/home/stieneee/git/personal/simple-zstd/index.js":["4b36a1ef-a01d-4de7-a4be-e966f315cbd7"],"/home/stieneee/git/personal/simple-zstd/oven.js":["4b36a1ef-a01d-4de7-a4be-e966f315cbd7"],"/home/stieneee/git/personal/simple-zstd/buffer-writable.js":["4b36a1ef-a01d-4de7-a4be-e966f315cbd7"]},"externalIds":{}}
|