@fgv/ts-web-extras 5.1.0-0 → 5.1.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 (332) hide show
  1. package/.rush/temp/chunked-rush-logs/ts-web-extras.build.chunks.jsonl +56 -33
  2. package/.rush/temp/chunked-rush-logs/ts-web-extras.test.chunks.jsonl +75 -0
  3. package/.rush/temp/operation/build/all.log +56 -33
  4. package/.rush/temp/operation/build/error.log +18 -0
  5. package/.rush/temp/operation/build/log-chunks.jsonl +56 -33
  6. package/.rush/temp/operation/build/state.json +1 -1
  7. package/.rush/temp/operation/test/all.log +75 -0
  8. package/.rush/temp/operation/test/error.log +18 -0
  9. package/.rush/temp/operation/test/log-chunks.jsonl +75 -0
  10. package/.rush/temp/operation/test/state.json +3 -0
  11. package/dist/packlets/file-tree/fileApiTreeAccessors.js +15 -0
  12. package/dist/packlets/file-tree/fileApiTreeAccessors.js.map +1 -1
  13. package/dist/packlets/file-tree/fileSystemAccessTreeAccessors.js +79 -10
  14. package/dist/packlets/file-tree/fileSystemAccessTreeAccessors.js.map +1 -1
  15. package/dist/packlets/file-tree/httpTreeAccessors.js +336 -0
  16. package/dist/packlets/file-tree/httpTreeAccessors.js.map +1 -0
  17. package/dist/packlets/file-tree/index.js +1 -0
  18. package/dist/packlets/file-tree/index.js.map +1 -1
  19. package/dist/packlets/file-tree/localStorageTreeAccessors.js +51 -0
  20. package/dist/packlets/file-tree/localStorageTreeAccessors.js.map +1 -1
  21. package/dist/test/unit/fileApiTreeAccessors.test.js +51 -0
  22. package/dist/test/unit/fileApiTreeAccessors.test.js.map +1 -1
  23. package/dist/test/unit/fileSystemAccessTreeAccessors.test.js +265 -160
  24. package/dist/test/unit/fileSystemAccessTreeAccessors.test.js.map +1 -1
  25. package/dist/test/unit/httpTreeAccessors.test.js +1229 -0
  26. package/dist/test/unit/httpTreeAccessors.test.js.map +1 -0
  27. package/dist/test/unit/localStorageTreeAccessors.test.js +218 -1
  28. package/dist/test/unit/localStorageTreeAccessors.test.js.map +1 -1
  29. package/dist/ts-web-extras.d.ts +138 -0
  30. package/docs/@fgv/namespaces/CryptoUtils/README.md +18 -0
  31. package/docs/@fgv/namespaces/CryptoUtils/classes/BrowserCryptoProvider.md +203 -0
  32. package/docs/@fgv/namespaces/CryptoUtils/classes/BrowserHashProvider.md +63 -0
  33. package/docs/@fgv/namespaces/CryptoUtils/functions/createBrowserCryptoProvider.md +18 -0
  34. package/docs/@fgv/namespaces/FileTreeHelpers/README.md +19 -0
  35. package/docs/@fgv/namespaces/FileTreeHelpers/functions/extractFileListMetadata.md +23 -0
  36. package/docs/@fgv/namespaces/FileTreeHelpers/functions/extractFileMetadata.md +23 -0
  37. package/docs/@fgv/namespaces/FileTreeHelpers/functions/fromDirectoryUpload.md +33 -0
  38. package/docs/@fgv/namespaces/FileTreeHelpers/functions/fromFileList.md +33 -0
  39. package/docs/@fgv/namespaces/FileTreeHelpers/functions/getOriginalFile.md +25 -0
  40. package/docs/@fgv/namespaces/FileTreeHelpers/variables/defaultFileApiTreeInitParams.md +11 -0
  41. package/docs/README.md +78 -0
  42. package/docs/classes/DirectoryHandleStore.md +116 -0
  43. package/docs/classes/FileApiTreeAccessors.md +286 -0
  44. package/docs/classes/FileSystemAccessTreeAccessors.md +557 -0
  45. package/docs/classes/HttpTreeAccessors.md +508 -0
  46. package/docs/classes/LocalStorageTreeAccessors.md +520 -0
  47. package/docs/functions/exportAsJson.md +23 -0
  48. package/docs/functions/exportUsingFileSystemAPI.md +26 -0
  49. package/docs/functions/extractDirectoryPath.md +23 -0
  50. package/docs/functions/isDirectoryHandle.md +23 -0
  51. package/docs/functions/isFileHandle.md +23 -0
  52. package/docs/functions/isFilePath.md +21 -0
  53. package/docs/functions/parseContextFilter.md +22 -0
  54. package/docs/functions/parseQualifierDefaults.md +22 -0
  55. package/docs/functions/parseResourceTypes.md +22 -0
  56. package/docs/functions/parseUrlParameters.md +15 -0
  57. package/docs/functions/safeShowDirectoryPicker.md +24 -0
  58. package/docs/functions/safeShowOpenFilePicker.md +24 -0
  59. package/docs/functions/safeShowSaveFilePicker.md +24 -0
  60. package/docs/functions/supportsFileSystemAccess.md +23 -0
  61. package/docs/interfaces/FilePickerAcceptType.md +16 -0
  62. package/docs/interfaces/FileSystemCreateWritableOptions.md +15 -0
  63. package/docs/interfaces/FileSystemDirectoryHandle.md +187 -0
  64. package/docs/interfaces/FileSystemFileHandle.md +106 -0
  65. package/docs/interfaces/FileSystemGetDirectoryOptions.md +15 -0
  66. package/docs/interfaces/FileSystemGetFileOptions.md +15 -0
  67. package/docs/interfaces/FileSystemHandle.md +69 -0
  68. package/docs/interfaces/FileSystemHandlePermissionDescriptor.md +15 -0
  69. package/docs/interfaces/FileSystemRemoveOptions.md +15 -0
  70. package/docs/interfaces/FileSystemWritableFileStream.md +127 -0
  71. package/docs/interfaces/IDirectoryHandleTreeInitializer.md +17 -0
  72. package/docs/interfaces/IFileHandleTreeInitializer.md +16 -0
  73. package/docs/interfaces/IFileListTreeInitializer.md +15 -0
  74. package/docs/interfaces/IFileMetadata.md +19 -0
  75. package/docs/interfaces/IFileSystemAccessTreeParams.md +30 -0
  76. package/docs/interfaces/IFsAccessApis.md +57 -0
  77. package/docs/interfaces/IHttpTreeParams.md +32 -0
  78. package/docs/interfaces/ILocalStorageTreeParams.md +30 -0
  79. package/docs/interfaces/IUrlConfigOptions.md +27 -0
  80. package/docs/interfaces/ShowDirectoryPickerOptions.md +17 -0
  81. package/docs/interfaces/ShowOpenFilePickerOptions.md +19 -0
  82. package/docs/interfaces/ShowSaveFilePickerOptions.md +19 -0
  83. package/docs/type-aliases/TreeInitializer.md +11 -0
  84. package/docs/type-aliases/WellKnownDirectory.md +11 -0
  85. package/docs/type-aliases/WindowWithFsAccess.md +11 -0
  86. package/docs/variables/DEFAULT_DIRECTORY_HANDLE_DB.md +11 -0
  87. package/docs/variables/DEFAULT_DIRECTORY_HANDLE_STORE.md +11 -0
  88. package/etc/ts-web-extras.api.md +33 -0
  89. package/lib/packlets/file-tree/fileApiTreeAccessors.d.ts +9 -0
  90. package/lib/packlets/file-tree/fileApiTreeAccessors.d.ts.map +1 -1
  91. package/lib/packlets/file-tree/fileApiTreeAccessors.js +15 -0
  92. package/lib/packlets/file-tree/fileApiTreeAccessors.js.map +1 -1
  93. package/lib/packlets/file-tree/fileSystemAccessTreeAccessors.d.ts +17 -1
  94. package/lib/packlets/file-tree/fileSystemAccessTreeAccessors.d.ts.map +1 -1
  95. package/lib/packlets/file-tree/fileSystemAccessTreeAccessors.js +78 -9
  96. package/lib/packlets/file-tree/fileSystemAccessTreeAccessors.js.map +1 -1
  97. package/lib/packlets/file-tree/httpTreeAccessors.d.ts +102 -0
  98. package/lib/packlets/file-tree/httpTreeAccessors.d.ts.map +1 -0
  99. package/lib/packlets/file-tree/httpTreeAccessors.js +340 -0
  100. package/lib/packlets/file-tree/httpTreeAccessors.js.map +1 -0
  101. package/lib/packlets/file-tree/index.d.ts +1 -0
  102. package/lib/packlets/file-tree/index.d.ts.map +1 -1
  103. package/lib/packlets/file-tree/index.js +1 -0
  104. package/lib/packlets/file-tree/index.js.map +1 -1
  105. package/lib/packlets/file-tree/localStorageTreeAccessors.d.ts +12 -0
  106. package/lib/packlets/file-tree/localStorageTreeAccessors.d.ts.map +1 -1
  107. package/lib/packlets/file-tree/localStorageTreeAccessors.js +51 -0
  108. package/lib/packlets/file-tree/localStorageTreeAccessors.js.map +1 -1
  109. package/lib/test/unit/fileApiTreeAccessors.test.js +51 -0
  110. package/lib/test/unit/fileApiTreeAccessors.test.js.map +1 -1
  111. package/lib/test/unit/fileSystemAccessTreeAccessors.test.js +265 -160
  112. package/lib/test/unit/fileSystemAccessTreeAccessors.test.js.map +1 -1
  113. package/lib/test/unit/httpTreeAccessors.test.d.ts +2 -0
  114. package/lib/test/unit/httpTreeAccessors.test.d.ts.map +1 -0
  115. package/lib/test/unit/httpTreeAccessors.test.js +1231 -0
  116. package/lib/test/unit/httpTreeAccessors.test.js.map +1 -0
  117. package/lib/test/unit/localStorageTreeAccessors.test.js +218 -1
  118. package/lib/test/unit/localStorageTreeAccessors.test.js.map +1 -1
  119. package/package.json +25 -25
  120. package/rush-logs/ts-web-extras.build.cache.log +0 -3
  121. package/rush-logs/ts-web-extras.build.error.log +18 -0
  122. package/rush-logs/ts-web-extras.build.log +56 -33
  123. package/rush-logs/ts-web-extras.test.cache.log +1 -0
  124. package/rush-logs/ts-web-extras.test.error.log +18 -0
  125. package/rush-logs/ts-web-extras.test.log +75 -0
  126. package/src/packlets/file-tree/fileApiTreeAccessors.ts +18 -0
  127. package/src/packlets/file-tree/fileSystemAccessTreeAccessors.ts +100 -8
  128. package/src/packlets/file-tree/httpTreeAccessors.ts +448 -0
  129. package/src/packlets/file-tree/index.ts +1 -0
  130. package/src/packlets/file-tree/localStorageTreeAccessors.ts +53 -0
  131. package/src/test/unit/fileApiTreeAccessors.test.ts +69 -0
  132. package/src/test/unit/fileSystemAccessTreeAccessors.test.ts +341 -188
  133. package/src/test/unit/httpTreeAccessors.test.ts +1571 -0
  134. package/src/test/unit/localStorageTreeAccessors.test.ts +269 -1
  135. package/temp/build/typescript/ts_8nwakTlr.json +1 -1
  136. package/temp/coverage/crypto/browserHashProvider.ts.html +304 -0
  137. package/temp/coverage/crypto/index.html +116 -0
  138. package/temp/coverage/crypto-utils/browserCryptoProvider.ts.html +1 -1
  139. package/temp/coverage/crypto-utils/browserHashProvider.ts.html +1 -1
  140. package/temp/coverage/crypto-utils/index.html +1 -1
  141. package/temp/coverage/file-tree/directoryHandleStore.ts.html +1 -1
  142. package/temp/coverage/file-tree/fileApiTreeAccessors.ts.html +60 -6
  143. package/temp/coverage/file-tree/fileSystemAccessTreeAccessors.ts.html +410 -134
  144. package/temp/coverage/file-tree/httpTreeAccessors.ts.html +1429 -0
  145. package/temp/coverage/file-tree/index.html +35 -20
  146. package/temp/coverage/file-tree/localStorageTreeAccessors.ts.html +318 -159
  147. package/temp/coverage/helpers/fileTreeHelpers.ts.html +1 -1
  148. package/temp/coverage/helpers/index.html +1 -1
  149. package/temp/coverage/index.html +11 -11
  150. package/temp/coverage/lcov-report/crypto/browserHashProvider.ts.html +304 -0
  151. package/temp/coverage/lcov-report/crypto/index.html +116 -0
  152. package/temp/coverage/lcov-report/crypto-utils/browserCryptoProvider.ts.html +1 -1
  153. package/temp/coverage/lcov-report/crypto-utils/browserHashProvider.ts.html +1 -1
  154. package/temp/coverage/lcov-report/crypto-utils/index.html +1 -1
  155. package/temp/coverage/lcov-report/file-tree/directoryHandleStore.ts.html +1 -1
  156. package/temp/coverage/lcov-report/file-tree/fileApiTreeAccessors.ts.html +60 -6
  157. package/temp/coverage/lcov-report/file-tree/fileSystemAccessTreeAccessors.ts.html +410 -134
  158. package/temp/coverage/lcov-report/file-tree/httpTreeAccessors.ts.html +1429 -0
  159. package/temp/coverage/lcov-report/file-tree/index.html +35 -20
  160. package/temp/coverage/lcov-report/file-tree/localStorageTreeAccessors.ts.html +318 -159
  161. package/temp/coverage/lcov-report/helpers/fileTreeHelpers.ts.html +1 -1
  162. package/temp/coverage/lcov-report/helpers/index.html +1 -1
  163. package/temp/coverage/lcov-report/index.html +11 -11
  164. package/temp/coverage/lcov-report/url-utils/index.html +1 -1
  165. package/temp/coverage/lcov-report/url-utils/urlParams.ts.html +1 -1
  166. package/temp/coverage/lcov.info +2021 -1197
  167. package/temp/coverage/url-utils/index.html +1 -1
  168. package/temp/coverage/url-utils/urlParams.ts.html +1 -1
  169. package/temp/test/jest/haste-map-b931e4e63102f86c5bd4949f7dced44f-9d713eb41149188b4e5c0ae3d86d0a57-2ad8e16b24e391b8cdbe50b55c137169 +0 -0
  170. package/temp/test/jest/perf-cache-b931e4e63102f86c5bd4949f7dced44f-da39a3ee5e6b4b0d3255bfef95601890 +1 -0
  171. package/temp/ts-web-extras.api.json +1313 -354
  172. package/temp/ts-web-extras.api.md +33 -0
  173. package/.rush/temp/81e0881271ff236956b2f52e8ca99da6574c6e1e.tar.log +0 -223
  174. package/docs/index.md +0 -34
  175. package/docs/ts-web-extras.cryptoutils.browsercryptoprovider._constructor_.md +0 -50
  176. package/docs/ts-web-extras.cryptoutils.browsercryptoprovider.decrypt.md +0 -104
  177. package/docs/ts-web-extras.cryptoutils.browsercryptoprovider.derivekey.md +0 -88
  178. package/docs/ts-web-extras.cryptoutils.browsercryptoprovider.encrypt.md +0 -72
  179. package/docs/ts-web-extras.cryptoutils.browsercryptoprovider.frombase64.md +0 -56
  180. package/docs/ts-web-extras.cryptoutils.browsercryptoprovider.generatekey.md +0 -19
  181. package/docs/ts-web-extras.cryptoutils.browsercryptoprovider.generaterandombytes.md +0 -56
  182. package/docs/ts-web-extras.cryptoutils.browsercryptoprovider.md +0 -169
  183. package/docs/ts-web-extras.cryptoutils.browsercryptoprovider.tobase64.md +0 -56
  184. package/docs/ts-web-extras.cryptoutils.browserhashprovider.hashparts.md +0 -88
  185. package/docs/ts-web-extras.cryptoutils.browserhashprovider.hashstring.md +0 -72
  186. package/docs/ts-web-extras.cryptoutils.browserhashprovider.md +0 -66
  187. package/docs/ts-web-extras.cryptoutils.createbrowsercryptoprovider.md +0 -19
  188. package/docs/ts-web-extras.cryptoutils.md +0 -71
  189. package/docs/ts-web-extras.exportasjson.md +0 -70
  190. package/docs/ts-web-extras.exportusingfilesystemapi.md +0 -104
  191. package/docs/ts-web-extras.extractdirectorypath.md +0 -52
  192. package/docs/ts-web-extras.fileapitreeaccessors.create.md +0 -72
  193. package/docs/ts-web-extras.fileapitreeaccessors.createfromlocalstorage.md +0 -74
  194. package/docs/ts-web-extras.fileapitreeaccessors.createpersistent.md +0 -76
  195. package/docs/ts-web-extras.fileapitreeaccessors.extractfilemetadata.md +0 -54
  196. package/docs/ts-web-extras.fileapitreeaccessors.fromdirectoryupload.md +0 -72
  197. package/docs/ts-web-extras.fileapitreeaccessors.fromfilelist.md +0 -72
  198. package/docs/ts-web-extras.fileapitreeaccessors.getoriginalfile.md +0 -72
  199. package/docs/ts-web-extras.fileapitreeaccessors.md +0 -146
  200. package/docs/ts-web-extras.filepickeraccepttype.accept.md +0 -11
  201. package/docs/ts-web-extras.filepickeraccepttype.description.md +0 -11
  202. package/docs/ts-web-extras.filepickeraccepttype.md +0 -75
  203. package/docs/ts-web-extras.filesystemaccesstreeaccessors._constructor_.md +0 -114
  204. package/docs/ts-web-extras.filesystemaccesstreeaccessors.fileismutable.md +0 -52
  205. package/docs/ts-web-extras.filesystemaccesstreeaccessors.fromdirectoryhandle.md +0 -72
  206. package/docs/ts-web-extras.filesystemaccesstreeaccessors.getdirtypaths.md +0 -17
  207. package/docs/ts-web-extras.filesystemaccesstreeaccessors.isdirty.md +0 -17
  208. package/docs/ts-web-extras.filesystemaccesstreeaccessors.md +0 -159
  209. package/docs/ts-web-extras.filesystemaccesstreeaccessors.savefilecontents.md +0 -66
  210. package/docs/ts-web-extras.filesystemaccesstreeaccessors.synctodisk.md +0 -17
  211. package/docs/ts-web-extras.filesystemcreatewritableoptions_2.keepexistingdata.md +0 -11
  212. package/docs/ts-web-extras.filesystemcreatewritableoptions_2.md +0 -58
  213. package/docs/ts-web-extras.filesystemdirectoryhandle_2._symbol.asynciterator_.md +0 -15
  214. package/docs/ts-web-extras.filesystemdirectoryhandle_2.entries.md +0 -15
  215. package/docs/ts-web-extras.filesystemdirectoryhandle_2.getdirectoryhandle.md +0 -66
  216. package/docs/ts-web-extras.filesystemdirectoryhandle_2.getfilehandle.md +0 -66
  217. package/docs/ts-web-extras.filesystemdirectoryhandle_2.keys.md +0 -15
  218. package/docs/ts-web-extras.filesystemdirectoryhandle_2.kind.md +0 -11
  219. package/docs/ts-web-extras.filesystemdirectoryhandle_2.md +0 -146
  220. package/docs/ts-web-extras.filesystemdirectoryhandle_2.removeentry.md +0 -66
  221. package/docs/ts-web-extras.filesystemdirectoryhandle_2.resolve.md +0 -50
  222. package/docs/ts-web-extras.filesystemdirectoryhandle_2.values.md +0 -15
  223. package/docs/ts-web-extras.filesystemfilehandle_2.createwritable.md +0 -52
  224. package/docs/ts-web-extras.filesystemfilehandle_2.getfile.md +0 -15
  225. package/docs/ts-web-extras.filesystemfilehandle_2.kind.md +0 -11
  226. package/docs/ts-web-extras.filesystemfilehandle_2.md +0 -92
  227. package/docs/ts-web-extras.filesystemgetdirectoryoptions_2.create.md +0 -11
  228. package/docs/ts-web-extras.filesystemgetdirectoryoptions_2.md +0 -58
  229. package/docs/ts-web-extras.filesystemgetfileoptions_2.create.md +0 -11
  230. package/docs/ts-web-extras.filesystemgetfileoptions_2.md +0 -58
  231. package/docs/ts-web-extras.filesystemhandle_2.issameentry.md +0 -50
  232. package/docs/ts-web-extras.filesystemhandle_2.kind.md +0 -11
  233. package/docs/ts-web-extras.filesystemhandle_2.md +0 -119
  234. package/docs/ts-web-extras.filesystemhandle_2.name.md +0 -11
  235. package/docs/ts-web-extras.filesystemhandle_2.querypermission.md +0 -52
  236. package/docs/ts-web-extras.filesystemhandle_2.requestpermission.md +0 -52
  237. package/docs/ts-web-extras.filesystemhandlepermissiondescriptor.md +0 -58
  238. package/docs/ts-web-extras.filesystemhandlepermissiondescriptor.mode.md +0 -11
  239. package/docs/ts-web-extras.filesystemremoveoptions_2.md +0 -58
  240. package/docs/ts-web-extras.filesystemremoveoptions_2.recursive.md +0 -11
  241. package/docs/ts-web-extras.filesystemwritablefilestream_2.md +0 -57
  242. package/docs/ts-web-extras.filesystemwritablefilestream_2.seek.md +0 -50
  243. package/docs/ts-web-extras.filesystemwritablefilestream_2.truncate.md +0 -50
  244. package/docs/ts-web-extras.filesystemwritablefilestream_2.write.md +0 -50
  245. package/docs/ts-web-extras.filetreehelpers.defaultfileapitreeinitparams.md +0 -13
  246. package/docs/ts-web-extras.filetreehelpers.extractfilelistmetadata.md +0 -56
  247. package/docs/ts-web-extras.filetreehelpers.extractfilemetadata.md +0 -56
  248. package/docs/ts-web-extras.filetreehelpers.fromdirectoryupload.md +0 -76
  249. package/docs/ts-web-extras.filetreehelpers.fromfilelist.md +0 -76
  250. package/docs/ts-web-extras.filetreehelpers.getoriginalfile.md +0 -72
  251. package/docs/ts-web-extras.filetreehelpers.md +0 -102
  252. package/docs/ts-web-extras.idirectoryhandletreeinitializer.dirhandles.md +0 -11
  253. package/docs/ts-web-extras.idirectoryhandletreeinitializer.md +0 -100
  254. package/docs/ts-web-extras.idirectoryhandletreeinitializer.nonrecursive.md +0 -11
  255. package/docs/ts-web-extras.idirectoryhandletreeinitializer.prefix.md +0 -11
  256. package/docs/ts-web-extras.ifilehandletreeinitializer.filehandles.md +0 -11
  257. package/docs/ts-web-extras.ifilehandletreeinitializer.md +0 -79
  258. package/docs/ts-web-extras.ifilehandletreeinitializer.prefix.md +0 -11
  259. package/docs/ts-web-extras.ifilelisttreeinitializer.filelist.md +0 -11
  260. package/docs/ts-web-extras.ifilelisttreeinitializer.md +0 -58
  261. package/docs/ts-web-extras.ifilemetadata.lastmodified.md +0 -11
  262. package/docs/ts-web-extras.ifilemetadata.md +0 -124
  263. package/docs/ts-web-extras.ifilemetadata.name.md +0 -11
  264. package/docs/ts-web-extras.ifilemetadata.path.md +0 -11
  265. package/docs/ts-web-extras.ifilemetadata.size.md +0 -11
  266. package/docs/ts-web-extras.ifilemetadata.type.md +0 -11
  267. package/docs/ts-web-extras.ifilesystemaccesstreeparams.autosync.md +0 -13
  268. package/docs/ts-web-extras.ifilesystemaccesstreeparams.md +0 -78
  269. package/docs/ts-web-extras.ifilesystemaccesstreeparams.requirewritepermission.md +0 -13
  270. package/docs/ts-web-extras.ifsaccessapis.md +0 -56
  271. package/docs/ts-web-extras.ifsaccessapis.showdirectorypicker.md +0 -52
  272. package/docs/ts-web-extras.ifsaccessapis.showopenfilepicker.md +0 -52
  273. package/docs/ts-web-extras.ifsaccessapis.showsavefilepicker.md +0 -52
  274. package/docs/ts-web-extras.ilocalstoragetreeparams.autosync.md +0 -13
  275. package/docs/ts-web-extras.ilocalstoragetreeparams.md +0 -97
  276. package/docs/ts-web-extras.ilocalstoragetreeparams.pathtokeymap.md +0 -13
  277. package/docs/ts-web-extras.ilocalstoragetreeparams.storage.md +0 -13
  278. package/docs/ts-web-extras.isdirectoryhandle.md +0 -56
  279. package/docs/ts-web-extras.isfilehandle.md +0 -56
  280. package/docs/ts-web-extras.isfilepath.md +0 -52
  281. package/docs/ts-web-extras.iurlconfigoptions.config.md +0 -13
  282. package/docs/ts-web-extras.iurlconfigoptions.configstartdir.md +0 -13
  283. package/docs/ts-web-extras.iurlconfigoptions.contextfilter.md +0 -13
  284. package/docs/ts-web-extras.iurlconfigoptions.input.md +0 -13
  285. package/docs/ts-web-extras.iurlconfigoptions.inputstartdir.md +0 -13
  286. package/docs/ts-web-extras.iurlconfigoptions.interactive.md +0 -13
  287. package/docs/ts-web-extras.iurlconfigoptions.loadzip.md +0 -13
  288. package/docs/ts-web-extras.iurlconfigoptions.maxdistance.md +0 -13
  289. package/docs/ts-web-extras.iurlconfigoptions.md +0 -286
  290. package/docs/ts-web-extras.iurlconfigoptions.qualifierdefaults.md +0 -13
  291. package/docs/ts-web-extras.iurlconfigoptions.reducequalifiers.md +0 -13
  292. package/docs/ts-web-extras.iurlconfigoptions.resourcetypes.md +0 -13
  293. package/docs/ts-web-extras.iurlconfigoptions.zipfile.md +0 -13
  294. package/docs/ts-web-extras.iurlconfigoptions.zippath.md +0 -13
  295. package/docs/ts-web-extras.localstoragetreeaccessors.fileismutable.md +0 -56
  296. package/docs/ts-web-extras.localstoragetreeaccessors.fromstorage.md +0 -56
  297. package/docs/ts-web-extras.localstoragetreeaccessors.getdirtypaths.md +0 -19
  298. package/docs/ts-web-extras.localstoragetreeaccessors.isdirty.md +0 -19
  299. package/docs/ts-web-extras.localstoragetreeaccessors.md +0 -131
  300. package/docs/ts-web-extras.localstoragetreeaccessors.savefilecontents.md +0 -72
  301. package/docs/ts-web-extras.localstoragetreeaccessors.synctodisk.md +0 -19
  302. package/docs/ts-web-extras.md +0 -558
  303. package/docs/ts-web-extras.parsecontextfilter.md +0 -52
  304. package/docs/ts-web-extras.parsequalifierdefaults.md +0 -52
  305. package/docs/ts-web-extras.parseresourcetypes.md +0 -52
  306. package/docs/ts-web-extras.parseurlparameters.md +0 -17
  307. package/docs/ts-web-extras.safeshowdirectorypicker.md +0 -72
  308. package/docs/ts-web-extras.safeshowopenfilepicker.md +0 -72
  309. package/docs/ts-web-extras.safeshowsavefilepicker.md +0 -72
  310. package/docs/ts-web-extras.showdirectorypickeroptions.id.md +0 -11
  311. package/docs/ts-web-extras.showdirectorypickeroptions.md +0 -96
  312. package/docs/ts-web-extras.showdirectorypickeroptions.mode.md +0 -11
  313. package/docs/ts-web-extras.showdirectorypickeroptions.startin.md +0 -11
  314. package/docs/ts-web-extras.showopenfilepickeroptions.excludeacceptalloption.md +0 -11
  315. package/docs/ts-web-extras.showopenfilepickeroptions.id.md +0 -11
  316. package/docs/ts-web-extras.showopenfilepickeroptions.md +0 -134
  317. package/docs/ts-web-extras.showopenfilepickeroptions.multiple.md +0 -11
  318. package/docs/ts-web-extras.showopenfilepickeroptions.startin.md +0 -11
  319. package/docs/ts-web-extras.showopenfilepickeroptions.types.md +0 -11
  320. package/docs/ts-web-extras.showsavefilepickeroptions.excludeacceptalloption.md +0 -11
  321. package/docs/ts-web-extras.showsavefilepickeroptions.id.md +0 -11
  322. package/docs/ts-web-extras.showsavefilepickeroptions.md +0 -134
  323. package/docs/ts-web-extras.showsavefilepickeroptions.startin.md +0 -11
  324. package/docs/ts-web-extras.showsavefilepickeroptions.suggestedname.md +0 -11
  325. package/docs/ts-web-extras.showsavefilepickeroptions.types.md +0 -11
  326. package/docs/ts-web-extras.supportsfilesystemaccess.md +0 -56
  327. package/docs/ts-web-extras.treeinitializer.md +0 -15
  328. package/docs/ts-web-extras.wellknowndirectory.md +0 -13
  329. package/docs/ts-web-extras.windowwithfsaccess.md +0 -15
  330. package/temp/test/jest/haste-map-7492f1b44480e0cdd1f220078fb3afd8-c8dd6c3430605adeb2f1cadf4f75e791-8c9336785555d572065b28c111982ba4 +0 -0
  331. package/temp/test/jest/perf-cache-7492f1b44480e0cdd1f220078fb3afd8-da39a3ee5e6b4b0d3255bfef95601890 +0 -1
  332. /package/temp/test/jest/{jest-transform-cache-7492f1b44480e0cdd1f220078fb3afd8-79ef2876fae7ca75eedb2aa53dc48338/8d/package_8dcbedef69e4299f0f51fcda8f4f1c8e → jest-transform-cache-b931e4e63102f86c5bd4949f7dced44f-79ef2876fae7ca75eedb2aa53dc48338/b5/package_b5f57afc9ec2c011239b1608ee5bdfa5} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"localStorageTreeAccessors.test.js","sourceRoot":"","sources":["../../../src/test/unit/localStorageTreeAccessors.test.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;AAEH,8BAA4B;AAC5B,oDAA6C;AAC7C,wDAA2F;AAE3F;;GAEG;AACH,MAAM,WAAW;IAAjB;QACU,UAAK,GAAwB,IAAI,GAAG,EAAE,CAAC;IA0BjD,CAAC;IAxBC,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;IACzB,CAAC;IAED,KAAK;QACH,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;IACrB,CAAC;IAED,OAAO,CAAC,GAAW;;QACjB,OAAO,MAAA,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,mCAAI,IAAI,CAAC;IACrC,CAAC;IAED,GAAG,CAAC,KAAa;;QACf,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;QAC3C,OAAO,MAAA,IAAI,CAAC,KAAK,CAAC,mCAAI,IAAI,CAAC;IAC7B,CAAC;IAED,UAAU,CAAC,GAAW;QACpB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACzB,CAAC;IAED,OAAO,CAAC,GAAW,EAAE,KAAa;QAChC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,E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S,CAAC,UAAU,EAAE,CAAC;YAChD,MAAM,CAAC,UAAU,CAAC,CAAC,UAAU,CAAC,6BAA6B,CAAC,CAAC;QAC/D,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,2BAA2B,EAAE,GAAG,EAAE;YACrC,WAAW,CAAC,OAAO,CAAC,qBAAqB,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,WAAW,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;YAE3F,MAAM,SAAS,GAAG,qCAAyB,CAAC,WAAW,CAAC;gBACtD,YAAY,EAAE;oBACZ,mBAAmB,EAAE,qBAAqB;iBAC3C;gBACD,OAAO,EAAE,WAAW;gBACpB,OAAO,EAAE,IAAI;gBACb,QAAQ,EAAE,IAAI;aACf,CAAC,CAAC,OAAO,EAAE,CAAC;YAEb,mEAAmE;YACnE,MAAM,UAAU,GAAG,SAAS,CAAC,gBAAgB,CAAC,uBAAuB,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;YACpG,MAAM,CAAC,UAAU,CAAC,CAAC,UAAU,CAAC,qCAAqC,CAAC,CAAC;QACvE,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["/*\n * Copyright (c) 2026 Erik Fortune\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\nimport '@fgv/ts-utils-jest';\nimport { FileTree } from '@fgv/ts-json-base';\nimport { LocalStorageTreeAccessors, FileApiTreeAccessors } from '../../packlets/file-tree';\n\n/**\n * Mock Storage implementation for testing\n */\nclass MockStorage implements Storage {\n private _data: Map<string, string> = new Map();\n\n get length(): number {\n return this._data.size;\n }\n\n clear(): void {\n this._data.clear();\n }\n\n getItem(key: string): string | null {\n return this._data.get(key) ?? null;\n }\n\n key(index: number): string | null {\n const keys = Array.from(this._data.keys());\n return keys[index] ?? null;\n }\n\n removeItem(key: string): void {\n this._data.delete(key);\n }\n\n setItem(key: string, value: string): void {\n this._data.set(key, value);\n }\n}\n\ndescribe('LocalStorageTreeAccessors', () => {\n let mockStorage: MockStorage;\n\n beforeEach(() => {\n mockStorage = new MockStorage();\n });\n\n describe('fromStorage', () => {\n test('creates accessors from empty storage', () => {\n const result = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage\n });\n\n expect(result).toSucceedAndSatisfy((accessors) => {\n expect(accessors).toBeInstanceOf(LocalStorageTreeAccessors);\n expect(accessors.isDirty()).toBe(false);\n });\n });\n\n test('loads collections from storage', () => {\n mockStorage.setItem(\n 'test:ingredients:v1',\n JSON.stringify({\n collection1: { items: { item1: {} } },\n collection2: { items: { item2: {} } }\n })\n );\n\n const result = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage\n });\n\n expect(result).toSucceedAndSatisfy((accessors) => {\n expect(accessors.getFileContents('/data/ingredients/collection1.json')).toSucceed();\n expect(accessors.getFileContents('/data/ingredients/collection2.json')).toSucceed();\n });\n });\n\n test('loads from multiple storage keys', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ ing1: { items: {} } }));\n mockStorage.setItem('test:fillings:v1', JSON.stringify({ fill1: { items: {} } }));\n\n const result = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1',\n '/data/fillings': 'test:fillings:v1'\n },\n storage: mockStorage\n });\n\n expect(result).toSucceedAndSatisfy((accessors) => {\n expect(accessors.getFileContents('/data/ingredients/ing1.json')).toSucceed();\n expect(accessors.getFileContents('/data/fillings/fill1.json')).toSucceed();\n });\n });\n\n test('skips corrupted JSON data', () => {\n mockStorage.setItem('test:ingredients:v1', 'not valid json');\n\n const result = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage\n });\n\n expect(result).toSucceedAndSatisfy((accessors) => {\n expect(accessors).toBeInstanceOf(LocalStorageTreeAccessors);\n });\n });\n\n test('skips non-object JSON', () => {\n mockStorage.setItem('test:ingredients:v1', '\"string value\"');\n\n const result = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage\n });\n\n expect(result).toSucceedAndSatisfy((accessors) => {\n expect(accessors).toBeInstanceOf(LocalStorageTreeAccessors);\n });\n });\n\n test('loads string values (new format) with inferred extension', () => {\n mockStorage.setItem(\n 'test:ingredients:v1',\n JSON.stringify({\n jsonCollection: '{\"items\":{}}',\n yamlCollection: 'metadata:\\n name: test\\nitems: {}'\n })\n );\n\n const result = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage\n });\n\n expect(result).toSucceedAndSatisfy((accessors) => {\n expect(accessors.getFileContents('/data/ingredients/jsonCollection.json')).toSucceedWith(\n '{\"items\":{}}'\n );\n expect(accessors.getFileContents('/data/ingredients/yamlCollection.yaml')).toSucceedWith(\n 'metadata:\\n name: test\\nitems: {}'\n );\n });\n });\n\n test('skips non-object non-string collection values', () => {\n mockStorage.setItem(\n 'test:ingredients:v1',\n JSON.stringify({\n good: { items: {} },\n bad: 42\n })\n );\n\n const result = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage\n });\n\n expect(result).toSucceedAndSatisfy((accessors) => {\n expect(accessors.getFileContents('/data/ingredients/good.json')).toSucceed();\n });\n });\n\n test('applies prefix parameter', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const result = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n prefix: '/myapp'\n });\n\n expect(result).toSucceedAndSatisfy((accessors) => {\n expect(accessors.getFileContents('/myapp/data/ingredients/collection1.json')).toSucceed();\n });\n });\n\n test('succeeds with empty storage when no data present', () => {\n const result = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage\n });\n\n expect(result).toSucceedAndSatisfy((accessors) => {\n expect(accessors).toBeInstanceOf(LocalStorageTreeAccessors);\n });\n });\n });\n\n describe('dirty tracking', () => {\n test('starts with no dirty files', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n expect(accessors.isDirty()).toBe(false);\n expect(accessors.getDirtyPaths()).toEqual([]);\n });\n\n test('marks files as dirty after modification', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n const newContent = JSON.stringify({ items: { modified: true } });\n accessors.saveFileContents('/data/ingredients/collection1.json', newContent).orThrow();\n\n expect(accessors.isDirty()).toBe(true);\n expect(accessors.getDirtyPaths()).toContain('/data/ingredients/collection1.json');\n });\n\n test('tracks multiple dirty files', () => {\n mockStorage.setItem(\n 'test:ingredients:v1',\n JSON.stringify({\n collection1: { items: {} },\n collection2: { items: {} }\n })\n );\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n accessors\n .saveFileContents('/data/ingredients/collection1.json', JSON.stringify({ items: { a: 1 } }))\n .orThrow();\n accessors\n .saveFileContents('/data/ingredients/collection2.json', JSON.stringify({ items: { b: 2 } }))\n .orThrow();\n\n expect(accessors.isDirty()).toBe(true);\n expect(accessors.getDirtyPaths()).toHaveLength(2);\n });\n });\n\n describe('syncToDisk', () => {\n test('syncs modified files to storage', async () => {\n mockStorage.setItem(\n 'test:ingredients:v1',\n JSON.stringify({ collection1: { items: { original: true } } })\n );\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n const newContent = JSON.stringify({ items: { modified: true } });\n accessors.saveFileContents('/data/ingredients/collection1.json', newContent).orThrow();\n\n const syncResult = await accessors.syncToDisk();\n expect(syncResult).toSucceed();\n\n const stored = mockStorage.getItem('test:ingredients:v1');\n expect(stored).toBeTruthy();\n const parsed = JSON.parse(stored!);\n // New format: values are raw content strings\n expect(parsed.collection1).toBe(newContent);\n });\n\n test('clears dirty state after successful sync', async () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n accessors\n .saveFileContents('/data/ingredients/collection1.json', JSON.stringify({ items: { a: 1 } }))\n .orThrow();\n expect(accessors.isDirty()).toBe(true);\n\n await accessors.syncToDisk();\n expect(accessors.isDirty()).toBe(false);\n expect(accessors.getDirtyPaths()).toEqual([]);\n });\n\n test('syncs multiple files to same storage key', async () => {\n mockStorage.setItem(\n 'test:ingredients:v1',\n JSON.stringify({\n collection1: { items: {} },\n collection2: { items: {} }\n })\n );\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n const content1 = JSON.stringify({ items: { a: 1 } });\n const content2 = JSON.stringify({ items: { b: 2 } });\n accessors.saveFileContents('/data/ingredients/collection1.json', content1).orThrow();\n accessors.saveFileContents('/data/ingredients/collection2.json', content2).orThrow();\n\n await accessors.syncToDisk();\n\n const stored = mockStorage.getItem('test:ingredients:v1');\n const parsed = JSON.parse(stored!);\n // New format: values are raw content strings\n expect(parsed.collection1).toBe(content1);\n expect(parsed.collection2).toBe(content2);\n });\n\n test('syncs files to different storage keys', async () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ ing1: { items: {} } }));\n mockStorage.setItem('test:fillings:v1', JSON.stringify({ fill1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1',\n '/data/fillings': 'test:fillings:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n accessors\n .saveFileContents('/data/ingredients/ing1.json', JSON.stringify({ items: { a: 1 } }))\n .orThrow();\n accessors.saveFileContents('/data/fillings/fill1.json', JSON.stringify({ items: { b: 2 } })).orThrow();\n\n await accessors.syncToDisk();\n\n const ingContent = JSON.stringify({ items: { a: 1 } });\n const fillContent = JSON.stringify({ items: { b: 2 } });\n const ingStored = JSON.parse(mockStorage.getItem('test:ingredients:v1')!);\n const fillStored = JSON.parse(mockStorage.getItem('test:fillings:v1')!);\n // New format: values are raw content strings\n expect(ingStored.ing1).toBe(ingContent);\n expect(fillStored.fill1).toBe(fillContent);\n });\n\n test('succeeds with no dirty files', async () => {\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage\n }).orThrow();\n\n const result = await accessors.syncToDisk();\n expect(result).toSucceed();\n });\n\n test('preserves existing collections when syncing', async () => {\n mockStorage.setItem(\n 'test:ingredients:v1',\n JSON.stringify({\n existing: { items: { keep: true } },\n toModify: { items: { original: true } }\n })\n );\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n const modifiedContent = JSON.stringify({ items: { modified: true } });\n accessors.saveFileContents('/data/ingredients/toModify.json', modifiedContent).orThrow();\n await accessors.syncToDisk();\n\n const stored = JSON.parse(mockStorage.getItem('test:ingredients:v1')!);\n // existing was loaded from legacy format and not modified, so it stays as legacy object\n // toModify was saved with new content, so it's now a raw string\n expect(stored.toModify).toBe(modifiedContent);\n });\n });\n\n describe('autoSync mode', () => {\n test('automatically syncs on save when enabled', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true,\n autoSync: true\n }).orThrow();\n\n accessors\n .saveFileContents('/data/ingredients/collection1.json', JSON.stringify({ items: { auto: true } }))\n .orThrow();\n\n expect(accessors.isDirty()).toBe(false);\n const autoContent = JSON.stringify({ items: { auto: true } });\n const stored = JSON.parse(mockStorage.getItem('test:ingredients:v1')!);\n // New format: values are raw content strings\n expect(stored.collection1).toBe(autoContent);\n });\n\n test('does not auto-sync when disabled', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true,\n autoSync: false\n }).orThrow();\n\n accessors\n .saveFileContents('/data/ingredients/collection1.json', JSON.stringify({ items: { manual: true } }))\n .orThrow();\n\n expect(accessors.isDirty()).toBe(true);\n // Storage should still have the original legacy format (not yet synced)\n const stored = JSON.parse(mockStorage.getItem('test:ingredients:v1')!);\n expect(stored.collection1).toEqual({ items: {} });\n });\n });\n\n describe('fileIsMutable', () => {\n test('returns persistent detail when mutable', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n expect(accessors.fileIsMutable('/data/ingredients/collection1.json')).toSucceedWithDetail(\n true,\n 'persistent'\n );\n });\n\n test('returns not-mutable when not mutable', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: false\n }).orThrow();\n\n const result = accessors.fileIsMutable('/data/ingredients/collection1.json');\n expect(result.isFailure()).toBe(true);\n if (result.isFailure()) {\n expect(result.detail).toBe('not-mutable');\n }\n });\n });\n\n describe('integration with FileApiTreeAccessors', () => {\n test('createFromLocalStorage creates FileTree with persistent accessors', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const result = FileApiTreeAccessors.createFromLocalStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n });\n\n expect(result).toSucceed();\n\n const tree = result.orThrow();\n expect(tree).toBeInstanceOf(FileTree.FileTree);\n expect(FileTree.isPersistentAccessors(tree.hal)).toBe(true);\n\n const file = tree.getFile('/data/ingredients/collection1.json').orThrow();\n expect(file.getIsMutable()).toSucceedWithDetail(true, 'persistent');\n });\n\n test('createFromLocalStorage with multiple paths', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ ing1: { items: {} } }));\n mockStorage.setItem('test:fillings:v1', JSON.stringify({ fill1: { items: {} } }));\n\n const result = FileApiTreeAccessors.createFromLocalStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1',\n '/data/fillings': 'test:fillings:v1'\n },\n storage: mockStorage,\n mutable: true\n });\n\n expect(result).toSucceedAndSatisfy((tree) => {\n expect(tree.getFile('/data/ingredients/ing1.json')).toSucceed();\n expect(tree.getFile('/data/fillings/fill1.json')).toSucceed();\n });\n });\n\n test('createFromLocalStorage with empty storage', () => {\n const result = FileApiTreeAccessors.createFromLocalStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage\n });\n\n expect(result).toSucceedAndSatisfy((tree) => {\n expect(tree).toBeInstanceOf(FileTree.FileTree);\n });\n });\n\n test('createFromLocalStorage fails when localStorage is not available', () => {\n // Remove the global window object to ensure no fallback\n const originalWindow = (global as any).window;\n delete (global as any).window;\n\n const result = FileApiTreeAccessors.createFromLocalStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: undefined\n });\n\n // Restore window\n (global as any).window = originalWindow;\n\n expect(result).toFailWith(/localStorage is not available/i);\n });\n });\n\n describe('path matching and error handling', () => {\n test('handles files outside configured paths', async () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n // Try to save a file outside the configured path\n const saveResult = accessors.saveFileContents('/other/path/file.json', JSON.stringify({ test: 1 }));\n expect(saveResult).toSucceed();\n\n // But syncing should fail because no storage key is configured\n const syncResult = await accessors.syncToDisk();\n expect(syncResult).toFailWith(/No storage key configured for path/i);\n });\n\n test('handles files inside configured paths', async () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n // Save a file inside the configured path\n accessors.saveFileContents('/data/ingredients/newfile.json', JSON.stringify({ test: 1 })).orThrow();\n\n // Syncing should succeed\n const syncResult = await accessors.syncToDisk();\n expect(syncResult).toSucceed();\n });\n\n test('handles failed content retrieval during sync', async () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n // Modify a file\n accessors.saveFileContents('/data/ingredients/collection1.json', JSON.stringify({ test: 1 })).orThrow();\n\n // Override getFileContents to fail\n const originalGetFileContents = accessors.getFileContents.bind(accessors);\n accessors.getFileContents = jest.fn((path: string) => {\n if (path === '/data/ingredients/collection1.json') {\n return { isSuccess: () => false, isFailure: () => true, message: 'File not found' } as any;\n }\n return originalGetFileContents(path);\n });\n\n const syncResult = await accessors.syncToDisk();\n expect(syncResult).toFailWith(/Failed to get file contents.*File not found/i);\n });\n\n test('handles corrupted JSON in localStorage during sync', async () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n // Modify a file\n accessors.saveFileContents('/data/ingredients/collection1.json', JSON.stringify({ test: 1 })).orThrow();\n\n // Corrupt the existing storage data\n mockStorage.setItem('test:ingredients:v1', 'not valid json');\n\n // Sync should still succeed by starting fresh\n const syncResult = await accessors.syncToDisk();\n expect(syncResult).toSucceed();\n\n // Verify the data was written correctly despite corrupted previous data\n const stored = mockStorage.getItem('test:ingredients:v1');\n const parsed = JSON.parse(stored!);\n // New format: values are raw content strings\n expect(parsed.collection1).toBe(JSON.stringify({ test: 1 }));\n });\n\n test('syncs non-JSON content (YAML) without error', async () => {\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n // Create and save a YAML file\n const yamlContent = 'metadata:\\n name: test\\nitems: {}';\n accessors.saveFileContents('/data/ingredients/my-collection.yaml', yamlContent).orThrow();\n\n const syncResult = await accessors.syncToDisk();\n expect(syncResult).toSucceed();\n\n const stored = JSON.parse(mockStorage.getItem('test:ingredients:v1')!);\n expect(stored['my-collection']).toBe(yamlContent);\n });\n\n test('handles multiple sync failures with aggregated errors', async () => {\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n // Add files outside configured paths\n accessors.saveFileContents('/other1/file1.json', JSON.stringify({ test: 1 })).orThrow();\n accessors.saveFileContents('/other2/file2.json', JSON.stringify({ test: 2 })).orThrow();\n\n const syncResult = await accessors.syncToDisk();\n expect(syncResult).toFailWith(/Failed to sync 2 file\\(s\\)/i);\n });\n\n test('handles auto-sync failure', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true,\n autoSync: true\n }).orThrow();\n\n // Try to save a file outside configured path with autoSync enabled\n const saveResult = accessors.saveFileContents('/other/path/file.json', JSON.stringify({ test: 1 }));\n expect(saveResult).toFailWith(/No storage key configured for path/i);\n });\n });\n});\n"]}
