@bitbar/cloud-api-client 1.0.19 → 1.0.21
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/dist/bitbar-cloud-api-client.js +4 -3
- package/dist/bitbar-cloud-api-client.js.map +1 -1
- package/dist/bitbar-cloud-api-client.min.js +2 -2
- package/dist/bitbar-cloud-api-client.min.js.map +1 -1
- package/lockfile-exists.js +9 -0
- package/package.json +16 -11
- package/.babelrc +0 -7
- package/.github/Jenkinsfile-codeql +0 -76
package/package.json
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitbar/cloud-api-client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.21",
|
|
4
4
|
"description": "Bitbar Cloud API Client for JavaScript",
|
|
5
5
|
"main": "dist/bitbar-cloud-api-client.min.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
+
"preinstall": "node lockfile-exists.js && npx npm-force-resolutions || echo 'Lockfile not found'",
|
|
8
9
|
"build": "npx rollup -c",
|
|
9
10
|
"test": "npx jest --runInBand",
|
|
10
11
|
"test:coverage": "npx jest --coverage=true --runInBand",
|
|
11
12
|
"lint": "npx eslint -c .eslintrc.js --ext .ts src",
|
|
12
13
|
"docs": "npx typedoc --out ./docs --ignoreCompilerErrors --mode modules --module umd --target ES5 --theme default --includes ./src src/CloudAPIClient.ts"
|
|
13
14
|
},
|
|
15
|
+
"resolutions": {
|
|
16
|
+
"terser": "5.16.5",
|
|
17
|
+
"semver": "7.5.4"
|
|
18
|
+
},
|
|
14
19
|
"keywords": [
|
|
15
20
|
"testdroid",
|
|
16
21
|
"api",
|
|
@@ -32,9 +37,9 @@
|
|
|
32
37
|
"access": "public"
|
|
33
38
|
},
|
|
34
39
|
"devDependencies": {
|
|
35
|
-
"@babel/cli": "^7.
|
|
36
|
-
"@babel/core": "^7.
|
|
37
|
-
"@babel/preset-env": "^7.
|
|
40
|
+
"@babel/cli": "^7.22.10",
|
|
41
|
+
"@babel/core": "^7.22.10",
|
|
42
|
+
"@babel/preset-env": "^7.22.10",
|
|
38
43
|
"@rollup/plugin-babel": "^5.3.1",
|
|
39
44
|
"@rollup/plugin-commonjs": "^21.0.3",
|
|
40
45
|
"@rollup/plugin-json": "^4.1.0",
|
|
@@ -42,23 +47,23 @@
|
|
|
42
47
|
"@types/jest": "^27.5.2",
|
|
43
48
|
"@types/node": "^14.18.12",
|
|
44
49
|
"@types/qs": "^6.9.7",
|
|
45
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
46
|
-
"@typescript-eslint/parser": "^5.
|
|
47
|
-
"core-js": "^3.
|
|
48
|
-
"eslint": "^8.
|
|
49
|
-
"jest": "^
|
|
50
|
+
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
51
|
+
"@typescript-eslint/parser": "^5.62.0",
|
|
52
|
+
"core-js": "^3.32.0",
|
|
53
|
+
"eslint": "^8.46.0",
|
|
54
|
+
"jest": "^29.6.2",
|
|
50
55
|
"rollup": "^2.70.1",
|
|
51
56
|
"rollup-plugin-delete": "^2.0.0",
|
|
52
57
|
"rollup-plugin-terser": "^7.0.2",
|
|
53
58
|
"rollup-plugin-typescript2": "^0.31.2",
|
|
54
|
-
"ts-jest": "^
|
|
59
|
+
"ts-jest": "^29.1.1",
|
|
55
60
|
"ts-node": "^10.7.0",
|
|
56
61
|
"tslib": "^2.3.1",
|
|
57
62
|
"typedoc": "0.17.8",
|
|
58
63
|
"typescript": "^4.6.3"
|
|
59
64
|
},
|
|
60
65
|
"dependencies": {
|
|
61
|
-
"@babel/runtime": "^7.
|
|
66
|
+
"@babel/runtime": "^7.22.10",
|
|
62
67
|
"@bitbar/finka": "^2.3.0",
|
|
63
68
|
"axios": "^0.26.1",
|
|
64
69
|
"form-data": "^4.0.0",
|
package/.babelrc
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env groovy
|
|
2
|
-
|
|
3
|
-
codeqlUrl = "https://github.com/github/codeql-action/releases/latest/download/codeql-bundle-linux64.tar.gz"
|
|
4
|
-
outputFile = "results.serif"
|
|
5
|
-
databaseName = "javascript-db"
|
|
6
|
-
scmTargetPath = "api-client-js"
|
|
7
|
-
repo = "git@github.com:bitbar/cloud-api-client-js.git"
|
|
8
|
-
credentialsId = "bitbar-dev-ssh"
|
|
9
|
-
githubApiCredentialsId = "4235c5e0-e60b-4c7d-8816-9508e60f484d"
|
|
10
|
-
branch = "master"
|
|
11
|
-
language = "javascript" //It's for both javascript and typescript
|
|
12
|
-
|
|
13
|
-
properties(
|
|
14
|
-
[
|
|
15
|
-
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '50', numToKeepStr: '50')),
|
|
16
|
-
disableConcurrentBuilds(),
|
|
17
|
-
pipelineTriggers([pollSCM("@weekly")]),
|
|
18
|
-
]
|
|
19
|
-
)
|
|
20
|
-
|
|
21
|
-
node('linux && docker') {
|
|
22
|
-
try {
|
|
23
|
-
stage("Repo preparations") {
|
|
24
|
-
def scmVars = checkout([
|
|
25
|
-
$class : 'GitSCM',
|
|
26
|
-
branches : [[name: branch]], doGenerateSubmoduleConfigurations: false,
|
|
27
|
-
extensions : [[$class: 'RelativeTargetDirectory', relativeTargetDir: scmTargetPath]],
|
|
28
|
-
userRemoteConfigs: [[credentialsId: credentialsId, url: repo]]
|
|
29
|
-
])
|
|
30
|
-
env.GIT_REPO_NAME = scmVars.GIT_URL.replaceFirst(/^.*:(.*)\.git$/, '$1')
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
stage('Init codeQL') {
|
|
34
|
-
init()
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
stage('CodeQL analyze') {
|
|
38
|
-
analyze()
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
stage('CodeQL results publishing') {
|
|
42
|
-
publish()
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
} finally {
|
|
46
|
-
stage('notification') {
|
|
47
|
-
notification()
|
|
48
|
-
cleanWs()
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
def init() {
|
|
54
|
-
sh("curl -sSL ${codeqlUrl} -o code-ql.tar.gz")
|
|
55
|
-
sh("tar -xvzf ./code-ql.tar.gz")
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
def analyze() {
|
|
59
|
-
docker.image("node:14.21.3-bullseye").inside("-u 0:0") {
|
|
60
|
-
sh("${WORKSPACE}/codeql/codeql database create ${databaseName} --language=${language} --source-root=${scmTargetPath}")
|
|
61
|
-
sh("${WORKSPACE}/codeql/codeql database analyze ${databaseName} --format=sarif-latest --output=${outputFile}")
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
def publish() {
|
|
66
|
-
withCredentials([string(credentialsId: githubApiCredentialsId, variable: 'GITHUB_TOKEN')]) {
|
|
67
|
-
sh("${WORKSPACE}/codeql/codeql github upload-results --repository=${env.GIT_REPO_NAME} --ref=refs/heads/${branch} --checkout-path=${WORKSPACE}/${scmTargetPath} --sarif=${outputFile}")
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
def notification() {
|
|
72
|
-
def text = "Scan <${env.BUILD_URL}|${env.JOB_NAME}[${env.BUILD_NUMBER}]>\n Finished with result ${currentBuild.currentResult}"
|
|
73
|
-
colorCode = currentBuild.currentResult == 'SUCCESS' ? '#00FF00' : '#FF0000'
|
|
74
|
-
slackSend color: colorCode, teamDomain: 'smartbear', channel: "bitbar-frontend", message: text, tokenCredentialId:
|
|
75
|
-
'SLACK_BACKEND_INTEGRATION_TOKEN'
|
|
76
|
-
}
|