@fgv/ts-extras 5.0.2 → 5.1.0-0

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 (92) hide show
  1. package/dist/index.browser.js +6 -2
  2. package/dist/index.js +5 -1
  3. package/dist/packlets/ai-assist/apiClient.js +484 -0
  4. package/dist/packlets/ai-assist/converters.js +121 -0
  5. package/dist/packlets/ai-assist/index.js +10 -0
  6. package/dist/packlets/ai-assist/model.js +90 -0
  7. package/dist/packlets/ai-assist/registry.js +145 -0
  8. package/dist/packlets/ai-assist/toolFormats.js +160 -0
  9. package/dist/packlets/crypto-utils/constants.js +48 -0
  10. package/dist/packlets/crypto-utils/converters.js +155 -0
  11. package/dist/packlets/crypto-utils/directEncryptionProvider.js +86 -0
  12. package/dist/packlets/crypto-utils/encryptedFile.js +161 -0
  13. package/dist/packlets/crypto-utils/index.browser.js +41 -0
  14. package/dist/packlets/crypto-utils/index.js +41 -0
  15. package/dist/packlets/crypto-utils/keystore/converters.js +84 -0
  16. package/dist/packlets/crypto-utils/keystore/index.js +31 -0
  17. package/dist/packlets/crypto-utils/keystore/keyStore.js +758 -0
  18. package/dist/packlets/crypto-utils/keystore/model.js +64 -0
  19. package/dist/packlets/crypto-utils/model.js +39 -0
  20. package/dist/packlets/crypto-utils/nodeCryptoProvider.js +159 -0
  21. package/dist/packlets/experimental/formatter.js +1 -1
  22. package/dist/packlets/mustache/index.js +23 -0
  23. package/dist/packlets/mustache/interfaces.js +25 -0
  24. package/dist/packlets/mustache/mustacheTemplate.js +242 -0
  25. package/dist/packlets/record-jar/recordJarHelpers.js +1 -1
  26. package/dist/packlets/yaml/converters.js +46 -0
  27. package/dist/packlets/yaml/index.js +23 -0
  28. package/dist/packlets/zip-file-tree/index.js +1 -0
  29. package/dist/packlets/zip-file-tree/zipFileTreeAccessors.js +43 -2
  30. package/dist/packlets/zip-file-tree/zipFileTreeWriter.js +40 -0
  31. package/dist/ts-extras.d.ts +1990 -112
  32. package/dist/tsdoc-metadata.json +1 -1
  33. package/lib/index.browser.d.ts +3 -1
  34. package/lib/index.browser.js +6 -1
  35. package/lib/index.d.ts +5 -1
  36. package/lib/index.js +9 -1
  37. package/lib/packlets/ai-assist/apiClient.d.ts +60 -0
  38. package/lib/packlets/ai-assist/apiClient.js +488 -0
  39. package/lib/packlets/ai-assist/converters.d.ts +55 -0
  40. package/lib/packlets/ai-assist/converters.js +124 -0
  41. package/lib/packlets/ai-assist/index.d.ts +10 -0
  42. package/lib/packlets/ai-assist/index.js +33 -0
  43. package/lib/packlets/ai-assist/model.d.ts +222 -0
  44. package/lib/packlets/ai-assist/model.js +95 -0
  45. package/lib/packlets/ai-assist/registry.d.ts +25 -0
  46. package/lib/packlets/ai-assist/registry.js +150 -0
  47. package/lib/packlets/ai-assist/toolFormats.d.ts +44 -0
  48. package/lib/packlets/ai-assist/toolFormats.js +166 -0
  49. package/lib/packlets/crypto-utils/constants.d.ts +26 -0
  50. package/lib/packlets/crypto-utils/constants.js +51 -0
  51. package/lib/packlets/crypto-utils/converters.d.ts +58 -0
  52. package/lib/packlets/crypto-utils/converters.js +192 -0
  53. package/lib/packlets/crypto-utils/directEncryptionProvider.d.ts +69 -0
  54. package/lib/packlets/crypto-utils/directEncryptionProvider.js +90 -0
  55. package/lib/packlets/crypto-utils/encryptedFile.d.ts +88 -0
  56. package/lib/packlets/crypto-utils/encryptedFile.js +201 -0
  57. package/lib/packlets/crypto-utils/index.browser.d.ts +14 -0
  58. package/lib/packlets/crypto-utils/index.browser.js +91 -0
  59. package/lib/packlets/crypto-utils/index.d.ts +15 -0
  60. package/lib/packlets/crypto-utils/index.js +88 -0
  61. package/lib/packlets/crypto-utils/keystore/converters.d.ts +29 -0
  62. package/lib/packlets/crypto-utils/keystore/converters.js +87 -0
  63. package/lib/packlets/crypto-utils/keystore/index.d.ts +9 -0
  64. package/lib/packlets/crypto-utils/keystore/index.js +71 -0
  65. package/lib/packlets/crypto-utils/keystore/keyStore.d.ts +239 -0
  66. package/lib/packlets/crypto-utils/keystore/keyStore.js +795 -0
  67. package/lib/packlets/crypto-utils/keystore/model.d.ts +245 -0
  68. package/lib/packlets/crypto-utils/keystore/model.js +68 -0
  69. package/lib/packlets/crypto-utils/model.d.ts +236 -0
  70. package/lib/packlets/crypto-utils/model.js +76 -0
  71. package/lib/packlets/crypto-utils/nodeCryptoProvider.d.ts +62 -0
  72. package/lib/packlets/crypto-utils/nodeCryptoProvider.js +196 -0
  73. package/lib/packlets/experimental/formatter.d.ts +1 -1
  74. package/lib/packlets/experimental/formatter.js +1 -1
  75. package/lib/packlets/mustache/index.d.ts +3 -0
  76. package/lib/packlets/mustache/index.js +27 -0
  77. package/lib/packlets/mustache/interfaces.d.ts +97 -0
  78. package/lib/packlets/mustache/interfaces.js +26 -0
  79. package/lib/packlets/mustache/mustacheTemplate.d.ts +76 -0
  80. package/lib/packlets/mustache/mustacheTemplate.js +249 -0
  81. package/lib/packlets/record-jar/recordJarHelpers.js +1 -1
  82. package/lib/packlets/yaml/converters.d.ts +9 -0
  83. package/lib/packlets/yaml/converters.js +82 -0
  84. package/lib/packlets/yaml/index.d.ts +2 -0
  85. package/lib/packlets/yaml/index.js +39 -0
  86. package/lib/packlets/zip-file-tree/index.d.ts +1 -0
  87. package/lib/packlets/zip-file-tree/index.js +15 -0
  88. package/lib/packlets/zip-file-tree/zipFileTreeAccessors.d.ts +31 -2
  89. package/lib/packlets/zip-file-tree/zipFileTreeAccessors.js +42 -1
  90. package/lib/packlets/zip-file-tree/zipFileTreeWriter.d.ts +27 -0
  91. package/lib/packlets/zip-file-tree/zipFileTreeWriter.js +43 -0
  92. package/package.json +37 -18
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fgv/ts-extras",
3
- "version": "5.0.2",
3
+ "version": "5.1.0-0",
4
4
  "description": "Assorted Typescript Utilities",
