fiftyone.geolocation 4.3.6 → 4.4.1
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/ci/common-ci/.github/labels.yml +8 -2
- package/ci/common-ci/create-tag.yml +8 -5
- package/ci/common-ci/java/shared-security-vulnerability-check.yml +54 -0
- package/ci/common-ci/release-config.json +50 -94
- package/ci/common-ci/scripts/modules/51DGitModule/51DGitModule.psm1 +89 -26
- package/docs/Doxyfile +3 -3
- package/docs/DoxygenLayout.xml +1 -1
- package/package.json +5 -5
|
@@ -74,7 +74,13 @@
|
|
|
74
74
|
color: 6ff076
|
|
75
75
|
- name: "scheduled: 12th Jan 2022"
|
|
76
76
|
description: This item has been scheduled for 12th Jan 2022 release
|
|
77
|
-
color:
|
|
77
|
+
color: 6ff076
|
|
78
78
|
- name: "scheduled: 19th Jan 2022"
|
|
79
79
|
description: This item has been scheduled for 19th Jan 2022 release
|
|
80
|
-
color:
|
|
80
|
+
color: 6ff076
|
|
81
|
+
- name: "scheduled: 26th Jan 2022"
|
|
82
|
+
description: This item has been scheduled for 26th Jan 2022 release
|
|
83
|
+
color: 6ff076
|
|
84
|
+
- name: "scheduled: 2nd Feb 2022"
|
|
85
|
+
description: This item has been scheduled for 2nd Feb 2022 release
|
|
86
|
+
color: 6ff076
|
|
@@ -25,12 +25,15 @@ stages:
|
|
|
25
25
|
submodules: recursive
|
|
26
26
|
persistCredentials: true
|
|
27
27
|
|
|
28
|
-
- task:
|
|
29
|
-
displayName:
|
|
30
|
-
# Give this task a name so we can use the variables it sets later.
|
|
31
|
-
name: GitVersion
|
|
28
|
+
- task: gitversion/setup@0
|
|
29
|
+
displayName: Install GitVersion
|
|
32
30
|
inputs:
|
|
33
|
-
|
|
31
|
+
versionSpec: '5.x'
|
|
32
|
+
|
|
33
|
+
- task: gitversion/execute@0
|
|
34
|
+
displayName: Determine Version
|
|
35
|
+
inputs:
|
|
36
|
+
useConfigFile: true
|
|
34
37
|
configFilePath: '$(Build.SourcesDirectory)/GitVersion.yml'
|
|
35
38
|
|
|
36
39
|
# Add a tag to the git repository with the version number.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
parameters:
|
|
2
|
+
- name: imageName # Name of build image
|
|
3
|
+
- name: dependencies # Stages that this stage depends on
|
|
4
|
+
type: object
|
|
5
|
+
default: []
|
|
6
|
+
|
|
7
|
+
stages:
|
|
8
|
+
- stage: 'SecurityCheck'
|
|
9
|
+
displayName: 'Security Vulnerability Check'
|
|
10
|
+
dependsOn: ${{ parameters.dependencies }}
|
|
11
|
+
|
|
12
|
+
variables:
|
|
13
|
+
- group: CIAutomation
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
- job: 'SecurityCheck'
|
|
17
|
+
displayName: 'Security Vulnerability Check'
|
|
18
|
+
|
|
19
|
+
pool:
|
|
20
|
+
vmImage: ${{ parameters.imageName }}
|
|
21
|
+
|
|
22
|
+
steps:
|
|
23
|
+
- checkout: self
|
|
24
|
+
submodules: recursive
|
|
25
|
+
lfs: true
|
|
26
|
+
persistCredentials: true
|
|
27
|
+
|
|
28
|
+
- task: MavenAuthenticate@0
|
|
29
|
+
inputs:
|
|
30
|
+
artifactsFeeds: '$(InternalFeedName)'
|
|
31
|
+
|
|
32
|
+
# Perform a security vulnerability check on the dependencies
|
|
33
|
+
# using dependency-check-maven plugin
|
|
34
|
+
- bash: |
|
|
35
|
+
mvn dependency-check:aggregate -Pdependency-check -Dfetchrepository.id=$REPO_ID -Dfetchrepository.url=$REPO_URL
|
|
36
|
+
env:
|
|
37
|
+
REPO_ID: $(fetchrepository.id)
|
|
38
|
+
REPO_URL: $(fetchrepository.url)
|
|
39
|
+
displayName: 'Maven dependency check'
|
|
40
|
+
|
|
41
|
+
# Copy report to staging directory to be published
|
|
42
|
+
- task: CopyFiles@2
|
|
43
|
+
displayName: 'Copy Files to: $(build.artifactstagingdirectory)'
|
|
44
|
+
inputs:
|
|
45
|
+
SourceFolder: '$(build.sourcesdirectory)'
|
|
46
|
+
Contents: 'target/dependency-check-report.html'
|
|
47
|
+
TargetFolder: '$(build.artifactstagingdirectory)'
|
|
48
|
+
|
|
49
|
+
# Publish dependency check report
|
|
50
|
+
- task: PublishBuildArtifacts@1
|
|
51
|
+
displayName: 'Publish Artifact: dependency-check-report'
|
|
52
|
+
inputs:
|
|
53
|
+
PathtoPublish: '$(build.artifactstagingdirectory)'
|
|
54
|
+
ArtifactName: dependency-check-report
|
|
@@ -1,181 +1,137 @@
|
|
|
1
1
|
{
|
|
2
2
|
"repositories": {
|
|
3
3
|
"common-ci": {
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.4.5",
|
|
5
5
|
"isLeaf": true
|
|
6
6
|
},
|
|
7
7
|
"common-cxx": {
|
|
8
|
-
"version": "4.
|
|
8
|
+
"version": "4.4.2",
|
|
9
9
|
"isLeaf": false,
|
|
10
10
|
"dependencies": [
|
|
11
11
|
"common-ci"
|
|
12
12
|
]
|
|
13
13
|
},
|
|
14
14
|
"device-detection-cxx": {
|
|
15
|
-
"version": "4.
|
|
15
|
+
"version": "4.4.2",
|
|
16
16
|
"isLeaf": false,
|
|
17
17
|
"dependencies": [
|
|
18
18
|
"common-ci",
|
|
19
19
|
"common-cxx"
|
|
20
20
|
]
|
|
21
21
|
},
|
|
22
|
-
"
|
|
23
|
-
"version": "4.
|
|
24
|
-
"packageName": "fiftyone.pipeline",
|
|
25
|
-
"isLeaf": false,
|
|
26
|
-
"dependencies": [
|
|
27
|
-
"common-ci"
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
"location-node": {
|
|
31
|
-
"version": "4.3.6",
|
|
32
|
-
"packageName": "fiftyone.geolocation",
|
|
22
|
+
"device-detection-varnish": {
|
|
23
|
+
"version": "4.4.1",
|
|
33
24
|
"isLeaf": false,
|
|
34
25
|
"dependencies": [
|
|
35
26
|
"common-ci",
|
|
36
|
-
"
|
|
37
|
-
"device-detection-node"
|
|
27
|
+
"device-detection-cxx"
|
|
38
28
|
]
|
|
39
29
|
},
|
|
40
|
-
"device-detection-
|
|
41
|
-
"version": "4.
|
|
42
|
-
"packageName": "fiftyone.devicedetection",
|
|
30
|
+
"device-detection-nginx": {
|
|
31
|
+
"version": "4.4.1",
|
|
43
32
|
"isLeaf": false,
|
|
44
33
|
"dependencies": [
|
|
45
34
|
"common-ci",
|
|
46
|
-
"device-detection-cxx"
|
|
47
|
-
"pipeline-node"
|
|
48
|
-
]
|
|
49
|
-
},
|
|
50
|
-
"pipeline-java": {
|
|
51
|
-
"version": "4.3.8",
|
|
52
|
-
"packageName": "pipeline",
|
|
53
|
-
"versionVariableName": "pipeline.version",
|
|
54
|
-
"isLeaf": false,
|
|
55
|
-
"dependencies": [
|
|
56
|
-
"common-ci"
|
|
35
|
+
"device-detection-cxx"
|
|
57
36
|
]
|
|
58
37
|
},
|
|
59
38
|
"location-java": {
|
|
60
|
-
"version": "4.
|
|
39
|
+
"version": "4.4.2",
|
|
61
40
|
"packageName": "pipeline.geo-location",
|
|
62
41
|
"versionVariableName": "geolocation.version",
|
|
63
42
|
"isLeaf": false,
|
|
64
43
|
"dependencies": [
|
|
65
44
|
"common-ci",
|
|
66
|
-
"pipeline-java",
|
|
67
45
|
"device-detection-java"
|
|
68
46
|
]
|
|
69
47
|
},
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
"packageName": "
|
|
73
|
-
"versionVariableName": "
|
|
48
|
+
"location-onpremise-java": {
|
|
49
|
+
"version": "4.4.3",
|
|
50
|
+
"packageName": "geo-location.digitalelement",
|
|
51
|
+
"versionVariableName": "geolocation.digitalelement.version",
|
|
74
52
|
"isLeaf": false,
|
|
75
53
|
"dependencies": [
|
|
76
54
|
"common-ci",
|
|
77
|
-
"
|
|
78
|
-
]
|
|
79
|
-
},
|
|
80
|
-
"common-dotnet": {
|
|
81
|
-
"version": "4.3.5",
|
|
82
|
-
"packageName": "FiftyOne.Common",
|
|
83
|
-
"isLeaf": false,
|
|
84
|
-
"dependencies": [
|
|
85
|
-
"common-ci"
|
|
86
|
-
]
|
|
87
|
-
},
|
|
88
|
-
"caching-dotnet": {
|
|
89
|
-
"version": "4.3.5",
|
|
90
|
-
"packageName": "FiftyOne.Caching",
|
|
91
|
-
"isLeaf": false,
|
|
92
|
-
"dependencies": [
|
|
93
|
-
"common-ci"
|
|
55
|
+
"location-java"
|
|
94
56
|
]
|
|
95
57
|
},
|
|
96
|
-
"
|
|
97
|
-
"version": "4.
|
|
98
|
-
"packageName": "
|
|
58
|
+
"device-detection-java": {
|
|
59
|
+
"version": "4.4.2",
|
|
60
|
+
"packageName": "pipeline.device-detection",
|
|
61
|
+
"versionVariableName": "devicedetection.version",
|
|
99
62
|
"isLeaf": false,
|
|
100
63
|
"dependencies": [
|
|
101
64
|
"common-ci",
|
|
102
|
-
"
|
|
103
|
-
"caching-dotnet"
|
|
65
|
+
"device-detection-cxx"
|
|
104
66
|
]
|
|
105
67
|
},
|
|
106
68
|
"location-dotnet": {
|
|
107
|
-
"version": "4.
|
|
69
|
+
"version": "4.4.1",
|
|
108
70
|
"packageName": "FiftyOne.Geolocation",
|
|
109
71
|
"isLeaf": false,
|
|
110
72
|
"dependencies": [
|
|
111
73
|
"common-ci",
|
|
112
|
-
"common-dotnet",
|
|
113
|
-
"pipeline-dotnet",
|
|
114
74
|
"device-detection-dotnet"
|
|
115
75
|
]
|
|
116
76
|
},
|
|
117
77
|
"device-detection-dotnet": {
|
|
118
|
-
"version": "4.
|
|
78
|
+
"version": "4.4.1",
|
|
119
79
|
"packageName": "FiftyOne.DeviceDetection",
|
|
120
80
|
"isLeaf": false,
|
|
121
81
|
"dependencies": [
|
|
122
82
|
"common-ci",
|
|
123
|
-
"device-detection-cxx"
|
|
124
|
-
"caching-dotnet",
|
|
125
|
-
"common-dotnet",
|
|
126
|
-
"pipeline-dotnet"
|
|
83
|
+
"device-detection-cxx"
|
|
127
84
|
]
|
|
128
85
|
},
|
|
129
|
-
"
|
|
130
|
-
"version": "4.
|
|
131
|
-
"packageName": "FiftyOne.
|
|
132
|
-
"isLeaf": false,
|
|
86
|
+
"internal-engines-dotnet": {
|
|
87
|
+
"version": "4.4.2",
|
|
88
|
+
"packageName": "FiftyOne.GeoLocation.OnPremise",
|
|
89
|
+
"isLeaf": false,
|
|
133
90
|
"dependencies": [
|
|
134
|
-
"common-ci"
|
|
91
|
+
"common-ci",
|
|
92
|
+
"device-detection-dotnet",
|
|
93
|
+
"location-dotnet"
|
|
135
94
|
]
|
|
136
95
|
},
|
|
137
|
-
"
|
|
138
|
-
|
|
96
|
+
"location-node": {
|
|
97
|
+
"version": "4.4.1",
|
|
98
|
+
"packageName": "fiftyone.geolocation",
|
|
139
99
|
"isLeaf": false,
|
|
140
100
|
"dependencies": [
|
|
141
101
|
"common-ci",
|
|
142
|
-
"
|
|
143
|
-
"license-dotnet",
|
|
144
|
-
"pipeline-dotnet"
|
|
102
|
+
"device-detection-node"
|
|
145
103
|
]
|
|
146
104
|
},
|
|
147
|
-
"
|
|
148
|
-
"version": "4.
|
|
149
|
-
"packageName": "
|
|
150
|
-
"versionVariableName": "pipelineVersion",
|
|
105
|
+
"device-detection-node": {
|
|
106
|
+
"version": "4.4.2",
|
|
107
|
+
"packageName": "fiftyone.devicedetection",
|
|
151
108
|
"isLeaf": false,
|
|
152
109
|
"dependencies": [
|
|
153
|
-
"common-ci"
|
|
110
|
+
"common-ci",
|
|
111
|
+
"device-detection-cxx"
|
|
154
112
|
]
|
|
155
113
|
},
|
|
156
|
-
"
|
|
157
|
-
|
|
158
|
-
"packageName": "
|
|
159
|
-
"versionVariableName": "
|
|
114
|
+
"device-detection-python": {
|
|
115
|
+
"version": "4.4.2",
|
|
116
|
+
"packageName": "fiftyone_devicedetection",
|
|
117
|
+
"versionVariableName": "deviceDetectionVersion",
|
|
160
118
|
"isLeaf": false,
|
|
161
119
|
"dependencies": [
|
|
162
120
|
"common-ci",
|
|
163
|
-
"
|
|
121
|
+
"device-detection-cxx"
|
|
164
122
|
]
|
|
165
123
|
},
|
|
166
|
-
"device-detection-
|
|
167
|
-
"version": "4.
|
|
168
|
-
"packageName": "
|
|
169
|
-
"versionVariableName": "deviceDetectionVersion",
|
|
124
|
+
"device-detection-php-onpremise": {
|
|
125
|
+
"version": "4.4.2",
|
|
126
|
+
"packageName": "fiftyone.devicedetection",
|
|
170
127
|
"isLeaf": false,
|
|
171
128
|
"dependencies": [
|
|
172
129
|
"common-ci",
|
|
173
|
-
"device-detection-cxx"
|
|
174
|
-
"pipeline-python"
|
|
130
|
+
"device-detection-cxx"
|
|
175
131
|
]
|
|
176
132
|
},
|
|
177
133
|
"device-detection-go": {
|
|
178
|
-
"version": "4.
|
|
134
|
+
"version": "4.4.1",
|
|
179
135
|
"isLeaf": false,
|
|
180
136
|
"dependencies": [
|
|
181
137
|
"common-ci",
|
|
@@ -183,7 +139,7 @@
|
|
|
183
139
|
]
|
|
184
140
|
},
|
|
185
141
|
"device-detection-examples-go": {
|
|
186
|
-
"version": "4.
|
|
142
|
+
"version": "4.4.1",
|
|
187
143
|
"isLeaf": false,
|
|
188
144
|
"dependencies": [
|
|
189
145
|
"common-ci",
|
|
@@ -18,80 +18,139 @@ $script:releaseConfig = $null
|
|
|
18
18
|
$script:repositories = $null
|
|
19
19
|
|
|
20
20
|
class GitHandler {
|
|
21
|
+
static [boolean]Clean () {
|
|
22
|
+
$output = $(git clean -f -d)
|
|
23
|
+
$exitCode = $LASTEXITCODE
|
|
24
|
+
[boolean]$rtnCode = $exitCode -eq 0
|
|
25
|
+
if (!$rtnCode) {
|
|
26
|
+
Write-Host $output
|
|
27
|
+
Write-Host "# WARNING: Could not clean current dir properly. Exit code $exitCode."
|
|
28
|
+
}
|
|
29
|
+
return $rtnCode
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
static [boolean]UpdateSubmodules() {
|
|
33
|
+
$output = $(git submodule update --init --recursive)
|
|
34
|
+
$exitCode = $LASTEXITCODE
|
|
35
|
+
[boolean]$rtnCode = $exitCode -eq 0
|
|
36
|
+
if (!$rtnCode) {
|
|
37
|
+
Write-Host $output
|
|
38
|
+
Write-Host "# WARNING: Could not update submodules recursively. Exit code $exitCode."
|
|
39
|
+
}
|
|
40
|
+
return $rtnCode
|
|
41
|
+
}
|
|
42
|
+
|
|
21
43
|
static [boolean]Checkout ([string]$branchName) {
|
|
22
44
|
Write-Host "# Checkout $branchName"
|
|
23
|
-
git checkout "$branchName"
|
|
24
|
-
|
|
45
|
+
$output = $(git checkout "$branchName")
|
|
46
|
+
$exitCode = $LASTEXITCODE
|
|
47
|
+
[boolean]$rtnCode = $exitCode -eq 0
|
|
48
|
+
if (!$rtnCode) {
|
|
49
|
+
Write-Host $output
|
|
50
|
+
Write-Host "# ERROR: Failed to checkout '$branchName' recursively. Exit code $exitCode."
|
|
51
|
+
return $rtnCode
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
$rtnCode = [GitHandler]::UpdateSubmodules()
|
|
55
|
+
if (!$rtnCode) {
|
|
56
|
+
return $rtnCode
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return [GitHandler]::Clean()
|
|
25
60
|
}
|
|
26
61
|
|
|
27
62
|
static [boolean]CheckoutTrack ([string]$branchName) {
|
|
28
63
|
Write-Host "# Checkout track $branchName"
|
|
29
|
-
git checkout --track "$branchName"
|
|
30
|
-
|
|
64
|
+
$output = $(git checkout --track "$branchName")
|
|
65
|
+
$exitCode = $LASTEXITCODE
|
|
66
|
+
[boolean]$rtnCode = $exitCode -eq 0
|
|
67
|
+
if (!$rtnCode) {
|
|
68
|
+
Write-Host $output
|
|
69
|
+
Write-Host "# ERROR: Failed to checkout '$branchName' recursively. Exit code $exitCode."
|
|
70
|
+
return $rtnCode
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
$rtnCode = [GitHandler]::UpdateSubmodules()
|
|
74
|
+
if (!$rtnCode) {
|
|
75
|
+
return $rtnCode
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return [GitHandler]::Clean()
|
|
31
79
|
}
|
|
32
80
|
|
|
33
81
|
static [boolean]CheckoutNew ([string]$branchName) {
|
|
34
82
|
Write-Host "# Checkout New $branchName"
|
|
35
|
-
git checkout -b "$branchName"
|
|
36
|
-
return
|
|
83
|
+
$output = $(git checkout -b "$branchName")
|
|
84
|
+
return [GitHandler]::ProcessExitCode($LASTEXITCODE, $output)
|
|
85
|
+
|
|
37
86
|
}
|
|
38
87
|
|
|
39
88
|
static [boolean]Pull () {
|
|
40
89
|
Write-Host "# Git pull"
|
|
41
|
-
git pull
|
|
42
|
-
return
|
|
90
|
+
$output = $(git pull)
|
|
91
|
+
return [GitHandler]::ProcessExitCode($LASTEXITCODE, $output)
|
|
43
92
|
}
|
|
44
93
|
|
|
45
94
|
static [boolean]FetchAllTags () {
|
|
46
95
|
Write-Host "# Fetch all tags"
|
|
47
96
|
# git -c http.extraheader="AUTHORIZATION: bearer $env:SYSTEM_ACCESSTOKEN" fetch --all --tags
|
|
48
|
-
git -c http.extraheader="AUTHORIZATION: $([Authorization]::AuthorizationString)" fetch --all --tags
|
|
49
|
-
return
|
|
97
|
+
$output = $(git -c http.extraheader="AUTHORIZATION: $([Authorization]::AuthorizationString)" fetch --all --tags)
|
|
98
|
+
return [GitHandler]::ProcessExitCode($LASTEXITCODE, $output)
|
|
50
99
|
}
|
|
51
100
|
|
|
52
101
|
static [boolean]Push ([string]$branchName) {
|
|
53
102
|
if ([string]::IsNullOrEmpty($branchName)) {
|
|
54
103
|
Write-Host "# Git Push $branchName to origin"
|
|
55
|
-
git -c http.extraheader="AUTHORIZATION: $([Authorization]::AuthorizationString)" push
|
|
104
|
+
$output = $(git -c http.extraheader="AUTHORIZATION: $([Authorization]::AuthorizationString)" push)
|
|
56
105
|
} else {
|
|
57
106
|
Write-Host "# Git Push"
|
|
58
|
-
git -c http.extraheader="AUTHORIZATION: $([Authorization]::AuthorizationString)" push origin "$branchName"
|
|
107
|
+
$output = $(git -c http.extraheader="AUTHORIZATION: $([Authorization]::AuthorizationString)" push origin "$branchName")
|
|
59
108
|
}
|
|
60
|
-
return
|
|
109
|
+
return [GitHandler]::ProcessExitCode($LASTEXITCODE, $output)
|
|
61
110
|
}
|
|
62
111
|
|
|
63
112
|
static [boolean]Commit ([string]$message) {
|
|
64
113
|
Write-Host "# Git commit"
|
|
65
|
-
git commit -m "$message"
|
|
66
|
-
return
|
|
114
|
+
$output = $(git commit -m "$message")
|
|
115
|
+
return [GitHandler]::ProcessExitCode($LASTEXITCODE, $output)
|
|
67
116
|
}
|
|
68
117
|
|
|
69
118
|
static [boolean]Config ([string]$email, [string]$name) {
|
|
70
119
|
Write-Host "# Git config email '$email' and name '$name'"
|
|
71
|
-
git config user.email "$email"
|
|
72
|
-
[
|
|
73
|
-
|
|
74
|
-
|
|
120
|
+
$output = $(git config user.email "$email")
|
|
121
|
+
$rtnCode = [GitHandler]::ProcessExitCode($LASTEXITCODE, $output)
|
|
122
|
+
|
|
123
|
+
$output = $(git config user.name "$name")
|
|
124
|
+
return $rtnCode -and [GitHandler]::ProcessExitCode($LASTEXITCODE, $output)
|
|
75
125
|
}
|
|
76
126
|
|
|
77
127
|
static [boolean]Add ([string]$path) {
|
|
78
128
|
Write-Host "# Git stage '$path'"
|
|
79
|
-
git add "$path"
|
|
80
|
-
return
|
|
129
|
+
$output = $(git add "$path")
|
|
130
|
+
return [GitHandler]::ProcessExitCode($LASTEXITCODE, $output)
|
|
81
131
|
}
|
|
82
132
|
|
|
83
133
|
static [boolean]CheckoutWithAuthorization ([string]$branchName) {
|
|
84
134
|
Write-Host "# Checkout with authorization $branchName"
|
|
85
135
|
# git -c http.extraheader="AUTHORIZATION: bearer $env:SYSTEM_ACCESSTOKEN" checkout "$branchName"
|
|
86
|
-
git -c http.extraheader="AUTHORIZATION: $([Authorization]::AuthorizationString)" checkout "$branchName"
|
|
87
|
-
return
|
|
136
|
+
$output = $(git -c http.extraheader="AUTHORIZATION: $([Authorization]::AuthorizationString)" checkout "$branchName")
|
|
137
|
+
return [GitHandler]::ProcessExitCode($LASTEXITCODE, $output)
|
|
88
138
|
}
|
|
89
139
|
|
|
90
140
|
static [boolean]Clone ([string]$url) {
|
|
91
141
|
Write-Host "# Clone $url"
|
|
92
142
|
# git -c http.extraheader="AUTHORIZATION: Bearer $env:SYSTEM_ACCESSTOKEN" clone "$url"
|
|
93
|
-
git -c http.extraheader="AUTHORIZATION: $([Authorization]::AuthorizationString)" clone "$url"
|
|
94
|
-
return
|
|
143
|
+
$output = $(git -c http.extraheader="AUTHORIZATION: $([Authorization]::AuthorizationString)" clone "$url")
|
|
144
|
+
return [GitHandler]::ProcessExitCode($LASTEXITCODE, $output)
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
static hidden [boolean]ProcessExitCode ([int]$exitCode, [string]$commandOutput) {
|
|
148
|
+
[boolean]$rtnCode = $exitCode -eq 0
|
|
149
|
+
if (!$rtnCode) {
|
|
150
|
+
Write-Host $commandOutput
|
|
151
|
+
Write-Host "WARNING: Failed with exit code $exitCode"
|
|
152
|
+
}
|
|
153
|
+
return $rtnCode
|
|
95
154
|
}
|
|
96
155
|
}
|
|
97
156
|
|
|
@@ -577,11 +636,15 @@ function Update-SubmoduleReferences {
|
|
|
577
636
|
Write-Host "================"
|
|
578
637
|
foreach ($submodule in $(git config --file .gitmodules --name-only --get-regexp path)) {
|
|
579
638
|
Write-Host ""
|
|
580
|
-
Write-Host "# Process submodule path $
|
|
639
|
+
Write-Host "# Process submodule path $submodule."
|
|
581
640
|
$submodulePath = Find-SubmodulePath -GitSubmodulePath $submodule
|
|
582
641
|
if ($submodulePath -ne $null) {
|
|
583
642
|
Write-Host "# Path $submodulePath extracted."
|
|
584
643
|
Push-Location $submodulePath
|
|
644
|
+
if (!$?) {
|
|
645
|
+
Write-Host "# ERROR: Failed to navigate to submodule $submodulePath"
|
|
646
|
+
return $false
|
|
647
|
+
}
|
|
585
648
|
|
|
586
649
|
# Get repo name
|
|
587
650
|
$subRepoName = Get-RepositoryName
|
package/docs/Doxyfile
CHANGED
|
@@ -38,7 +38,7 @@ PROJECT_NAME = "51Degrees Geo-Location Node.js"
|
|
|
38
38
|
# could be handy for archiving the generated documentation or if some version
|
|
39
39
|
# control system is used.
|
|
40
40
|
|
|
41
|
-
PROJECT_NUMBER = 4.
|
|
41
|
+
PROJECT_NUMBER = 4.4
|
|
42
42
|
|
|
43
43
|
# Using the PROJECT_BRIEF tag one can provide an optional one line description
|
|
44
44
|
# for a project that appears at the top of each page and should give viewer a
|
|
@@ -56,7 +56,7 @@ PROJECT_LOGO = ../../../docs/images/logo-51Degrees-Docs.png
|
|
|
56
56
|
# The PROJECT_URL tag is used to specify the URL which is linked by the
|
|
57
57
|
# PROJECT_LOGO.
|
|
58
58
|
|
|
59
|
-
PROJECT_URL = ../../documentation/4.
|
|
59
|
+
PROJECT_URL = ../../documentation/4.4/index.html
|
|
60
60
|
|
|
61
61
|
# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path
|
|
62
62
|
# into which the generated documentation will be written. If a relative path is
|
|
@@ -1101,7 +1101,7 @@ GENERATE_HTML = YES
|
|
|
1101
1101
|
# The default directory is: html.
|
|
1102
1102
|
# This tag requires that the tag GENERATE_HTML is set to YES.
|
|
1103
1103
|
|
|
1104
|
-
HTML_OUTPUT = 4.
|
|
1104
|
+
HTML_OUTPUT = 4.4
|
|
1105
1105
|
|
|
1106
1106
|
# The HTML_FILE_EXTENSION tag can be used to specify the file extension for each
|
|
1107
1107
|
# generated HTML page (for example: .htm, .php, .asp).
|
package/docs/DoxygenLayout.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<!-- Generated by doxygen 1.8.15 -->
|
|
3
3
|
<!-- Navigation index tabs for HTML output -->
|
|
4
4
|
<navindex>
|
|
5
|
-
<tab type="user" visible="yes" title="General Docs" url="../../documentation/4.
|
|
5
|
+
<tab type="user" visible="yes" title="General Docs" url="../../documentation/4.4/index.html"/>
|
|
6
6
|
<tab type="pages" visible="yes" title="" intro=""/>
|
|
7
7
|
<tab type="classlist" visible="yes" title="Classes" intro="51Degrees Node.js classes. These contain the interfaces and logic of the geo-location engines."/>
|
|
8
8
|
<tab type="examples" visible="yes" title="Examples" intro="51Degrees geo-location examples."/>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fiftyone.geolocation",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.1",
|
|
4
4
|
"description": "Geo-location services for the 51Degrees Pipeline API",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"Joseph Dix <joseph@51degrees.com> (https://51degrees.com)"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"fiftyone.pipeline.cloudrequestengine": "^4.
|
|
21
|
-
"fiftyone.pipeline.core": "^4.
|
|
22
|
-
"fiftyone.pipeline.engines": "^4.
|
|
23
|
-
"fiftyone.pipeline.engines.fiftyone": "^4.
|
|
20
|
+
"fiftyone.pipeline.cloudrequestengine": "^4.4.0",
|
|
21
|
+
"fiftyone.pipeline.core": "^4.4.0",
|
|
22
|
+
"fiftyone.pipeline.engines": "^4.4.0",
|
|
23
|
+
"fiftyone.pipeline.engines.fiftyone": "^4.4.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/node": "^15.12.2",
|