@raytio/decrypt-helper 6.2.0 → 6.3.1
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 +2 -2
- package/dist/api/authedFetch.js +1 -5
- package/dist/api/fetchAA.d.ts +2 -2
- package/dist/api/fetchAA.js +3 -7
- package/dist/api/fetchEnvConfig.js +2 -6
- package/dist/api/fetchInstanceData.d.ts +3 -3
- package/dist/api/fetchInstanceData.js +3 -8
- package/dist/api/getFiles.d.ts +2 -2
- package/dist/api/getFiles.js +59 -26
- package/dist/api/getLookupOption.d.ts +1 -1
- package/dist/api/getLookupOption.js +3 -7
- package/dist/api/getSchema.d.ts +1 -1
- package/dist/api/getSchema.js +5 -9
- package/dist/api/index.d.ts +9 -9
- package/dist/api/index.js +9 -25
- package/dist/api/resolveVerificationDetails.d.ts +1 -1
- package/dist/api/resolveVerificationDetails.js +2 -7
- package/dist/api/signIn.d.ts +2 -2
- package/dist/api/signIn.js +10 -14
- package/dist/api/updateInstanceData.d.ts +7 -2
- package/dist/api/updateInstanceData.js +7 -7
- package/dist/api/uploadToObjectStore.d.ts +1 -1
- package/dist/api/uploadToObjectStore.js +3 -7
- package/dist/api/videoToImage.d.ts +1 -1
- package/dist/api/videoToImage.js +5 -9
- package/dist/configureEnv.js +17 -28
- package/dist/constants.d.ts +3 -3
- package/dist/constants.js +20 -23
- package/dist/helpers/file.d.ts +5 -1
- package/dist/helpers/file.js +8 -9
- package/dist/helpers/formatOutput.d.ts +2 -2
- package/dist/helpers/formatOutput.js +24 -28
- package/dist/helpers/index.d.ts +6 -6
- package/dist/helpers/index.js +6 -22
- package/dist/helpers/json2csv.js +11 -15
- package/dist/helpers/lookup.d.ts +1 -1
- package/dist/helpers/lookup.js +16 -7
- package/dist/helpers/pathUtils.d.ts +1 -0
- package/dist/helpers/pathUtils.js +6 -0
- package/dist/helpers/setupMaxcryptor.d.ts +3 -3
- package/dist/helpers/setupMaxcryptor.js +9 -12
- package/dist/helpers/splitPOAndVers.js +4 -8
- package/dist/helpers/types.js +1 -5
- package/dist/index.d.ts +7 -7
- package/dist/index.js +7 -16
- package/dist/locales/index.js +4 -12
- package/dist/pdf/components/FieldVerificationBadge.d.ts +0 -1
- package/dist/pdf/components/FieldVerificationBadge.js +8 -15
- package/dist/pdf/components/Images.d.ts +1 -2
- package/dist/pdf/components/Images.js +7 -14
- package/dist/pdf/components/InnerTableRows.d.ts +2 -3
- package/dist/pdf/components/InnerTableRows.js +19 -26
- package/dist/pdf/components/POVerificationBadge.d.ts +1 -2
- package/dist/pdf/components/POVerificationBadge.js +28 -35
- package/dist/pdf/components/Report.d.ts +3 -4
- package/dist/pdf/components/Report.js +61 -68
- package/dist/pdf/components/Subheader.d.ts +0 -1
- package/dist/pdf/components/Subheader.js +20 -27
- package/dist/pdf/components/Table.d.ts +3 -4
- package/dist/pdf/components/Table.js +21 -28
- package/dist/pdf/components/TableTitle.d.ts +1 -2
- package/dist/pdf/components/TableTitle.js +5 -12
- package/dist/pdf/components/ValidationDisplay.d.ts +1 -2
- package/dist/pdf/components/ValidationDisplay.js +10 -17
- package/dist/pdf/components/VerifyBox.d.ts +0 -1
- package/dist/pdf/components/VerifyBox.js +9 -16
- package/dist/pdf/components/pieChart.js +1 -5
- package/dist/pdf/constants.js +8 -11
- package/dist/pdf/helpers/general.js +12 -18
- package/dist/pdf/helpers/transform.d.ts +1 -1
- package/dist/pdf/helpers/transform.js +11 -15
- package/dist/pdf/style.d.ts +1 -1
- package/dist/pdf/style.js +7 -10
- package/dist/public-methods/generatePDF.d.ts +2 -2
- package/dist/public-methods/generatePDF.js +15 -22
- package/dist/public-methods/getAndValidateConfig.d.ts +1 -1
- package/dist/public-methods/getAndValidateConfig.js +3 -7
- package/dist/public-methods/processSubmission.d.ts +4 -4
- package/dist/public-methods/processSubmission.js +37 -33
- package/dist/public-methods/saveToS3Bucket.d.ts +1 -1
- package/dist/public-methods/saveToS3Bucket.js +6 -13
- package/dist/public-methods/version.js +8 -10
- package/package.json +36 -65
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raytio/decrypt-helper",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.1",
|
|
4
4
|
"author": "Raytio",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"description": "A helper to decrypt data shared by Raytio users",
|
|
6
|
-
"main": "dist",
|
|
7
|
+
"main": "dist/index.js",
|
|
7
8
|
"files": [
|
|
8
9
|
"assets",
|
|
9
10
|
"dist"
|
|
@@ -12,8 +13,8 @@
|
|
|
12
13
|
"dev-pdf": "ts-node src/test/pdf",
|
|
13
14
|
"build": "tsc && find dist -path \"*/__tests__*\" -delete && rm -rf dist/test",
|
|
14
15
|
"i18n": "react-intl-manager",
|
|
15
|
-
"lint": "eslint --
|
|
16
|
-
"test": "
|
|
16
|
+
"lint": "eslint --ext .js,.ts,.tsx --color --ignore-path .gitignore .",
|
|
17
|
+
"test": "vitest"
|
|
17
18
|
},
|
|
18
19
|
"repository": "https://gitlab.com/raytio/tools/decrypt-helper.git",
|
|
19
20
|
"homepage": "https://gitlab.com/raytio/tools/decrypt-helper#readme",
|
|
@@ -22,40 +23,40 @@
|
|
|
22
23
|
},
|
|
23
24
|
"dependencies": {
|
|
24
25
|
"@aws-amplify/auth": "3.4.25",
|
|
25
|
-
"@raytio/core": "^11.
|
|
26
|
+
"@raytio/core": "^11.3.0",
|
|
26
27
|
"@raytio/maxcryptor": "^3.1.0",
|
|
27
|
-
"@raytio/types": "^7.
|
|
28
|
+
"@raytio/types": "^7.3.0",
|
|
28
29
|
"aws-sdk": "^2.754.0",
|
|
29
30
|
"jsx-pdf": "^2.3.0",
|
|
30
31
|
"localstorage-polyfill": "^1.0.1",
|
|
31
32
|
"mime-types": "^2.1.35",
|
|
32
|
-
"pdfmake": "^0.2.
|
|
33
|
-
"ramda": "^0.
|
|
33
|
+
"pdfmake": "^0.2.10",
|
|
34
|
+
"ramda": "^0.30.0"
|
|
34
35
|
},
|
|
35
36
|
"devDependencies": {
|
|
36
|
-
"@raytio/react-intl-manager": "^6.
|
|
37
|
-
"@types/jest": "^
|
|
38
|
-
"@types/
|
|
39
|
-
"@types/
|
|
40
|
-
"@types/
|
|
41
|
-
"@types/
|
|
42
|
-
"@types/
|
|
43
|
-
"@
|
|
37
|
+
"@raytio/react-intl-manager": "^6.4.0",
|
|
38
|
+
"@types/jest-image-snapshot": "^6.3.0",
|
|
39
|
+
"@types/jsx-pdf": "^2.2.6",
|
|
40
|
+
"@types/mime-types": "^2.1.4",
|
|
41
|
+
"@types/node": "^20.10.3",
|
|
42
|
+
"@types/pdfmake": "^0.2.8",
|
|
43
|
+
"@types/ramda": "^0.29.9",
|
|
44
|
+
"@vitest/ui": "^1.2.2",
|
|
44
45
|
"babel-preset-react-app": "^10.0.1",
|
|
45
46
|
"dotenv": "^16.3.1",
|
|
46
|
-
"eslint": "^8.
|
|
47
|
-
"eslint-config-kyle": "^
|
|
48
|
-
"
|
|
49
|
-
"jest-image-snapshot": "^6.
|
|
50
|
-
"
|
|
51
|
-
"pdf-to-img": "^2.1.1",
|
|
52
|
-
"ts-jest": "^29.1.1",
|
|
47
|
+
"eslint": "^8.55.0",
|
|
48
|
+
"eslint-config-kyle": "^18.0.1",
|
|
49
|
+
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
50
|
+
"jest-image-snapshot": "^6.3.0",
|
|
51
|
+
"pdf-to-img": "^2.1.2",
|
|
53
52
|
"ts-node": "^10.9.1",
|
|
54
|
-
"typescript": "^5.
|
|
53
|
+
"typescript": "^5.3.3",
|
|
54
|
+
"vitest": "^1.2.2"
|
|
55
55
|
},
|
|
56
56
|
"eslintConfig": {
|
|
57
57
|
"extends": "kyle",
|
|
58
58
|
"rules": {
|
|
59
|
+
"quotes": 0,
|
|
59
60
|
"import/extensions": 0,
|
|
60
61
|
"react/jsx-key": 0,
|
|
61
62
|
"react/react-in-jsx-scope": 0,
|
|
@@ -79,48 +80,18 @@
|
|
|
79
80
|
],
|
|
80
81
|
"no-unused-vars": 0,
|
|
81
82
|
"camelcase": 0
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
"prettier": {},
|
|
85
|
-
"jest": {
|
|
86
|
-
"testMatch": [
|
|
87
|
-
"**/__tests__/?(*.)+(spec|test).[jt]s?(x)"
|
|
88
|
-
],
|
|
89
|
-
"transform": {
|
|
90
|
-
"^.+\\.(t|j)sx?$": "ts-jest"
|
|
91
83
|
},
|
|
92
|
-
"
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
"
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
"/coverage/",
|
|
101
|
-
"/test/"
|
|
102
|
-
],
|
|
103
|
-
"modulePathIgnorePatterns": [
|
|
104
|
-
"/dist/",
|
|
105
|
-
"/coverage/"
|
|
106
|
-
],
|
|
107
|
-
"moduleDirectories": [
|
|
108
|
-
"node_modules",
|
|
109
|
-
"src"
|
|
110
|
-
],
|
|
111
|
-
"testTimeout": 300000,
|
|
112
|
-
"testEnvironment": "node",
|
|
113
|
-
"setupFilesAfterEnv": [
|
|
114
|
-
"./src/__tests__/setupTests.ts"
|
|
115
|
-
],
|
|
116
|
-
"reporters": [
|
|
117
|
-
"default",
|
|
118
|
-
"jest-image-snapshot/src/outdated-snapshot-reporter.js",
|
|
119
|
-
"jest-junit"
|
|
120
|
-
]
|
|
84
|
+
"globals": {
|
|
85
|
+
"vi": true
|
|
86
|
+
},
|
|
87
|
+
"settings": {
|
|
88
|
+
"jest": {
|
|
89
|
+
"version": 29
|
|
90
|
+
}
|
|
91
|
+
}
|
|
121
92
|
},
|
|
122
|
-
"
|
|
123
|
-
"
|
|
93
|
+
"prettier": {
|
|
94
|
+
"trailingComma": "es5"
|
|
124
95
|
},
|
|
125
96
|
"engines": {
|
|
126
97
|
"node": ">=18"
|
|
@@ -131,4 +102,4 @@
|
|
|
131
102
|
"codeQualityReport": "tmp/codequality.json",
|
|
132
103
|
"moduleSourceName": false
|
|
133
104
|
}
|
|
134
|
-
}
|
|
105
|
+
}
|