5
5
  "main": "lib/index.js",
6
6
  "types": "dist/ts-extras.d.ts",
@@ -16,6 +16,21 @@
16
16
  },
17
17
  "types": "./dist/ts-extras.d.ts"
18
18
  },
19
+ "./crypto": {
20
+ "node": {
21
+ "import": "./lib/packlets/crypto/index.js",
22
+ "require": "./lib/packlets/crypto/index.js"
23
+ },
24
+ "default": {
25
+ "import": "./lib/packlets/crypto/index.browser.js",
26
+ "require": "./lib/packlets/crypto/index.browser.js"
27
+ }
28
+ },
29
+ "./crypto/keystore": {
30
+ "import": "./lib/packlets/crypto/keystore/index.js",
31
+ "require": "./lib/packlets/crypto/keystore/index.js",
32
+ "types": "./dist/ts-extras.d.ts"
33
+ },
19
34
  "./hash": {
20
35
  "node": {
21
36
  "import": "./lib/packlets/hash/index.node.js",
@@ -40,47 +55,51 @@
40
55
  "homepage": "https://github.com/ErikFortune/fgv/tree/main/libraries/ts-extras#ts-utils",
41
56
  "devDependencies": {
42
57
  "@jest/expect-utils": "^29.7.0",
43
- "@microsoft/api-documenter": "^7.27.3",
44
- "@microsoft/api-extractor": "^7.53.3",
58
+ "@microsoft/api-documenter": "^7.28.2",
59
+ "@microsoft/api-extractor": "^7.55.2",
45
60
  "@types/jest": "^29.5.14",
46
61
  "@types/luxon": "^3.7.1",
47
62
  "@types/mustache": "^4.2.5",
48
63
  "@types/node": "^20.14.9",
49
64
  "@types/papaparse": "^5.3.14",
50
- "@typescript-eslint/eslint-plugin": "^8.46.2",
51
- "@typescript-eslint/parser": "^8.46.2",
52
- "eslint": "^9.39.0",
65
+ "@typescript-eslint/eslint-plugin": "^8.52.0",
66
+ "@typescript-eslint/parser": "^8.52.0",
67
+ "eslint": "^9.39.2",
53
68
  "eslint-plugin-import": "^2.32.0",
54
69
  "eslint-plugin-node": "^11.1.0",
55
70
  "eslint-plugin-promise": "^7.2.1",
56
71
  "jest": "^29.7.0",
57
72
  "jest-extended": "^4.0.2",
58
73
  "jest-matcher-utils": "^29.7.0",
59
- "rimraf": "^6.1.0",
60
- "ts-jest": "^29.4.5",
74
+ "rimraf": "^6.1.2",
75
+ "ts-jest": "^29.4.6",
61
76
  "ts-node": "^10.9.2",
62
77
  "typescript": "5.9.3",
63
78
  "eslint-plugin-n": "^17.23.1",
64
79
  "jest-snapshot": "~29.7.0",
65
- "@rushstack/heft": "1.1.3",
66
- "@rushstack/heft-node-rig": "2.11.4",
67
- "@rushstack/eslint-config": "4.5.3",
80
+ "@rushstack/heft": "1.2.6",
81
+ "@rushstack/heft-node-rig": "2.11.26",
82
+ "@rushstack/eslint-config": "4.6.4",
68
83
  "@types/heft-jest": "1.0.6",
69
- "@rushstack/heft-jest-plugin": "1.1.3",
70
- "eslint-plugin-tsdoc": "~0.4.0",
84
+ "@rushstack/heft-jest-plugin": "1.2.6",
85
+ "eslint-plugin-tsdoc": "~0.5.2",
86
+ "@types/js-yaml": "~4.0.9",
87
+ "typedoc": "~0.28.16",
88
+ "typedoc-plugin-markdown": "~4.9.0",
89
+ "@fgv/ts-utils-jest": "5.1.0-0",
71
90
  "@fgv/heft-dual-rig": "0.1.0",
72
- "@fgv/ts-utils": "5.0.2",
73
- "@fgv/ts-utils-jest": "5.0.2"
91
+ "@fgv/ts-utils": "5.1.0-0"
74
92
  },
75
93
  "dependencies": {
76
94
  "luxon": "^3.7.2",
77
95
  "mustache": "^4.2.0",
78
96
  "papaparse": "^5.4.1",
79
97
  "fflate": "~0.8.2",
80
- "@fgv/ts-json-base": "5.0.2"
98
+ "js-yaml": "~4.1.1",
99
+ "@fgv/ts-json-base": "5.1.0-0"
81
100
  },
82
101
  "peerDependencies": {
83
- "@fgv/ts-utils": "5.0.2"
102
+ "@fgv/ts-utils": "5.1.0-0"
84
103
  },
85
104
  "repository": {
86
105
  "type": "git",
@@ -90,7 +109,7 @@
90
109
  "build": "heft build --clean",
91
110
  "clean": "heft clean",
92
111
  "test": "heft test --clean",
93
- "build-docs": "api-documenter markdown --input-folder ./temp --output-folder docs",
112
+ "build-docs": "typedoc --options ./config/typedoc.json",
94
113
  "build-all": "rushx build; rushx build-docs",
95
114
  "test-handles": "jest --runInBand --detectOpenHandles",
96
115
  "clean-jest": "jest --clear-cache",