@dintero/node-sdk 1.2.2 → 1.3.1

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.
@@ -1,6 +1,5 @@
1
1
  import type { Client, Middleware } from "openapi-fetch";
2
- import type { CorePaths } from "./types";
3
- import type { ClientOptions } from "./types";
2
+ import type { ClientOptions, CorePaths } from "./types";
4
3
  export declare const extractAccountId: (audience: string) => string;
5
4
  export declare const accessToken: (config: Required<ClientOptions>, client: Client<CorePaths>) => Promise<import("openapi-fetch").FetchResponse<{
6
5
  parameters: {
@@ -30,7 +30,7 @@ const accessToken = async (config, client) => {
30
30
  };
31
31
  exports.accessToken = accessToken;
32
32
  const createAuthMiddleware = (config, client) => {
33
- let auth = undefined;
33
+ let auth;
34
34
  let authExpires = 0;
35
35
  return {
36
36
  async onRequest({ request }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dintero/node-sdk",
3
- "version": "1.2.2",
3
+ "version": "1.3.1",
4
4
  "description": "Node.js library for the Dintero API",
5
5
  "main": "./dist/dintero.js",
6
6
  "typings": "./dist/dintero.d.ts",
@@ -29,25 +29,25 @@
29
29
  "prepublishOnly": "yarn run build-ts"
30
30
  },
31
31
  "devDependencies": {
32
- "@biomejs/biome": "1.9.4",
33
- "@types/jest": "29.5.14",
32
+ "@biomejs/biome": "2.2.6",
33
+ "@types/jest": "30.0.0",
34
34
  "@types/js-yaml": "4.0.9",
35
- "@types/node": "22.15.3",
35
+ "@types/node": "24.8.1",
36
36
  "@types/swagger2openapi": "7.0.4",
37
- "jest": "29.7.0",
37
+ "jest": "30.2.0",
38
38
  "js-yaml": "4.1.0",
39
- "msw": "2.7.6",
40
- "openapi-typescript": "7.8.0",
41
- "semantic-release": "24.2.3",
39
+ "msw": "2.11.2",
40
+ "openapi-typescript": "7.9.1",
41
+ "semantic-release": "24.2.9",
42
42
  "swagger2openapi": "7.0.8",
43
- "ts-jest": "29.3.2",
43
+ "ts-jest": "29.4.5",
44
44
  "ts-node": "10.9.2",
45
- "typescript": "5.8.3"
45
+ "typescript": "5.9.3"
46
46
  },
47
47
  "engines": {
48
48
  "node": ">=20.0.0"
49
49
  },
50
50
  "dependencies": {
51
- "openapi-fetch": "^0.14.0"
51
+ "openapi-fetch": "^0.15.0"
52
52
  }
53
53
  }