@mysten/sui.js
Advanced tools
Comparing version 0.51.1 to 0.51.2
# @mysten/sui.js | ||
## 0.51.2 | ||
### Patch Changes | ||
- b4ecdb5860: Fix fetch being incorrectly bound to GraphQL client | ||
## 0.51.1 | ||
@@ -4,0 +10,0 @@ |
@@ -60,3 +60,3 @@ "use strict"; | ||
const fetch = __privateGet(this, _options).fetch ?? globalThis.fetch; | ||
if (!this.fetch) { | ||
if (!fetch) { | ||
throw new Error( | ||
@@ -63,0 +63,0 @@ "The current environment does not support fetch, you can provide a fetch implementation in the options for SuiHTTPTransport." |
@@ -61,3 +61,3 @@ "use strict"; | ||
__privateSet(this, _headers, headers); | ||
__privateSet(this, _fetch, fetchFn); | ||
__privateSet(this, _fetch, (...args) => fetchFn(...args)); | ||
} | ||
@@ -64,0 +64,0 @@ async query(options) { |
@@ -1,2 +0,2 @@ | ||
export declare const PACKAGE_VERSION = "0.51.1"; | ||
export declare const TARGETED_RPC_VERSION = "1.22.0"; | ||
export declare const PACKAGE_VERSION = "0.51.2"; | ||
export declare const TARGETED_RPC_VERSION = "1.23.0"; |
@@ -25,4 +25,4 @@ "use strict"; | ||
module.exports = __toCommonJS(version_exports); | ||
const PACKAGE_VERSION = "0.51.1"; | ||
const TARGETED_RPC_VERSION = "1.22.0"; | ||
const PACKAGE_VERSION = "0.51.2"; | ||
const TARGETED_RPC_VERSION = "1.23.0"; | ||
//# sourceMappingURL=version.js.map |
@@ -37,3 +37,3 @@ var __accessCheck = (obj, member, msg) => { | ||
const fetch = __privateGet(this, _options).fetch ?? globalThis.fetch; | ||
if (!this.fetch) { | ||
if (!fetch) { | ||
throw new Error( | ||
@@ -40,0 +40,0 @@ "The current environment does not support fetch, you can provide a fetch implementation in the options for SuiHTTPTransport." |
@@ -37,3 +37,3 @@ var __accessCheck = (obj, member, msg) => { | ||
__privateSet(this, _headers, headers); | ||
__privateSet(this, _fetch, fetchFn); | ||
__privateSet(this, _fetch, (...args) => fetchFn(...args)); | ||
} | ||
@@ -40,0 +40,0 @@ async query(options) { |
@@ -1,2 +0,2 @@ | ||
export declare const PACKAGE_VERSION = "0.51.1"; | ||
export declare const TARGETED_RPC_VERSION = "1.22.0"; | ||
export declare const PACKAGE_VERSION = "0.51.2"; | ||
export declare const TARGETED_RPC_VERSION = "1.23.0"; |
@@ -1,3 +0,3 @@ | ||
const PACKAGE_VERSION = "0.51.1"; | ||
const TARGETED_RPC_VERSION = "1.22.0"; | ||
const PACKAGE_VERSION = "0.51.2"; | ||
const TARGETED_RPC_VERSION = "1.23.0"; | ||
export { | ||
@@ -4,0 +4,0 @@ PACKAGE_VERSION, |
@@ -6,3 +6,3 @@ { | ||
"homepage": "https://sdk.mystenlabs.com", | ||
"version": "0.51.1", | ||
"version": "0.51.2", | ||
"license": "Apache-2.0", | ||
@@ -145,3 +145,3 @@ "sideEffects": false, | ||
"test:e2e:nowait": "vitest run e2e", | ||
"prepare:e2e": "docker-compose down && docker-compose up -d && cargo build --bin sui-test-validator --bin sui --profile dev && cross-env RUST_LOG=info,sui=error,anemo_tower=warn,consensus=off cargo run --bin sui-test-validator -- --with-indexer --use-indexer-v2 --pg-port 5435 --pg-db-name sui_indexer_v2 --graphql-host 127.0.0.1 --graphql-port 9125", | ||
"prepare:e2e": "docker-compose down && docker-compose up -d && cargo build --bin sui-test-validator --bin sui --profile dev && cross-env RUST_LOG=info,sui=error,anemo_tower=warn,consensus=off cargo run --bin sui-test-validator -- --with-indexer --pg-port 5435 --pg-db-name sui_indexer_v2 --graphql-host 127.0.0.1 --graphql-port 9125", | ||
"size": "size-limit", | ||
@@ -148,0 +148,0 @@ "analyze": "size-limit --why", |
@@ -58,3 +58,3 @@ // Copyright (c) Mysten Labs, Inc. | ||
if (!this.fetch) { | ||
if (!fetch) { | ||
throw new Error( | ||
@@ -61,0 +61,0 @@ 'The current environment does not support fetch, you can provide a fetch implementation in the options for SuiHTTPTransport.', |
@@ -67,3 +67,3 @@ // Copyright (c) Mysten Labs, Inc. | ||
this.#headers = headers; | ||
this.#fetch = fetchFn; | ||
this.#fetch = (...args) => fetchFn(...args); | ||
} | ||
@@ -70,0 +70,0 @@ |
@@ -6,3 +6,3 @@ // Copyright (c) Mysten Labs, Inc. | ||
export const PACKAGE_VERSION = '0.51.1'; | ||
export const TARGETED_RPC_VERSION = '1.22.0'; | ||
export const PACKAGE_VERSION = '0.51.2'; | ||
export const TARGETED_RPC_VERSION = '1.23.0'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3500829
8