Skip to content

Commit 81bde69

Browse files
committed
fix: update SDK initialization in getSdk function and bump version to 0.1.2
1 parent 434ac9e commit 81bde69

3 files changed

Lines changed: 3 additions & 11 deletions

File tree

‎package-lock.json‎

Lines changed: 0 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@srcpush/code-push-cli",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Management CLI for the CodePush service",
55
"keywords": [
66
"srcpush",

‎src/commands/executor.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,7 +1533,7 @@ function isCommandOptionSpecified(option: any): boolean {
15331533
}
15341534

15351535
function getSdk(accessKey: string, headers: Headers, customServerUrl: string): AccountManager {
1536-
const sdk: any = new AccountManager(accessKey, CLI_HEADERS, customServerUrl);
1536+
const sdk: any = new AccountManager(accessKey, headers, customServerUrl);
15371537
Object.getOwnPropertyNames(AccountManager.prototype).forEach((functionName: any) => {
15381538
if (typeof sdk[functionName] === "function") {
15391539
const originalFunction = sdk[functionName];
@@ -1554,5 +1554,5 @@ function getSdk(accessKey: string, headers: Headers, customServerUrl: string): A
15541554
}
15551555
});
15561556

1557-
return runtime.sdk;
1557+
return sdk;
15581558
}

0 commit comments

Comments
 (0)