@sygna/bridge-util 2.0.3 → 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 +16 -15
- package/.github/workflows/test.yml +2 -2
- package/README.md +23 -23
- package/package.json +2 -2
|
@@ -1,33 +1,34 @@
|
|
|
1
1
|
name: Build and Deploy
|
|
2
|
+
|
|
2
3
|
on:
|
|
3
4
|
push:
|
|
4
5
|
branches:
|
|
5
6
|
- master
|
|
6
|
-
- feat/fix_npmjs_workflow
|
|
7
7
|
|
|
8
8
|
permissions:
|
|
9
|
-
id-token: write
|
|
9
|
+
id-token: write
|
|
10
10
|
contents: read
|
|
11
11
|
|
|
12
12
|
jobs:
|
|
13
|
-
|
|
13
|
+
publish:
|
|
14
14
|
runs-on: ubuntu-latest
|
|
15
15
|
steps:
|
|
16
|
-
- uses: actions/checkout@
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
|
|
17
18
|
- name: Setup Node.js
|
|
18
19
|
uses: actions/setup-node@v4
|
|
19
20
|
with:
|
|
20
|
-
node-version: '
|
|
21
|
-
registry-url: https://registry.npmjs.org/
|
|
21
|
+
node-version: '24'
|
|
22
|
+
registry-url: 'https://registry.npmjs.org/'
|
|
23
|
+
|
|
24
|
+
- name: Upgrade npm to latest (required for Trusted Publishing)
|
|
25
|
+
run: npm install -g npm@latest
|
|
26
|
+
|
|
22
27
|
- name: Install dependencies
|
|
23
|
-
run:
|
|
24
|
-
|
|
28
|
+
run: npm ci
|
|
29
|
+
|
|
25
30
|
- name: Test with jest
|
|
26
|
-
run:
|
|
27
|
-
|
|
31
|
+
run: npm test
|
|
32
|
+
|
|
28
33
|
- name: Publish
|
|
29
|
-
run:
|
|
30
|
-
npm publish --access public
|
|
31
|
-
env:
|
|
32
|
-
# 使用傳統 Token 繞過 OIDC 比對
|
|
33
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
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
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sygna/bridge-util",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
14
|
-
"url": "https://github.com/sygnaio/sygna-bridge-util"
|
|
14
|
+
"url": "git+https://github.com/sygnaio/sygna-bridge-util.git"
|
|
15
15
|
},
|
|
16
16
|
"author": "sygna.tech@coolbitx.com",
|
|
17
17
|
"license": "MIT",
|