@canton-network/core-splice-client 1.5.0 → 1.6.0

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.
@@ -0,0 +1,9 @@
1
+ import { vi, type MockedObject } from 'vitest';
2
+ import { Logger } from '@canton-network/core-types';
3
+ import { AccessTokenProvider } from '@canton-network/core-wallet-auth';
4
+ export declare const mockLogger: MockedObject<Logger>;
5
+ export declare function createAccessTokenProvider(token?: string | undefined): AccessTokenProvider;
6
+ export declare function jsonResponse(data: unknown, status?: number): Response;
7
+ export declare function getRequestMethod(fetchMock: ReturnType<typeof vi.fn>, pathSuffix: string): string | undefined;
8
+ export declare function getRequestHeaders(fetchMock: ReturnType<typeof vi.fn>, pathSuffix: string): Record<string, string>;
9
+ //# sourceMappingURL=test-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../src/test-utils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAA;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AAEtE,eAAO,MAAM,UAAU,EAAE,YAAY,CAAC,MAAM,CAKnB,CAAA;AAEzB,wBAAgB,yBAAyB,CACrC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,GAC3B,mBAAmB,CAKrB;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,SAAM,GAAG,QAAQ,CAKlE;AA4BD,wBAAgB,gBAAgB,CAC5B,SAAS,EAAE,UAAU,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC,EACnC,UAAU,EAAE,MAAM,GACnB,MAAM,GAAG,SAAS,CAMpB;AAED,wBAAgB,iBAAiB,CAC7B,SAAS,EAAE,UAAU,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC,EACnC,UAAU,EAAE,MAAM,GACnB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAYxB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canton-network/core-splice-client",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "type": "module",
5
5
  "description": "Typescript Client for the multiple Canton Network APIs",
6
6
  "license": "Apache-2.0",
@@ -15,18 +15,17 @@
15
15
  "default": "./dist/index.js"
16
16
  }
17
17
  },
18
- "packageManager": "yarn@4.9.4",
19
18
  "scripts": {
20
19
  "build": "tsup --onSuccess \"tsc\"",
21
20
  "dev": "tsup --watch --onSuccess \"tsc\"",
22
21
  "flatpack": "yarn pack --out \"$FLATPACK_OUTDIR\"",
23
22
  "clean": "tsc -b --clean; rm -rf dist",
24
- "test": "vitest run --project node --project browser --passWithNoTests",
25
- "test:coverage": "vitest run --project node --project browser --coverage --passWithNoTests"
23
+ "test": "vitest run --project node --project browser",
24
+ "test:coverage": "vitest run --project node --project browser --coverage"
26
25
  },
27
26
  "dependencies": {
28
- "@canton-network/core-types": "^1.5.0",
29
- "@canton-network/core-wallet-auth": "^1.5.0",
27
+ "@canton-network/core-types": "^1.6.0",
28
+ "@canton-network/core-wallet-auth": "^1.6.0",
30
29
  "openapi-fetch": "^0.17.0",
31
30
  "uuid": "^14.0.0",
32
31
  "zod": "^4.3.6"