@keyv/compress-brotli 2.0.2 → 2.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/dist/index.d.cts CHANGED
@@ -6,14 +6,14 @@ type Serialize = {
6
6
  value?: InputType;
7
7
  expires?: number;
8
8
  };
9
- interface Options {
9
+ type Options = {
10
10
  compressOptions?: BrotliOptions;
11
11
  decompressOptions?: BrotliOptions;
12
12
  enable?: boolean;
13
13
  serialize?: any;
14
14
  deserialize?: any;
15
15
  iltorb?: any;
16
- }
16
+ };
17
17
 
18
18
  declare class KeyvBrotli {
19
19
  private readonly brotli;
package/dist/index.d.ts CHANGED
@@ -6,14 +6,14 @@ type Serialize = {
6
6
  value?: InputType;
7
7
  expires?: number;
8
8
  };
9
- interface Options {
9
+ type Options = {
10
10
  compressOptions?: BrotliOptions;
11
11
  decompressOptions?: BrotliOptions;
12
12
  enable?: boolean;
13
13
  serialize?: any;
14
14
  deserialize?: any;
15
15
  iltorb?: any;
16
- }
16
+ };
17
17
 
18
18
  declare class KeyvBrotli {
19
19
  private readonly brotli;
package/package.json CHANGED
@@ -1,75 +1,71 @@
1
1
  {
2
- "name": "@keyv/compress-brotli",
3
- "version": "2.0.2",
4
- "description": "brotli compression for keyv",
5
- "type": "module",
6
- "main": "dist/index.cjs",
7
- "module": "dist/index.js",
8
- "types": "dist/index.d.ts",
9
- "exports": {
10
- ".": {
11
- "require": "./dist/index.cjs",
12
- "import": "./dist/index.js"
13
- }
14
- },
15
- "scripts": {
16
- "build": "rm -rf dist && tsup src/index.ts --format cjs,esm --dts --clean",
17
- "prepare": "yarn build",
18
- "test": "xo --fix && vitest run --coverage",
19
- "test:ci": "xo && vitest --run --sequence.setupFiles=list",
20
- "clean": "rm -rf node_modules && rm -rf ./coverage && rm -rf ./test/testdb.sqlite && rm -rf ./dist && rm -rf ./.nyc_output"
21
- },
22
- "xo": {
23
- "rules": {
24
- "import/no-named-as-default": "off",
25
- "unicorn/prefer-module": "off",
26
- "@typescript-eslint/no-unsafe-call": "off",
27
- "@typescript-eslint/consistent-type-definitions": "off",
28
- "@typescript-eslint/no-unsafe-argument": "off",
29
- "import/extensions": "off",
30
- "import/no-extraneous-dependencies": "off"
31
- }
32
- },
33
- "repository": {
34
- "type": "git",
35
- "url": "git+https://github.com/jaredwray/keyv.git"
36
- },
37
- "keywords": [
38
- "compress",
39
- "brotli",
40
- "keyv",
41
- "storage",
42
- "adapter",
43
- "key",
44
- "value",
45
- "store",
46
- "cache",
47
- "ttl"
48
- ],
49
- "author": "Jared Wray <me@jaredwray.com> (https://jaredwray.com)",
50
- "license": "MIT",
51
- "bugs": {
52
- "url": "https://github.com/jaredwray/keyv/issues"
53
- },
54
- "homepage": "https://github.com/jaredwray/keyv",
55
- "dependencies": {
56
- "compress-brotli": "^1.3.12",
57
- "keyv": "^5.0.0",
58
- "@keyv/serialize": "*"
59
- },
60
- "devDependencies": {
61
- "@keyv/test-suite": "*",
62
- "c8": "^10.1.2",
63
- "xo": "^0.59.3"
64
- },
65
- "tsd": {
66
- "directory": "test"
67
- },
68
- "engines": {
69
- "node": ">= 18"
70
- },
71
- "files": [
72
- "dist",
73
- "LICENSE"
74
- ]
75
- }
2
+ "name": "@keyv/compress-brotli",
3
+ "version": "2.0.3",
4
+ "description": "brotli compression for keyv",
5
+ "type": "module",
6
+ "main": "dist/index.cjs",
7
+ "module": "dist/index.js",
8
+ "types": "dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "require": "./dist/index.cjs",
12
+ "import": "./dist/index.js"
13
+ }
14
+ },
15
+ "xo": {
16
+ "rules": {
17
+ "@typescript-eslint/no-unsafe-assignment": 0
18
+ }
19
+ },
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://github.com/jaredwray/keyv.git"
23
+ },
24
+ "keywords": [
25
+ "compress",
26
+ "brotli",
27
+ "keyv",
28
+ "storage",
29
+ "adapter",
30
+ "key",
31
+ "value",
32
+ "store",
33
+ "cache",
34
+ "ttl"
35
+ ],
36
+ "author": "Jared Wray <me@jaredwray.com> (https://jaredwray.com)",
37
+ "license": "MIT",
38
+ "bugs": {
39
+ "url": "https://github.com/jaredwray/keyv/issues"
40
+ },
41
+ "homepage": "https://github.com/jaredwray/keyv",
42
+ "dependencies": {
43
+ "compress-brotli": "^1.3.12",
44
+ "keyv": "^5.2.3",
45
+ "@keyv/serialize": "^1.0.2"
46
+ },
47
+ "devDependencies": {
48
+ "@vitest/coverage-v8": "^2.1.8",
49
+ "c8": "^10.1.3",
50
+ "rimraf": "^6.0.1",
51
+ "vitest": "^2.1.8",
52
+ "xo": "^0.60.0",
53
+ "@keyv/test-suite": "^2.0.3"
54
+ },
55
+ "tsd": {
56
+ "directory": "test"
57
+ },
58
+ "engines": {
59
+ "node": ">= 18"
60
+ },
61
+ "files": [
62
+ "dist",
63
+ "LICENSE"
64
+ ],
65
+ "scripts": {
66
+ "build": "rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean",
67
+ "test": "xo --fix && vitest run --coverage",
68
+ "test:ci": "xo && vitest --run --sequence.setupFiles=list",
69
+ "clean": "rimraf ./node_modules ./coverage ./test/testdb.sqlite ./dist"
70
+ }
71
+ }