@keyv/compress-brotli 1.1.0 → 1.1.2

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.
Files changed (2) hide show
  1. package/package.json +12 -12
  2. package/src/index.d.ts +4 -4
package/package.json CHANGED
@@ -1,17 +1,18 @@
1
1
  {
2
2
  "name": "@keyv/compress-brotli",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "brotli compression for keyv",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
7
- "test": "xo && nyc ava --serial",
8
- "coverage": "nyc report --reporter=text-lcov > coverage.lcov",
9
- "clean": "rm -rf node_modules && rm -rf .nyc_output && rm -rf coverage.lcov && rm -rf ./test/testdb.sqlite"
7
+ "test": "xo && ava --serial",
8
+ "test:ci": "xo && ava --serial",
9
+ "clean": "rm -rf node_modules && rm -rf ./coverage && rm -rf ./test/testdb.sqlite"
10
10
  },
11
11
  "xo": {
12
12
  "rules": {
13
13
  "unicorn/prefer-module": 0,
14
14
  "@typescript-eslint/no-unsafe-call": 0,
15
+ "@typescript-eslint/consistent-type-definitions": 0,
15
16
  "ava/no-ignored-test-files": [
16
17
  "error",
17
18
  {
@@ -60,17 +61,16 @@
60
61
  },
61
62
  "devDependencies": {
62
63
  "@keyv/test-suite": "*",
63
- "ava": "^4.2.0",
64
+ "ava": "^5.1.0",
65
+ "c8": "^7.12.0",
64
66
  "json-buffer": "^3.0.1",
65
67
  "keyv": "*",
66
- "nyc": "^15.1.0",
67
68
  "requirable": "^1.0.5",
68
- "this": "^1.1.0",
69
- "ts-node": "^10.8.2",
70
- "tsd": "^0.20.0",
71
- "typescript": "^4.6.4",
72
- "webpack": "^5.74.0",
73
- "xo": "^0.48.0"
69
+ "ts-node": "^10.9.1",
70
+ "tsd": "^0.25.0",
71
+ "typescript": "^4.9.3",
72
+ "webpack": "^5.75.0",
73
+ "xo": "^0.53.1"
74
74
  },
75
75
  "tsd": {
76
76
  "directory": "test"
package/src/index.d.ts CHANGED
@@ -4,10 +4,10 @@ import type Brotli, {CompressResult} from 'compress-brotli';
4
4
  declare class KeyvBrotli {
5
5
  brotli: Brotli;
6
6
  constructor(options?: KeyvBrotli.Options);
7
- async compress(value: InputType | number | boolean, options?: BrotliOptions);
8
- async decompress(value: InputType | number | boolean, options?: BrotliOptions);
9
- async serialize(value: any);
10
- async deserialize(value: any);
7
+ compress(value: InputType | number | boolean, options?: BrotliOptions): Promise<any>;
8
+ decompress(value: InputType | number | boolean, options?: BrotliOptions): Promise<any>;
9
+ serialize(value: any): Promise<any>;
10
+ deserialize(value: any): Promise<any>;
11
11
  }
12
12
 
13
13
  declare namespace KeyvBrotli {