@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.
@@ -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 # Required for OIDC
9
+ id-token: write
10
10
  contents: read
11
11
 
12
12
  jobs:
13
- install-and-test:
13
+ publish:
14
14
  runs-on: ubuntu-latest
15
15
  steps:
16
- - uses: actions/checkout@v2
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: '20'
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
- npm install
28
+ run: npm ci
29
+
25
30
  - name: Test with jest
26
- run: |
27
- npm run test
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
@@ -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.3",
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",