@fgv/ts-web-extras 5.1.0-19 → 5.1.0-20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +10 -10
- package/.rush/temp/42a7a953924ae898114e7b6231a2408228d92433.tar.log +0 -243
- package/.rush/temp/chunked-rush-logs/ts-web-extras.build.chunks.jsonl +0 -57
- package/.rush/temp/operation/build/all.log +0 -57
- package/.rush/temp/operation/build/log-chunks.jsonl +0 -57
- package/.rush/temp/operation/build/state.json +0 -3
- package/.rush/temp/shrinkwrap-deps.json +0 -692
- package/CHANGELOG.md +0 -23
- package/config/api-extractor.json +0 -343
- package/config/jest.config.json +0 -19
- package/config/rig.json +0 -16
- package/config/typedoc.json +0 -7
- package/dist/test/mocks/idb-keyval.js +0 -6
- package/dist/test/mocks/idb-keyval.js.map +0 -1
- package/dist/test/setupTests.js +0 -74
- package/dist/test/setupTests.js.map +0 -1
- package/dist/test/unit/browserCryptoProvider.wrapBytes.test.js +0 -221
- package/dist/test/unit/browserCryptoProvider.wrapBytes.test.js.map +0 -1
- package/dist/test/unit/browserHashProvider.test.js +0 -140
- package/dist/test/unit/browserHashProvider.test.js.map +0 -1
- package/dist/test/unit/directoryHandleStore.test.js +0 -190
- package/dist/test/unit/directoryHandleStore.test.js.map +0 -1
- package/dist/test/unit/fileApiTreeAccessors.test.js +0 -1188
- package/dist/test/unit/fileApiTreeAccessors.test.js.map +0 -1
- package/dist/test/unit/fileApiTypes.test.js +0 -472
- package/dist/test/unit/fileApiTypes.test.js.map +0 -1
- package/dist/test/unit/fileSystemAccessTreeAccessors.test.js +0 -622
- package/dist/test/unit/fileSystemAccessTreeAccessors.test.js.map +0 -1
- package/dist/test/unit/fileTreeHelpers.test.js +0 -590
- package/dist/test/unit/fileTreeHelpers.test.js.map +0 -1
- package/dist/test/unit/httpTreeAccessors.test.js +0 -1364
- package/dist/test/unit/httpTreeAccessors.test.js.map +0 -1
- package/dist/test/unit/localStorageTreeAccessors.test.js +0 -812
- package/dist/test/unit/localStorageTreeAccessors.test.js.map +0 -1
- package/dist/test/unit/urlParams.test.js +0 -393
- package/dist/test/unit/urlParams.test.js.map +0 -1
- package/dist/test/utils/fileSystemAccessMocks.js +0 -271
- package/dist/test/utils/fileSystemAccessMocks.js.map +0 -1
- package/dist/test/utils/testHelpers.js +0 -124
- package/dist/test/utils/testHelpers.js.map +0 -1
- package/docs/CryptoUtils/README.md +0 -60
- package/docs/CryptoUtils/classes/BrowserCryptoProvider.decrypt.md +0 -27
- package/docs/CryptoUtils/classes/BrowserCryptoProvider.deriveKey.md +0 -26
- package/docs/CryptoUtils/classes/BrowserCryptoProvider.encrypt.md +0 -25
- package/docs/CryptoUtils/classes/BrowserCryptoProvider.exportPublicKeyJwk.md +0 -24
- package/docs/CryptoUtils/classes/BrowserCryptoProvider.fromBase64.md +0 -24
- package/docs/CryptoUtils/classes/BrowserCryptoProvider.generateKey.md +0 -17
- package/docs/CryptoUtils/classes/BrowserCryptoProvider.generateKeyPair.md +0 -25
- package/docs/CryptoUtils/classes/BrowserCryptoProvider.generateRandomBytes.md +0 -24
- package/docs/CryptoUtils/classes/BrowserCryptoProvider.importPublicKeyJwk.md +0 -25
- package/docs/CryptoUtils/classes/BrowserCryptoProvider.md +0 -231
- package/docs/CryptoUtils/classes/BrowserCryptoProvider.sha256.md +0 -24
- package/docs/CryptoUtils/classes/BrowserCryptoProvider.toBase64.md +0 -24
- package/docs/CryptoUtils/classes/BrowserCryptoProvider.unwrapBytes.md +0 -27
- package/docs/CryptoUtils/classes/BrowserCryptoProvider.wrapBytes.md +0 -28
- package/docs/CryptoUtils/classes/BrowserHashProvider.hashParts.md +0 -26
- package/docs/CryptoUtils/classes/BrowserHashProvider.hashString.md +0 -25
- package/docs/CryptoUtils/classes/BrowserHashProvider.md +0 -81
- package/docs/CryptoUtils/functions/createBrowserCryptoProvider.md +0 -12
- package/docs/FileTreeHelpers/README.md +0 -85
- package/docs/FileTreeHelpers/functions/extractFileListMetadata.md +0 -11
- package/docs/FileTreeHelpers/functions/extractFileMetadata.md +0 -11
- package/docs/FileTreeHelpers/functions/fromDirectoryUpload.md +0 -12
- package/docs/FileTreeHelpers/functions/fromFileList.md +0 -12
- package/docs/FileTreeHelpers/functions/getOriginalFile.md +0 -11
- package/docs/FileTreeHelpers/variables/defaultFileApiTreeInitParams.md +0 -9
- package/docs/README.md +0 -524
- package/docs/classes/BrowserCryptoProvider.decrypt.md +0 -27
- package/docs/classes/BrowserCryptoProvider.deriveKey.md +0 -26
- package/docs/classes/BrowserCryptoProvider.encrypt.md +0 -25
- package/docs/classes/BrowserCryptoProvider.exportPublicKeyJwk.md +0 -24
- package/docs/classes/BrowserCryptoProvider.fromBase64.md +0 -24
- package/docs/classes/BrowserCryptoProvider.generateKey.md +0 -17
- package/docs/classes/BrowserCryptoProvider.generateKeyPair.md +0 -25
- package/docs/classes/BrowserCryptoProvider.generateRandomBytes.md +0 -24
- package/docs/classes/BrowserCryptoProvider.importPublicKeyJwk.md +0 -25
- package/docs/classes/BrowserCryptoProvider.md +0 -231
- package/docs/classes/BrowserCryptoProvider.sha256.md +0 -24
- package/docs/classes/BrowserCryptoProvider.toBase64.md +0 -24
- package/docs/classes/BrowserCryptoProvider.unwrapBytes.md +0 -27
- package/docs/classes/BrowserCryptoProvider.wrapBytes.md +0 -28
- package/docs/classes/BrowserHashProvider.hashParts.md +0 -26
- package/docs/classes/BrowserHashProvider.hashString.md +0 -25
- package/docs/classes/BrowserHashProvider.md +0 -81
- package/docs/classes/DirectoryHandleStore.getAll.md +0 -17
- package/docs/classes/DirectoryHandleStore.getAllLabels.md +0 -17
- package/docs/classes/DirectoryHandleStore.load.md +0 -24
- package/docs/classes/DirectoryHandleStore.md +0 -120
- package/docs/classes/DirectoryHandleStore.remove.md +0 -24
- package/docs/classes/DirectoryHandleStore.save.md +0 -25
- package/docs/classes/FileApiTreeAccessors.create.md +0 -25
- package/docs/classes/FileApiTreeAccessors.createFromHttp.md +0 -24
- package/docs/classes/FileApiTreeAccessors.createFromLocalStorage.md +0 -25
- package/docs/classes/FileApiTreeAccessors.createPersistent.md +0 -26
- package/docs/classes/FileApiTreeAccessors.createPersistentFromFile.md +0 -27
- package/docs/classes/FileApiTreeAccessors.extractFileMetadata.md +0 -24
- package/docs/classes/FileApiTreeAccessors.fromDirectoryUpload.md +0 -25
- package/docs/classes/FileApiTreeAccessors.fromFileList.md +0 -25
- package/docs/classes/FileApiTreeAccessors.getOriginalFile.md +0 -27
- package/docs/classes/FileApiTreeAccessors.md +0 -172
- package/docs/classes/FileSystemAccessTreeAccessors.deleteFile.md +0 -22
- package/docs/classes/FileSystemAccessTreeAccessors.fileIsMutable.md +0 -22
- package/docs/classes/FileSystemAccessTreeAccessors.fromDirectoryHandle.md +0 -25
- package/docs/classes/FileSystemAccessTreeAccessors.fromFileHandle.md +0 -29
- package/docs/classes/FileSystemAccessTreeAccessors.getDirtyPaths.md +0 -15
- package/docs/classes/FileSystemAccessTreeAccessors.isDirty.md +0 -15
- package/docs/classes/FileSystemAccessTreeAccessors.md +0 -275
- package/docs/classes/FileSystemAccessTreeAccessors.saveFileContents.md +0 -23
- package/docs/classes/FileSystemAccessTreeAccessors.syncToDisk.md +0 -15
- package/docs/classes/HttpTreeAccessors.deleteFile.md +0 -24
- package/docs/classes/HttpTreeAccessors.fileIsMutable.md +0 -24
- package/docs/classes/HttpTreeAccessors.fromHttp.md +0 -24
- package/docs/classes/HttpTreeAccessors.getDirtyPaths.md +0 -17
- package/docs/classes/HttpTreeAccessors.isDirty.md +0 -17
- package/docs/classes/HttpTreeAccessors.md +0 -261
- package/docs/classes/HttpTreeAccessors.saveFileContents.md +0 -25
- package/docs/classes/HttpTreeAccessors.syncToDisk.md +0 -22
- package/docs/classes/LocalStorageTreeAccessors.deleteFile.md +0 -24
- package/docs/classes/LocalStorageTreeAccessors.fileIsMutable.md +0 -24
- package/docs/classes/LocalStorageTreeAccessors.fromStorage.md +0 -25
- package/docs/classes/LocalStorageTreeAccessors.getDirtyPaths.md +0 -17
- package/docs/classes/LocalStorageTreeAccessors.isDirty.md +0 -17
- package/docs/classes/LocalStorageTreeAccessors.md +0 -270
- package/docs/classes/LocalStorageTreeAccessors.saveFileContents.md +0 -25
- package/docs/classes/LocalStorageTreeAccessors.syncToDisk.md +0 -17
- package/docs/functions/createBrowserCryptoProvider.md +0 -12
- package/docs/functions/exportAsJson.md +0 -12
- package/docs/functions/exportUsingFileSystemAPI.md +0 -11
- package/docs/functions/extractDirectoryPath.md +0 -13
- package/docs/functions/extractFileListMetadata.md +0 -11
- package/docs/functions/extractFileMetadata.md +0 -11
- package/docs/functions/fromDirectoryUpload.md +0 -12
- package/docs/functions/fromFileList.md +0 -12
- package/docs/functions/getOriginalFile.md +0 -11
- package/docs/functions/isDirectoryHandle.md +0 -11
- package/docs/functions/isFileHandle.md +0 -11
- package/docs/functions/isFilePath.md +0 -11
- package/docs/functions/parseContextFilter.md +0 -12
- package/docs/functions/parseQualifierDefaults.md +0 -12
- package/docs/functions/parseResourceTypes.md +0 -12
- package/docs/functions/parseUrlParameters.md +0 -11
- package/docs/functions/safeShowDirectoryPicker.md +0 -11
- package/docs/functions/safeShowOpenFilePicker.md +0 -11
- package/docs/functions/safeShowSaveFilePicker.md +0 -11
- package/docs/functions/supportsFileSystemAccess.md +0 -11
- package/docs/interfaces/FilePickerAcceptType.accept.md +0 -9
- package/docs/interfaces/FilePickerAcceptType.description.md +0 -9
- package/docs/interfaces/FilePickerAcceptType.md +0 -61
- package/docs/interfaces/FileSystemCreateWritableOptions.keepExistingData.md +0 -9
- package/docs/interfaces/FileSystemCreateWritableOptions.md +0 -44
- package/docs/interfaces/FileSystemDirectoryHandle._asyncIterator_.md +0 -13
- package/docs/interfaces/FileSystemDirectoryHandle.entries.md +0 -13
- package/docs/interfaces/FileSystemDirectoryHandle.getDirectoryHandle.md +0 -21
- package/docs/interfaces/FileSystemDirectoryHandle.getFileHandle.md +0 -21
- package/docs/interfaces/FileSystemDirectoryHandle.keys.md +0 -13
- package/docs/interfaces/FileSystemDirectoryHandle.kind.md +0 -9
- package/docs/interfaces/FileSystemDirectoryHandle.md +0 -224
- package/docs/interfaces/FileSystemDirectoryHandle.removeEntry.md +0 -21
- package/docs/interfaces/FileSystemDirectoryHandle.resolve.md +0 -20
- package/docs/interfaces/FileSystemDirectoryHandle.values.md +0 -13
- package/docs/interfaces/FileSystemFileHandle.createWritable.md +0 -20
- package/docs/interfaces/FileSystemFileHandle.getFile.md +0 -13
- package/docs/interfaces/FileSystemFileHandle.kind.md +0 -9
- package/docs/interfaces/FileSystemFileHandle.md +0 -146
- package/docs/interfaces/FileSystemGetDirectoryOptions.create.md +0 -9
- package/docs/interfaces/FileSystemGetDirectoryOptions.md +0 -44
- package/docs/interfaces/FileSystemGetFileOptions.create.md +0 -9
- package/docs/interfaces/FileSystemGetFileOptions.md +0 -44
- package/docs/interfaces/FileSystemHandle.isSameEntry.md +0 -20
- package/docs/interfaces/FileSystemHandle.kind.md +0 -9
- package/docs/interfaces/FileSystemHandle.md +0 -118
- package/docs/interfaces/FileSystemHandle.name.md +0 -9
- package/docs/interfaces/FileSystemHandle.queryPermission.md +0 -20
- package/docs/interfaces/FileSystemHandle.requestPermission.md +0 -20
- package/docs/interfaces/FileSystemHandlePermissionDescriptor.md +0 -44
- package/docs/interfaces/FileSystemHandlePermissionDescriptor.mode.md +0 -9
- package/docs/interfaces/FileSystemRemoveOptions.md +0 -44
- package/docs/interfaces/FileSystemRemoveOptions.recursive.md +0 -9
- package/docs/interfaces/FileSystemWritableFileStream.md +0 -142
- package/docs/interfaces/FileSystemWritableFileStream.seek.md +0 -20
- package/docs/interfaces/FileSystemWritableFileStream.truncate.md +0 -20
- package/docs/interfaces/FileSystemWritableFileStream.write.md +0 -20
- package/docs/interfaces/IDirectoryHandleTreeInitializer.dirHandles.md +0 -9
- package/docs/interfaces/IDirectoryHandleTreeInitializer.md +0 -78
- package/docs/interfaces/IDirectoryHandleTreeInitializer.nonRecursive.md +0 -9
- package/docs/interfaces/IDirectoryHandleTreeInitializer.prefix.md +0 -9
- package/docs/interfaces/IFileHandleTreeInitializer.fileHandles.md +0 -9
- package/docs/interfaces/IFileHandleTreeInitializer.md +0 -61
- package/docs/interfaces/IFileHandleTreeInitializer.prefix.md +0 -9
- package/docs/interfaces/IFileListTreeInitializer.fileList.md +0 -9
- package/docs/interfaces/IFileListTreeInitializer.md +0 -44
- package/docs/interfaces/IFileMetadata.lastModified.md +0 -9
- package/docs/interfaces/IFileMetadata.md +0 -112
- package/docs/interfaces/IFileMetadata.name.md +0 -9
- package/docs/interfaces/IFileMetadata.path.md +0 -9
- package/docs/interfaces/IFileMetadata.size.md +0 -9
- package/docs/interfaces/IFileMetadata.type.md +0 -9
- package/docs/interfaces/IFileSystemAccessTreeParams.autoSync.md +0 -12
- package/docs/interfaces/IFileSystemAccessTreeParams.filePath.md +0 -13
- package/docs/interfaces/IFileSystemAccessTreeParams.logger.md +0 -11
- package/docs/interfaces/IFileSystemAccessTreeParams.md +0 -148
- package/docs/interfaces/IFileSystemAccessTreeParams.requireWritePermission.md +0 -13
- package/docs/interfaces/IFsAccessApis.md +0 -62
- package/docs/interfaces/IFsAccessApis.showDirectoryPicker.md +0 -20
- package/docs/interfaces/IFsAccessApis.showOpenFilePicker.md +0 -20
- package/docs/interfaces/IFsAccessApis.showSaveFilePicker.md +0 -20
- package/docs/interfaces/IHttpTreeParams.autoSync.md +0 -9
- package/docs/interfaces/IHttpTreeParams.baseUrl.md +0 -9
- package/docs/interfaces/IHttpTreeParams.fetchImpl.md +0 -9
- package/docs/interfaces/IHttpTreeParams.logger.md +0 -9
- package/docs/interfaces/IHttpTreeParams.md +0 -182
- package/docs/interfaces/IHttpTreeParams.namespace.md +0 -9
- package/docs/interfaces/IHttpTreeParams.userId.md +0 -9
- package/docs/interfaces/ILocalStorageTreeParams.autoSync.md +0 -12
- package/docs/interfaces/ILocalStorageTreeParams.md +0 -131
- package/docs/interfaces/ILocalStorageTreeParams.pathToKeyMap.md +0 -13
- package/docs/interfaces/ILocalStorageTreeParams.storage.md +0 -12
- package/docs/interfaces/IUrlConfigOptions.config.md +0 -11
- package/docs/interfaces/IUrlConfigOptions.configStartDir.md +0 -11
- package/docs/interfaces/IUrlConfigOptions.contextFilter.md +0 -11
- package/docs/interfaces/IUrlConfigOptions.input.md +0 -11
- package/docs/interfaces/IUrlConfigOptions.inputStartDir.md +0 -11
- package/docs/interfaces/IUrlConfigOptions.interactive.md +0 -11
- package/docs/interfaces/IUrlConfigOptions.loadZip.md +0 -11
- package/docs/interfaces/IUrlConfigOptions.maxDistance.md +0 -11
- package/docs/interfaces/IUrlConfigOptions.md +0 -248
- package/docs/interfaces/IUrlConfigOptions.qualifierDefaults.md +0 -11
- package/docs/interfaces/IUrlConfigOptions.reduceQualifiers.md +0 -11
- package/docs/interfaces/IUrlConfigOptions.resourceTypes.md +0 -11
- package/docs/interfaces/IUrlConfigOptions.zipFile.md +0 -11
- package/docs/interfaces/IUrlConfigOptions.zipPath.md +0 -11
- package/docs/interfaces/ShowDirectoryPickerOptions.id.md +0 -9
- package/docs/interfaces/ShowDirectoryPickerOptions.md +0 -78
- package/docs/interfaces/ShowDirectoryPickerOptions.mode.md +0 -9
- package/docs/interfaces/ShowDirectoryPickerOptions.startIn.md +0 -9
- package/docs/interfaces/ShowOpenFilePickerOptions.excludeAcceptAllOption.md +0 -9
- package/docs/interfaces/ShowOpenFilePickerOptions.id.md +0 -9
- package/docs/interfaces/ShowOpenFilePickerOptions.md +0 -112
- package/docs/interfaces/ShowOpenFilePickerOptions.multiple.md +0 -9
- package/docs/interfaces/ShowOpenFilePickerOptions.startIn.md +0 -9
- package/docs/interfaces/ShowOpenFilePickerOptions.types.md +0 -9
- package/docs/interfaces/ShowSaveFilePickerOptions.excludeAcceptAllOption.md +0 -9
- package/docs/interfaces/ShowSaveFilePickerOptions.id.md +0 -9
- package/docs/interfaces/ShowSaveFilePickerOptions.md +0 -112
- package/docs/interfaces/ShowSaveFilePickerOptions.startIn.md +0 -9
- package/docs/interfaces/ShowSaveFilePickerOptions.suggestedName.md +0 -9
- package/docs/interfaces/ShowSaveFilePickerOptions.types.md +0 -9
- package/docs/type-aliases/TreeInitializer.md +0 -11
- package/docs/type-aliases/WellKnownDirectory.md +0 -11
- package/docs/type-aliases/WindowWithFsAccess.md +0 -11
- package/docs/variables/DEFAULT_DIRECTORY_HANDLE_DB.md +0 -9
- package/docs/variables/DEFAULT_DIRECTORY_HANDLE_STORE.md +0 -9
- package/docs/variables/defaultFileApiTreeInitParams.md +0 -9
- package/etc/ts-web-extras.api.md +0 -439
- package/lib/test/mocks/idb-keyval.d.ts +0 -6
- package/lib/test/mocks/idb-keyval.d.ts.map +0 -1
- package/lib/test/mocks/idb-keyval.js +0 -9
- package/lib/test/mocks/idb-keyval.js.map +0 -1
- package/lib/test/setupTests.d.ts +0 -2
- package/lib/test/setupTests.d.ts.map +0 -1
- package/lib/test/setupTests.js +0 -76
- package/lib/test/setupTests.js.map +0 -1
- package/lib/test/unit/browserCryptoProvider.wrapBytes.test.d.ts +0 -2
- package/lib/test/unit/browserCryptoProvider.wrapBytes.test.d.ts.map +0 -1
- package/lib/test/unit/browserCryptoProvider.wrapBytes.test.js +0 -223
- package/lib/test/unit/browserCryptoProvider.wrapBytes.test.js.map +0 -1
- package/lib/test/unit/browserHashProvider.test.d.ts +0 -2
- package/lib/test/unit/browserHashProvider.test.d.ts.map +0 -1
- package/lib/test/unit/browserHashProvider.test.js +0 -142
- package/lib/test/unit/browserHashProvider.test.js.map +0 -1
- package/lib/test/unit/directoryHandleStore.test.d.ts +0 -2
- package/lib/test/unit/directoryHandleStore.test.d.ts.map +0 -1
- package/lib/test/unit/directoryHandleStore.test.js +0 -192
- package/lib/test/unit/directoryHandleStore.test.js.map +0 -1
- package/lib/test/unit/fileApiTreeAccessors.test.d.ts +0 -2
- package/lib/test/unit/fileApiTreeAccessors.test.d.ts.map +0 -1
- package/lib/test/unit/fileApiTreeAccessors.test.js +0 -1190
- package/lib/test/unit/fileApiTreeAccessors.test.js.map +0 -1
- package/lib/test/unit/fileApiTypes.test.d.ts +0 -2
- package/lib/test/unit/fileApiTypes.test.d.ts.map +0 -1
- package/lib/test/unit/fileApiTypes.test.js +0 -474
- package/lib/test/unit/fileApiTypes.test.js.map +0 -1
- package/lib/test/unit/fileSystemAccessTreeAccessors.test.d.ts +0 -2
- package/lib/test/unit/fileSystemAccessTreeAccessors.test.d.ts.map +0 -1
- package/lib/test/unit/fileSystemAccessTreeAccessors.test.js +0 -624
- package/lib/test/unit/fileSystemAccessTreeAccessors.test.js.map +0 -1
- package/lib/test/unit/fileTreeHelpers.test.d.ts +0 -2
- package/lib/test/unit/fileTreeHelpers.test.d.ts.map +0 -1
- package/lib/test/unit/fileTreeHelpers.test.js +0 -592
- package/lib/test/unit/fileTreeHelpers.test.js.map +0 -1
- package/lib/test/unit/httpTreeAccessors.test.d.ts +0 -2
- package/lib/test/unit/httpTreeAccessors.test.d.ts.map +0 -1
- package/lib/test/unit/httpTreeAccessors.test.js +0 -1366
- package/lib/test/unit/httpTreeAccessors.test.js.map +0 -1
- package/lib/test/unit/localStorageTreeAccessors.test.d.ts +0 -2
- package/lib/test/unit/localStorageTreeAccessors.test.d.ts.map +0 -1
- package/lib/test/unit/localStorageTreeAccessors.test.js +0 -814
- package/lib/test/unit/localStorageTreeAccessors.test.js.map +0 -1
- package/lib/test/unit/urlParams.test.d.ts +0 -2
- package/lib/test/unit/urlParams.test.d.ts.map +0 -1
- package/lib/test/unit/urlParams.test.js +0 -395
- package/lib/test/unit/urlParams.test.js.map +0 -1
- package/lib/test/utils/fileSystemAccessMocks.d.ts +0 -53
- package/lib/test/utils/fileSystemAccessMocks.d.ts.map +0 -1
- package/lib/test/utils/fileSystemAccessMocks.js +0 -277
- package/lib/test/utils/fileSystemAccessMocks.js.map +0 -1
- package/lib/test/utils/testHelpers.d.ts +0 -51
- package/lib/test/utils/testHelpers.d.ts.map +0 -1
- package/lib/test/utils/testHelpers.js +0 -133
- package/lib/test/utils/testHelpers.js.map +0 -1
- package/rush-logs/ts-web-extras.build.cache.log +0 -3
- package/rush-logs/ts-web-extras.build.log +0 -57
- package/src/index.browser.ts +0 -24
- package/src/index.ts +0 -47
- package/src/packlets/crypto-utils/browserCryptoProvider.ts +0 -553
- package/src/packlets/crypto-utils/browserHashProvider.ts +0 -73
- package/src/packlets/crypto-utils/index.ts +0 -29
- package/src/packlets/file-api-types/index.ts +0 -366
- package/src/packlets/file-tree/directoryHandleStore.ts +0 -136
- package/src/packlets/file-tree/fileApiTreeAccessors.ts +0 -528
- package/src/packlets/file-tree/fileSystemAccessTreeAccessors.ts +0 -519
- package/src/packlets/file-tree/httpTreeAccessors.ts +0 -478
- package/src/packlets/file-tree/index.ts +0 -32
- package/src/packlets/file-tree/localStorageTreeAccessors.ts +0 -430
- package/src/packlets/helpers/fileTreeHelpers.ts +0 -107
- package/src/packlets/helpers/index.ts +0 -28
- package/src/packlets/url-utils/index.ts +0 -28
- package/src/packlets/url-utils/urlParams.ts +0 -245
- package/src/test/mocks/idb-keyval.ts +0 -5
- package/src/test/setupTests.ts +0 -87
- package/src/test/unit/browserCryptoProvider.wrapBytes.test.ts +0 -325
- package/src/test/unit/browserHashProvider.test.ts +0 -155
- package/src/test/unit/browserHashProvider.test.ts.bak +0 -376
- package/src/test/unit/directoryHandleStore.test.ts +0 -251
- package/src/test/unit/fileApiTreeAccessors.test.ts +0 -1387
- package/src/test/unit/fileApiTypes.test.ts +0 -587
- package/src/test/unit/fileSystemAccessTreeAccessors.test.ts +0 -885
- package/src/test/unit/fileTreeHelpers.test.ts +0 -694
- package/src/test/unit/httpTreeAccessors.test.ts +0 -1750
- package/src/test/unit/localStorageTreeAccessors.test.ts +0 -1014
- package/src/test/unit/urlParams.test.ts +0 -464
- package/src/test/utils/fileSystemAccessMocks.ts +0 -353
- package/src/test/utils/testHelpers.ts +0 -155
- package/temp/build/typescript/ts_8nwakTlr.json +0 -1
- package/temp/coverage/base.css +0 -224
- package/temp/coverage/block-navigation.js +0 -87
- package/temp/coverage/crypto-utils/browserCryptoProvider.ts.html +0 -1744
- package/temp/coverage/crypto-utils/browserHashProvider.ts.html +0 -304
- package/temp/coverage/crypto-utils/index.html +0 -131
- package/temp/coverage/favicon.png +0 -0
- package/temp/coverage/file-tree/directoryHandleStore.ts.html +0 -493
- package/temp/coverage/file-tree/fileApiTreeAccessors.ts.html +0 -1669
- package/temp/coverage/file-tree/fileSystemAccessTreeAccessors.ts.html +0 -1642
- package/temp/coverage/file-tree/httpTreeAccessors.ts.html +0 -1519
- package/temp/coverage/file-tree/index.html +0 -176
- package/temp/coverage/file-tree/localStorageTreeAccessors.ts.html +0 -1375
- package/temp/coverage/helpers/fileTreeHelpers.ts.html +0 -406
- package/temp/coverage/helpers/index.html +0 -116
- package/temp/coverage/index.html +0 -161
- package/temp/coverage/lcov-report/base.css +0 -224
- package/temp/coverage/lcov-report/block-navigation.js +0 -87
- package/temp/coverage/lcov-report/crypto-utils/browserCryptoProvider.ts.html +0 -1744
- package/temp/coverage/lcov-report/crypto-utils/browserHashProvider.ts.html +0 -304
- package/temp/coverage/lcov-report/crypto-utils/index.html +0 -131
- package/temp/coverage/lcov-report/favicon.png +0 -0
- package/temp/coverage/lcov-report/file-tree/directoryHandleStore.ts.html +0 -493
- package/temp/coverage/lcov-report/file-tree/fileApiTreeAccessors.ts.html +0 -1669
- package/temp/coverage/lcov-report/file-tree/fileSystemAccessTreeAccessors.ts.html +0 -1642
- package/temp/coverage/lcov-report/file-tree/httpTreeAccessors.ts.html +0 -1519
- package/temp/coverage/lcov-report/file-tree/index.html +0 -176
- package/temp/coverage/lcov-report/file-tree/localStorageTreeAccessors.ts.html +0 -1375
- package/temp/coverage/lcov-report/helpers/fileTreeHelpers.ts.html +0 -406
- package/temp/coverage/lcov-report/helpers/index.html +0 -116
- package/temp/coverage/lcov-report/index.html +0 -161
- package/temp/coverage/lcov-report/prettify.css +0 -1
- package/temp/coverage/lcov-report/prettify.js +0 -2
- package/temp/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/temp/coverage/lcov-report/sorter.js +0 -210
- package/temp/coverage/lcov-report/url-utils/index.html +0 -116
- package/temp/coverage/lcov-report/url-utils/urlParams.ts.html +0 -820
- package/temp/coverage/lcov.info +0 -3924
- package/temp/coverage/prettify.css +0 -1
- package/temp/coverage/prettify.js +0 -2
- package/temp/coverage/sort-arrow-sprite.png +0 -0
- package/temp/coverage/sorter.js +0 -210
- package/temp/coverage/url-utils/index.html +0 -116
- package/temp/coverage/url-utils/urlParams.ts.html +0 -820
- package/temp/test/jest/haste-map-7492f1b44480e0cdd1f220078fb3afd8-c8dd6c3430605adeb2f1cadf4f75e791-8c9336785555d572065b28c111982ba4 +0 -0
- package/temp/test/jest/jest-transform-cache-7492f1b44480e0cdd1f220078fb3afd8-79ef2876fae7ca75eedb2aa53dc48338/8a/package_8a7abbb163935a14e582220d11872de3 +0 -53
- package/temp/test/jest/perf-cache-7492f1b44480e0cdd1f220078fb3afd8-da39a3ee5e6b4b0d3255bfef95601890 +0 -1
- package/temp/ts-web-extras.api.json +0 -9373
- package/temp/ts-web-extras.api.md +0 -439
- package/tsconfig.json +0 -7
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"testHelpers.js","sourceRoot":"","sources":["../../../src/test/utils/testHelpers.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;AAoBH,wCA0BC;AAMD,gDAUC;AAMD,kEAWC;AAMD,sBAEC;AAMD,sCAYC;AAMD,4CAaC;AAKD,4CAKC;AArHD;;GAEG;AACH,SAAgB,cAAc,CAAC,IAAkB;IAC/C,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,YAAY,EAAE,CAAC,CAAC;IAC3E,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,IAAI,EAAE;QACvC,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,YAAY;QAC/B,YAAY,EAAE,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,GAAG,EAAE;KAC9C,CAAC,CAAC;IAEH,6DAA6D;IAC7D,IAAI,IAAI,CAAC,kBAAkB,EAAE,CAAC;QAC5B,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,oBAAoB,EAAE;YAChD,KAAK,EAAE,IAAI,CAAC,kBAAkB;YAC9B,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,IAAI;SACnB,CAAC,CAAC;IACL,CAAC;IAED,sCAAsC;IACtC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,OAAO,IAAI,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;QAClD,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE;YAClC,KAAK,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC;YAC1C,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,IAAI;SACnB,CAAC,CAAC;IACL,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;GAGG;AACH,SAAgB,kBAAkB,CAAC,KAAqB;IACtD,+CAA+C;IAC/C,MAAM,EAAE,GAAG,IAAI,YAAY,EAAE,CAAC;IAE9B,KAAK,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;QACzB,MAAM,IAAI,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;QACtC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACrB,CAAC,CAAC,CAAC;IAEH,OAAO,EAAE,CAAC,KAAK,CAAC;AAClB,CAAC;AAED;;;GAGG;AACH,SAAgB,2BAA2B,CACzC,kBAA2E;IAE3E,MAAM,KAAK,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAC9C,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE;QACtC,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,kBAAkB,EAAE,IAAI,CAAC,IAAI;KAC9B,CAAC,CAAC,CAAC;IAEJ,OAAO,kBAAkB,CAAC,KAAK,CAAC,CAAC;AACnC,CAAC;AAED;;;GAGG;AACH,SAAgB,KAAK,CAAC,EAAU;IAC9B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;AAC3D,CAAC;AAED;;;GAGG;AACI,KAAK,UAAU,aAAa,CAAC,IAAU;IAC5C,IAAI,CAAC;QACH,0CAA0C;QAC1C,IAAI,OAAO,IAAI,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;YACpC,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;QACtD,CAAC;QAED,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;QAC/B,OAAO,OAAO,IAAI,KAAK,QAAQ,CAAC;IAClC,CAAC;IAAC,WAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED;;;GAGG;AACH,SAAgB,gBAAgB,CAAC,KAAa,EAAE,YAAoB,SAAS;IAC3E,2DAA2D;IAC3D,sDAAsD;IACtD,MAAM,UAAU,GAAG,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACxF,MAAM,MAAM,GAAG,IAAI,WAAW,CAAC,UAAU,CAAC,CAAC;IAC3C,MAAM,IAAI,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;IAEpC,gDAAgD;IAChD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,EAAE,CAAC,EAAE,EAAE,CAAC;QACpC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC;IAC3D,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;GAEG;AACH,SAAgB,gBAAgB,CAAC,MAAmB;IAClD,MAAM,IAAI,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;IACpC,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;SACpB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;SAC3C,IAAI,CAAC,EAAE,CAAC,CAAC;AACd,CAAC","sourcesContent":["/*\n * Copyright (c) 2025 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\n/**\n * Test utilities for mocking browser APIs\n */\n\n/**\n * Mock file data structure\n */\nexport interface MockFileData {\n name: string;\n content: string;\n type?: string;\n lastModified?: number;\n webkitRelativePath?: string;\n}\n\n/**\n * Create a mock File object with all necessary properties and methods\n */\nexport function createMockFile(data: MockFileData): File {\n const blob = new Blob([data.content], { type: data.type || 'text/plain' });\n const file = new File([blob], data.name, {\n type: data.type || 'text/plain',\n lastModified: data.lastModified || Date.now()\n });\n\n // Add webkitRelativePath if provided (for directory uploads)\n if (data.webkitRelativePath) {\n Object.defineProperty(file, 'webkitRelativePath', {\n value: data.webkitRelativePath,\n writable: false,\n configurable: true\n });\n }\n\n // Ensure text() method works properly\n if (!file.text || typeof file.text !== 'function') {\n Object.defineProperty(file, 'text', {\n value: () => Promise.resolve(data.content),\n writable: false,\n configurable: true\n });\n }\n\n return file;\n}\n\n/**\n * Create a mock FileList using DataTransfer API\n * This is the most reliable method for creating FileList objects in tests\n */\nexport function createMockFileList(files: MockFileData[]): FileList {\n // Use DataTransfer to create a proper FileList\n const dt = new DataTransfer();\n\n files.forEach((fileData) => {\n const file = createMockFile(fileData);\n dt.items.add(file);\n });\n\n return dt.files;\n}\n\n/**\n * Create a mock FileList for directory upload simulation\n * Includes webkitRelativePath for each file\n */\nexport function createMockDirectoryFileList(\n directoryStructure: Array<{ path: string; content: string; type?: string }>\n): FileList {\n const files = directoryStructure.map((item) => ({\n name: item.path.split('/').pop() || '',\n content: item.content,\n type: item.type,\n webkitRelativePath: item.path\n }));\n\n return createMockFileList(files);\n}\n\n/**\n * Helper to create a promise that resolves after a delay\n * Useful for testing async operations\n */\nexport function delay(ms: number): Promise<void> {\n return new Promise((resolve) => setTimeout(resolve, ms));\n}\n\n/**\n * Helper to verify File API text() method works correctly\n * Since we're using Blob/File polyfills, this ensures they have the right methods\n */\nexport async function verifyFileAPI(file: File): Promise<boolean> {\n try {\n // Check if text() method exists and works\n if (typeof file.text !== 'function') {\n throw new Error('File.text() method not available');\n }\n\n const text = await file.text();\n return typeof text === 'string';\n } catch {\n return false;\n }\n}\n\n/**\n * Mock Web Crypto digest result for testing\n * Creates a deterministic hash-like ArrayBuffer\n */\nexport function createMockDigest(input: string, algorithm: string = 'SHA-256'): ArrayBuffer {\n // Create a deterministic \"hash\" based on input for testing\n // This is not a real hash but good enough for testing\n const hashLength = algorithm.includes('256') ? 32 : algorithm.includes('512') ? 64 : 20;\n const buffer = new ArrayBuffer(hashLength);\n const view = new Uint8Array(buffer);\n\n // Fill with deterministic values based on input\n for (let i = 0; i < hashLength; i++) {\n view[i] = (input.charCodeAt(i % input.length) + i) % 256;\n }\n\n return buffer;\n}\n\n/**\n * Convert ArrayBuffer to hex string for comparison in tests\n */\nexport function arrayBufferToHex(buffer: ArrayBuffer): string {\n const view = new Uint8Array(buffer);\n return Array.from(view)\n .map((b) => b.toString(16).padStart(2, '0'))\n .join('');\n}\n"]}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
Invoking: NODE_OPTIONS=--disable-warning=DEP0040 heft test --clean
|
|
2
|
-
---- build started ----
|
|
3
|
-
[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
|
-
[build:typescript] Using TypeScript version 5.9.3
|
|
5
|
-
[build:api-extractor] Using API Extractor version 7.57.7
|
|
6
|
-
[build:api-extractor] Analysis will use the bundled TypeScript version 5.8.2
|
|
7
|
-
[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 (23.128s) ----
|
|
9
|
-
---- test started ----
|
|
10
|
-
[test:jest] Using Jest version 29.5.0
|
|
11
|
-
[test:jest]
|
|
12
|
-
[test:jest] Run start. 10 test suites
|
|
13
|
-
[test:jest] START lib/test/unit/httpTreeAccessors.test.js
|
|
14
|
-
[test:jest] START lib/test/unit/fileApiTreeAccessors.test.js
|
|
15
|
-
[test:jest] START lib/test/unit/localStorageTreeAccessors.test.js
|
|
16
|
-
[test:jest] START lib/test/unit/fileSystemAccessTreeAccessors.test.js
|
|
17
|
-
[test:jest] PASS lib/test/unit/localStorageTreeAccessors.test.js (duration: 1.702s, 44 passed, 0 failed)
|
|
18
|
-
[test:jest] START lib/test/unit/fileTreeHelpers.test.js
|
|
19
|
-
[test:jest] PASS lib/test/unit/httpTreeAccessors.test.js (duration: 2.103s, 61 passed, 0 failed)
|
|
20
|
-
[test:jest] START lib/test/unit/fileApiTypes.test.js
|
|
21
|
-
[test:jest] PASS lib/test/unit/fileApiTreeAccessors.test.js (duration: 2.550s, 65 passed, 0 failed)
|
|
22
|
-
[test:jest] START lib/test/unit/urlParams.test.js
|
|
23
|
-
[test:jest] PASS lib/test/unit/fileSystemAccessTreeAccessors.test.js (duration: 1.592s, 44 passed, 0 failed)
|
|
24
|
-
[test:jest] START lib/test/unit/browserCryptoProvider.wrapBytes.test.js
|
|
25
|
-
[test:jest] PASS lib/test/unit/fileApiTypes.test.js (duration: 1.647s, 36 passed, 0 failed)
|
|
26
|
-
[test:jest] START lib/test/unit/directoryHandleStore.test.js
|
|
27
|
-
[test:jest] PASS lib/test/unit/fileTreeHelpers.test.js (duration: 2.006s, 35 passed, 0 failed)
|
|
28
|
-
[test:jest] START lib/test/unit/browserHashProvider.test.js
|
|
29
|
-
[test:jest] PASS lib/test/unit/directoryHandleStore.test.js (duration: 1.362s, 19 passed, 0 failed)
|
|
30
|
-
[test:jest] PASS lib/test/unit/urlParams.test.js (duration: 1.974s, 60 passed, 0 failed)
|
|
31
|
-
[test:jest] PASS lib/test/unit/browserCryptoProvider.wrapBytes.test.js (duration: 2.015s, 26 passed, 0 failed)
|
|
32
|
-
[test:jest] PASS lib/test/unit/browserHashProvider.test.js (duration: 1.383s, 15 passed, 0 failed)
|
|
33
|
-
[test:jest]
|
|
34
|
-
[test:jest] Tests finished:
|
|
35
|
-
[test:jest] Successes: 405
|
|
36
|
-
[test:jest] Failures: 0
|
|
37
|
-
[test:jest] Total: 406
|
|
38
|
-
-----------------------------------|---------|----------|---------|---------|-------------------
|
|
39
|
-
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
|
|
40
|
-
-----------------------------------|---------|----------|---------|---------|-------------------
|
|
41
|
-
All files | 100 | 99.64 | 100 | 100 |
|
|
42
|
-
crypto-utils | 100 | 100 | 100 | 100 |
|
|
43
|
-
browserCryptoProvider.ts | 100 | 100 | 100 | 100 |
|
|
44
|
-
browserHashProvider.ts | 100 | 100 | 100 | 100 |
|
|
45
|
-
file-tree | 100 | 99.58 | 100 | 100 |
|
|
46
|
-
directoryHandleStore.ts | 100 | 100 | 100 | 100 |
|
|
47
|
-
fileApiTreeAccessors.ts | 100 | 100 | 100 | 100 |
|
|
48
|
-
fileSystemAccessTreeAccessors.ts | 100 | 100 | 100 | 100 |
|
|
49
|
-
httpTreeAccessors.ts | 100 | 98.42 | 100 | 100 | 369
|
|
50
|
-
localStorageTreeAccessors.ts | 100 | 100 | 100 | 100 |
|
|
51
|
-
helpers | 100 | 100 | 100 | 100 |
|
|
52
|
-
fileTreeHelpers.ts | 100 | 100 | 100 | 100 |
|
|
53
|
-
url-utils | 100 | 100 | 100 | 100 |
|
|
54
|
-
urlParams.ts | 100 | 100 | 100 | 100 |
|
|
55
|
-
-----------------------------------|---------|----------|---------|---------|-------------------
|
|
56
|
-
---- test finished (9.881s) ----
|
|
57
|
-
-------------------- Finished (33.035s) --------------------
|
package/src/index.browser.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2025 Erik Fortune
|
|
3
|
-
*
|
|
4
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
6
|
-
* in the Software without restriction, including without limitation the rights
|
|
7
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
9
|
-
* furnished to do so, subject to the following conditions:
|
|
10
|
-
*
|
|
11
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
-
* copies or substantial portions of the Software.
|
|
13
|
-
*
|
|
14
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
-
* SOFTWARE.
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
// Browser entry point - re-exports everything from main index
|
|
24
|
-
export * from './index';
|
package/src/index.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2025 Erik Fortune
|
|
3
|
-
*
|
|
4
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
6
|
-
* in the Software without restriction, including without limitation the rights
|
|
7
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
9
|
-
* furnished to do so, subject to the following conditions:
|
|
10
|
-
*
|
|
11
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
-
* copies or substantial portions of the Software.
|
|
13
|
-
*
|
|
14
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
-
* SOFTWARE.
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Browser-compatible utilities and FileTree implementations.
|
|
25
|
-
*
|
|
26
|
-
* This library provides browser-compatible alternatives to Node.js-specific functionality,
|
|
27
|
-
* including Web Crypto API-based hashing, File API-based file tree implementations,
|
|
28
|
-
* and URL parameter parsing utilities.
|
|
29
|
-
* All exports are designed to be tree-shakeable for optimal bundle size.
|
|
30
|
-
*
|
|
31
|
-
* @packageDocumentation
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
import * as CryptoUtils from './packlets/crypto-utils';
|
|
35
|
-
export { CryptoUtils };
|
|
36
|
-
|
|
37
|
-
// Export file tree functionality
|
|
38
|
-
export * from './packlets/file-tree';
|
|
39
|
-
|
|
40
|
-
// Export helper functions
|
|
41
|
-
export * from './packlets/helpers';
|
|
42
|
-
|
|
43
|
-
// Export File System Access API types
|
|
44
|
-
export * from './packlets/file-api-types';
|
|
45
|
-
|
|
46
|
-
// Export URL utilities
|
|
47
|
-
export * from './packlets/url-utils';
|