Skip to content

Commit 445153a

Browse files
committed
tmp8
1 parent 6acb742 commit 445153a

2 files changed

Lines changed: 1 addition & 11 deletions

File tree

packages/api-client-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gadgetinc/api-client-core",
3-
"version": "0.15.47",
3+
"version": "0.15.44",
44
"files": [
55
"Readme.md",
66
"dist/**/*"

packages/api-client-core/src/GadgetConnection.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ export class GadgetConnection {
124124

125125
constructor(readonly options: GadgetConnectionOptions) {
126126
this.authenticationModeOptions = maybeGetAuthenticationModeOptionsFromConnectionOptions(options);
127-
console.log("where - authenticationModeOptions in constructor:", this.authenticationModeOptions, options);
128127

129128
if (!options.endpoint) throw new Error("Must provide an `endpoint` option for a GadgetConnection to connect to");
130129
this.endpoint = options.endpoint;
@@ -180,12 +179,6 @@ export class GadgetConnection {
180179
* @private This function is generally not required for use by external developers, but is useful for those building integrations against the Gadget API to configure passed in `api` objects.
181180
*/
182181
setAuthenticationMode(options?: AuthenticationModeOptions) {
183-
console.log(
184-
"where - setAuthenticationMode, before, options:",
185-
options,
186-
"this.authenticationModeOptions:",
187-
this.authenticationModeOptions
188-
);
189182
if (options) {
190183
if (options.browserSession) {
191184
this.enableSessionMode(options.browserSession);
@@ -200,7 +193,6 @@ export class GadgetConnection {
200193
}
201194
this.authenticationModeOptions = options;
202195
}
203-
console.log("where - setAuthenticationMode, after, this.authenticationMode:", this.authenticationMode);
204196

205197
this.authenticationMode ??= AuthenticationMode.Anonymous;
206198
}
@@ -581,10 +573,8 @@ export class GadgetConnection {
581573
}
582574

583575
const browserSessionOptions = this.authenticationModeOptions!.browserSession!;
584-
console.log("where - browserSessionOptions:", browserSessionOptions);
585576
const shopId = typeof browserSessionOptions === "boolean" ? undefined : browserSessionOptions.shopId;
586577
if (shopId) {
587-
console.log("where - shopId:", shopId);
588578
headers["x-gadget-for-shop-id"] = shopId;
589579
}
590580
}

0 commit comments

Comments
 (0)