@aeriajs/common 0.0.135 → 0.0.137

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/pipe.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export type PipeOptions<TReturn> = {
2
2
  returnFirst?: boolean | ((value: unknown) => Awaited<TReturn> | undefined);
3
3
  };
4
- export declare const pipe: <TArgs extends unknown[], TReturn>(functions: ((p1: TReturn | undefined, ...args: TArgs) => TReturn | Promise<TReturn> | undefined)[], options?: PipeOptions<TReturn>) => (value: Awaited<TReturn> | undefined, ...args: TArgs) => Promise<TReturn | undefined>;
4
+ export declare const pipe: <TArgs extends unknown[], TReturn>(functions: ((p1: TReturn, ...args: TArgs) => TReturn | Promise<TReturn> | undefined)[], options?: PipeOptions<TReturn>) => (value: Awaited<TReturn> | undefined, ...args: TArgs) => Promise<TReturn | undefined>;
@@ -1,3 +1,3 @@
1
1
  import * as BSON from 'bson';
2
- export declare const serialize: (object: BSON.Document, options?: BSON.SerializeOptions | undefined) => string;
2
+ export declare const serialize: (...args: Parameters<typeof BSON.serialize>) => string;
3
3
  export declare const deserialize: <TValue>(buffer: ReturnType<typeof serialize>) => TValue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/common",
3
- "version": "0.0.135",
3
+ "version": "0.0.137",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -16,14 +16,14 @@
16
16
  ],
17
17
  "exports": {
18
18
  ".": {
19
+ "types": "./dist/index.d.ts",
19
20
  "import": "./dist/index.mjs",
20
- "require": "./dist/index.js",
21
- "types": "./dist/index.d.ts"
21
+ "require": "./dist/index.js"
22
22
  },
23
23
  "./either": {
24
+ "types": "./dist/either.d.ts",
24
25
  "import": "./dist/either.mjs",
25
- "require": "./dist/either.js",
26
- "types": "./dist/either.d.ts"
26
+ "require": "./dist/either.js"
27
27
  }
28
28
  },
29
29
  "devDependencies": {
@@ -31,11 +31,12 @@
31
31
  "bson": "^6.5.0"
32
32
  },
33
33
  "peerDependencies": {
34
- "@aeriajs/types": "^0.0.117",
34
+ "@aeriajs/types": "^0.0.119",
35
35
  "bson": "^6.5.0"
36
36
  },
37
37
  "scripts": {
38
38
  "test": "vitest run",
39
+ "test:typecheck": "tsc -p tsconfig.test.json",
39
40
  "lint": "eslint .",
40
41
  "lint:fix": "eslint . --fix",
41
42
  "build": "pnpm build:cjs && pnpm build:esm",