@campnetwork/origin 1.4.0-alpha.5 → 1.4.0-alpha.6

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/dist/core.cjs CHANGED
@@ -768,7 +768,7 @@ function ze(e){return a(this,void 0,void 0,(function*(){if(!this.jwt)throw new h
768
768
  * Verify that saved IPFS credentials are valid.
769
769
  * @returns Object with valid boolean and optional error message.
770
770
  * @throws {APIError} If verification request fails.
771
- */function qe(){return a(this,void 0,void 0,(function*(){if(!this.jwt)throw new h("JWT token required for IPFS credentials management");const e=yield fetch(`${this.environment.AUTH_HUB_BASE_API}/ipfs/credentials/verify`,{method:"POST",headers:{Authorization:`Bearer ${this.jwt}`,"Content-Type":"application/json"}});if(!e.ok){if(404===e.status)return{valid:!1,error:"No IPFS credentials configured"};const t=yield e.json().catch((()=>({})));throw new h(t.message||`Failed to verify IPFS credentials (HTTP ${e.status})`,e.status)}return e.json()}))}
771
+ */function qe(){return a(this,void 0,void 0,(function*(){if(!this.jwt)throw new h("JWT token required for IPFS credentials management");const e=yield fetch(`${this.environment.AUTH_HUB_BASE_API}/ipfs/credentials/verify`,{method:"POST",headers:{Authorization:`Bearer ${this.jwt}`,"Content-Type":"application/json"}});if(!e.ok){if(404===e.status)return{valid:!1,error:"No IPFS credentials configured"};const t=yield e.json().catch((()=>({})));throw new h(t.message||`Failed to verify IPFS credentials (HTTP ${e.status})`,e.status)}return(yield e.json()).data}))}
772
772
  /**
773
773
  * Delete saved IPFS credentials.
774
774
  * @throws {APIError} If deletion fails.
package/dist/core.esm.js CHANGED
@@ -758,7 +758,7 @@ function it(e){return m(this,void 0,void 0,(function*(){if(!this.jwt)throw new P
758
758
  * Verify that saved IPFS credentials are valid.
759
759
  * @returns Object with valid boolean and optional error message.
760
760
  * @throws {APIError} If verification request fails.
761
- */function at(){return m(this,void 0,void 0,(function*(){if(!this.jwt)throw new P("JWT token required for IPFS credentials management");const e=yield fetch(`${this.environment.AUTH_HUB_BASE_API}/ipfs/credentials/verify`,{method:"POST",headers:{Authorization:`Bearer ${this.jwt}`,"Content-Type":"application/json"}});if(!e.ok){if(404===e.status)return{valid:!1,error:"No IPFS credentials configured"};const t=yield e.json().catch((()=>({})));throw new P(t.message||`Failed to verify IPFS credentials (HTTP ${e.status})`,e.status)}return e.json()}))}
761
+ */function at(){return m(this,void 0,void 0,(function*(){if(!this.jwt)throw new P("JWT token required for IPFS credentials management");const e=yield fetch(`${this.environment.AUTH_HUB_BASE_API}/ipfs/credentials/verify`,{method:"POST",headers:{Authorization:`Bearer ${this.jwt}`,"Content-Type":"application/json"}});if(!e.ok){if(404===e.status)return{valid:!1,error:"No IPFS credentials configured"};const t=yield e.json().catch((()=>({})));throw new P(t.message||`Failed to verify IPFS credentials (HTTP ${e.status})`,e.status)}return(yield e.json()).data}))}
762
762
  /**
763
763
  * Delete saved IPFS credentials.
764
764
  * @throws {APIError} If deletion fails.
@@ -8533,7 +8533,8 @@ function verifyIpfsCredentials() {
8533
8533
  throw new APIError(errorData.message ||
8534
8534
  `Failed to verify IPFS credentials (HTTP ${response.status})`, response.status);
8535
8535
  }
8536
- return response.json();
8536
+ const result = yield response.json();
8537
+ return result.data;
8537
8538
  });
8538
8539
  }
8539
8540
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campnetwork/origin",
3
- "version": "1.4.0-alpha.5",
3
+ "version": "1.4.0-alpha.6",
4
4
  "main": "dist/core.cjs",
5
5
  "exports": {
6
6
  ".": {