@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.
Files changed (83) hide show
  1. package/README.md +2 -2
  2. package/dist/api/authedFetch.js +1 -5
  3. package/dist/api/fetchAA.d.ts +2 -2
  4. package/dist/api/fetchAA.js +3 -7
  5. package/dist/api/fetchEnvConfig.js +2 -6
  6. package/dist/api/fetchInstanceData.d.ts +3 -3
  7. package/dist/api/fetchInstanceData.js +3 -8
  8. package/dist/api/getFiles.d.ts +2 -2
  9. package/dist/api/getFiles.js +59 -26
  10. package/dist/api/getLookupOption.d.ts +1 -1
  11. package/dist/api/getLookupOption.js +3 -7
  12. package/dist/api/getSchema.d.ts +1 -1
  13. package/dist/api/getSchema.js +5 -9
  14. package/dist/api/index.d.ts +9 -9
  15. package/dist/api/index.js +9 -25
  16. package/dist/api/resolveVerificationDetails.d.ts +1 -1
  17. package/dist/api/resolveVerificationDetails.js +2 -7
  18. package/dist/api/signIn.d.ts +2 -2
  19. package/dist/api/signIn.js +10 -14
  20. package/dist/api/updateInstanceData.d.ts +7 -2
  21. package/dist/api/updateInstanceData.js +7 -7
  22. package/dist/api/uploadToObjectStore.d.ts +1 -1
  23. package/dist/api/uploadToObjectStore.js +3 -7
  24. package/dist/api/videoToImage.d.ts +1 -1
  25. package/dist/api/videoToImage.js +5 -9
  26. package/dist/configureEnv.js +17 -28
  27. package/dist/constants.d.ts +3 -3
  28. package/dist/constants.js +20 -23
  29. package/dist/helpers/file.d.ts +5 -1
  30. package/dist/helpers/file.js +8 -9
  31. package/dist/helpers/formatOutput.d.ts +2 -2
  32. package/dist/helpers/formatOutput.js +24 -28
  33. package/dist/helpers/index.d.ts +6 -6
  34. package/dist/helpers/index.js +6 -22
  35. package/dist/helpers/json2csv.js +11 -15
  36. package/dist/helpers/lookup.d.ts +1 -1
  37. package/dist/helpers/lookup.js +16 -7
  38. package/dist/helpers/pathUtils.d.ts +1 -0
  39. package/dist/helpers/pathUtils.js +6 -0
  40. package/dist/helpers/setupMaxcryptor.d.ts +3 -3
  41. package/dist/helpers/setupMaxcryptor.js +9 -12
  42. package/dist/helpers/splitPOAndVers.js +4 -8
  43. package/dist/helpers/types.js +1 -5
  44. package/dist/index.d.ts +7 -7
  45. package/dist/index.js +7 -16
  46. package/dist/locales/index.js +4 -12
  47. package/dist/pdf/components/FieldVerificationBadge.d.ts +0 -1
  48. package/dist/pdf/components/FieldVerificationBadge.js +8 -15
  49. package/dist/pdf/components/Images.d.ts +1 -2
  50. package/dist/pdf/components/Images.js +7 -14
  51. package/dist/pdf/components/InnerTableRows.d.ts +2 -3
  52. package/dist/pdf/components/InnerTableRows.js +19 -26
  53. package/dist/pdf/components/POVerificationBadge.d.ts +1 -2
  54. package/dist/pdf/components/POVerificationBadge.js +28 -35
  55. package/dist/pdf/components/Report.d.ts +3 -4
  56. package/dist/pdf/components/Report.js +61 -68
  57. package/dist/pdf/components/Subheader.d.ts +0 -1
  58. package/dist/pdf/components/Subheader.js +20 -27
  59. package/dist/pdf/components/Table.d.ts +3 -4
  60. package/dist/pdf/components/Table.js +21 -28
  61. package/dist/pdf/components/TableTitle.d.ts +1 -2
  62. package/dist/pdf/components/TableTitle.js +5 -12
  63. package/dist/pdf/components/ValidationDisplay.d.ts +1 -2
  64. package/dist/pdf/components/ValidationDisplay.js +10 -17
  65. package/dist/pdf/components/VerifyBox.d.ts +0 -1
  66. package/dist/pdf/components/VerifyBox.js +9 -16
  67. package/dist/pdf/components/pieChart.js +1 -5
  68. package/dist/pdf/constants.js +8 -11
  69. package/dist/pdf/helpers/general.js +12 -18
  70. package/dist/pdf/helpers/transform.d.ts +1 -1
  71. package/dist/pdf/helpers/transform.js +11 -15
  72. package/dist/pdf/style.d.ts +1 -1
  73. package/dist/pdf/style.js +7 -10
  74. package/dist/public-methods/generatePDF.d.ts +2 -2
  75. package/dist/public-methods/generatePDF.js +15 -22
  76. package/dist/public-methods/getAndValidateConfig.d.ts +1 -1
  77. package/dist/public-methods/getAndValidateConfig.js +3 -7
  78. package/dist/public-methods/processSubmission.d.ts +4 -4
  79. package/dist/public-methods/processSubmission.js +37 -33
  80. package/dist/public-methods/saveToS3Bucket.d.ts +1 -1
  81. package/dist/public-methods/saveToS3Bucket.js +6 -13
  82. package/dist/public-methods/version.js +8 -10
  83. package/package.json +36 -65
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@raytio/decrypt-helper",
3
- "version": "6.2.0",
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 --format pretty --ext .js,.ts,.tsx --color --ignore-path .gitignore .",
16
- "test": "jest --colors"
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.2.0",
26
+ "@raytio/core": "^11.3.0",
26
27
  "@raytio/maxcryptor": "^3.1.0",
27
- "@raytio/types": "^7.2.0",
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.7",
33
- "ramda": "^0.29.0"
33
+ "pdfmake": "^0.2.10",
34
+ "ramda": "^0.30.0"
34
35
  },
35
36
  "devDependencies": {
36
- "@raytio/react-intl-manager": "^6.3.1",
37
- "@types/jest": "^29.5.3",
38
- "@types/jest-image-snapshot": "^6.1.0",
39
- "@types/jsx-pdf": "^2.2.2",
40
- "@types/mime-types": "^2.1.1",
41
- "@types/node": "^18.16.19",
42
- "@types/pdfmake": "^0.2.2",
43
- "@types/ramda": "^0.29.3",
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.45.0",
47
- "eslint-config-kyle": "^11.19.0",
48
- "jest": "^29.6.1",
49
- "jest-image-snapshot": "^6.1.0",
50
- "jest-junit": "^16.0.0",
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.1.6"
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
- "collectCoverage": true,
93
- "collectCoverageFrom": [
94
- "**/*.js",
95
- "**/*.ts",
96
- "**/*.tsx"
97
- ],
98
- "coveragePathIgnorePatterns": [
99
- "/dist/",
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
- "jest-junit": {
123
- "outputDirectory": "tmp"
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
+ }