@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.
- package/.github/workflows/deploy.yml +5 -6
- package/.github/workflows/test.yml +2 -2
- package/README.md +23 -23
- package/package.json +1 -1
|
@@ -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: '
|
|
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
|
|
34
|
+
run: npm publish --access public --provenance
|
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
|
-
"
|
|
26
|
+
"originatorPerson": [
|
|
27
27
|
{
|
|
28
|
-
"
|
|
28
|
+
"naturalPerson": {
|
|
29
29
|
"name": {
|
|
30
|
-
"
|
|
30
|
+
"nameIdentifier": [
|
|
31
31
|
{
|
|
32
|
-
"
|
|
33
|
-
"
|
|
32
|
+
"primaryIdentifier": "Wu Xinli",
|
|
33
|
+
"naturalPersonNameIdentifierType": "LEGL"
|
|
34
34
|
}
|
|
35
35
|
]
|
|
36
36
|
},
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
37
|
+
"nationalIdentification": {
|
|
38
|
+
"nationalIdentifier": "446005",
|
|
39
|
+
"nationalIdentifierType": "RAID",
|
|
40
|
+
"registrationAuthority": "RA000553"
|
|
41
41
|
},
|
|
42
|
-
"
|
|
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
|
-
"
|
|
51
|
+
"beneficiaryPerson": [
|
|
52
52
|
{
|
|
53
|
-
"
|
|
53
|
+
"legalPerson": {
|
|
54
54
|
"name": {
|
|
55
|
-
"
|
|
55
|
+
"nameIdentifier": [
|
|
56
56
|
{
|
|
57
|
-
"
|
|
58
|
-
"
|
|
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
|
};
|