@opengovsg/formsg-sdk 0.15.0 → 7.1.2
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/README.md +8 -9
- package/cjs-entry.cjs +5 -0
- package/dist/{crypto-base.js → cjs/crypto-base.js} +7 -9
- package/dist/{crypto.js → cjs/crypto.js} +2 -2
- package/dist/{index.d.ts → cjs/index.d.ts} +2 -2
- package/dist/{index.js → cjs/index.js} +12 -2
- package/dist/{util → cjs/util}/publicKey.js +2 -3
- package/dist/{util → cjs/util}/signature.js +19 -10
- package/dist/{util → cjs/util}/validate.js +2 -3
- package/dist/{util → cjs/util}/webhooks.js +17 -7
- package/dist/{webhooks.js → cjs/webhooks.js} +17 -7
- package/dist/esm/crypto-base.d.ts +25 -0
- package/dist/esm/crypto-base.js +86 -0
- package/dist/esm/crypto-v3.d.ts +41 -0
- package/dist/esm/crypto-v3.js +168 -0
- package/dist/esm/crypto.d.ts +41 -0
- package/dist/esm/crypto.js +228 -0
- package/dist/esm/errors.d.ts +13 -0
- package/dist/esm/errors.js +64 -0
- package/dist/esm/index.d.ts +20 -0
- package/dist/esm/index.js +39 -0
- package/dist/esm/resource/signing-keys.d.ts +16 -0
- package/dist/esm/resource/signing-keys.js +19 -0
- package/dist/esm/resource/verification-keys.d.ts +16 -0
- package/dist/esm/resource/verification-keys.js +19 -0
- package/dist/esm/types.d.ts +101 -0
- package/dist/esm/types.js +1 -0
- package/dist/esm/util/crypto.d.ts +42 -0
- package/dist/esm/util/crypto.js +74 -0
- package/dist/esm/util/parser.d.ts +24 -0
- package/dist/esm/util/parser.js +35 -0
- package/dist/esm/util/publicKey.d.ts +14 -0
- package/dist/esm/util/publicKey.js +38 -0
- package/dist/esm/util/signature.d.ts +16 -0
- package/dist/esm/util/signature.js +22 -0
- package/dist/esm/util/stage.d.ts +5 -0
- package/dist/esm/util/stage.js +7 -0
- package/dist/esm/util/validate.d.ts +4 -0
- package/dist/esm/util/validate.js +32 -0
- package/dist/esm/util/webhooks.d.ts +20 -0
- package/dist/esm/util/webhooks.js +33 -0
- package/dist/esm/verification/index.d.ts +18 -0
- package/dist/esm/verification/index.js +77 -0
- package/dist/esm/verification/utils.d.ts +12 -0
- package/dist/esm/verification/utils.js +18 -0
- package/dist/esm/webhooks.d.ts +48 -0
- package/dist/esm/webhooks.js +75 -0
- package/package.json +48 -32
- package/.eslintrc +0 -75
- package/.github/workflows/ci.yml +0 -53
- package/CHANGELOG.md +0 -177
- /package/dist/{crypto-base.d.ts → cjs/crypto-base.d.ts} +0 -0
- /package/dist/{crypto-v3.d.ts → cjs/crypto-v3.d.ts} +0 -0
- /package/dist/{crypto-v3.js → cjs/crypto-v3.js} +0 -0
- /package/dist/{crypto.d.ts → cjs/crypto.d.ts} +0 -0
- /package/dist/{errors.d.ts → cjs/errors.d.ts} +0 -0
- /package/dist/{errors.js → cjs/errors.js} +0 -0
- /package/dist/{resource → cjs/resource}/signing-keys.d.ts +0 -0
- /package/dist/{resource → cjs/resource}/signing-keys.js +0 -0
- /package/dist/{resource → cjs/resource}/verification-keys.d.ts +0 -0
- /package/dist/{resource → cjs/resource}/verification-keys.js +0 -0
- /package/dist/{types.d.ts → cjs/types.d.ts} +0 -0
- /package/dist/{types.js → cjs/types.js} +0 -0
- /package/dist/{util → cjs/util}/crypto.d.ts +0 -0
- /package/dist/{util → cjs/util}/crypto.js +0 -0
- /package/dist/{util → cjs/util}/parser.d.ts +0 -0
- /package/dist/{util → cjs/util}/parser.js +0 -0
- /package/dist/{util → cjs/util}/publicKey.d.ts +0 -0
- /package/dist/{util → cjs/util}/signature.d.ts +0 -0
- /package/dist/{util → cjs/util}/stage.d.ts +0 -0
- /package/dist/{util → cjs/util}/stage.js +0 -0
- /package/dist/{util → cjs/util}/validate.d.ts +0 -0
- /package/dist/{util → cjs/util}/webhooks.d.ts +0 -0
- /package/dist/{verification → cjs/verification}/index.d.ts +0 -0
- /package/dist/{verification → cjs/verification}/index.js +0 -0
- /package/dist/{verification → cjs/verification}/utils.d.ts +0 -0
- /package/dist/{verification → cjs/verification}/utils.js +0 -0
- /package/dist/{webhooks.d.ts → cjs/webhooks.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,50 +1,66 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengovsg/formsg-sdk",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
"version": "7.1.2",
|
|
4
|
+
"main": "./cjs-entry.cjs",
|
|
5
|
+
"module": "./dist/esm/index.js",
|
|
6
|
+
"types": "./dist/cjs/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": {
|
|
10
|
+
"types": "./dist/esm/index.d.ts",
|
|
11
|
+
"default": "./dist/esm/index.js"
|
|
12
|
+
},
|
|
13
|
+
"require": {
|
|
14
|
+
"types": "./dist/cjs/index.d.ts",
|
|
15
|
+
"default": "./cjs-entry.cjs"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"./dist/types": {
|
|
19
|
+
"import": {
|
|
20
|
+
"types": "./dist/esm/types.d.ts",
|
|
21
|
+
"default": "./dist/esm/types.js"
|
|
22
|
+
},
|
|
23
|
+
"require": {
|
|
24
|
+
"types": "./dist/cjs/types.d.ts",
|
|
25
|
+
"default": "./dist/cjs/types.js"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"typesVersions": {
|
|
30
|
+
"*": {
|
|
31
|
+
"dist/types": [
|
|
32
|
+
"./dist/cjs/types.d.ts"
|
|
33
|
+
]
|
|
34
|
+
}
|
|
7
35
|
},
|
|
8
36
|
"description": "Node.js SDK for integrating with FormSG",
|
|
9
|
-
"
|
|
10
|
-
"
|
|
37
|
+
"license": "MIT",
|
|
38
|
+
"files": [
|
|
39
|
+
"dist/",
|
|
40
|
+
"cjs-entry.cjs"
|
|
41
|
+
],
|
|
11
42
|
"scripts": {
|
|
12
|
-
"
|
|
13
|
-
"test
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
43
|
+
"build": "tsc -p tsconfig.cjs.json && tsc -p tsconfig.esm.json",
|
|
44
|
+
"test": "jest",
|
|
45
|
+
"lint": "eslint src/ --quiet --fix",
|
|
46
|
+
"lint-ci": "eslint src/ --quiet"
|
|
47
|
+
},
|
|
48
|
+
"repository": {
|
|
49
|
+
"type": "git",
|
|
50
|
+
"url": "https://github.com/opengovsg/FormSG.git",
|
|
51
|
+
"directory": "packages/sdk"
|
|
18
52
|
},
|
|
19
|
-
"keywords": [
|
|
20
|
-
"formsg",
|
|
21
|
-
"webhook",
|
|
22
|
-
"decrypt"
|
|
23
|
-
],
|
|
24
|
-
"author": "Open Government Products (FormSG)",
|
|
25
|
-
"license": "MIT",
|
|
26
53
|
"dependencies": {
|
|
27
|
-
"axios": "^1.
|
|
54
|
+
"axios": "^1.15.0",
|
|
28
55
|
"tweetnacl": "^1.0.3",
|
|
29
56
|
"tweetnacl-util": "^0.15.1"
|
|
30
57
|
},
|
|
31
58
|
"devDependencies": {
|
|
32
|
-
"@babel/cli": "^7.8.4",
|
|
33
|
-
"@babel/core": "^7.9.0",
|
|
34
|
-
"@babel/preset-env": "^7.9.0",
|
|
35
59
|
"@types/jest": "^29.5.8",
|
|
36
60
|
"@types/node": "^18.18.9",
|
|
37
|
-
"@typescript-eslint/eslint-plugin": "^4.25.0",
|
|
38
|
-
"auto-changelog": "^2.4.0",
|
|
39
|
-
"eslint-config-prettier": "^8.3.0",
|
|
40
|
-
"eslint-plugin-import": "^2.23.3",
|
|
41
|
-
"eslint-plugin-jest": "^24.3.6",
|
|
42
|
-
"eslint-plugin-prettier": "^3.4.0",
|
|
43
|
-
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
44
|
-
"eslint-plugin-typesafe": "^0.5.2",
|
|
45
61
|
"jest": "^29.7.0",
|
|
46
62
|
"jest-mock-axios": "^4.7.3",
|
|
47
63
|
"ts-jest": "^29.1.1",
|
|
48
|
-
"typescript": "^4.
|
|
64
|
+
"typescript": "^5.4.5"
|
|
49
65
|
}
|
|
50
66
|
}
|
package/.eslintrc
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": {
|
|
3
|
-
"commonjs": true,
|
|
4
|
-
"es6": true,
|
|
5
|
-
"node": true
|
|
6
|
-
},
|
|
7
|
-
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
|
|
8
|
-
"parserOptions": {
|
|
9
|
-
"ecmaVersion": 2018
|
|
10
|
-
},
|
|
11
|
-
"overrides": [
|
|
12
|
-
{
|
|
13
|
-
"files": ["*.ts"],
|
|
14
|
-
"parser": "@typescript-eslint/parser",
|
|
15
|
-
"parserOptions": {
|
|
16
|
-
"sourceType": "module",
|
|
17
|
-
"ecmaFeatures": {
|
|
18
|
-
"modules": true
|
|
19
|
-
},
|
|
20
|
-
"project": "tsconfig.json"
|
|
21
|
-
},
|
|
22
|
-
"plugins": [
|
|
23
|
-
"@typescript-eslint",
|
|
24
|
-
"import",
|
|
25
|
-
"simple-import-sort",
|
|
26
|
-
"typesafe"
|
|
27
|
-
],
|
|
28
|
-
"extends": ["plugin:@typescript-eslint/recommended"],
|
|
29
|
-
"rules": {
|
|
30
|
-
// Rules for auto sort of imports
|
|
31
|
-
"simple-import-sort/imports": [
|
|
32
|
-
"error",
|
|
33
|
-
{
|
|
34
|
-
"groups": [
|
|
35
|
-
// Side effect imports.
|
|
36
|
-
["^\\u0000"],
|
|
37
|
-
// Packages.
|
|
38
|
-
// Things that start with a letter (or digit or underscore), or
|
|
39
|
-
// `@` followed by a letter.
|
|
40
|
-
["^@?\\w"],
|
|
41
|
-
// Root imports
|
|
42
|
-
["^(src)(/.*|$)"],
|
|
43
|
-
["^(tests)(/.*|$)"],
|
|
44
|
-
// Parent imports. Put `..` last.
|
|
45
|
-
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
|
|
46
|
-
// Other relative imports. Put same-folder imports and `.` last.
|
|
47
|
-
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"]
|
|
48
|
-
]
|
|
49
|
-
}
|
|
50
|
-
],
|
|
51
|
-
"sort-imports": "off",
|
|
52
|
-
"import/order": "off",
|
|
53
|
-
"import/first": "error",
|
|
54
|
-
"import/newline-after-import": "error",
|
|
55
|
-
"import/no-duplicates": "error",
|
|
56
|
-
"@typescript-eslint/no-floating-promises": 2,
|
|
57
|
-
"@typescript-eslint/no-unused-vars": 2,
|
|
58
|
-
// Disabled pending refactoring of two helper functions
|
|
59
|
-
// "typesafe/no-throw-sync-func": "error"
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
{ "files": ["*.spec.ts"], "extends": ["plugin:jest/recommended"] },
|
|
63
|
-
{
|
|
64
|
-
"files": ["*.ts", "*.js"],
|
|
65
|
-
"excludedFiles": ["**/*.spec.ts", "**/.spec.js", "**/__tests__/**/*.ts"],
|
|
66
|
-
"rules": {
|
|
67
|
-
"@typescript-eslint/no-non-null-assertion": "error"
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
],
|
|
71
|
-
"rules": {
|
|
72
|
-
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
|
|
73
|
-
"no-console": "warn"
|
|
74
|
-
}
|
|
75
|
-
}
|
package/.github/workflows/ci.yml
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
name: ci
|
|
2
|
-
on:
|
|
3
|
-
push:
|
|
4
|
-
pull_request:
|
|
5
|
-
types: [opened, reopened]
|
|
6
|
-
jobs:
|
|
7
|
-
build:
|
|
8
|
-
name: build
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
steps:
|
|
11
|
-
- uses: actions/checkout@v2
|
|
12
|
-
- name: Use Node.js
|
|
13
|
-
uses: actions/setup-node@v1
|
|
14
|
-
with:
|
|
15
|
-
node-version: 18
|
|
16
|
-
- name: Cache Node.js modules
|
|
17
|
-
uses: actions/cache@v4
|
|
18
|
-
with:
|
|
19
|
-
# npm cache files are stored in `~/.npm` on Linux/macOS
|
|
20
|
-
path: ~/.npm
|
|
21
|
-
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
22
|
-
restore-keys: |
|
|
23
|
-
${{ runner.OS }}-node-
|
|
24
|
-
${{ runner.OS }}-
|
|
25
|
-
- run: npm ci
|
|
26
|
-
- run: npx lockfile-lint --type npm --path package-lock.json --validate-https --allowed-hosts npm
|
|
27
|
-
- run: npm run build
|
|
28
|
-
test:
|
|
29
|
-
name: test
|
|
30
|
-
runs-on: ubuntu-latest
|
|
31
|
-
steps:
|
|
32
|
-
- uses: actions/checkout@v2
|
|
33
|
-
- name: Use Node.js
|
|
34
|
-
uses: actions/setup-node@v1
|
|
35
|
-
with:
|
|
36
|
-
node-version: 18
|
|
37
|
-
- name: Cache Node.js modules
|
|
38
|
-
uses: actions/cache@v4
|
|
39
|
-
with:
|
|
40
|
-
# npm cache files are stored in `~/.npm` on Linux/macOS
|
|
41
|
-
path: ~/.npm
|
|
42
|
-
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
43
|
-
restore-keys: |
|
|
44
|
-
${{ runner.OS }}-node-
|
|
45
|
-
${{ runner.OS }}-
|
|
46
|
-
- run: npm ci
|
|
47
|
-
- run: npm run test-ci
|
|
48
|
-
env:
|
|
49
|
-
NODE_OPTIONS: '--max-old-space-size=8192'
|
|
50
|
-
- name: Submit coverage to Coveralls
|
|
51
|
-
uses: coverallsapp/github-action@v2
|
|
52
|
-
with:
|
|
53
|
-
github-token: ${{ secrets.GITHUB_TOKEN }}
|
package/CHANGELOG.md
DELETED
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
### Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file. Dates are displayed in UTC.
|
|
4
|
-
|
|
5
|
-
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
|
-
|
|
7
|
-
#### [v0.15.0](https://github.com/opengovsg/formsg-javascript-sdk/compare/v0.15.0...v0.14.0)
|
|
8
|
-
|
|
9
|
-
- feat: add verified content to v3 [`#121`](https://github.com/opengovsg/formsg-javascript-sdk/pull/121)
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
#### [v0.14.0](https://github.com/opengovsg/formsg-javascript-sdk/compare/v0.13.0...v0.14.0)
|
|
13
|
-
|
|
14
|
-
- chore: remove build status from README.md [`#120`](https://github.com/opengovsg/formsg-javascript-sdk/pull/120)
|
|
15
|
-
|
|
16
|
-
> 6 August 2025
|
|
17
|
-
|
|
18
|
-
- feat: add signature to supported form fields [`#118`](https://github.com/opengovsg/formsg-javascript-sdk/pull/118)
|
|
19
|
-
- fix: upgrade actions/cache [`#115`](https://github.com/opengovsg/formsg-javascript-sdk/pull/115)
|
|
20
|
-
- Release v0.13.0 [`#114`](https://github.com/opengovsg/formsg-javascript-sdk/pull/114)
|
|
21
|
-
- updated readme with address answerArray [`#112`](https://github.com/opengovsg/formsg-javascript-sdk/pull/112)
|
|
22
|
-
- build(deps-dev): bump braces from 3.0.2 to 3.0.3 [`#109`](https://github.com/opengovsg/formsg-javascript-sdk/pull/109)
|
|
23
|
-
- build(deps): bump follow-redirects from 1.15.4 to 1.15.6 [`#107`](https://github.com/opengovsg/formsg-javascript-sdk/pull/107)
|
|
24
|
-
- add signature to supported form fields [`31db628`](https://github.com/opengovsg/formsg-javascript-sdk/commit/31db628ce44e009b5c19f8c9910bd997d77df586)
|
|
25
|
-
|
|
26
|
-
#### [v0.13.0](https://github.com/opengovsg/formsg-javascript-sdk/compare/v0.12.0...v0.13.0)
|
|
27
|
-
|
|
28
|
-
> 15 January 2025
|
|
29
|
-
|
|
30
|
-
- add address to field type [`#111`](https://github.com/opengovsg/formsg-javascript-sdk/pull/111)
|
|
31
|
-
|
|
32
|
-
#### [v0.12.0](https://github.com/opengovsg/formsg-javascript-sdk/compare/v0.12.0-alpha.1...v0.12.0)
|
|
33
|
-
|
|
34
|
-
> 9 September 2024
|
|
35
|
-
|
|
36
|
-
- build(deps): bump axios from 1.6.4 to 1.7.4 [`#110`](https://github.com/opengovsg/formsg-javascript-sdk/pull/110)
|
|
37
|
-
- chore: update readme for paymentContent [`#105`](https://github.com/opengovsg/formsg-javascript-sdk/pull/105)
|
|
38
|
-
- fix: package.json & package-lock.json to reduce vulnerabilities [`#103`](https://github.com/opengovsg/formsg-javascript-sdk/pull/103)
|
|
39
|
-
|
|
40
|
-
#### [v0.12.0-alpha.1](https://github.com/opengovsg/formsg-javascript-sdk/compare/v0.11.0...v0.12.0-alpha.1)
|
|
41
|
-
|
|
42
|
-
> 15 December 2023
|
|
43
|
-
|
|
44
|
-
- build: bump version to 0.12.0-alpha.1 [`#102`](https://github.com/opengovsg/formsg-javascript-sdk/pull/102)
|
|
45
|
-
- feat: mrf crypto [`#101`](https://github.com/opengovsg/formsg-javascript-sdk/pull/101)
|
|
46
|
-
|
|
47
|
-
#### [v0.11.0](https://github.com/opengovsg/formsg-javascript-sdk/compare/v0.10.0...v0.11.0)
|
|
48
|
-
|
|
49
|
-
> 6 December 2023
|
|
50
|
-
|
|
51
|
-
- build: bump version to 0.11.0 [`#100`](https://github.com/opengovsg/formsg-javascript-sdk/pull/100)
|
|
52
|
-
- Create LICENSE [`#95`](https://github.com/opengovsg/formsg-javascript-sdk/pull/95)
|
|
53
|
-
- chore: upgrade axios to 1.6.2 [`#93`](https://github.com/opengovsg/formsg-javascript-sdk/pull/93)
|
|
54
|
-
- build(deps-dev): bump @babel/traverse from 7.16.3 to 7.23.3 [`#99`](https://github.com/opengovsg/formsg-javascript-sdk/pull/99)
|
|
55
|
-
- build(deps-dev): bump word-wrap from 1.2.3 to 1.2.5 [`#97`](https://github.com/opengovsg/formsg-javascript-sdk/pull/97)
|
|
56
|
-
- Update ci.yml [`#96`](https://github.com/opengovsg/formsg-javascript-sdk/pull/96)
|
|
57
|
-
- chore(readme): add wording for period inclusion of unstable fields [`#94`](https://github.com/opengovsg/formsg-javascript-sdk/pull/94)
|
|
58
|
-
- Update README.md to include existence of sister SDks [`#90`](https://github.com/opengovsg/formsg-javascript-sdk/pull/90)
|
|
59
|
-
- fix: upgrade axios from 0.24.0 to 0.25.0 [`#81`](https://github.com/opengovsg/formsg-javascript-sdk/pull/81)
|
|
60
|
-
- build(deps): bump json5 from 1.0.1 to 1.0.2 [`#88`](https://github.com/opengovsg/formsg-javascript-sdk/pull/88)
|
|
61
|
-
- build: release v0.10.0 [`#87`](https://github.com/opengovsg/formsg-javascript-sdk/pull/87)
|
|
62
|
-
- docs: add changelog and version script [`f207c3e`](https://github.com/opengovsg/formsg-javascript-sdk/commit/f207c3e42cb81347e1fbb9a080f506d6373b54df)
|
|
63
|
-
|
|
64
|
-
#### [v0.10.0](https://github.com/opengovsg/formsg-javascript-sdk/compare/v0.9.0...v0.10.0)
|
|
65
|
-
|
|
66
|
-
> 16 December 2022
|
|
67
|
-
|
|
68
|
-
- fix: allow empty field titles in decrypted responses [`#86`](https://github.com/opengovsg/formsg-javascript-sdk/pull/86)
|
|
69
|
-
- chore: run npm audit fix and update relevant deps [`#80`](https://github.com/opengovsg/formsg-javascript-sdk/pull/80)
|
|
70
|
-
- chore(deps): Upgrade vulnerable axios version [`#78`](https://github.com/opengovsg/formsg-javascript-sdk/pull/78)
|
|
71
|
-
- chore: merge v0.9.0 into develop [`#76`](https://github.com/opengovsg/formsg-javascript-sdk/pull/76)
|
|
72
|
-
- fix: run npm audit fix so typescript packages are the correct versions [`2bdbf89`](https://github.com/opengovsg/formsg-javascript-sdk/commit/2bdbf897614833cc50605554ddaa82ea567b8a09)
|
|
73
|
-
- chore: bump version to v0.10.0 [`e094041`](https://github.com/opengovsg/formsg-javascript-sdk/commit/e0940414e529012afc03c54165f82e9f5ce16b12)
|
|
74
|
-
|
|
75
|
-
#### [v0.9.0](https://github.com/opengovsg/formsg-javascript-sdk/compare/v0.8.2...v0.9.0)
|
|
76
|
-
|
|
77
|
-
> 16 December 2022
|
|
78
|
-
|
|
79
|
-
- build: add separate keypairs for dev environment [`#73`](https://github.com/opengovsg/formsg-javascript-sdk/pull/73)
|
|
80
|
-
- docs: specify version for attachment functionality [`#72`](https://github.com/opengovsg/formsg-javascript-sdk/pull/72)
|
|
81
|
-
- build(ci): migrate to GitHub Actions [`#70`](https://github.com/opengovsg/formsg-javascript-sdk/pull/70)
|
|
82
|
-
- refactor(crypto): minor refactor of decryptWithAttachments [`#69`](https://github.com/opengovsg/formsg-javascript-sdk/pull/69)
|
|
83
|
-
- feat: Adding eslint functionality for the repository [`#66`](https://github.com/opengovsg/formsg-javascript-sdk/pull/66)
|
|
84
|
-
- build(deps): bump lodash from 4.17.19 to 4.17.21 [`#64`](https://github.com/opengovsg/formsg-javascript-sdk/pull/64)
|
|
85
|
-
- add downloadAndDecryptAttachments for downloading and decrypting attachments [`#62`](https://github.com/opengovsg/formsg-javascript-sdk/pull/62)
|
|
86
|
-
- build(deps): bump y18n from 4.0.0 to 4.0.1 [`#59`](https://github.com/opengovsg/formsg-javascript-sdk/pull/59)
|
|
87
|
-
- Update README.md [`#61`](https://github.com/opengovsg/formsg-javascript-sdk/pull/61)
|
|
88
|
-
- build: merge Release 0.8.4 back to develop branch [`#58`](https://github.com/opengovsg/formsg-javascript-sdk/pull/58)
|
|
89
|
-
- build: release v0.8.4-beta.0 [`#56`](https://github.com/opengovsg/formsg-javascript-sdk/pull/56)
|
|
90
|
-
- Revert "build(npm): update repo entry (#43)" [`#55`](https://github.com/opengovsg/formsg-javascript-sdk/pull/55)
|
|
91
|
-
- fix: update .npmignore to ignore misc unneeded files [`#54`](https://github.com/opengovsg/formsg-javascript-sdk/pull/54)
|
|
92
|
-
- ref: use mode init parameter again [`#52`](https://github.com/opengovsg/formsg-javascript-sdk/pull/52)
|
|
93
|
-
- chore: Update JSDoc and print warning message if deprecated mode parameter is used [`#51`](https://github.com/opengovsg/formsg-javascript-sdk/pull/51)
|
|
94
|
-
- fix(FormField): account for table responses [`#44`](https://github.com/opengovsg/formsg-javascript-sdk/pull/44)
|
|
95
|
-
- build(npm): update repo entry [`#43`](https://github.com/opengovsg/formsg-javascript-sdk/pull/43)
|
|
96
|
-
- feat: add more webhook tests to check for undefined params [`#41`](https://github.com/opengovsg/formsg-javascript-sdk/pull/41)
|
|
97
|
-
- Bump lodash from 4.17.15 to 4.17.19 [`#42`](https://github.com/opengovsg/formsg-javascript-sdk/pull/42)
|
|
98
|
-
- fix: JSON body parser required for demo code to work [`#40`](https://github.com/opengovsg/formsg-javascript-sdk/pull/40)
|
|
99
|
-
- refactor: update verification HOF to Verification class [`#38`](https://github.com/opengovsg/formsg-javascript-sdk/pull/38)
|
|
100
|
-
- refactor: update crypto HOF to Crypto class [`#36`](https://github.com/opengovsg/formsg-javascript-sdk/pull/36)
|
|
101
|
-
- refactor: update webhooks HOF to Webhooks class [`#34`](https://github.com/opengovsg/formsg-javascript-sdk/pull/34)
|
|
102
|
-
- docs: fix code snippet typos [`#37`](https://github.com/opengovsg/formsg-javascript-sdk/pull/37)
|
|
103
|
-
- feat: add publicKey param to package initialization parameters [`#33`](https://github.com/opengovsg/formsg-javascript-sdk/pull/33)
|
|
104
|
-
- chore: add `test-ci` script for Travis to run instead of `test` [`#32`](https://github.com/opengovsg/formsg-javascript-sdk/pull/32)
|
|
105
|
-
- Release 0.8.3 - Allow tolerance for clock drift when authenticating webhooks [`#47`](https://github.com/opengovsg/formsg-javascript-sdk/pull/47)
|
|
106
|
-
- fix(epoch): allow for possible clock drift [`a3ce917`](https://github.com/opengovsg/formsg-javascript-sdk/commit/a3ce917c6c38a387edcfad06ae5176b1f92b0a46)
|
|
107
|
-
- fix(epoch): allow for possible clock drift [`5ba253d`](https://github.com/opengovsg/formsg-javascript-sdk/commit/5ba253d61d04d3082f4d752ecfc9efd3639acc0f)
|
|
108
|
-
- chore: bump version to 0.9.0 [`32111b1`](https://github.com/opengovsg/formsg-javascript-sdk/commit/32111b1a2c85955a33d478dbc06966dda7261e33)
|
|
109
|
-
|
|
110
|
-
#### [v0.8.2](https://github.com/opengovsg/formsg-javascript-sdk/compare/v0.4.1...v0.8.2)
|
|
111
|
-
|
|
112
|
-
> 4 June 2020
|
|
113
|
-
|
|
114
|
-
- Release v0.8.2 - Patch for encrypting non-UTF8 characters [`#35`](https://github.com/opengovsg/formsg-javascript-sdk/pull/35)
|
|
115
|
-
- Release v0.8.1 - Export types [`#29`](https://github.com/opengovsg/formsg-javascript-sdk/pull/29)
|
|
116
|
-
- Fix: Export declared types in the package [`#28`](https://github.com/opengovsg/formsg-javascript-sdk/pull/28)
|
|
117
|
-
- Replace tweetnacl-util with StableLib [`#27`](https://github.com/opengovsg/formsg-javascript-sdk/pull/27)
|
|
118
|
-
- v0.8.0 - Update decrypt signature [`#25`](https://github.com/opengovsg/formsg-javascript-sdk/pull/25)
|
|
119
|
-
- Test and build coverage badges with TravsiCI and Coveralls.io [`#23`](https://github.com/opengovsg/formsg-javascript-sdk/pull/23)
|
|
120
|
-
- chore: update README for increased clarity on decrypt [`#22`](https://github.com/opengovsg/formsg-javascript-sdk/pull/22)
|
|
121
|
-
- v0.7.0 - Verification module for SDK [`#19`](https://github.com/opengovsg/formsg-javascript-sdk/pull/19)
|
|
122
|
-
- fix: use req.get() in README sample code [`#21`](https://github.com/opengovsg/formsg-javascript-sdk/pull/21)
|
|
123
|
-
- Enforce minimum level of test coverage [`#20`](https://github.com/opengovsg/formsg-javascript-sdk/pull/20)
|
|
124
|
-
- Update encrypt/decryptFile function signature from blob to UInt8Array [`#18`](https://github.com/opengovsg/formsg-javascript-sdk/pull/18)
|
|
125
|
-
- Utility functions for attachments [`#17`](https://github.com/opengovsg/formsg-javascript-sdk/pull/17)
|
|
126
|
-
- Replace Joi with custom validation [`#16`](https://github.com/opengovsg/formsg-javascript-sdk/pull/16)
|
|
127
|
-
- Link GitHub to package.json [`#15`](https://github.com/opengovsg/formsg-javascript-sdk/pull/15)
|
|
128
|
-
- Fix broken links in readme [`#14`](https://github.com/opengovsg/formsg-javascript-sdk/pull/14)
|
|
129
|
-
- Extend crypto module for verified fields and migrate to TypeScript [`#12`](https://github.com/opengovsg/formsg-javascript-sdk/pull/12)
|
|
130
|
-
- Patch readme sample code [`#11`](https://github.com/opengovsg/formsg-javascript-sdk/pull/11)
|
|
131
|
-
|
|
132
|
-
#### [v0.4.1](https://github.com/opengovsg/formsg-javascript-sdk/compare/v0.4.0...v0.4.1)
|
|
133
|
-
|
|
134
|
-
> 30 March 2020
|
|
135
|
-
|
|
136
|
-
- Release v0.4.1 - Remove dangling reference to source in require [`#10`](https://github.com/opengovsg/formsg-javascript-sdk/pull/10)
|
|
137
|
-
|
|
138
|
-
#### [v0.4.0](https://github.com/opengovsg/formsg-javascript-sdk/compare/v0.3.2...v0.4.0)
|
|
139
|
-
|
|
140
|
-
> 30 March 2020
|
|
141
|
-
|
|
142
|
-
- Pre-publish transpile pipeline with Babel [`#9`](https://github.com/opengovsg/formsg-javascript-sdk/pull/9)
|
|
143
|
-
|
|
144
|
-
#### [v0.3.2](https://github.com/opengovsg/formsg-javascript-sdk/compare/v0.3.1...v0.3.2)
|
|
145
|
-
|
|
146
|
-
> 30 March 2020
|
|
147
|
-
|
|
148
|
-
- Avoid default arguments in destructuring [`#8`](https://github.com/opengovsg/formsg-javascript-sdk/pull/8)
|
|
149
|
-
|
|
150
|
-
#### [v0.3.1](https://github.com/opengovsg/formsg-javascript-sdk/compare/v0.3.0...v0.3.1)
|
|
151
|
-
|
|
152
|
-
> 30 March 2020
|
|
153
|
-
|
|
154
|
-
- Destructure options in the function body [`#7`](https://github.com/opengovsg/formsg-javascript-sdk/pull/7)
|
|
155
|
-
|
|
156
|
-
#### [v0.3.0](https://github.com/opengovsg/formsg-javascript-sdk/compare/v0.2.0...v0.3.0)
|
|
157
|
-
|
|
158
|
-
> 24 March 2020
|
|
159
|
-
|
|
160
|
-
- Release 0.3.0 [`#5`](https://github.com/opengovsg/formsg-javascript-sdk/pull/5)
|
|
161
|
-
- Add cryptographic functions to SDK [`#4`](https://github.com/opengovsg/formsg-javascript-sdk/pull/4)
|
|
162
|
-
- Update readme to clarify that this repository is the SDK and not the FormSG system. [`#3`](https://github.com/opengovsg/formsg-javascript-sdk/pull/3)
|
|
163
|
-
|
|
164
|
-
#### [v0.2.0](https://github.com/opengovsg/formsg-javascript-sdk/compare/v0.1.1...v0.2.0)
|
|
165
|
-
|
|
166
|
-
> 2 March 2020
|
|
167
|
-
|
|
168
|
-
- Version 0.2.0 - Add signing functions, end-to-end testing [`#2`](https://github.com/opengovsg/formsg-javascript-sdk/pull/2)
|
|
169
|
-
|
|
170
|
-
#### v0.1.1
|
|
171
|
-
|
|
172
|
-
> 2 March 2020
|
|
173
|
-
|
|
174
|
-
- Version 0.1.1 - Readme, configuration bugfix [`#1`](https://github.com/opengovsg/formsg-javascript-sdk/pull/1)
|
|
175
|
-
- Add signature authentication [`a23a6ff`](https://github.com/opengovsg/formsg-javascript-sdk/commit/a23a6ffee1aaa65f805207b3f7ed17ed05590010)
|
|
176
|
-
- gitignore [`1b288fa`](https://github.com/opengovsg/formsg-javascript-sdk/commit/1b288fa9cff6df70efb09bf477570159516605e1)
|
|
177
|
-
- install dependencies [`d8fc078`](https://github.com/opengovsg/formsg-javascript-sdk/commit/d8fc078b29ffb0043adbb105fe4a39abed5a8cf9)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|