Skip to content

Commit 4be34a9

Browse files
authored
Version updates to fix CI failures (#181)
1 parent aeb85ab commit 4be34a9

File tree

8 files changed

+395
-221
lines changed

8 files changed

+395
-221
lines changed

ts/create-kpt-functions/package-lock.json

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

ts/create-kpt-functions/package.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -32,37 +32,37 @@
3232
"posttest": "npm run lint"
3333
},
3434
"dependencies": {
35-
"@kubernetes/client-node": "^0.10.2",
35+
"@kubernetes/client-node": "^0.12.0",
3636
"argparse": "^1.0.10",
37-
"chalk": "^2.4.2",
37+
"chalk": "^4.1.0",
3838
"cli-interact": "^0.1.9",
39-
"fs-extra": "^8.1.0",
40-
"glob": "^7.1.4",
39+
"fs-extra": "^9.0.1",
40+
"glob": "^7.1.6",
4141
"go-npm": "^0.1.9",
42-
"is-valid-npm-name": "0.0.4",
43-
"mustache": "^3.0.1",
44-
"request": "^2.88.0",
45-
"request-promise": "^4.2.4",
46-
"validator": "^11.1.0"
42+
"is-valid-npm-name": "0.0.5",
43+
"mustache": "^4.0.1",
44+
"request": "^2.88.2",
45+
"request-promise": "^4.2.5",
46+
"validator": "^13.1.1"
4747
},
4848
"devDependencies": {
49-
"@types/argparse": "^1.0.36",
49+
"@types/argparse": "^1.0.38",
5050
"@types/cli-interact": "^0.1.0",
51-
"@types/fs-extra": "^8.0.0",
52-
"@types/jasmine": "^3.3.12",
53-
"@types/glob": "^7.1.1",
54-
"@types/mustache": "^0.8.32",
55-
"@types/request-promise": "^4.1.44",
56-
"@types/validator": "^10.11.3",
57-
"@types/js-yaml": "^3.12.1",
58-
"@types/node": "^12.7.2",
59-
"jasmine": "^3.4.0",
51+
"@types/fs-extra": "^9.0.1",
52+
"@types/jasmine": "^3.5.11",
53+
"@types/glob": "^7.1.3",
54+
"@types/mustache": "^4.0.1",
55+
"@types/request-promise": "^4.1.46",
56+
"@types/validator": "^13.1.0",
57+
"@types/js-yaml": "^3.12.5",
58+
"@types/node": "^14.0.24",
59+
"jasmine": "^3.5.0",
6060
"license-checker": "^25.0.1",
61-
"prettier": "1.18.2",
62-
"tslint": "^6.0.0",
61+
"prettier": "2.0.5",
62+
"tslint": "^6.1.2",
6363
"tslint-config-prettier": "1.18.0",
6464
"tslint-consistent-codestyle": "^1.16.0",
65-
"typescript": "~3.7.0"
65+
"typescript": "~3.9.7"
6666
},
6767
"goBinary": {
6868
"name": "typegen",

ts/create-kpt-functions/src/cmd/type_create.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ function getOptsForTypeSource(typeSource: number): request.Options {
119119
const currentContext = kc.currentContext;
120120
const contextIdx = chooseContext(contexts, currentContext);
121121
const useContext = contexts[contextIdx];
122-
const cluster = kc.clusters.find(c => c.name === useContext.cluster);
122+
const cluster = kc.clusters.find((c) => c.name === useContext.cluster);
123123
if (!cluster) {
124124
throw new Error('Cluster for specified context not found.');
125125
}
@@ -139,7 +139,7 @@ function getOptsForTypeSource(typeSource: number): request.Options {
139139

140140
function chooseContext(contexts: Context[], currentContext: string): number {
141141
const defaultContext =
142-
contexts.findIndex(c => c.name === currentContext) || 0;
142+
contexts.findIndex((c) => c.name === currentContext) || 0;
143143
log('Contexts:\n');
144144
contexts.forEach((c, idx) => {
145145
if (c.name === currentContext) {

ts/create-kpt-functions/src/utils/validator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ function makeInvalidCharactersRed(s: string) {
157157
const splits: string[] = s.split(invalidCharSplit);
158158

159159
return splits
160-
.map(str => (invalidChars.test(str) ? failure(str) : success(str)))
160+
.map((str) => (invalidChars.test(str) ? failure(str) : success(str)))
161161
.join('');
162162
}
163163

ts/demo-functions/package-lock.json

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

ts/demo-functions/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@
2222
"kpt:type-create": "kpt type-create"
2323
},
2424
"dependencies": {
25-
"glob": "^7.1.3",
25+
"glob": "^7.1.6",
2626
"js-yaml": "^3.14.0",
2727
"kpt-functions": "^0.14.3"
2828
},
2929
"devDependencies": {
3030
"@types/fs-extra": "^9.0.1",
31-
"@types/glob": "^7.1.2",
32-
"@types/jasmine": "^3.5.10",
33-
"@types/js-yaml": "^3.12.4",
34-
"@types/node": "^14.0.11",
31+
"@types/glob": "^7.1.3",
32+
"@types/jasmine": "^3.5.11",
33+
"@types/js-yaml": "^3.12.5",
34+
"@types/node": "^14.0.24",
3535
"create-kpt-functions": "^0.17.0",
3636
"dir-compare": "^2.3.0",
3737
"fs-extra": "^9.0.1",
@@ -41,7 +41,7 @@
4141
"tslint": "^6.1.2",
4242
"tslint-config-prettier": "1.18.0",
4343
"tslint-consistent-codestyle": "^1.16.0",
44-
"typescript": "~3.9.5"
44+
"typescript": "~3.9.7"
4545
},
4646
"kpt": {
4747
"docker_repo_base": "gcr.io/kpt-functions"

0 commit comments

Comments
 (0)