@sygna/bridge-util 2.0.4 → 2.0.5

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.
@@ -4,14 +4,13 @@ on:
4
4
  push:
5
5
  branches:
6
6
  - master
7
- - feat/* # ← 加上你原本就有的 feat 分支
8
7
 
9
8
  permissions:
10
9
  id-token: write
11
10
  contents: read
12
11
 
13
12
  jobs:
14
- publish: # ← 改名更清楚(可選)
13
+ publish:
15
14
  runs-on: ubuntu-latest
16
15
  steps:
17
16
  - uses: actions/checkout@v4
@@ -19,17 +18,17 @@ jobs:
19
18
  - name: Setup Node.js
20
19
  uses: actions/setup-node@v4
21
20
  with:
22
- node-version: '22' # ← 升級到最新 LTS
21
+ node-version: '24'
23
22
  registry-url: 'https://registry.npmjs.org/'
24
-
23
+
25
24
  - name: Upgrade npm to latest (required for Trusted Publishing)
26
25
  run: npm install -g npm@latest
27
26
 
28
27
  - name: Install dependencies
29
- run: npm ci # ← 更乾淨
28
+ run: npm ci
30
29
 
31
30
  - name: Test with jest
32
31
  run: npm test
33
32
 
34
33
  - name: Publish
35
- run: npm publish --access public --provenance # ← 加上 provenance
34
+ run: npm publish --access public --provenance
@@ -15,9 +15,9 @@ jobs:
15
15
  steps:
16
16
  - uses: actions/checkout@v2
17
17
  - name: Use Node.js
18
- uses: actions/setup-node@v1
18
+ uses: actions/setup-node@v4
19
19
  with:
20
- node-version: '12.12.0'
20
+ node-version: '24'
21
21
  - name: Install dependencies
22
22
  run: |
23
23
  npm install
package/README.md CHANGED
@@ -23,47 +23,47 @@ We also provide [IVMS101 Typescript Utility](https://github.com/sygnaio/sygna-br
23
23
  ```javascript
24
24
  const sensitive_data = {
25
25
  "originator": {
26
- "originator_persons": [
26
+ "originatorPerson": [
27
27
  {
28
- "natural_person": {
28
+ "naturalPerson": {
29
29
  "name": {
30
- "name_identifiers": [
30
+ "nameIdentifier": [
31
31
  {
32
- "primary_identifier": "Wu Xinli",
33
- "name_identifier_type": "LEGL"
32
+ "primaryIdentifier": "Wu Xinli",
33
+ "naturalPersonNameIdentifierType": "LEGL"
34
34
  }
35
35
  ]
36
36
  },
37
- "national_identification": {
38
- "national_identifier": "446005",
39
- "national_identifier_type": "RAID",
40
- "registration_authority": "RA000553"
37
+ "nationalIdentification": {
38
+ "nationalIdentifier": "446005",
39
+ "nationalIdentifierType": "RAID",
40
+ "registrationAuthority": "RA000553"
41
41
  },
42
- "country_of_residence": "TZ"
43
- }
42
+ "countryOfResidence": "TZ"
43
+ },
44
+ "accountNumber": [
45
+ "r3kmLJN5D28dHuH8vZNUZpMC43pEHpaocV"
46
+ ]
44
47
  }
45
- ],
46
- "account_numbers": [
47
- "r3kmLJN5D28dHuH8vZNUZpMC43pEHpaocV"
48
48
  ]
49
49
  },
50
50
  "beneficiary": {
51
- "beneficiary_persons": [
51
+ "beneficiaryPerson": [
52
52
  {
53
- "legal_person": {
53
+ "legalPerson": {
54
54
  "name": {
55
- "name_identifiers": [
55
+ "nameIdentifier": [
56
56
  {
57
- "legal_person_name": "ABC Limited",
58
- "legal_person_name_identifier_type": "LEGL"
57
+ "legalPersonName": "ABC Limited",
58
+ "legalPersonNameIdentifierType": "LEGL"
59
59
  }
60
60
  ]
61
61
  }
62
- }
62
+ },
63
+ "accountNumber": [
64
+ "rAPERVgXZavGgiGv6xBgtiZurirW2yAmY"
65
+ ]
63
66
  }
64
- ],
65
- "account_numbers": [
66
- "rAPERVgXZavGgiGv6xBgtiZurirW2yAmY"
67
67
  ]
68
68
  }
69
69
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sygna/bridge-util",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },