@gala-chain/gala-core-sdk 1.0.0-rc.8 → 1.0.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.
- package/README.md +4 -5
- package/dist/browser/utils/transport.js +1 -1
- package/dist/browser/utils/transport.js.map +1 -1
- package/dist/browser/version.js +1 -1
- package/dist/browser/version.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -2686,7 +2686,7 @@ async function signPreSend(signer, method, dto) {
|
|
|
2686
2686
|
* fallback. It is the version in the default `User-Agent` (`GalaChain-SDK/<version>`) of every SDK
|
|
2687
2687
|
* request, whichever product SDK sends it.
|
|
2688
2688
|
*/
|
|
2689
|
-
const GALA_CORE_SDK_VERSION = "1.0.0
|
|
2689
|
+
const GALA_CORE_SDK_VERSION = "1.0.0";
|
|
2690
2690
|
|
|
2691
2691
|
//#endregion
|
|
2692
2692
|
//#region src/utils/transport.ts
|
|
@@ -2747,7 +2747,7 @@ function buildRequestHeaders(wire, parts = {}) {
|
|
|
2747
2747
|
entries.set(name.toLowerCase(), [name, value]);
|
|
2748
2748
|
}
|
|
2749
2749
|
};
|
|
2750
|
-
if ((wire === null || wire === void 0 ? void 0 : wire.userAgent) !== false) put({ "User-Agent": (wire === null || wire === void 0 ? void 0 : wire.userAgent) ?? `GalaChain-SDK/${"1.0.0
|
|
2750
|
+
if ((wire === null || wire === void 0 ? void 0 : wire.userAgent) !== false) put({ "User-Agent": (wire === null || wire === void 0 ? void 0 : wire.userAgent) ?? `GalaChain-SDK/${"1.0.0"}` });
|
|
2751
2751
|
put(parts.defaults);
|
|
2752
2752
|
put(wire === null || wire === void 0 ? void 0 : wire.headers);
|
|
2753
2753
|
if (parts.json === true && !entries.has("content-type")) put({ "Content-Type": "application/json" });
|