Skip to content

Commit d24b6cb

Browse files
committed
npm security audit fixes
1 parent 08db279 commit d24b6cb

6 files changed

Lines changed: 899 additions & 311 deletions

File tree

ern-api-impl-gen/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"fs-extra": "^10.0.0",
4646
"lodash": "^4.17.21",
4747
"mustache": "^4.2.0",
48-
"semver": "7.3.5",
48+
"semver": "^7.5.2",
4949
"xcode": "^3.0.1",
5050
"xcode-ern": "^1.0.13"
5151
},

ern-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
},
3737
"homepage": "https://www.electrode.io",
3838
"dependencies": {
39-
"@octokit/rest": "18.5.3",
39+
"@octokit/rest": "^20.1.1",
4040
"@react-native-community/cli": "15.0.1",
4141
"@react-native-community/cli-platform-android": "15.0.1",
4242
"@react-native-community/cli-platform-ios": "15.0.1",

ern-core/src/GitHubApi.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class GitHubApi {
4747
fromSha?: string;
4848
fromTag?: string;
4949
name: string;
50-
}) {
50+
}): Promise<any> {
5151
if (!fromBranch && !fromSha && !fromTag) {
5252
fromBranch = await this.getDefaultBranch();
5353
}
@@ -73,7 +73,7 @@ export class GitHubApi {
7373
*
7474
* name: Name of the branch to delete
7575
*/
76-
public async deleteBranch({ name }: { name: string }) {
76+
public async deleteBranch({ name }: { name: string }): Promise<any> {
7777
const opts = {
7878
owner: this.owner,
7979
ref: this.shortBranchRef(name),
@@ -105,7 +105,7 @@ export class GitHubApi {
105105
fromSha?: string;
106106
fromTag?: string;
107107
name: string;
108-
}) {
108+
}): Promise<any> {
109109
if (!fromBranch && !fromSha && !fromTag) {
110110
fromBranch = await this.getDefaultBranch();
111111
}
@@ -127,7 +127,7 @@ export class GitHubApi {
127127
*
128128
* name: Name of the tag to delete
129129
*/
130-
public async deleteTag({ name }: { name: string }) {
130+
public async deleteTag({ name }: { name: string }): Promise<any> {
131131
const opts = {
132132
owner: this.owner,
133133
ref: this.shortTagRef(name),
@@ -172,7 +172,7 @@ export class GitHubApi {
172172

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

@@ -194,7 +194,7 @@ export class GitHubApi {
194194
onBranch?: string;
195195
newContent: string;
196196
commitMessage: string;
197-
}) {
197+
}): Promise<any> {
198198
const sha = (
199199
(
200200
await this.octokit.repos.getContent({
@@ -206,7 +206,7 @@ export class GitHubApi {
206206
).data as any
207207
).sha;
208208

209-
const buff = new Buffer(newContent);
209+
const buff = Buffer.from(newContent);
210210
const content = buff.toString('base64');
211211

212212
return this.octokit.repos.createOrUpdateFileContents({

ern-orchestrator/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
},
3737
"homepage": "https://www.electrode.io",
3838
"dependencies": {
39-
"@octokit/rest": "18.5.3",
39+
"@octokit/rest": "^20.1.1",
4040
"@yarnpkg/lockfile": "^1.1.0",
4141
"chalk": "^4.1.1",
4242
"cli-table": "^0.3.6",

package.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,5 +106,15 @@
106106
},
107107
"workspaces": [
108108
"ern-*"
109-
]
109+
],
110+
"resolutions": {
111+
"plist": "^3.0.5",
112+
"simple-plist": "^1.3.1",
113+
"deep-extend": "^0.6.0",
114+
"ip": "^2.0.1",
115+
"validator": "^13.15.22",
116+
"trim-newlines": "^3.0.1",
117+
"semver": "^7.5.2",
118+
"@tootallnate/once": ">=3.0.1"
119+
}
110120
}

0 commit comments

Comments
 (0)