diff --git a/CHANGELOG.md b/CHANGELOG.md index 87f655c..3b9cb26 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [0.0.1-alpha.43](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.42...v0.0.1-alpha.43) (2024-09-20) + + +### Features + +* temp disable ssl on content server driver while ssl bug figured out ([1b55a5c](https://github.com/DIG-Network/dig-chia-sdk/commit/1b55a5c7b38bf83afee529c727b0f040d69e30ae)) + ### [0.0.1-alpha.42](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.41...v0.0.1-alpha.42) (2024-09-19) ### [0.0.1-alpha.41](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.40...v0.0.1-alpha.41) (2024-09-19) diff --git a/package-lock.json b/package-lock.json index 089d7ff..f996614 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.42", + "version": "0.0.1-alpha.43", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.42", + "version": "0.0.1-alpha.43", "license": "ISC", "dependencies": { "@dignetwork/datalayer-driver": "^0.1.24", diff --git a/package.json b/package.json index 0cb91db..eeb2a8f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.42", + "version": "0.0.1-alpha.43", "description": "", "type": "commonjs", "main": "./dist/index.js", diff --git a/src/DigNetwork/ContentServer.ts b/src/DigNetwork/ContentServer.ts index 4a816b0..2c16724 100644 --- a/src/DigNetwork/ContentServer.ts +++ b/src/DigNetwork/ContentServer.ts @@ -25,7 +25,7 @@ export class ContentServer { // Method to get the content of a specified key from the peer, with optional challenge query public async getKey(key: string, rootHash: string, challengeHex?: string): Promise { // Construct the base URL - let url = `https://${this.ipAddress}/chia.${this.storeId}.${rootHash}/${key}`; + let url = `http://${this.ipAddress}/chia.${this.storeId}.${rootHash}/${key}`; // If a challenge is provided, append it as a query parameter if (challengeHex) { @@ -52,25 +52,25 @@ export class ContentServer { // Method to get the .well-known information public async getWellKnown(): Promise { - const url = `https://${this.ipAddress}/.well-known`; + const url = `http://${this.ipAddress}/.well-known`; return this.fetchJson(url); } // Method to get the list of known stores public async getKnownStores(): Promise { - const url = `https://${this.ipAddress}/.well-known/stores`; + const url = `http://${this.ipAddress}/.well-known/stores`; return this.fetchJson(url); } // Method to get the index of all stores public async getStoresIndex(): Promise { - const url = `https://${this.ipAddress}/`; + const url = `http://${this.ipAddress}/`; return this.fetchJson(url); } // Method to get the index of keys in a store public async getKeysIndex(): Promise { - const url = `https://${this.ipAddress}/${this.storeId}`; + const url = `http://${this.ipAddress}/${this.storeId}`; return this.fetchJson(url); } @@ -78,7 +78,7 @@ export class ContentServer { public async headKey( key: string ): Promise<{ success: boolean; headers?: http.IncomingHttpHeaders }> { - const url = `https://${this.ipAddress}/${this.storeId}/${key}`; + const url = `http://${this.ipAddress}/${this.storeId}/${key}`; return this.head(url); } @@ -87,7 +87,7 @@ export class ContentServer { success: boolean; headers?: http.IncomingHttpHeaders; }> { - let url = `https://${this.ipAddress}/${this.storeId}`; + let url = `http://${this.ipAddress}/${this.storeId}`; if (options?.hasRootHash) { url += `?hasRootHash=${options.hasRootHash}`; @@ -98,7 +98,7 @@ export class ContentServer { public streamKey(key: string): Promise { return new Promise((resolve, reject) => { - const url = `https://${this.ipAddress}/${this.storeId}/${key}`; + const url = `http://${this.ipAddress}/${this.storeId}/${key}`; const urlObj = new URL(url); const requestOptions = {