@opensecret/react 0.3.4 → 0.3.5

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/README.md CHANGED
@@ -173,6 +173,12 @@ To build the library, run the following command:
173
173
  bun run build
174
174
  ```
175
175
 
176
+ To test the library, run the following command:
177
+
178
+ ```bash
179
+ bun test --env-file .env.local
180
+ ```
181
+
176
182
  Currently this build step requires `npx` because of [a Bun incompatibility with `vite-plugin-dts`](https://github.com/OpenSecretCloud/OpenSecret-SDK/issues/16).
177
183
 
178
184
  To pack the library (for publishing) run the following command:
package/dist/index.d.ts CHANGED
@@ -5,6 +5,7 @@ import { z } from 'zod';
5
5
  declare namespace api {
6
6
  export {
7
7
  setApiUrl,
8
+ getApiUrl,
8
9
  fetchLogin,
9
10
  fetchGuestLogin,
10
11
  fetchSignUp,
@@ -158,6 +159,8 @@ export declare function generateSecureSecret(): string;
158
159
 
159
160
  declare function generateThirdPartyToken(audience: string): Promise<ThirdPartyTokenResponse>;
160
161
 
162
+ declare function getApiUrl(): string;
163
+
161
164
  declare function getAttestation(forceRefresh?: boolean, apiUrl?: string): Promise<Attestation>;
162
165
 
163
166
  export declare type GithubAuthResponse = {