1
+ {"version":3,"file":"localStorageTreeAccessors.test.js","sourceRoot":"","sources":["../../../src/test/unit/localStorageTreeAccessors.test.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;AAEH,8BAA4B;AAC5B,oDAA6C;AAC7C,wDAA2F;AAE3F;;GAEG;AACH,MAAM,WAAW;IAAjB;QACU,UAAK,GAAwB,IAAI,GAAG,EAAE,CAAC;IA0BjD,CAAC;IAxBC,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;IACzB,CAAC;IAED,KAAK;QACH,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;IACrB,CAAC;IAED,OAAO,CAAC,GAAW;;QACjB,OAAO,MAAA,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,mCAAI,IAAI,CAAC;IACrC,CAAC;IAED,GAAG,CAAC,KAAa;;QACf,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;QAC3C,OAAO,MAAA,IAAI,CAAC,KAAK,CAAC,mCAAI,IAAI,CAAC;IAC7B,CAAC;IAED,UAAU,CAAC,GAAW;QACpB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACzB,CAAC;IAED,OAAO,CAAC,GAAW,EAAE,KAAa;QAChC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IAC7B,CAAC;CACF;AAED,QAAQ,CAAC,2BAA2B,EAAE,GAAG,EAAE;IACzC,IAAI,WAAwB,CAAC;IAE7B,UAAU,CAAC,GAAG,EAAE;QACd,WAAW,GAAG,IAAI,WAAW,EAAE,CAAC;IAClC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F,+EAA+E;YAC/E,iDAAiD;YACjD,MAAM,SAAS,GAAG,qCAAyB,CAAC,WAAW,CAAC;gBACtD,YAAY,EAAE;oBACZ,mBAAmB,EAAE,qBAAqB;iBAC3C;gBACD,OAAO,EAAE,WAAW;gBACpB,OAAO,EAAE,IAAI;aACd,CAAC,CAAC,OAAO,EAAE,CAAC;YAEb,0CAA0C;YAC1C,SAAS,CAAC,gBAAgB,CAAC,yBAAyB,EAAE,cAAc,CAAC,CAAC,OAAO,EAAE,CAAC;YAEhF,MAAM,UAAU,GAAG,MAAM,SAAS,CAAC,UAAU,EAAE,CAAC;YAChD,MAAM,CAAC,UAAU,CAAC,CAAC,SAAS,EAAE,CAAC;YAE/B,qFAAqF;YACrF,MAAM,MAAM,GAAG,WAAW,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;YAC1D,MAAM,CAAC,MAAM,CAAC,CAAC,UAAU,EAAE,CAAC;YAC5B,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAO,CAA4B,CAAC;YAC9D,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAC5C,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["/*\n * Copyright (c) 2026 Erik Fortune\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\nimport '@fgv/ts-utils-jest';\nimport { FileTree } from '@fgv/ts-json-base';\nimport { LocalStorageTreeAccessors, FileApiTreeAccessors } from '../../packlets/file-tree';\n\n/**\n * Mock Storage implementation for testing\n */\nclass MockStorage implements Storage {\n private _data: Map<string, string> = new Map();\n\n get length(): number {\n return this._data.size;\n }\n\n clear(): void {\n this._data.clear();\n }\n\n getItem(key: string): string | null {\n return this._data.get(key) ?? null;\n }\n\n key(index: number): string | null {\n const keys = Array.from(this._data.keys());\n return keys[index] ?? null;\n }\n\n removeItem(key: string): void {\n this._data.delete(key);\n }\n\n setItem(key: string, value: string): void {\n this._data.set(key, value);\n }\n}\n\ndescribe('LocalStorageTreeAccessors', () => {\n let mockStorage: MockStorage;\n\n beforeEach(() => {\n mockStorage = new MockStorage();\n });\n\n describe('fromStorage', () => {\n test('creates accessors from empty storage', () => {\n const result = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage\n });\n\n expect(result).toSucceedAndSatisfy((accessors) => {\n expect(accessors).toBeInstanceOf(LocalStorageTreeAccessors);\n expect(accessors.isDirty()).toBe(false);\n });\n });\n\n test('loads collections from storage', () => {\n mockStorage.setItem(\n 'test:ingredients:v1',\n JSON.stringify({\n collection1: { items: { item1: {} } },\n collection2: { items: { item2: {} } }\n })\n );\n\n const result = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage\n });\n\n expect(result).toSucceedAndSatisfy((accessors) => {\n expect(accessors.getFileContents('/data/ingredients/collection1.json')).toSucceed();\n expect(accessors.getFileContents('/data/ingredients/collection2.json')).toSucceed();\n });\n });\n\n test('loads from multiple storage keys', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ ing1: { items: {} } }));\n mockStorage.setItem('test:fillings:v1', JSON.stringify({ fill1: { items: {} } }));\n\n const result = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1',\n '/data/fillings': 'test:fillings:v1'\n },\n storage: mockStorage\n });\n\n expect(result).toSucceedAndSatisfy((accessors) => {\n expect(accessors.getFileContents('/data/ingredients/ing1.json')).toSucceed();\n expect(accessors.getFileContents('/data/fillings/fill1.json')).toSucceed();\n });\n });\n\n test('skips corrupted JSON data', () => {\n mockStorage.setItem('test:ingredients:v1', 'not valid json');\n\n const result = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage\n });\n\n expect(result).toSucceedAndSatisfy((accessors) => {\n expect(accessors).toBeInstanceOf(LocalStorageTreeAccessors);\n });\n });\n\n test('skips non-object JSON', () => {\n mockStorage.setItem('test:ingredients:v1', '\"string value\"');\n\n const result = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage\n });\n\n expect(result).toSucceedAndSatisfy((accessors) => {\n expect(accessors).toBeInstanceOf(LocalStorageTreeAccessors);\n });\n });\n\n test('loads string values (new format) with inferred extension', () => {\n mockStorage.setItem(\n 'test:ingredients:v1',\n JSON.stringify({\n jsonCollection: '{\"items\":{}}',\n yamlCollection: 'metadata:\\n name: test\\nitems: {}'\n })\n );\n\n const result = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage\n });\n\n expect(result).toSucceedAndSatisfy((accessors) => {\n expect(accessors.getFileContents('/data/ingredients/jsonCollection.json')).toSucceedWith(\n '{\"items\":{}}'\n );\n expect(accessors.getFileContents('/data/ingredients/yamlCollection.yaml')).toSucceedWith(\n 'metadata:\\n name: test\\nitems: {}'\n );\n });\n });\n\n test('skips non-object non-string collection values', () => {\n mockStorage.setItem(\n 'test:ingredients:v1',\n JSON.stringify({\n good: { items: {} },\n bad: 42\n })\n );\n\n const result = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage\n });\n\n expect(result).toSucceedAndSatisfy((accessors) => {\n expect(accessors.getFileContents('/data/ingredients/good.json')).toSucceed();\n });\n });\n\n test('applies prefix parameter', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const result = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n prefix: '/myapp'\n });\n\n expect(result).toSucceedAndSatisfy((accessors) => {\n expect(accessors.getFileContents('/myapp/data/ingredients/collection1.json')).toSucceed();\n });\n });\n\n test('succeeds with empty storage when no data present', () => {\n const result = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage\n });\n\n expect(result).toSucceedAndSatisfy((accessors) => {\n expect(accessors).toBeInstanceOf(LocalStorageTreeAccessors);\n });\n });\n });\n\n describe('dirty tracking', () => {\n test('starts with no dirty files', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n expect(accessors.isDirty()).toBe(false);\n expect(accessors.getDirtyPaths()).toEqual([]);\n });\n\n test('marks files as dirty after modification', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n const newContent = JSON.stringify({ items: { modified: true } });\n accessors.saveFileContents('/data/ingredients/collection1.json', newContent).orThrow();\n\n expect(accessors.isDirty()).toBe(true);\n expect(accessors.getDirtyPaths()).toContain('/data/ingredients/collection1.json');\n });\n\n test('tracks multiple dirty files', () => {\n mockStorage.setItem(\n 'test:ingredients:v1',\n JSON.stringify({\n collection1: { items: {} },\n collection2: { items: {} }\n })\n );\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n accessors\n .saveFileContents('/data/ingredients/collection1.json', JSON.stringify({ items: { a: 1 } }))\n .orThrow();\n accessors\n .saveFileContents('/data/ingredients/collection2.json', JSON.stringify({ items: { b: 2 } }))\n .orThrow();\n\n expect(accessors.isDirty()).toBe(true);\n expect(accessors.getDirtyPaths()).toHaveLength(2);\n });\n });\n\n describe('syncToDisk', () => {\n test('syncs modified files to storage', async () => {\n mockStorage.setItem(\n 'test:ingredients:v1',\n JSON.stringify({ collection1: { items: { original: true } } })\n );\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n const newContent = JSON.stringify({ items: { modified: true } });\n accessors.saveFileContents('/data/ingredients/collection1.json', newContent).orThrow();\n\n const syncResult = await accessors.syncToDisk();\n expect(syncResult).toSucceed();\n\n const stored = mockStorage.getItem('test:ingredients:v1');\n expect(stored).toBeTruthy();\n const parsed = JSON.parse(stored!);\n // New format: values are raw content strings\n expect(parsed.collection1).toBe(newContent);\n });\n\n test('clears dirty state after successful sync', async () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n accessors\n .saveFileContents('/data/ingredients/collection1.json', JSON.stringify({ items: { a: 1 } }))\n .orThrow();\n expect(accessors.isDirty()).toBe(true);\n\n await accessors.syncToDisk();\n expect(accessors.isDirty()).toBe(false);\n expect(accessors.getDirtyPaths()).toEqual([]);\n });\n\n test('syncs multiple files to same storage key', async () => {\n mockStorage.setItem(\n 'test:ingredients:v1',\n JSON.stringify({\n collection1: { items: {} },\n collection2: { items: {} }\n })\n );\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n const content1 = JSON.stringify({ items: { a: 1 } });\n const content2 = JSON.stringify({ items: { b: 2 } });\n accessors.saveFileContents('/data/ingredients/collection1.json', content1).orThrow();\n accessors.saveFileContents('/data/ingredients/collection2.json', content2).orThrow();\n\n await accessors.syncToDisk();\n\n const stored = mockStorage.getItem('test:ingredients:v1');\n const parsed = JSON.parse(stored!);\n // New format: values are raw content strings\n expect(parsed.collection1).toBe(content1);\n expect(parsed.collection2).toBe(content2);\n });\n\n test('syncs files to different storage keys', async () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ ing1: { items: {} } }));\n mockStorage.setItem('test:fillings:v1', JSON.stringify({ fill1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1',\n '/data/fillings': 'test:fillings:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n accessors\n .saveFileContents('/data/ingredients/ing1.json', JSON.stringify({ items: { a: 1 } }))\n .orThrow();\n accessors.saveFileContents('/data/fillings/fill1.json', JSON.stringify({ items: { b: 2 } })).orThrow();\n\n await accessors.syncToDisk();\n\n const ingContent = JSON.stringify({ items: { a: 1 } });\n const fillContent = JSON.stringify({ items: { b: 2 } });\n const ingStored = JSON.parse(mockStorage.getItem('test:ingredients:v1')!);\n const fillStored = JSON.parse(mockStorage.getItem('test:fillings:v1')!);\n // New format: values are raw content strings\n expect(ingStored.ing1).toBe(ingContent);\n expect(fillStored.fill1).toBe(fillContent);\n });\n\n test('succeeds with no dirty files', async () => {\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage\n }).orThrow();\n\n const result = await accessors.syncToDisk();\n expect(result).toSucceed();\n });\n\n test('preserves existing collections when syncing', async () => {\n mockStorage.setItem(\n 'test:ingredients:v1',\n JSON.stringify({\n existing: { items: { keep: true } },\n toModify: { items: { original: true } }\n })\n );\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n const modifiedContent = JSON.stringify({ items: { modified: true } });\n accessors.saveFileContents('/data/ingredients/toModify.json', modifiedContent).orThrow();\n await accessors.syncToDisk();\n\n const stored = JSON.parse(mockStorage.getItem('test:ingredients:v1')!);\n // existing was loaded from legacy format and not modified, so it stays as legacy object\n // toModify was saved with new content, so it's now a raw string\n expect(stored.toModify).toBe(modifiedContent);\n });\n });\n\n describe('autoSync mode', () => {\n test('automatically syncs on save when enabled', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true,\n autoSync: true\n }).orThrow();\n\n accessors\n .saveFileContents('/data/ingredients/collection1.json', JSON.stringify({ items: { auto: true } }))\n .orThrow();\n\n expect(accessors.isDirty()).toBe(false);\n const autoContent = JSON.stringify({ items: { auto: true } });\n const stored = JSON.parse(mockStorage.getItem('test:ingredients:v1')!);\n // New format: values are raw content strings\n expect(stored.collection1).toBe(autoContent);\n });\n\n test('does not auto-sync when disabled', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true,\n autoSync: false\n }).orThrow();\n\n accessors\n .saveFileContents('/data/ingredients/collection1.json', JSON.stringify({ items: { manual: true } }))\n .orThrow();\n\n expect(accessors.isDirty()).toBe(true);\n // Storage should still have the original legacy format (not yet synced)\n const stored = JSON.parse(mockStorage.getItem('test:ingredients:v1')!);\n expect(stored.collection1).toEqual({ items: {} });\n });\n });\n\n describe('fileIsMutable', () => {\n test('returns persistent detail when mutable', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n expect(accessors.fileIsMutable('/data/ingredients/collection1.json')).toSucceedWithDetail(\n true,\n 'persistent'\n );\n });\n\n test('returns not-mutable when not mutable', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: false\n }).orThrow();\n\n const result = accessors.fileIsMutable('/data/ingredients/collection1.json');\n expect(result.isFailure()).toBe(true);\n if (result.isFailure()) {\n expect(result.detail).toBe('not-mutable');\n }\n });\n });\n\n describe('integration with FileApiTreeAccessors', () => {\n test('createFromLocalStorage creates FileTree with persistent accessors', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const result = FileApiTreeAccessors.createFromLocalStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n });\n\n expect(result).toSucceed();\n\n const tree = result.orThrow();\n expect(tree).toBeInstanceOf(FileTree.FileTree);\n expect(FileTree.isPersistentAccessors(tree.hal)).toBe(true);\n\n const file = tree.getFile('/data/ingredients/collection1.json').orThrow();\n expect(FileTree.isMutableFileItem(file)).toBe(true);\n if (FileTree.isMutableFileItem(file)) {\n expect(file.getIsMutable()).toSucceedWithDetail(true, 'persistent');\n }\n });\n\n test('createFromLocalStorage with multiple paths', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ ing1: { items: {} } }));\n mockStorage.setItem('test:fillings:v1', JSON.stringify({ fill1: { items: {} } }));\n\n const result = FileApiTreeAccessors.createFromLocalStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1',\n '/data/fillings': 'test:fillings:v1'\n },\n storage: mockStorage,\n mutable: true\n });\n\n expect(result).toSucceedAndSatisfy((tree) => {\n expect(tree.getFile('/data/ingredients/ing1.json')).toSucceed();\n expect(tree.getFile('/data/fillings/fill1.json')).toSucceed();\n });\n });\n\n test('createFromLocalStorage with empty storage', () => {\n const result = FileApiTreeAccessors.createFromLocalStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage\n });\n\n expect(result).toSucceedAndSatisfy((tree) => {\n expect(tree).toBeInstanceOf(FileTree.FileTree);\n });\n });\n\n test('createFromLocalStorage fails when localStorage is not available', () => {\n // Remove the global window object to ensure no fallback\n const originalWindow = (global as any).window;\n delete (global as any).window;\n\n const result = FileApiTreeAccessors.createFromLocalStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: undefined\n });\n\n // Restore window\n (global as any).window = originalWindow;\n\n expect(result).toFailWith(/localStorage is not available/i);\n });\n });\n\n describe('path matching and error handling', () => {\n test('handles files outside configured paths', async () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n // Try to save a file outside the configured path\n const saveResult = accessors.saveFileContents('/other/path/file.json', JSON.stringify({ test: 1 }));\n expect(saveResult).toSucceed();\n\n // But syncing should fail because no storage key is configured\n const syncResult = await accessors.syncToDisk();\n expect(syncResult).toFailWith(/No storage key configured for path/i);\n });\n\n test('handles files inside configured paths', async () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n // Save a file inside the configured path\n accessors.saveFileContents('/data/ingredients/newfile.json', JSON.stringify({ test: 1 })).orThrow();\n\n // Syncing should succeed\n const syncResult = await accessors.syncToDisk();\n expect(syncResult).toSucceed();\n });\n\n test('handles failed content retrieval during sync', async () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n // Modify a file\n accessors.saveFileContents('/data/ingredients/collection1.json', JSON.stringify({ test: 1 })).orThrow();\n\n // Override getFileContents to fail\n const originalGetFileContents = accessors.getFileContents.bind(accessors);\n accessors.getFileContents = jest.fn((path: string) => {\n if (path === '/data/ingredients/collection1.json') {\n return { isSuccess: () => false, isFailure: () => true, message: 'File not found' } as any;\n }\n return originalGetFileContents(path);\n });\n\n const syncResult = await accessors.syncToDisk();\n expect(syncResult).toFailWith(/Failed to get file contents.*File not found/i);\n });\n\n test('handles corrupted JSON in localStorage during sync', async () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n // Modify a file\n accessors.saveFileContents('/data/ingredients/collection1.json', JSON.stringify({ test: 1 })).orThrow();\n\n // Corrupt the existing storage data\n mockStorage.setItem('test:ingredients:v1', 'not valid json');\n\n // Sync should still succeed by starting fresh\n const syncResult = await accessors.syncToDisk();\n expect(syncResult).toSucceed();\n\n // Verify the data was written correctly despite corrupted previous data\n const stored = mockStorage.getItem('test:ingredients:v1');\n const parsed = JSON.parse(stored!);\n // New format: values are raw content strings\n expect(parsed.collection1).toBe(JSON.stringify({ test: 1 }));\n });\n\n test('syncs non-JSON content (YAML) without error', async () => {\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n // Create and save a YAML file\n const yamlContent = 'metadata:\\n name: test\\nitems: {}';\n accessors.saveFileContents('/data/ingredients/my-collection.yaml', yamlContent).orThrow();\n\n const syncResult = await accessors.syncToDisk();\n expect(syncResult).toSucceed();\n\n const stored = JSON.parse(mockStorage.getItem('test:ingredients:v1')!);\n expect(stored['my-collection']).toBe(yamlContent);\n });\n\n test('handles multiple sync failures with aggregated errors', async () => {\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n // Add files outside configured paths\n accessors.saveFileContents('/other1/file1.json', JSON.stringify({ test: 1 })).orThrow();\n accessors.saveFileContents('/other2/file2.json', JSON.stringify({ test: 2 })).orThrow();\n\n const syncResult = await accessors.syncToDisk();\n expect(syncResult).toFailWith(/Failed to sync 2 file\\(s\\)/i);\n });\n\n test('handles auto-sync failure', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true,\n autoSync: true\n }).orThrow();\n\n // Try to save a file outside configured path with autoSync enabled\n const saveResult = accessors.saveFileContents('/other/path/file.json', JSON.stringify({ test: 1 }));\n expect(saveResult).toFailWith(/No storage key configured for path/i);\n });\n });\n\n describe('deleteFile', () => {\n test('deletes a file from in-memory storage and from localStorage', () => {\n mockStorage.setItem(\n 'test:ingredients:v1',\n JSON.stringify({\n collection1: '{\"items\":{}}',\n collection2: '{\"items\":{}}'\n })\n );\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n const result = accessors.deleteFile('/data/ingredients/collection1.json');\n expect(result).toSucceedWith(true);\n\n // File should no longer be accessible in-memory\n expect(accessors.getFileContents('/data/ingredients/collection1.json')).toFail();\n\n // The deleted collection should be removed from localStorage; collection2 remains\n const stored = mockStorage.getItem('test:ingredients:v1');\n expect(stored).toBeTruthy();\n const parsed = JSON.parse(stored!);\n expect(parsed).not.toHaveProperty('collection1');\n expect(parsed).toHaveProperty('collection2');\n });\n\n test('removes the storage key entirely when last entry is deleted', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ onlyCollection: '{\"items\":{}}' }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n const result = accessors.deleteFile('/data/ingredients/onlyCollection.json');\n expect(result).toSucceedWith(true);\n\n // Storage key should be removed entirely since no more entries remain\n expect(mockStorage.getItem('test:ingredients:v1')).toBeNull();\n });\n\n test('removes path from dirty set when deleting a dirty file', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: '{\"items\":{}}' }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n // Mark file as dirty first\n accessors\n .saveFileContents('/data/ingredients/collection1.json', JSON.stringify({ items: { modified: true } }))\n .orThrow();\n expect(accessors.isDirty()).toBe(true);\n\n // Deleting the file should clean it from the dirty set\n const result = accessors.deleteFile('/data/ingredients/collection1.json');\n expect(result).toSucceedWith(true);\n expect(accessors.isDirty()).toBe(false);\n expect(accessors.getDirtyPaths()).not.toContain('/data/ingredients/collection1.json');\n });\n\n test('fails when deleting a non-existent file', () => {\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n const result = accessors.deleteFile('/data/ingredients/nonexistent.json');\n expect(result).toFail();\n });\n\n test('does not modify storage when file has no matching storage key', () => {\n // Create accessors with one path, but a file that will be stored outside that path\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n // Add and delete a file inside the configured path but with no existing storage entry\n accessors.saveFileContents('/data/ingredients/newfile.json', '{\"items\":{}}').orThrow();\n // Sync so it exists in storage\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ newfile: '{\"items\":{}}' }));\n\n // Now re-load and delete — the file should be removed from storage\n const accessors2 = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n const result = accessors2.deleteFile('/data/ingredients/newfile.json');\n expect(result).toSucceedWith(true);\n expect(mockStorage.getItem('test:ingredients:v1')).toBeNull();\n });\n\n test('handles deletion when localStorage key has no entry for the file', () => {\n // Storage key exists but does not contain an entry for the file being deleted\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ other: '{\"items\":{}}' }));\n\n // Manually add a file to in-memory without it being in the storage JSON\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n // Save a new file (marks dirty but does not update storage yet)\n accessors.saveFileContents('/data/ingredients/newfile.json', '{\"items\":{}}').orThrow();\n\n // Clear the dirty flag by directly removing from storage (simulate storage mismatch)\n // Then delete the file — _deleteFileFromStorage gets the existing JSON which lacks 'newfile'\n // This exercises the path where the collection is not in the existing JSON\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ other: '{\"items\":{}}' }));\n\n const result = accessors.deleteFile('/data/ingredients/newfile.json');\n expect(result).toSucceedWith(true);\n\n // 'other' should still remain in storage since only 'newfile' was deleted (which wasn't there)\n const stored = mockStorage.getItem('test:ingredients:v1');\n expect(stored).toBeTruthy();\n const parsed = JSON.parse(stored!);\n expect(parsed).toHaveProperty('other');\n });\n\n test('handles deletion when storage entry for key is missing entirely', () => {\n // No storage key at all — _deleteFileFromStorage should return early\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n // Manually put a file in memory by saving it\n accessors.saveFileContents('/data/ingredients/newfile.json', '{\"items\":{}}').orThrow();\n\n // Delete the storage key so getItem returns null\n mockStorage.removeItem('test:ingredients:v1');\n\n // deleteFile should still succeed (in-memory deletion succeeds; storage cleanup is a no-op)\n const result = accessors.deleteFile('/data/ingredients/newfile.json');\n expect(result).toSucceedWith(true);\n });\n\n test('handles deletion when storage contains corrupted JSON', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: '{\"items\":{}}' }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n // Corrupt the storage so JSON.parse fails in _deleteFileFromStorage\n mockStorage.setItem('test:ingredients:v1', 'not valid json {{{');\n\n // deleteFile should still succeed — corrupted JSON is silently ignored\n const result = accessors.deleteFile('/data/ingredients/collection1.json');\n expect(result).toSucceedWith(true);\n });\n\n test('deletes a file at a path outside all configured storage keys', () => {\n // A file can be saved in-memory at a path that has no matching storage key.\n // When deleted, _deleteFileFromStorage should return early without touching storage.\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n // Save a file outside the configured path (succeeds in-memory, marks dirty)\n accessors.saveFileContents('/untracked/file.json', '{\"items\":{}}').orThrow();\n\n // Delete it — should succeed even though there is no storage key for this path\n const result = accessors.deleteFile('/untracked/file.json');\n expect(result).toSucceedWith(true);\n\n // Storage should be untouched\n expect(mockStorage.getItem('test:ingredients:v1')).toBeNull();\n });\n });\n\n describe('inferContentType callback in _loadFromStorage', () => {\n test('calls inferContentType when loading files from storage', () => {\n // Covers lines 163-164: the params.inferContentType branch in _loadFromStorage\n mockStorage.setItem(\n 'test:ingredients:v1',\n JSON.stringify({\n myCollection: '{\"items\":{}}'\n })\n );\n\n const inferContentType = jest.fn((filePath: string, _provided: string | undefined) => {\n const { succeed: s } = require('@fgv/ts-utils') as typeof import('@fgv/ts-utils');\n return s('application/json' as string);\n });\n\n const result = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n inferContentType\n });\n\n expect(result).toSucceed();\n expect(inferContentType).toHaveBeenCalledWith('/data/ingredients/myCollection.json', undefined);\n });\n });\n\n describe('extension-less file path handling', () => {\n test('syncs a file whose path has no extension (collection ID has no dot)', async () => {\n // Covers line 249: dotIndex <= 0 case in _getCollectionIdFromPath, returning cleanPath as-is\n // We save a file at a path with no file extension; the collection ID extracted\n // will be the entire basename (no dot to strip).\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n // Save a file at a path with no extension\n accessors.saveFileContents('/data/ingredients/nodot', '{\"items\":{}}').orThrow();\n\n const syncResult = await accessors.syncToDisk();\n expect(syncResult).toSucceed();\n\n // The collection ID stored in localStorage should be 'nodot' (no extension stripped)\n const stored = mockStorage.getItem('test:ingredients:v1');\n expect(stored).toBeTruthy();\n const parsed = JSON.parse(stored!) as Record<string, unknown>;\n expect(parsed.nodot).toBe('{\"items\":{}}');\n });\n });\n});\n"]}
package/package.json CHANGED
@@ -1,9 +1,21 @@
1
1
  {
2
2
  "name": "@fgv/ts-web-extras",
3
- "version": "5.1.0-0",
3
+ "version": "5.1.0-2",
4
4
  "description": "Browser-compatible utilities and FileTree implementations",
5
5
  "main": "lib/index.js",
6
6
  "types": "dist/ts-web-extras.d.ts",
7
+ "scripts": {
8
+ "build": "heft test --clean",
9
+ "clean": "heft clean",
10
+ "test": "heft test --clean",
11
+ "build-docs": "typedoc --options ./config/typedoc.json",
12
+ "build-all": "rushx build; rushx build-docs",
13
+ "test-handles": "jest --runInBand --detectOpenHandles",
14
+ "clean-jest": "jest --clear-cache",
15
+ "coverage": "jest --coverage",
16
+ "lint": "eslint src --ext .ts",
17
+ "fixlint": "eslint src --ext .ts --fix"
18
+ },
7
19
  "sideEffects": false,
8
20
  "keywords": [
9
21
  "browser",
@@ -19,6 +31,11 @@
19
31
  },
20
32
  "homepage": "https://github.com/ErikFortune/fgv/tree/main/libraries/ts-web-extras#readme",
21
33
  "devDependencies": {
34
+ "@fgv/heft-dual-rig": "workspace:*",
35
+ "@fgv/ts-extras": "workspace:*",
36
+ "@fgv/ts-utils": "workspace:*",
37
+ "@fgv/ts-json-base": "workspace:*",
38
+ "@fgv/ts-utils-jest": "workspace:*",
22
39
  "@microsoft/api-documenter": "^7.28.2",
23
40
  "@microsoft/api-extractor": "^7.55.2",
24
41
  "@types/jest": "^29.5.14",
@@ -45,19 +62,14 @@
45
62
  "@rushstack/eslint-patch": "1.14.1",
46
63
  "@types/react": "~19.2.8",
47
64
  "typedoc": "~0.28.16",
48
- "typedoc-plugin-markdown": "~4.9.0",
49
- "@fgv/heft-dual-rig": "0.1.0",
50
- "@fgv/ts-json-base": "5.1.0-0",
51
- "@fgv/ts-extras": "5.1.0-0",
52
- "@fgv/ts-utils": "5.1.0-0",
53
- "@fgv/ts-utils-jest": "5.1.0-0"
65
+ "typedoc-plugin-markdown": "~4.9.0"
54
66
  },
55
67
  "peerDependencies": {
68
+ "@fgv/ts-extras": "workspace:*",
69
+ "@fgv/ts-utils": "workspace:*",
70
+ "@fgv/ts-json-base": "workspace:*",
56
71
  "react": ">=18 <20",
57
- "react-dom": ">=18 <20",
58
- "@fgv/ts-utils": "5.1.0-0",
59
- "@fgv/ts-extras": "5.1.0-0",
60
- "@fgv/ts-json-base": "5.1.0-0"
72
+ "react-dom": ">=18 <20"
61
73
  },
62
74
  "exports": {
63
75
  ".": {
@@ -74,21 +86,9 @@
74
86
  },
75
87
  "repository": {
76
88
  "type": "git",
77
- "url": "https://github.com/ErikFortune/fgv.git"
89
+ "url": "git+https://github.com/ErikFortune/fgv.git"
78
90
  },
79
91
  "dependencies": {
80
92
  "idb-keyval": "^6.2.2"
81
- },
82
- "scripts": {
83
- "build": "heft test --clean",
84
- "clean": "heft clean",
85
- "test": "heft test --clean",
86
- "build-docs": "typedoc --options ./config/typedoc.json",
87
- "build-all": "rushx build; rushx build-docs",
88
- "test-handles": "jest --runInBand --detectOpenHandles",
89
- "clean-jest": "jest --clear-cache",
90
- "coverage": "jest --coverage",
91
- "lint": "eslint src --ext .ts",
92
- "fixlint": "eslint src --ext .ts --fix"
93
93
  }
94
- }
94
+ }
@@ -1,3 +0,0 @@
1
- Caching build output folders: dist, lib, temp, .rush/temp/operation/build
2
- Successfully set cache entry.
3
- Cache key: 81e0881271ff236956b2f52e8ca99da6574c6e1e
@@ -0,0 +1,18 @@
1
+ (node:7773) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
2
+ (Use `node --trace-deprecation ...` to show where the warning was created)
3
+ (node:7771) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
4
+ (Use `node --trace-deprecation ...` to show where the warning was created)
5
+ (node:7776) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
6
+ (Use `node --trace-deprecation ...` to show where the warning was created)
7
+ (node:7769) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
8
+ (Use `node --trace-deprecation ...` to show where the warning was created)
9
+ (node:7775) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
10
+ (Use `node --trace-deprecation ...` to show where the warning was created)
11
+ (node:7774) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
12
+ (Use `node --trace-deprecation ...` to show where the warning was created)
13
+ (node:7770) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
14
+ (Use `node --trace-deprecation ...` to show where the warning was created)
15
+ (node:7768) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
16
+ (Use `node --trace-deprecation ...` to show where the warning was created)
17
+ (node:7772) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
18
+ (Use `node --trace-deprecation ...` to show where the warning was created)
@@ -1,52 +1,75 @@
1
1
  Invoking: heft test --clean
