lzma1 0.0.2 → 0.0.3
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/lib/cjs/lzma.js +2413 -2148
- package/lib/esm/lzma.js +2398 -2148
- package/package.json +9 -10
- package/lib/esm/lzma.d.ts +0 -61
- /package/lib/{cjs/lzma.d.ts → lzma.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lzma1",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"author": "Filip Seman <filip.seman@pm.me>",
|
|
6
6
|
"description": "A JavaScript implementation of the Lempel-Ziv-Markov (LZMA) chain compression algorithm",
|
|
@@ -17,19 +17,18 @@
|
|
|
17
17
|
"url": "git+https://github.com/xseman/lzma1.git"
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
|
-
"test": "node --test --test-reporter=spec --loader=tsx
|
|
21
|
-
"test:watch": "node --test --watch --test-reporter=spec --loader=tsx
|
|
20
|
+
"test": "node --test --test-reporter=spec --loader=tsx *.test.ts",
|
|
21
|
+
"test:watch": "node --test --watch --test-reporter=spec --loader=tsx *.test.ts",
|
|
22
22
|
"typecheck": "tsc --noEmit",
|
|
23
|
-
"
|
|
24
|
-
"build": "make build",
|
|
25
|
-
"
|
|
26
|
-
"preversion": "git checkout develop",
|
|
27
|
-
"version": "git commit -am ${npm_package_version}",
|
|
28
|
-
"postversion": "npm run build && git flow release start v${npm_package_version}"
|
|
23
|
+
"release": "make release",
|
|
24
|
+
"build": "make clean build",
|
|
25
|
+
"version": "git checkout develop && make version"
|
|
29
26
|
},
|
|
27
|
+
"dependencies": {},
|
|
30
28
|
"devDependencies": {
|
|
31
29
|
"@types/node": ">=16.17",
|
|
32
30
|
"dprint": "~0.35.0",
|
|
31
|
+
"esbuild": "~0.17.0",
|
|
33
32
|
"tsx": "~3.12.0",
|
|
34
33
|
"typescript": "~5.0.0"
|
|
35
34
|
},
|
|
@@ -40,7 +39,7 @@
|
|
|
40
39
|
".": {
|
|
41
40
|
"import": "./lib/esm/lzma.js",
|
|
42
41
|
"require": "./lib/cjs/lzma.js",
|
|
43
|
-
"types": "./lib/
|
|
42
|
+
"types": "./lib/lzma.d.ts"
|
|
44
43
|
}
|
|
45
44
|
},
|
|
46
45
|
"files": [
|
package/lib/esm/lzma.d.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* s - dictionary size
|
|
3
|
-
* f - fb
|
|
4
|
-
* m - matchFinder
|
|
5
|
-
*
|
|
6
|
-
* NOTE: Because some values are always the same, they have been removed.
|
|
7
|
-
* lc is always 3
|
|
8
|
-
* lp is always 0
|
|
9
|
-
* pb is always 2
|
|
10
|
-
*/
|
|
11
|
-
declare const ModeMap: {
|
|
12
|
-
readonly 1: {
|
|
13
|
-
readonly s: 16;
|
|
14
|
-
readonly f: 64;
|
|
15
|
-
readonly m: 0;
|
|
16
|
-
};
|
|
17
|
-
readonly 2: {
|
|
18
|
-
readonly s: 20;
|
|
19
|
-
readonly f: 64;
|
|
20
|
-
readonly m: 0;
|
|
21
|
-
};
|
|
22
|
-
readonly 3: {
|
|
23
|
-
readonly s: 19;
|
|
24
|
-
readonly f: 64;
|
|
25
|
-
readonly m: 1;
|
|
26
|
-
};
|
|
27
|
-
readonly 4: {
|
|
28
|
-
readonly s: 20;
|
|
29
|
-
readonly f: 64;
|
|
30
|
-
readonly m: 1;
|
|
31
|
-
};
|
|
32
|
-
readonly 5: {
|
|
33
|
-
readonly s: 21;
|
|
34
|
-
readonly f: 128;
|
|
35
|
-
readonly m: 1;
|
|
36
|
-
};
|
|
37
|
-
readonly 6: {
|
|
38
|
-
readonly s: 22;
|
|
39
|
-
readonly f: 128;
|
|
40
|
-
readonly m: 1;
|
|
41
|
-
};
|
|
42
|
-
readonly 7: {
|
|
43
|
-
readonly s: 23;
|
|
44
|
-
readonly f: 128;
|
|
45
|
-
readonly m: 1;
|
|
46
|
-
};
|
|
47
|
-
readonly 8: {
|
|
48
|
-
readonly s: 24;
|
|
49
|
-
readonly f: 255;
|
|
50
|
-
readonly m: 1;
|
|
51
|
-
};
|
|
52
|
-
readonly 9: {
|
|
53
|
-
readonly s: 25;
|
|
54
|
-
readonly f: 255;
|
|
55
|
-
readonly m: 1;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
type Modes = keyof typeof ModeMap;
|
|
59
|
-
export declare function compress(data: string | Uint8Array | ArrayBuffer, mode?: Modes): Int8Array;
|
|
60
|
-
export declare function decompress(bytearray: Uint8Array | ArrayBuffer): Int8Array | string;
|
|
61
|
-
export {};
|
|
File without changes
|