@aikidosec/ci-api-client 1.0.10 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/build-and-release.yml +3 -3
- package/lib/commands/apiKey.js +1 -1
- package/lib/commands/scan.js +1 -1
- package/lib/commands/scanRelease.js +1 -1
- package/lib/index.js +1 -1
- package/npm-shrinkwrap.json +1270 -0
- package/package.json +23 -20
- package/src/commands/apiKey.ts +1 -1
- package/src/commands/scan.ts +1 -1
- package/src/commands/scanRelease.ts +1 -1
- package/src/index.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aikidosec/ci-api-client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"description": "CLI api client to easily integrate the Aikido public CI API into custom deploy scripts",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Bert Devriese <bert@builtinbruges.com>",
|
|
@@ -17,35 +17,38 @@
|
|
|
17
17
|
"scripts": {
|
|
18
18
|
"start": "nodemon --watch 'src/**/*.ts' --esm --exec 'ts-node' src/index.ts",
|
|
19
19
|
"build": "tsc -p .",
|
|
20
|
-
"local": "
|
|
21
|
-
"local-rm": "
|
|
20
|
+
"local": "npm run build && npm install -g file:$PWD; aikido-api-client",
|
|
21
|
+
"local-rm": "npm uninstall -g @aikidosec/ci-api-client",
|
|
22
22
|
"format": "prettier --write 'src/**/*.ts'",
|
|
23
23
|
"//": {
|
|
24
|
-
"refresh": "rm -rf ./node_modules ./
|
|
24
|
+
"refresh": "rm -rf ./node_modules ./npm-shrinkwrap.json && npm install && npm shrinkwrap"
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"axios": "
|
|
29
|
-
"chalk": "
|
|
30
|
-
"commander": "
|
|
31
|
-
"configstore": "
|
|
32
|
-
"dotenv": "
|
|
33
|
-
"ora": "
|
|
28
|
+
"axios": "1.8.3",
|
|
29
|
+
"chalk": "5.3.0",
|
|
30
|
+
"commander": "11.0.0",
|
|
31
|
+
"configstore": "6.0.0",
|
|
32
|
+
"dotenv": "16.3.1",
|
|
33
|
+
"ora": "6.3.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@types/chalk": "
|
|
37
|
-
"@types/commander": "
|
|
38
|
-
"@types/configstore": "
|
|
39
|
-
"@types/dotenv": "
|
|
40
|
-
"@types/node": "
|
|
41
|
-
"nodemon": "
|
|
42
|
-
"prettier": "
|
|
43
|
-
"ts-node": "
|
|
44
|
-
"typescript": "
|
|
36
|
+
"@types/chalk": "2.2.0",
|
|
37
|
+
"@types/commander": "2.12.2",
|
|
38
|
+
"@types/configstore": "6.0.0",
|
|
39
|
+
"@types/dotenv": "8.2.0",
|
|
40
|
+
"@types/node": "20.3.3",
|
|
41
|
+
"nodemon": "2.0.22",
|
|
42
|
+
"prettier": "2.8.8",
|
|
43
|
+
"ts-node": "10.9.1",
|
|
44
|
+
"typescript": "5.1.6"
|
|
45
45
|
},
|
|
46
46
|
"keywords": [
|
|
47
47
|
"aikido",
|
|
48
48
|
"security",
|
|
49
49
|
"cli"
|
|
50
|
-
]
|
|
50
|
+
],
|
|
51
|
+
"overrides": {
|
|
52
|
+
"form-data@<=4.0.4": "4.0.4"
|
|
53
|
+
}
|
|
51
54
|
}
|
package/src/commands/apiKey.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Argument, Command } from 'commander';
|
|
|
2
2
|
import { setApiKey } from '../configuration.js';
|
|
3
3
|
import { outputError, outputLog } from '../output.js';
|
|
4
4
|
|
|
5
|
-
const API_KEY_REGEX = /^AIK_CI_[
|
|
5
|
+
const API_KEY_REGEX = /^(?:AIK_CI_|AIK_CI_US_|AIK_CI_ME_)[A-Za-z0-9]{64}$/;
|
|
6
6
|
|
|
7
7
|
function cli(apiKey: string): void {
|
|
8
8
|
const isValidApiKey =
|
package/src/commands/scan.ts
CHANGED
|
@@ -245,7 +245,7 @@ export const scan = async ({
|
|
|
245
245
|
const parseCliOptions = (userCliOptions: TScanUserCliOptions) => {
|
|
246
246
|
// Version provided to the API corresponds with the version in package.json
|
|
247
247
|
// of the cli client
|
|
248
|
-
const apiOptions: TScanApiOptions = { version: '1.0.
|
|
248
|
+
const apiOptions: TScanApiOptions = { version: '1.0.11' };
|
|
249
249
|
const cliOptions: TScanCliOptions = { pollInterval: 5 };
|
|
250
250
|
|
|
251
251
|
if (userCliOptions.pullRequestTitle) {
|
|
@@ -239,7 +239,7 @@ export const scan = async ({
|
|
|
239
239
|
const parseCliOptions = (userCliOptions: TScanUserCliOptions) => {
|
|
240
240
|
// Version provided to the API corresponds with the version in package.json
|
|
241
241
|
// of the cli client
|
|
242
|
-
const apiOptions: TScanApiOptions = { version: '1.0.
|
|
242
|
+
const apiOptions: TScanApiOptions = { version: '1.0.11' };
|
|
243
243
|
const cliOptions: TScanCliOptions = { pollInterval: 10 };
|
|
244
244
|
|
|
245
245
|
if (userCliOptions.pullRequestTitle) {
|
package/src/index.ts
CHANGED
|
@@ -20,7 +20,7 @@ program
|
|
|
20
20
|
.description(
|
|
21
21
|
'CLI api client to easily integrate the Aikido public CI API into custom deploy scripts'
|
|
22
22
|
)
|
|
23
|
-
.version('1.0.
|
|
23
|
+
.version('1.0.12');
|
|
24
24
|
|
|
25
25
|
// Load in all app commands and set them up in the `program` instance
|
|
26
26
|
apiKey.cliSetup(program);
|