@nivinjoseph/n-sec 5.0.5 → 6.0.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.
Files changed (83) hide show
  1. package/.vscode/settings.json +111 -0
  2. package/.yarn/releases/yarn-4.0.2.cjs +893 -0
  3. package/.yarnrc.yml +3 -0
  4. package/dist/api-security/alg-type.d.ts +1 -0
  5. package/dist/api-security/alg-type.d.ts.map +1 -0
  6. package/dist/api-security/alg-type.js +2 -5
  7. package/dist/api-security/alg-type.js.map +1 -1
  8. package/dist/api-security/claim.d.ts +1 -0
  9. package/dist/api-security/claim.d.ts.map +1 -0
  10. package/dist/api-security/claim.js +5 -9
  11. package/dist/api-security/claim.js.map +1 -1
  12. package/dist/api-security/claims-identity.d.ts +2 -1
  13. package/dist/api-security/claims-identity.d.ts.map +1 -0
  14. package/dist/api-security/claims-identity.js +4 -8
  15. package/dist/api-security/claims-identity.js.map +1 -1
  16. package/dist/api-security/expired-token-exception.d.ts +1 -0
  17. package/dist/api-security/expired-token-exception.d.ts.map +1 -0
  18. package/dist/api-security/expired-token-exception.js +5 -9
  19. package/dist/api-security/expired-token-exception.js.map +1 -1
  20. package/dist/api-security/invalid-token-exception.d.ts +1 -0
  21. package/dist/api-security/invalid-token-exception.d.ts.map +1 -0
  22. package/dist/api-security/invalid-token-exception.js +7 -11
  23. package/dist/api-security/invalid-token-exception.js.map +1 -1
  24. package/dist/api-security/json-web-token.d.ts +3 -2
  25. package/dist/api-security/json-web-token.d.ts.map +1 -0
  26. package/dist/api-security/json-web-token.js +39 -43
  27. package/dist/api-security/json-web-token.js.map +1 -1
  28. package/dist/api-security/security-token.d.ts +1 -0
  29. package/dist/api-security/security-token.d.ts.map +1 -0
  30. package/dist/api-security/security-token.js +6 -10
  31. package/dist/api-security/security-token.js.map +1 -1
  32. package/dist/bin.d.ts +1 -0
  33. package/dist/bin.d.ts.map +1 -0
  34. package/dist/bin.js +16 -20
  35. package/dist/bin.js.map +1 -1
  36. package/dist/crypto/asymmetric-encryption.d.ts +2 -0
  37. package/dist/crypto/asymmetric-encryption.d.ts.map +1 -0
  38. package/dist/crypto/asymmetric-encryption.js +1 -1
  39. package/dist/crypto/asymmetric-encryption.js.map +1 -1
  40. package/dist/crypto/crypto-exception.d.ts +1 -0
  41. package/dist/crypto/crypto-exception.d.ts.map +1 -0
  42. package/dist/crypto/crypto-exception.js +2 -6
  43. package/dist/crypto/crypto-exception.js.map +1 -1
  44. package/dist/crypto/digital-signature.d.ts +2 -0
  45. package/dist/crypto/digital-signature.d.ts.map +1 -0
  46. package/dist/crypto/digital-signature.js +1 -1
  47. package/dist/crypto/digital-signature.js.map +1 -1
  48. package/dist/crypto/hash.d.ts +1 -0
  49. package/dist/crypto/hash.d.ts.map +1 -0
  50. package/dist/crypto/hash.js +7 -11
  51. package/dist/crypto/hash.js.map +1 -1
  52. package/dist/crypto/hmac.d.ts +1 -0
  53. package/dist/crypto/hmac.d.ts.map +1 -0
  54. package/dist/crypto/hmac.js +6 -10
  55. package/dist/crypto/hmac.js.map +1 -1
  56. package/dist/crypto/symmetric-encryption.d.ts +1 -0
  57. package/dist/crypto/symmetric-encryption.d.ts.map +1 -0
  58. package/dist/crypto/symmetric-encryption.js +13 -17
  59. package/dist/crypto/symmetric-encryption.js.map +1 -1
  60. package/dist/index.d.ts +13 -12
  61. package/dist/index.d.ts.map +1 -0
  62. package/dist/index.js +17 -28
  63. package/dist/index.js.map +1 -1
  64. package/dist/tsconfig.json +2 -1
  65. package/eslint.config.js +591 -0
  66. package/package.json +24 -24
  67. package/src/api-security/claims-identity.ts +1 -1
  68. package/src/api-security/json-web-token.ts +21 -21
  69. package/src/bin.ts +2 -1
  70. package/src/crypto/hash.ts +9 -9
  71. package/src/crypto/hmac.ts +7 -7
  72. package/src/crypto/symmetric-encryption.ts +11 -11
  73. package/src/index.ts +17 -18
  74. package/test/asymmetric-encryption.test.ts +37 -37
  75. package/test/digital-signature.test.ts +22 -22
  76. package/test/hash.test.ts +109 -109
  77. package/test/hmac.test.ts +56 -55
  78. package/test/json-web-token.test.ts +95 -95
  79. package/test/other.test.ts +8 -7
  80. package/test/symmetric-encryption.test.ts +49 -48
  81. package/tsconfig.json +8 -5
  82. package/.eslintignore +0 -2
  83. package/.eslintrc +0 -335