2
2
  ---- build started ----
3
+ [build:clean] Deleted 0 files and 3 folders
3
4
  [build:typescript] The TypeScript compiler version 5.9.3 is newer than the latest version that was tested with Heft (5.8); it may not work correctly.
4
5
  [build:typescript] Using TypeScript version 5.9.3
5
6
  [build:api-extractor] Using API Extractor version 7.57.6
6
7
  [build:api-extractor] Analysis will use the bundled TypeScript version 5.8.2
7
8
  [build:api-extractor] *** The target project appears to use TypeScript 5.9.3 which is newer than the bundled compiler engine; consider upgrading API Extractor.
8
- ---- build finished (18.627s) ----
9
+ ---- build finished (3.999s) ----
9
10
  ---- test started ----
11
+ [test:clean] Deleted 0 files and 1 folder
10
12
  [test:jest] Using Jest version 29.5.0
11
13
  [test:jest]
12
- [test:jest] Run start. 8 test suites
14
+ [test:jest] Run start. 9 test suites
13
15
  [test:jest] START lib/test/unit/fileApiTreeAccessors.test.js
14
- [test:jest] START lib/test/unit/fileTreeHelpers.test.js
15
- [test:jest] START lib/test/unit/fileSystemAccessTreeAccessors.test.js
16
+ [test:jest] START lib/test/unit/httpTreeAccessors.test.js
16
17
  [test:jest] START lib/test/unit/localStorageTreeAccessors.test.js
