fiftyone.geolocation 4.3.1 → 4.3.6
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/build-and-test.yml +5 -5
- package/ci/common-ci/.github/labels.yml +45 -1
- package/ci/common-ci/.github/workflows/sync-labels.yml +5 -0
- package/ci/common-ci/CiTips.md +30 -1
- package/ci/common-ci/README.md +73 -12
- package/ci/common-ci/build-and-test.yml +6 -1
- package/ci/common-ci/c/shared-variables.yml +15 -0
- package/ci/common-ci/check-merge-commit-format.yml +7 -1
- package/ci/common-ci/cloud-release-config.json +51 -0
- package/ci/common-ci/dotnet/shared-extract-and-publish-packages.yml +1 -5
- package/ci/common-ci/go/shared-go-list-stage.yml +64 -0
- package/ci/common-ci/java/readme.md +15 -1
- package/ci/common-ci/java/shared-package-signing-steps.yml +17 -0
- package/ci/common-ci/php/readme.md +15 -0
- package/ci/common-ci/release-config-schema.json +52 -0
- package/ci/common-ci/release-config-template.json +50 -1
- package/ci/common-ci/release-config.json +48 -123
- package/ci/common-ci/scripts/azure/checkSlot.ps1 +28 -0
- package/ci/common-ci/scripts/modules/51DAuthorizationModule/51DAuthorizationModule.psm1 +12 -5
- package/ci/common-ci/scripts/modules/51DDeployModule/51DDeployModule.psm1 +66 -0
- package/ci/common-ci/scripts/modules/51DDownloadDataFileModule/51DDownloadDataFileModule.psm1 +74 -0
- package/ci/common-ci/scripts/modules/51DGitModule/51DGitModule.psm1 +25 -21
- package/ci/common-ci/scripts/modules/51DPackageModule/51DPackageModule.Tests.ps1 +347 -9
- package/ci/common-ci/scripts/modules/51DPackageModule/51DPackageModule.psm1 +285 -54
- package/ci/common-ci/scripts/modules/51DReleaseModule/51DReleaseModule.Tests.ps1 +9 -8
- package/ci/common-ci/scripts/modules/51DReleaseModule/51DReleaseModule.psm1 +30 -13
- package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/ReleaseVerifier.Tests.ps1 +342 -97
- package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/ReleaseVerifier.psm1 +36 -2
- package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/SharedVariables.psm1 +2 -2
- package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/config/go-deploy-test-env-config.json +290 -0
- package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/config/go-test-env-config.json +260 -0
- package/ci/common-ci/scripts/modules/AzurePortalModules/51DApplicationInsightsModule/51DApplicationInsightsModule.psm1 +104 -0
- package/ci/common-ci/scripts/modules/AzurePortalModules/51DChecksModule/51DChecksModule.psm1 +68 -0
- package/ci/common-ci/scripts/modules/AzurePortalModules/51DCloudModule/51DCloudModule.psm1 +155 -0
- package/ci/common-ci/scripts/modules/AzurePortalModules/51DConnectAzureModule/51DConnectAzureModule.psm1 +45 -0
- package/ci/common-ci/scripts/modules/AzurePortalModules/51DSSLBindingsModule/51DSSLBIndingsModule.psm1 +100 -0
- package/ci/common-ci/scripts/modules/AzurePortalModules/51DStagingSlotModule/51DStagingSlotModule.psm1 +50 -0
- package/ci/common-ci/scripts/modules/AzurePortalModules/51DStorageAccountModule/51DStorageAccountModule.psm1 +248 -0
- package/ci/common-ci/scripts/modules/AzurePortalModules/51DTrafficManagerModule/51DTrafficManagerModule.psm1 +58 -0
- package/ci/common-ci/shared-auto-complete-pr-stage.yml +16 -3
- package/ci/common-ci/shared-create-tag-job.yml +9 -0
- package/ci/common-ci/shared-docker-build-steps.yml +34 -0
- package/ci/common-ci/shared-docker-push-steps.yml +32 -0
- package/ci/common-ci/shared-docker-test-http-steps.yml +69 -0
- package/ci/common-ci/shared-git-version-job.yml +17 -2
- package/ci/common-ci/shared-publish-github-stage.yml +54 -51
- package/ci/common-ci/shared-submodule-trigger-stage.yml +56 -4
- package/ci/common-ci/shared-variables.yml +5 -1
- package/ci/create-packages.yml +7 -7
- package/ci/deploy-external.yml +1 -1
- package/ci/deploy-internal.yml +1 -1
- package/ci/shared-build-and-test-stage.yml +5 -2
- package/ci/shared-variables.yml +1 -7
- package/examples/examples.test.js +3 -3
- package/geoLocationPipelineBuilder.js +9 -16
- package/package.json +11 -7
- package/setup.js +1 -0
- package/ci/common-ci/java/shared-code-signing-steps.yml +0 -17
|
@@ -20,14 +20,6 @@
|
|
|
20
20
|
* such notice(s) shall fulfill the requirements of that article.
|
|
21
21
|
* ********************************************************************* */
|
|
22
22
|
|
|
23
|
-
const require51 = (requestedPackage) => {
|
|
24
|
-
try {
|
|
25
|
-
return require(__dirname + '/../' + requestedPackage);
|
|
26
|
-
} catch (e) {
|
|
27
|
-
return require(requestedPackage);
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
|
|
31
23
|
const GeoLocationCloud = require('./geoLocationCloud');
|
|
32
24
|
const CloudRequestEngine = require('fiftyone.pipeline.cloudrequestengine').CloudRequestEngine;
|
|
33
25
|
const PipelineBuilder = require('fiftyone.pipeline.core').PipelineBuilder;
|
|
@@ -40,16 +32,17 @@ class GeoLocationPipelineBuilder extends PipelineBuilder {
|
|
|
40
32
|
* @param {Boolean} options.shareUsage // include share usage element?
|
|
41
33
|
* @param {String} options.resourceKey // resourceKey for cloud
|
|
42
34
|
* @param {String} options.locationProvider // the provider to request data from. Either "fiftyonedegrees" or "digitalelement".
|
|
43
|
-
* @param {string} options.cloudRequestOrigin The value to set the
|
|
35
|
+
* @param {string} options.cloudRequestOrigin The value to set the
|
|
44
36
|
* Origin header to when making requests to the cloud service
|
|
45
37
|
*
|
|
46
38
|
*/
|
|
47
|
-
constructor ({
|
|
48
|
-
shareUsage = true,
|
|
49
|
-
resourceKey = null,
|
|
50
|
-
locationProvider = 'fiftyonedegrees',
|
|
39
|
+
constructor ({
|
|
40
|
+
shareUsage = true,
|
|
41
|
+
resourceKey = null,
|
|
42
|
+
locationProvider = 'fiftyonedegrees',
|
|
51
43
|
baseURL = null,
|
|
52
|
-
cloudRequestOrigin = null
|
|
44
|
+
cloudRequestOrigin = null
|
|
45
|
+
}) {
|
|
53
46
|
super(...arguments);
|
|
54
47
|
|
|
55
48
|
// Check if share usage enabled and add it to the pipeline if so
|
|
@@ -60,9 +53,9 @@ class GeoLocationPipelineBuilder extends PipelineBuilder {
|
|
|
60
53
|
|
|
61
54
|
// First we need the cloudRequestEngine
|
|
62
55
|
|
|
63
|
-
const cloudRequestEngineOptions = {
|
|
56
|
+
const cloudRequestEngineOptions = {
|
|
64
57
|
resourceKey: resourceKey,
|
|
65
|
-
cloudRequestOrigin: cloudRequestOrigin
|
|
58
|
+
cloudRequestOrigin: cloudRequestOrigin
|
|
66
59
|
};
|
|
67
60
|
if (baseURL !== null) {
|
|
68
61
|
cloudRequestEngineOptions.baseURL = baseURL;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fiftyone.geolocation",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.6",
|
|
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.3.
|
|
21
|
-
"fiftyone.pipeline.core": "^4.3.
|
|
22
|
-
"fiftyone.pipeline.engines": "^4.3.
|
|
23
|
-
"fiftyone.pipeline.engines.fiftyone": "^4.3.
|
|
20
|
+
"fiftyone.pipeline.cloudrequestengine": "^4.3.7",
|
|
21
|
+
"fiftyone.pipeline.core": "^4.3.7",
|
|
22
|
+
"fiftyone.pipeline.engines": "^4.3.7",
|
|
23
|
+
"fiftyone.pipeline.engines.fiftyone": "^4.3.7"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/node": "^15.12.2",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"eslint-plugin-node": "^11.1.0",
|
|
31
31
|
"eslint-plugin-promise": "^4.2.1",
|
|
32
32
|
"eslint-plugin-standard": "^4.0.1",
|
|
33
|
-
"jest": "^
|
|
33
|
+
"jest": "^27.0.6",
|
|
34
34
|
"jest-expect-message": "^1.0.2",
|
|
35
35
|
"jest-junit": "^9.0.0"
|
|
36
36
|
},
|
|
@@ -42,7 +42,11 @@
|
|
|
42
42
|
"outputName": "test_results.xml"
|
|
43
43
|
},
|
|
44
44
|
"jest": {
|
|
45
|
-
"
|
|
45
|
+
"testRunner": "jest-jasmine2",
|
|
46
|
+
"setupFilesAfterEnv": [
|
|
47
|
+
"./setup.js",
|
|
48
|
+
"jest-expect-message"
|
|
49
|
+
],
|
|
46
50
|
"globals": {
|
|
47
51
|
"resourceKey": "!!YOUR_RESOURCE_KEY!!"
|
|
48
52
|
}
|
package/setup.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
jest.setTimeout(10000); // in milliseconds
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
parameters:
|
|
2
|
-
- name: gpgPassPhrase
|
|
3
|
-
|
|
4
|
-
steps:
|
|
5
|
-
# Download Code Signing Certificate from SecureFile Library
|
|
6
|
-
- task: DownloadSecureFile@1
|
|
7
|
-
name: CodeSigningCert
|
|
8
|
-
displayName: 'Download Code Signing Certificate'
|
|
9
|
-
inputs:
|
|
10
|
-
secureFile: '51Degrees Code Signing Certificate.asc'
|
|
11
|
-
retryCount: 5
|
|
12
|
-
|
|
13
|
-
- task: Bash@3
|
|
14
|
-
displayName: 'Import Code Signing Certificate'
|
|
15
|
-
inputs:
|
|
16
|
-
targetType: 'inline'
|
|
17
|
-
script: 'echo ${{ parameters.gpgPassPhrase }} | gpg --import --batch --yes --passphrase-fd 0 "$(CodeSigningCert.secureFilePath)"'
|