@keyv/compress-brotli 2.0.2 → 2.0.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.
package/dist/index.cjs CHANGED
@@ -28,12 +28,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
 
30
30
  // src/index.ts
31
- var src_exports = {};
32
- __export(src_exports, {
31
+ var index_exports = {};
32
+ __export(index_exports, {
33
33
  KeyvBrotli: () => KeyvBrotli,
34
- default: () => src_default
34
+ default: () => index_default
35
35
  });
36
- module.exports = __toCommonJS(src_exports);
36
+ module.exports = __toCommonJS(index_exports);
37
37
  var import_compress_brotli = __toESM(require("compress-brotli"), 1);
38
38
  var import_serialize = require("@keyv/serialize");
39
39
  var KeyvBrotli = class {
@@ -61,7 +61,7 @@ var KeyvBrotli = class {
61
61
  return { value: void 0, expires: void 0 };
62
62
  }
63
63
  };
64
- var src_default = KeyvBrotli;
64
+ var index_default = KeyvBrotli;
65
65
  // Annotate the CommonJS export names for ESM import in node:
66
66
  0 && (module.exports = {
67
67
  KeyvBrotli
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { CompressCallback, InputType, BrotliOptions } from 'node:zlib';
1
+ import { BrotliOptions, CompressCallback, InputType } from 'node:zlib';
2
2
 
3
3
  type CompressResult = Promise<Parameters<CompressCallback>[1]>;
4
4
  type SerializeResult = string;
@@ -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
@@ -1,4 +1,4 @@
1
- import { CompressCallback, InputType, BrotliOptions } from 'node:zlib';
1
+ import { BrotliOptions, CompressCallback, InputType } from 'node:zlib';
2
2
 
3
3
  type CompressResult = Promise<Parameters<CompressCallback>[1]>;
4
4
  type SerializeResult = string;
@@ -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.js CHANGED
@@ -26,8 +26,8 @@ var KeyvBrotli = class {
26
26
  return { value: void 0, expires: void 0 };
27
27
  }
28
28
  };
29
- var src_default = KeyvBrotli;
29
+ var index_default = KeyvBrotli;
30
30
  export {
31
31
  KeyvBrotli,
32
- src_default as default
32
+ index_default as default
33
33
  };
package/package.json CHANGED
@@ -1,75 +1,73 @@
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.4",
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/serialize": "^1.0.3"
45
+ },
46
+ "peerDependencies": {
47
+ "keyv": "^5.3.3"
48
+ },
49
+ "devDependencies": {
50
+ "@vitest/coverage-v8": "^3.1.1",
51
+ "c8": "^10.1.3",
52
+ "rimraf": "^6.0.1",
53
+ "vitest": "^3.1.1",
54
+ "xo": "^0.60.0",
55
+ "@keyv/test-suite": "^2.0.6"
56
+ },
57
+ "tsd": {
58
+ "directory": "test"
59
+ },
60
+ "engines": {
61
+ "node": ">= 18"
62
+ },
63
+ "files": [
64
+ "dist",
65
+ "LICENSE"
66
+ ],
67
+ "scripts": {
68
+ "build": "rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean",
69
+ "test": "xo --fix && vitest run --coverage",
70
+ "test:ci": "xo && vitest --run --sequence.setupFiles=list",
71
+ "clean": "rimraf ./node_modules ./coverage ./test/testdb.sqlite ./dist"
72
+ }
73
+ }