17
- [test:jest] PASS lib/test/unit/fileApiTreeAccessors.test.js (duration: 2.344s, 63 passed, 0 failed)
18
+ [test:jest] START lib/test/unit/fileSystemAccessTreeAccessors.test.js
19
+ [test:jest] START lib/test/unit/fileTreeHelpers.test.js
18
20
  [test:jest] START lib/test/unit/fileApiTypes.test.js
19
- [test:jest] PASS lib/test/unit/fileTreeHelpers.test.js (duration: 2.029s, 35 passed, 0 failed)
20
21
  [test:jest] START lib/test/unit/urlParams.test.js
21
- [test:jest] PASS lib/test/unit/fileSystemAccessTreeAccessors.test.js (duration: 2.580s, 38 passed, 0 failed)
22
22
  [test:jest] START lib/test/unit/directoryHandleStore.test.js
23
- [test:jest] PASS lib/test/unit/localStorageTreeAccessors.test.js (duration: 1.053s, 33 passed, 0 failed)
24
23
  [test:jest] START lib/test/unit/browserHashProvider.test.js
25
- [test:jest] PASS lib/test/unit/fileApiTypes.test.js (duration: 1.302s, 36 passed, 0 failed)
26
- [test:jest] PASS lib/test/unit/urlParams.test.js (duration: 1.269s, 60 passed, 0 failed)
27
- [test:jest] PASS lib/test/unit/directoryHandleStore.test.js (duration: 1.234s, 19 passed, 0 failed)
28
- [test:jest] PASS lib/test/unit/browserHashProvider.test.js (duration: 1.305s, 15 passed, 0 failed)
24
+ (node:7773) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
25
+ (Use `node --trace-deprecation ...` to show where the warning was created)
26
+ [test:jest] PASS lib/test/unit/fileApiTypes.test.js (duration: 0.930s, 36 passed, 0 failed)
27
+ (node:7771) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
28
+ (Use `node --trace-deprecation ...` to show where the warning was created)
29
+ (node:7776) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
30
+ (Use `node --trace-deprecation ...` to show where the warning was created)
31
+ (node:7769) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
32
+ (Use `node --trace-deprecation ...` to show where the warning was created)
33
+ (node:7775) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
34
+ (Use `node --trace-deprecation ...` to show where the warning was created)
35
+ [test:jest] PASS lib/test/unit/directoryHandleStore.test.js (duration: 0.969s, 19 passed, 0 failed)
36
+ (node:7774) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
37
+ (Use `node --trace-deprecation ...` to show where the warning was created)
38
+ [test:jest] PASS lib/test/unit/urlParams.test.js (duration: 0.927s, 60 passed, 0 failed)
39
+ (node:7770) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
40
+ (Use `node --trace-deprecation ...` to show where the warning was created)
41
+ [test:jest] PASS lib/test/unit/localStorageTreeAccessors.test.js (duration: 0.999s, 44 passed, 0 failed)
42
+ (node:7768) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
43
+ (Use `node --trace-deprecation ...` to show where the warning was created)
44
+ [test:jest] PASS lib/test/unit/fileApiTreeAccessors.test.js (duration: 0.993s, 65 passed, 0 failed)
45
+ [test:jest] PASS lib/test/unit/fileSystemAccessTreeAccessors.test.js (duration: 0.997s, 44 passed, 0 failed)
46
+ [test:jest] PASS lib/test/unit/browserHashProvider.test.js (duration: 1.035s, 15 passed, 0 failed)
47
+ (node:7772) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
48
+ (Use `node --trace-deprecation ...` to show where the warning was created)
49
+ [test:jest] PASS lib/test/unit/fileTreeHelpers.test.js (duration: 1.036s, 35 passed, 0 failed)
50
+ [test:jest] PASS lib/test/unit/httpTreeAccessors.test.js (duration: 1.031s, 57 passed, 0 failed)
29
51
  [test:jest]