@@ -0,0 +1,111 @@
1
+ {
2
+ "typescript.format.placeOpenBraceOnNewLineForFunctions": true,
3
+ "typescript.format.placeOpenBraceOnNewLineForControlBlocks": true,
4
+ "editor.formatOnType": true,
5
+ "editor.formatOnPaste": true,
6
+ "typescript.tsdk": "./node_modules/typescript/lib",
7
+ "npm.packageManager": "yarn",
8
+ "files.exclude": {
9
+ "**/.git": true,
10
+ "**/.svn": true,
11
+ "**/.hg": true,
12
+ "**/.DS_Store": true,
13
+ "**/*.js": {
14
+ "when": "$(basename).ts"
15
+ },
16
+ "**/*.map": {
17
+ "when": "$(basename).map"
18
+ },
19
+ "**/*.css": {
20
+ "when": "$(basename).scss"
21
+ },
22
+ "**/*.tsbuildinfo": true
23
+ },
24
+ "editor.trimAutoWhitespace": false,
25
+ "cSpell.userWords": [
26
+ "Repo",
27
+ "comms",
28
+ "deserialize",
29
+ "nivinjoseph",
30
+ "strval",
31
+ ],
32
+ "typescript.updateImportsOnFileMove.enabled": "prompt",
33
+ "editor.wordWrapColumn": 120,
34
+ "editor.rulers": [
35
+ 120
36
+ ],
37
+ "[scss]": {
38
+ "editor.defaultFormatter": "vscode.css-language-features"
39
+ },
40
+ "scss.format.braceStyle": "expand",
41
+ "eslint.enable": true,
42
+ "eslint.validate": [
43
+ "typescript"
44
+ ],
45
+ "eslint.options": {
46
+ "overrideConfigFile": "eslint.config.js"
47
+ },
48
+ "eslint.useFlatConfig": true,
49
+ "cSpell.words": [
50
+ "acumin",
51
+ "arrowless",
52
+ "attitudetype",
53
+ "autosize",
54
+ "bulma",
55
+ "chartjs",
56
+ "cohortcat",
57
+ "corpper",
58
+ "cropperjs",
59
+ "datagrid",
60
+ "datalabels",
61
+ "datasets",
62
+ "designtime",
63
+ "draggable",
64
+ "dropdown",
65
+ "Dtos",
66
+ "embd",
67
+ "endregion",
68
+ "epoched",
69
+ "Epocher",
70
+ "fontawesome",
71
+ "fullhd",
72
+ "fullheight",
73
+ "fullwidth",
74
+ "Grayscale",
75
+ "Gridline",
76
+ "Gridlines",
77
+ "Gsrs",
78
+ "hcentered",
79
+ "hoverable",
80
+ "Imotions",
81
+ "interslide",
82
+ "ject",
83
+ "luxon",
84
+ "marginless",
85
+ "mutex",
86
+ "Nivin",
87
+ "nodownload",
88
+ "numval",
89
+ "orgs",
90
+ "paddingless",
91
+ "quotemark",
92
+ "reorderable",
93
+ "scrollable",
94
+ "scrollbar",
95
+ "scroller",
96
+ "semibold",
97
+ "Skippable",
98
+ "taggable",
99
+ "taskworker",
100
+ "templator",
101
+ "tiktok",
102
+ "timelapse",
103
+ "uninvite",
104
+ "Unmerge",
105
+ "vcentered",
106
+ "wearedirt",
107
+ "xlink",
108
+ "xsmall",
109
+ "zoomable"
110
+ ],
111
+ }