@fabrika/proxy-core 0.9.0-cloudflare.2 → 0.9.0-cloudflare.3

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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/src/iam.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fabrika/proxy-core",
3
- "version": "0.9.0-cloudflare.2",
3
+ "version": "0.9.0-cloudflare.3",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -48,9 +48,9 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "zod": "^3.25.76",
51
- "@fabrika/auth-core": "0.9.0-cloudflare.2",
52
- "@fabrika/jwks": "0.9.0-cloudflare.2",
51
+ "@fabrika/auth-core": "0.9.0-cloudflare.3",
52
+ "@fabrika/jwks": "0.9.0-cloudflare.3",
53
53
  "jose": "^5.9.0",
54
- "@fabrika/platform": "0.9.0-cloudflare.2"
54
+ "@fabrika/platform": "0.9.0-cloudflare.3"
55
55
  }
56
56
  }
package/src/iam.ts CHANGED
@@ -130,7 +130,7 @@ export class HttpIamGateway implements IamGateway, DelegationIssuer {
130
130
  this.origin = options.origin.replace(/\/+$/, '')
131
131
  this.timeoutMs = options.timeoutMs ?? DEFAULT_IAM_TIMEOUT_MS
132
132
  this.key = options.key
133
- this.fetchImpl = options.fetch ?? globalThis.fetch
133
+ this.fetchImpl = options.fetch ?? globalThis.fetch.bind(globalThis)
134
134
  }
135
135
 
136
136
  async mintToken(input: MintTokenInput): Promise<MintTokenResult> {