30
52
  [test:jest] Tests finished:
31
- [test:jest] Successes: 299
53
+ [test:jest] Successes: 375
32
54
  [test:jest] Failures: 0
33
- [test:jest] Total: 300
34
- -----------------------------------|---------|----------|---------|---------|------------------------------------
35
- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
36
- -----------------------------------|---------|----------|---------|---------|------------------------------------
37
- All files | 100 | 95.68 | 100 | 100 |
38
- crypto-utils | 100 | 100 | 100 | 100 |
39
- browserCryptoProvider.ts | 100 | 100 | 100 | 100 |
40
- browserHashProvider.ts | 100 | 100 | 100 | 100 |
41
- file-tree | 100 | 94.9 | 100 | 100 |
42
- directoryHandleStore.ts | 100 | 100 | 100 | 100 |
43
- fileApiTreeAccessors.ts | 100 | 100 | 100 | 100 |
44
- fileSystemAccessTreeAccessors.ts | 100 | 93.06 | 100 | 100 | 90,152,160,169,176
45
- localStorageTreeAccessors.ts | 100 | 88.6 | 100 | 100 | 92,107,163-164,196-197,210,245-249
46
- helpers | 100 | 100 | 100 | 100 |
47
- fileTreeHelpers.ts | 100 | 100 | 100 | 100 |
48
- url-utils | 100 | 100 | 100 | 100 |
49
- urlParams.ts | 100 | 100 | 100 | 100 |
50
- -----------------------------------|---------|----------|---------|---------|------------------------------------
51
- ---- test finished (7.440s) ----
52
- -------------------- Finished (26.073s) --------------------
55
+ [test:jest] Total: 376
56
+ -----------------------------------|---------|----------|---------|---------|-------------------
57
+ File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
58
+ -----------------------------------|---------|----------|---------|---------|-------------------
59
+ All files | 100 | 99.62 | 100 | 100 |
60
+ crypto-utils | 100 | 100 | 100 | 100 |
61
+ browserCryptoProvider.ts | 100 | 100 | 100 | 100 |
62
+ browserHashProvider.ts | 100 | 100 | 100 | 100 |
63
+ file-tree | 100 | 99.57 | 100 | 100 |
64
+ directoryHandleStore.ts | 100 | 100 | 100 | 100 |
65
+ fileApiTreeAccessors.ts | 100 | 100 | 100 | 100 |
66
+ fileSystemAccessTreeAccessors.ts | 100 | 100 | 100 | 100 |
67
+ httpTreeAccessors.ts | 100 | 98.41 | 100 | 100 | 339
68
+ localStorageTreeAccessors.ts | 100 | 100 | 100 | 100 |
69
+ helpers | 100 | 100 | 100 | 100 |
70
+ fileTreeHelpers.ts | 100 | 100 | 100 | 100 |
71
+ url-utils | 100 | 100 | 100 | 100 |
72
+ urlParams.ts | 100 | 100 | 100 | 100 |
73
+ -----------------------------------|---------|----------|---------|---------|-------------------
74
+ ---- test finished (2.409s) ----
75
+ -------------------- Finished (6.412s) --------------------
@@ -0,0 +1 @@
1
+ This project does not define the caching behavior of the "test" command, so caching has been disabled.
@@ -0,0 +1,18 @@
1
+ (node:99490) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
2
+ (Use `node --trace-deprecation ...` to show where the warning was created)
3
+ (node:99493) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
4
+ (Use `node --trace-deprecation ...` to show where the warning was created)
5
+ (node:99494) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
6
+ (Use `node --trace-deprecation ...` to show where the warning was created)
7
+ (node:99488) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
8
+ (Use `node --trace-deprecation ...` to show where the warning was created)
9
+ (node:99489) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
10
+ (Use `node --trace-deprecation ...` to show where the warning was created)
11
+ (node:99492) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
12
+ (Use `node --trace-deprecation ...` to show where the warning was created)
13
+ (node:99495) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
14
+ (Use `node --trace-deprecation ...` to show where the warning was created)
15
+ (node:99487) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
16
+ (Use `node --trace-deprecation ...` to show where the warning was created)
17
+ (node:99491) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
18
+ (Use `node --trace-deprecation ...` to show where the warning was created)