Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ern-api-impl-gen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"fs-extra": "^10.0.0",
"lodash": "^4.17.21",
"mustache": "^4.2.0",
"semver": "7.3.5",
"semver": "^7.5.2",
"xcode": "^3.0.1",
"xcode-ern": "^1.0.13"
},
Expand Down
2 changes: 1 addition & 1 deletion ern-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"homepage": "https://www.electrode.io",
"dependencies": {
"@octokit/rest": "18.5.3",
"@octokit/rest": "^20.1.1",
"@react-native-community/cli": "15.0.1",
"@react-native-community/cli-platform-android": "15.0.1",
"@react-native-community/cli-platform-ios": "15.0.1",
Expand Down
14 changes: 7 additions & 7 deletions ern-core/src/GitHubApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class GitHubApi {
fromSha?: string;
fromTag?: string;
name: string;
}) {
}): Promise<any> {
if (!fromBranch && !fromSha && !fromTag) {
fromBranch = await this.getDefaultBranch();
}
Expand All @@ -73,7 +73,7 @@ export class GitHubApi {
*
* name: Name of the branch to delete
*/
public async deleteBranch({ name }: { name: string }) {
public async deleteBranch({ name }: { name: string }): Promise<any> {
const opts = {
owner: this.owner,
ref: this.shortBranchRef(name),
Expand Down Expand Up @@ -105,7 +105,7 @@ export class GitHubApi {
fromSha?: string;
fromTag?: string;
name: string;
}) {
}): Promise<any> {
if (!fromBranch && !fromSha && !fromTag) {
fromBranch = await this.getDefaultBranch();
}
Expand All @@ -127,7 +127,7 @@ export class GitHubApi {
*
* name: Name of the tag to delete
*/
public async deleteTag({ name }: { name: string }) {
public async deleteTag({ name }: { name: string }): Promise<any> {
const opts = {
owner: this.owner,
ref: this.shortTagRef(name),
Expand Down Expand Up @@ -172,7 +172,7 @@ export class GitHubApi {

log.debug(`repos.getContents(${JSON.stringify(opts, null, 2)})`);
const res = await this.octokit.repos.getContent(opts);
const buff = new Buffer((res.data as any).content, 'base64');
const buff = Buffer.from((res.data as any).content, 'base64');
return buff.toString('utf8');
}

Expand All @@ -194,7 +194,7 @@ export class GitHubApi {
onBranch?: string;
newContent: string;
commitMessage: string;
}) {
}): Promise<any> {
const sha = (
(
await this.octokit.repos.getContent({
Expand All @@ -206,7 +206,7 @@ export class GitHubApi {
).data as any
).sha;

const buff = new Buffer(newContent);
const buff = Buffer.from(newContent);
const content = buff.toString('base64');

return this.octokit.repos.createOrUpdateFileContents({
Expand Down
2 changes: 1 addition & 1 deletion ern-orchestrator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"homepage": "https://www.electrode.io",
"dependencies": {
"@octokit/rest": "18.5.3",
"@octokit/rest": "^20.1.1",
"@yarnpkg/lockfile": "^1.1.0",
"chalk": "^4.1.1",
"cli-table": "^0.3.6",
Expand Down
12 changes: 11 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,15 @@
},
"workspaces": [
"ern-*"
]
],
"resolutions": {
"plist": "^3.0.5",
"simple-plist": "^1.3.1",
"deep-extend": "^0.6.0",
"ip": "^2.0.1",
"validator": "^13.15.22",
"trim-newlines": "^3.0.1",
"semver": "^7.5.2",
"@tootallnate/once": ">=3.0.1"
}
}
Loading
Loading