Skip to content

Commit 11f2ef7

Browse files
Merge pull request #19 from trendmicro/update_to_latest_version_v1.4.2
update to latest version: v1.4.2
2 parents 52482d0 + 55909fa commit 11f2ef7

File tree

7 files changed

+34
-23
lines changed

7 files changed

+34
-23
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# CHANGELOG
22

3+
## 1.4.2 - 2025-03-03
4+
5+
* Support new region me-central-1
6+
* Upgrade @grpc/grpc-js to 1.9.15
7+
* Upgrade google-protbuf to 3.21.4
8+
39
## 1.4.1 - 2024-08-27
410

511
* Update README.md for certificate verification bypass

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Create a new instance of the `AmaasGrpcClient` class.
150150

151151
| Parameter | Description | Default value |
152152
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- |
153-
| amaasHostName | The region of your Vision One account. The region is the location where you acquire your api key. Value provided must be one of the Vision One regions, e.g. `ap-northeast-1`, `ap-south-1`, `ap-southeast-1`, `ap-southeast-2`, `eu-central-1`, `us-east-1`, etc. | |
153+
| amaasHostName | The region of your Vision One account. The region is the location where you acquire your api key. Value provided must be one of the Vision One regions, e.g. `ap-northeast-1`, `ap-south-1`, `ap-southeast-1`, `ap-southeast-2`, `eu-central-1`, `us-east-1`, `me-central-1`, etc. | |
154154
| credent | Your own Vision One API Key. | |
155155
| timeout | Timeout to cancel the connection to server in seconds. | 300 |
156156
| enableTLS | Enable or disable TLS. TLS should always be enabled when connecting to the File Security service. For more information, see the 'Ensuring Secure Communication with TLS' section. | true |

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.4.1
1+
1.4.2

__tests__/amaasSDK.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ describe('error testing', () => {
346346
})
347347
it('should return an error if invalid region', () => {
348348
const region = 'us1'
349-
const error = new Error(`Invalid region: ${region}, region value should be one of ap-southeast-2,eu-central-1,ap-northeast-1,ap-southeast-1,us-east-1,ap-south-1`)
349+
const error = new Error(`Invalid region: ${region}, region value should be one of ap-southeast-2,eu-central-1,ap-northeast-1,ap-southeast-1,us-east-1,ap-south-1,me-central-1`)
350350
expect(() => {
351351
const amaasScanClient = new AmaasGrpcClient(region, authKey)
352352
expect(amaasScanClient).toBeUndefined()

package-lock.json

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

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "file-security-sdk",
3-
"version": "1.4.1",
3+
"version": "1.4.2",
44
"description": "Vision One File Security API library in TypeScript",
55
"main": "index.js",
66
"engines": {
@@ -25,8 +25,8 @@
2525
},
2626
"homepage": "https://github.com/trendmicro/tm-v1-fs-nodejs-sdk",
2727
"dependencies": {
28-
"@grpc/grpc-js": "^1.8.10",
29-
"google-protobuf": "^3.21.2"
28+
"@grpc/grpc-js": "^1.9.15",
29+
"google-protobuf": "^3.21.4"
3030
},
3131
"devDependencies": {
3232
"@grpc/proto-loader": "^0.7.8",

src/lib/utils.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const AWS_DE_REGION = 'eu-central-1'
1313
// const AWS_CA_REGION = 'ca-central-1'
1414
// const AWS_TREND_REGION = 'us-east-2'
1515
// const AWS_GB_REGION = 'eu-west-2'
16+
const AWS_AE_REGION = 'me-central-1'
1617
const C1_JP_REGION = 'jp-1'
1718
const C1_SG_REGION = 'sg-1'
1819
const C1_AU_REGION = 'au-1'
@@ -22,11 +23,13 @@ const C1_DE_REGION = 'de-1'
2223
const C1_CA_REGION = 'ca-1'
2324
// const C1_TREND_REGION = 'trend-us-1'
2425
const C1_GB_REGION = 'gb-1'
26+
const C1_AE_REGION = 'ae-1'
27+
2528
/*
2629
const C1Regions = [C1_AU_REGION, C1_CA_REGION, C1_DE_REGION, C1_GB_REGION, C1_IN_REGION, C1_JP_REGION, C1_SG_REGION,
2730
C1_US_REGION, C1_TREND_REGION]
2831
*/
29-
const V1Regions = [AWS_AU_REGION, AWS_DE_REGION, AWS_JP_REGION, AWS_SG_REGION, AWS_US_REGION, AWS_IN_REGION]
32+
const V1Regions = [AWS_AU_REGION, AWS_DE_REGION, AWS_JP_REGION, AWS_SG_REGION, AWS_US_REGION, AWS_IN_REGION, AWS_AE_REGION]
3033
const SupportedV1Regions = V1Regions
3134
// const SupportedC1Regions = [C1_AU_REGION, C1_CA_REGION, C1_DE_REGION, C1_GB_REGION, C1_IN_REGION, C1_JP_REGION, C1_SG_REGION, C1_US_REGION]
3235

@@ -40,6 +43,7 @@ const V1ToC1RegionMapping = new Map<string, string>([
4043
[AWS_JP_REGION, C1_JP_REGION],
4144
[AWS_SG_REGION, C1_SG_REGION],
4245
[AWS_US_REGION, C1_US_REGION],
46+
[AWS_AE_REGION, C1_AE_REGION],
4347
]
4448
)
4549

@@ -74,6 +78,7 @@ export const getFQDN = (region: string): string => {
7478
[C1_JP_REGION, 'antimalware.jp-1.cloudone.trendmicro.com:443'],
7579
[C1_GB_REGION, 'antimalware.gb-1.cloudone.trendmicro.com:443'],
7680
[C1_CA_REGION, 'antimalware.ca-1.cloudone.trendmicro.com:443'],
81+
[C1_AE_REGION, 'antimalware.ae-1.cloudone.trendmicro.com:443'],
7782
]
7883
)
7984

0 commit comments

Comments
 (0)