@spritz-finance/service-client 0.38.0 → 0.40.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.
@@ -46,8 +46,7 @@ export type PaymentUserDetails = {
46
46
  };
47
47
  export type PaymentAccountDetails = {
48
48
  id: string;
49
- __typename: `${PayableAccountType}`;
50
- type: `${PayableAccountType}`;
49
+ type: PayableAccountType;
51
50
  name: string;
52
51
  mask: string | null;
53
52
  externalId: string | null;
package/lib/sigv4.js CHANGED
@@ -4,13 +4,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.createSigV4Interceptor = createSigV4Interceptor;
7
- const credential_providers_1 = require("@aws-sdk/credential-providers");
7
+ const credential_provider_env_1 = require("@aws-sdk/credential-provider-env");
8
8
  const hash_node_1 = require("@smithy/hash-node");
9
9
  const signature_v4_1 = require("@smithy/signature-v4");
10
10
  const axios_1 = __importDefault(require("axios"));
11
11
  const config_1 = require("./config");
12
+ // Every consumer is a Lambda, where the runtime always injects the execution
13
+ // role's env credentials; fromEnv re-reads them per call so rotation is safe.
14
+ // The fromNodeProviderChain umbrella (@aws-sdk/credential-providers) drags in
15
+ // a credential-provider chain that esbuild cannot bundle in repos with older
16
+ // aws-sdk trees (nested @smithy/core exports) — that made deploy packaging
17
+ // hang silently (growth/verification, 2026-11-10).
12
18
  // Cache the provider, not its result: the SDK owns credential refresh/expiry.
13
- const credentials = (0, credential_providers_1.fromNodeProviderChain)();
19
+ const credentials = (0, credential_provider_env_1.fromEnv)();
14
20
  const headerGroups = ["common", "delete", "get", "head", "post", "put", "patch"];
15
21
  const signingHeaders = new Set([
16
22
  "authorization",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spritz-finance/service-client",
3
- "version": "0.38.0",
3
+ "version": "0.40.0",
4
4
  "gitHead": "06f8e96b7b38c34df26a38da329331940675e4f8",
5
5
  "description": "Service client",
6
6
  "license": "ISC",
@@ -25,7 +25,7 @@
25
25
  "gen:types": "graphql-codegen --config codegen.yml"
26
26
  },
27
27
  "dependencies": {
28
- "@aws-sdk/credential-providers": "^3.576.0",
28
+ "@aws-sdk/credential-provider-env": "^3.972.19",
29
29
  "@smithy/hash-node": "^4.2.12",
30
30
  "@smithy/signature-v4": "^5.3.12",
31
31
  "@smithy/types": "^4.13.1",