@nshiab/setup-data-project 1.0.7
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/LICENSE +21 -0
- package/README.md +25 -0
- package/esm/_dnt.shims.d.ts +6 -0
- package/esm/_dnt.shims.d.ts.map +1 -0
- package/esm/_dnt.shims.js +61 -0
- package/esm/helpers/createFolderStructure.d.ts +2 -0
- package/esm/helpers/createFolderStructure.d.ts.map +1 -0
- package/esm/helpers/createFolderStructure.js +49 -0
- package/esm/helpers/ensureAgents.d.ts +2 -0
- package/esm/helpers/ensureAgents.d.ts.map +1 -0
- package/esm/helpers/ensureAgents.js +92 -0
- package/esm/helpers/ensureEnvFile.d.ts +2 -0
- package/esm/helpers/ensureEnvFile.d.ts.map +1 -0
- package/esm/helpers/ensureEnvFile.js +14 -0
- package/esm/helpers/ensureGitignore.d.ts +2 -0
- package/esm/helpers/ensureGitignore.d.ts.map +1 -0
- package/esm/helpers/ensureGitignore.js +29 -0
- package/esm/helpers/ensureReadme.d.ts +2 -0
- package/esm/helpers/ensureReadme.d.ts.map +1 -0
- package/esm/helpers/ensureReadme.js +37 -0
- package/esm/helpers/getInstalledPackages.d.ts +2 -0
- package/esm/helpers/getInstalledPackages.d.ts.map +1 -0
- package/esm/helpers/getInstalledPackages.js +29 -0
- package/esm/helpers/getProjectTasks.d.ts +5 -0
- package/esm/helpers/getProjectTasks.d.ts.map +1 -0
- package/esm/helpers/getProjectTasks.js +12 -0
- package/esm/helpers/getRuntime.d.ts +5 -0
- package/esm/helpers/getRuntime.d.ts.map +1 -0
- package/esm/helpers/getRuntime.js +17 -0
- package/esm/helpers/gitignoreEntries.d.ts +2 -0
- package/esm/helpers/gitignoreEntries.d.ts.map +1 -0
- package/esm/helpers/gitignoreEntries.js +9 -0
- package/esm/helpers/handleFileConflict.d.ts +5 -0
- package/esm/helpers/handleFileConflict.d.ts.map +1 -0
- package/esm/helpers/handleFileConflict.js +51 -0
- package/esm/helpers/installPackagesAndFetchDocs.d.ts +8 -0
- package/esm/helpers/installPackagesAndFetchDocs.d.ts.map +1 -0
- package/esm/helpers/installPackagesAndFetchDocs.js +61 -0
- package/esm/helpers/packageOptions.d.ts +5 -0
- package/esm/helpers/packageOptions.d.ts.map +1 -0
- package/esm/helpers/packageOptions.js +5 -0
- package/esm/helpers/packageRegistry.d.ts +7 -0
- package/esm/helpers/packageRegistry.d.ts.map +1 -0
- package/esm/helpers/packageRegistry.js +62 -0
- package/esm/helpers/updateProjectConfig.d.ts +2 -0
- package/esm/helpers/updateProjectConfig.d.ts.map +1 -0
- package/esm/helpers/updateProjectConfig.js +36 -0
- package/esm/main.d.ts +3 -0
- package/esm/main.d.ts.map +1 -0
- package/esm/main.js +93 -0
- package/esm/package.json +3 -0
- package/npm/LICENSE +21 -0
- package/npm/README.md +25 -0
- package/npm/esm/_dnt.shims.d.ts +8 -0
- package/npm/esm/_dnt.shims.d.ts.map +1 -0
- package/npm/esm/_dnt.shims.js +62 -0
- package/npm/esm/_dnt_2.shims.d.ts +6 -0
- package/npm/esm/_dnt_2.shims.d.ts.map +1 -0
- package/npm/esm/_dnt_2.shims.js +61 -0
- package/npm/esm/helpers/createFolderStructure.d.ts +2 -0
- package/npm/esm/helpers/createFolderStructure.d.ts.map +1 -0
- package/npm/esm/helpers/createFolderStructure.js +49 -0
- package/npm/esm/helpers/ensureAgents.d.ts +2 -0
- package/npm/esm/helpers/ensureAgents.d.ts.map +1 -0
- package/npm/esm/helpers/ensureAgents.js +92 -0
- package/npm/esm/helpers/ensureEnvFile.d.ts +2 -0
- package/npm/esm/helpers/ensureEnvFile.d.ts.map +1 -0
- package/npm/esm/helpers/ensureEnvFile.js +14 -0
- package/npm/esm/helpers/ensureGitignore.d.ts +2 -0
- package/npm/esm/helpers/ensureGitignore.d.ts.map +1 -0
- package/npm/esm/helpers/ensureGitignore.js +29 -0
- package/npm/esm/helpers/ensureReadme.d.ts +2 -0
- package/npm/esm/helpers/ensureReadme.d.ts.map +1 -0
- package/npm/esm/helpers/ensureReadme.js +37 -0
- package/npm/esm/helpers/getInstalledPackages.d.ts +2 -0
- package/npm/esm/helpers/getInstalledPackages.d.ts.map +1 -0
- package/npm/esm/helpers/getInstalledPackages.js +29 -0
- package/npm/esm/helpers/getProjectTasks.d.ts +5 -0
- package/npm/esm/helpers/getProjectTasks.d.ts.map +1 -0
- package/npm/esm/helpers/getProjectTasks.js +12 -0
- package/npm/esm/helpers/getRuntime.d.ts +5 -0
- package/npm/esm/helpers/getRuntime.d.ts.map +1 -0
- package/npm/esm/helpers/getRuntime.js +17 -0
- package/npm/esm/helpers/gitignoreEntries.d.ts +2 -0
- package/npm/esm/helpers/gitignoreEntries.d.ts.map +1 -0
- package/npm/esm/helpers/gitignoreEntries.js +9 -0
- package/npm/esm/helpers/handleFileConflict.d.ts +5 -0
- package/npm/esm/helpers/handleFileConflict.d.ts.map +1 -0
- package/npm/esm/helpers/handleFileConflict.js +51 -0
- package/npm/esm/helpers/installPackagesAndFetchDocs.d.ts +8 -0
- package/npm/esm/helpers/installPackagesAndFetchDocs.d.ts.map +1 -0
- package/npm/esm/helpers/installPackagesAndFetchDocs.js +61 -0
- package/npm/esm/helpers/packageOptions.d.ts +5 -0
- package/npm/esm/helpers/packageOptions.d.ts.map +1 -0
- package/npm/esm/helpers/packageOptions.js +5 -0
- package/npm/esm/helpers/packageRegistry.d.ts +7 -0
- package/npm/esm/helpers/packageRegistry.d.ts.map +1 -0
- package/npm/esm/helpers/packageRegistry.js +62 -0
- package/npm/esm/helpers/updateProjectConfig.d.ts +2 -0
- package/npm/esm/helpers/updateProjectConfig.d.ts.map +1 -0
- package/npm/esm/helpers/updateProjectConfig.js +36 -0
- package/npm/esm/main.d.ts +3 -0
- package/npm/esm/main.d.ts.map +1 -0
- package/npm/esm/main.js +93 -0
- package/npm/esm/package.json +3 -0
- package/npm/node_modules/.package-lock.json +123 -0
- package/npm/node_modules/@clack/core/CHANGELOG.md +348 -0
- package/npm/node_modules/@clack/core/LICENSE +9 -0
- package/npm/node_modules/@clack/core/README.md +22 -0
- package/npm/node_modules/@clack/core/dist/index.d.mts +363 -0
- package/npm/node_modules/@clack/core/dist/index.mjs +17 -0
- package/npm/node_modules/@clack/core/dist/index.mjs.map +1 -0
- package/npm/node_modules/@clack/core/package.json +63 -0
- package/npm/node_modules/@clack/prompts/CHANGELOG.md +591 -0
- package/npm/node_modules/@clack/prompts/LICENSE +9 -0
- package/npm/node_modules/@clack/prompts/README.md +375 -0
- package/npm/node_modules/@clack/prompts/dist/index.d.mts +396 -0
- package/npm/node_modules/@clack/prompts/dist/index.mjs +144 -0
- package/npm/node_modules/@clack/prompts/dist/index.mjs.map +1 -0
- package/npm/node_modules/@clack/prompts/package.json +68 -0
- package/npm/node_modules/@deno/shim-deno/LICENSE +20 -0
- package/npm/node_modules/@deno/shim-deno/README.md +30 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/internal/Conn.js +56 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/internal/Listener.js +92 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/internal/consts.js +4 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/internal/errorMap.js +44 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/internal/fs_flags.js +91 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/internal/iterutil.js +37 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/internal/random_id.js +8 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/internal/streams.js +122 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/internal/test.d.ts +1 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/internal/test.js +5 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/internal/version.js +5 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/classes/FsFile.js +143 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/classes/PermissionStatus.js +19 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/classes/Permissions.js +26 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/classes.js +10 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/enums/SeekMode.js +9 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/enums.js +5 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/addSignalListener.js +18 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/chdir.js +22 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/chmod.js +29 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/chmodSync.js +29 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/chown.js +30 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/chownSync.js +30 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/close.js +29 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/connect.js +37 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/connectTls.js +31 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/consoleSize.js +17 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/copy.js +27 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/copyFile.js +45 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/copyFileSync.js +45 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/create.js +9 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/createSync.js +14 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/cwd.js +5 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/execPath.js +10 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/exit.js +8 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/fdatasync.js +8 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/fdatasyncSync.js +6 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/fstat.js +44 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/fstatSync.js +19 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/fsync.js +10 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/fsyncSync.js +9 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/ftruncate.js +8 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/ftruncateSync.js +6 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/gid.js +10 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/hostname.js +32 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/inspect.js +30 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/kill.js +16 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/link.js +29 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/linkSync.js +29 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/listen.js +51 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/listenTls.js +49 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/loadavg.js +32 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/lstat.js +42 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/lstatSync.js +42 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/makeTempDir.js +11 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/makeTempDirSync.js +11 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/makeTempFile.js +14 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/makeTempFileSync.js +14 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/memoryUsage.js +5 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/mkdir.js +22 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/mkdirSync.js +45 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/open.js +33 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/openSync.js +31 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/osRelease.js +9 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/osUptime.js +9 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/read.js +19 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readDir.js +26 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readDirSync.js +26 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readFile.js +19 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readFileSync.js +19 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readLink.js +29 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readLinkSync.js +29 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readSync.js +34 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readTextFile.js +18 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readTextFileSync.js +41 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/realPath.js +29 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/realPathSync.js +29 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/remove.js +22 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/removeSignalListener.js +12 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/removeSync.js +45 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/rename.js +9 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/renameSync.js +29 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/resolveDns.js +41 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/run.js +276 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/shutdown.js +9 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/stat.js +68 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/statSync.js +42 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/symlink.js +30 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/symlinkSync.js +30 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/test.js +5 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/truncate.js +45 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/truncateSync.js +45 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/uid.js +10 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/watchFs.js +27 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/write.js +35 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/writeFile.js +46 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/writeFileSync.js +45 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/writeSync.js +29 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/writeTextFile.js +52 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/writeTextFileSync.js +44 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions.js +234 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/main.js +21 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/types.js +3 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/args.js +5 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/build.js +38 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/customInspect.js +4 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/env.js +47 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/errors.js +63 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/mainModule.js +8 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/metrics.js +21 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/noColor.js +5 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/permissions.js +6 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/pid.js +5 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/ppid.js +5 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/resources.js +12 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/std.js +132 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/version.js +10 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables.js +53 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno/unstable/main.js +62 -0
- package/npm/node_modules/@deno/shim-deno/dist/deno.js +17 -0
- package/npm/node_modules/@deno/shim-deno/dist/index.d.ts +4762 -0
- package/npm/node_modules/@deno/shim-deno/dist/index.js +27 -0
- package/npm/node_modules/@deno/shim-deno/package.json +50 -0
- package/npm/node_modules/@deno/shim-deno-test/LICENSE +20 -0
- package/npm/node_modules/@deno/shim-deno-test/README.md +28 -0
- package/npm/node_modules/@deno/shim-deno-test/dist/definitions.d.ts +3 -0
- package/npm/node_modules/@deno/shim-deno-test/dist/definitions.js +5 -0
- package/npm/node_modules/@deno/shim-deno-test/dist/deno.types.gen.d.ts +626 -0
- package/npm/node_modules/@deno/shim-deno-test/dist/deno.types.gen.js +2 -0
- package/npm/node_modules/@deno/shim-deno-test/dist/index.d.ts +3 -0
- package/npm/node_modules/@deno/shim-deno-test/dist/index.js +21 -0
- package/npm/node_modules/@deno/shim-deno-test/dist/test.d.ts +3 -0
- package/npm/node_modules/@deno/shim-deno-test/dist/test.js +87 -0
- package/npm/node_modules/@deno/shim-deno-test/package.json +34 -0
- package/npm/node_modules/@types/node/LICENSE +21 -0
- package/npm/node_modules/@types/node/README.md +15 -0
- package/npm/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/npm/node_modules/@types/node/assert.d.ts +1062 -0
- package/npm/node_modules/@types/node/async_hooks.d.ts +605 -0
- package/npm/node_modules/@types/node/buffer.buffer.d.ts +471 -0
- package/npm/node_modules/@types/node/buffer.d.ts +1936 -0
- package/npm/node_modules/@types/node/child_process.d.ts +1475 -0
- package/npm/node_modules/@types/node/cluster.d.ts +577 -0
- package/npm/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
- package/npm/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/npm/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
- package/npm/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/npm/node_modules/@types/node/console.d.ts +452 -0
- package/npm/node_modules/@types/node/constants.d.ts +21 -0
- package/npm/node_modules/@types/node/crypto.d.ts +4590 -0
- package/npm/node_modules/@types/node/dgram.d.ts +597 -0
- package/npm/node_modules/@types/node/diagnostics_channel.d.ts +578 -0
- package/npm/node_modules/@types/node/dns/promises.d.ts +479 -0
- package/npm/node_modules/@types/node/dns.d.ts +871 -0
- package/npm/node_modules/@types/node/domain.d.ts +170 -0
- package/npm/node_modules/@types/node/events.d.ts +977 -0
- package/npm/node_modules/@types/node/fs/promises.d.ts +1270 -0
- package/npm/node_modules/@types/node/fs.d.ts +4375 -0
- package/npm/node_modules/@types/node/globals.d.ts +172 -0
- package/npm/node_modules/@types/node/globals.typedarray.d.ts +38 -0
- package/npm/node_modules/@types/node/http.d.ts +2049 -0
- package/npm/node_modules/@types/node/http2.d.ts +2631 -0
- package/npm/node_modules/@types/node/https.d.ts +578 -0
- package/npm/node_modules/@types/node/index.d.ts +93 -0
- package/npm/node_modules/@types/node/inspector.generated.d.ts +3966 -0
- package/npm/node_modules/@types/node/module.d.ts +539 -0
- package/npm/node_modules/@types/node/net.d.ts +1031 -0
- package/npm/node_modules/@types/node/os.d.ts +506 -0
- package/npm/node_modules/@types/node/package.json +140 -0
- package/npm/node_modules/@types/node/path.d.ts +200 -0
- package/npm/node_modules/@types/node/perf_hooks.d.ts +961 -0
- package/npm/node_modules/@types/node/process.d.ts +1961 -0
- package/npm/node_modules/@types/node/punycode.d.ts +117 -0
- package/npm/node_modules/@types/node/querystring.d.ts +152 -0
- package/npm/node_modules/@types/node/readline/promises.d.ts +162 -0
- package/npm/node_modules/@types/node/readline.d.ts +589 -0
- package/npm/node_modules/@types/node/repl.d.ts +430 -0
- package/npm/node_modules/@types/node/sea.d.ts +153 -0
- package/npm/node_modules/@types/node/stream/consumers.d.ts +38 -0
- package/npm/node_modules/@types/node/stream/promises.d.ts +90 -0
- package/npm/node_modules/@types/node/stream/web.d.ts +533 -0
- package/npm/node_modules/@types/node/stream.d.ts +1698 -0
- package/npm/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/npm/node_modules/@types/node/test.d.ts +1787 -0
- package/npm/node_modules/@types/node/timers/promises.d.ts +108 -0
- package/npm/node_modules/@types/node/timers.d.ts +286 -0
- package/npm/node_modules/@types/node/tls.d.ts +1259 -0
- package/npm/node_modules/@types/node/trace_events.d.ts +197 -0
- package/npm/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
- package/npm/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +34 -0
- package/npm/node_modules/@types/node/ts5.6/index.d.ts +93 -0
- package/npm/node_modules/@types/node/tty.d.ts +208 -0
- package/npm/node_modules/@types/node/url.d.ts +964 -0
- package/npm/node_modules/@types/node/util.d.ts +2331 -0
- package/npm/node_modules/@types/node/v8.d.ts +809 -0
- package/npm/node_modules/@types/node/vm.d.ts +1001 -0
- package/npm/node_modules/@types/node/wasi.d.ts +181 -0
- package/npm/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/npm/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/npm/node_modules/@types/node/web-globals/events.d.ts +97 -0
- package/npm/node_modules/@types/node/web-globals/fetch.d.ts +55 -0
- package/npm/node_modules/@types/node/worker_threads.d.ts +715 -0
- package/npm/node_modules/@types/node/zlib.d.ts +598 -0
- package/npm/node_modules/fast-string-truncated-width/dist/index.d.ts +4 -0
- package/npm/node_modules/fast-string-truncated-width/dist/index.js +111 -0
- package/npm/node_modules/fast-string-truncated-width/dist/types.d.ts +19 -0
- package/npm/node_modules/fast-string-truncated-width/dist/types.js +2 -0
- package/npm/node_modules/fast-string-truncated-width/dist/utils.d.ts +4 -0
- package/npm/node_modules/fast-string-truncated-width/dist/utils.js +20 -0
- package/npm/node_modules/fast-string-truncated-width/license +21 -0
- package/npm/node_modules/fast-string-truncated-width/package.json +35 -0
- package/npm/node_modules/fast-string-truncated-width/readme.md +59 -0
- package/npm/node_modules/fast-string-width/dist/index.d.ts +4 -0
- package/npm/node_modules/fast-string-width/dist/index.js +14 -0
- package/npm/node_modules/fast-string-width/license +21 -0
- package/npm/node_modules/fast-string-width/package.json +34 -0
- package/npm/node_modules/fast-string-width/readme.md +42 -0
- package/npm/node_modules/fast-wrap-ansi/LICENSE +23 -0
- package/npm/node_modules/fast-wrap-ansi/README.md +26 -0
- package/npm/node_modules/fast-wrap-ansi/lib/main.d.ts +6 -0
- package/npm/node_modules/fast-wrap-ansi/lib/main.js +219 -0
- package/npm/node_modules/fast-wrap-ansi/lib/main.js.map +1 -0
- package/npm/node_modules/fast-wrap-ansi/package.json +51 -0
- package/npm/node_modules/isexe/LICENSE.md +55 -0
- package/npm/node_modules/isexe/README.md +80 -0
- package/npm/node_modules/isexe/dist/commonjs/index.d.ts +14 -0
- package/npm/node_modules/isexe/dist/commonjs/index.d.ts.map +1 -0
- package/npm/node_modules/isexe/dist/commonjs/index.js +56 -0
- package/npm/node_modules/isexe/dist/commonjs/index.js.map +1 -0
- package/npm/node_modules/isexe/dist/commonjs/index.min.js +2 -0
- package/npm/node_modules/isexe/dist/commonjs/index.min.js.map +7 -0
- package/npm/node_modules/isexe/dist/commonjs/options.d.ts +32 -0
- package/npm/node_modules/isexe/dist/commonjs/options.d.ts.map +1 -0
- package/npm/node_modules/isexe/dist/commonjs/options.js +3 -0
- package/npm/node_modules/isexe/dist/commonjs/options.js.map +1 -0
- package/npm/node_modules/isexe/dist/commonjs/package.json +3 -0
- package/npm/node_modules/isexe/dist/commonjs/posix.d.ts +18 -0
- package/npm/node_modules/isexe/dist/commonjs/posix.d.ts.map +1 -0
- package/npm/node_modules/isexe/dist/commonjs/posix.js +67 -0
- package/npm/node_modules/isexe/dist/commonjs/posix.js.map +1 -0
- package/npm/node_modules/isexe/dist/commonjs/win32.d.ts +18 -0
- package/npm/node_modules/isexe/dist/commonjs/win32.d.ts.map +1 -0
- package/npm/node_modules/isexe/dist/commonjs/win32.js +63 -0
- package/npm/node_modules/isexe/dist/commonjs/win32.js.map +1 -0
- package/npm/node_modules/isexe/dist/esm/index.d.ts +14 -0
- package/npm/node_modules/isexe/dist/esm/index.d.ts.map +1 -0
- package/npm/node_modules/isexe/dist/esm/index.js +16 -0
- package/npm/node_modules/isexe/dist/esm/index.js.map +1 -0
- package/npm/node_modules/isexe/dist/esm/index.min.js +2 -0
- package/npm/node_modules/isexe/dist/esm/index.min.js.map +7 -0
- package/npm/node_modules/isexe/dist/esm/options.d.ts +32 -0
- package/npm/node_modules/isexe/dist/esm/options.d.ts.map +1 -0
- package/npm/node_modules/isexe/dist/esm/options.js +2 -0
- package/npm/node_modules/isexe/dist/esm/options.js.map +1 -0
- package/npm/node_modules/isexe/dist/esm/package.json +3 -0
- package/npm/node_modules/isexe/dist/esm/posix.d.ts +18 -0
- package/npm/node_modules/isexe/dist/esm/posix.d.ts.map +1 -0
- package/npm/node_modules/isexe/dist/esm/posix.js +62 -0
- package/npm/node_modules/isexe/dist/esm/posix.js.map +1 -0
- package/npm/node_modules/isexe/dist/esm/win32.d.ts +18 -0
- package/npm/node_modules/isexe/dist/esm/win32.d.ts.map +1 -0
- package/npm/node_modules/isexe/dist/esm/win32.js +58 -0
- package/npm/node_modules/isexe/dist/esm/win32.js.map +1 -0
- package/npm/node_modules/isexe/package.json +78 -0
- package/npm/node_modules/sisteransi/license +21 -0
- package/npm/node_modules/sisteransi/package.json +34 -0
- package/npm/node_modules/sisteransi/readme.md +113 -0
- package/npm/node_modules/sisteransi/src/index.js +58 -0
- package/npm/node_modules/sisteransi/src/sisteransi.d.ts +35 -0
- package/npm/node_modules/undici-types/LICENSE +21 -0
- package/npm/node_modules/undici-types/README.md +6 -0
- package/npm/node_modules/undici-types/agent.d.ts +31 -0
- package/npm/node_modules/undici-types/api.d.ts +43 -0
- package/npm/node_modules/undici-types/balanced-pool.d.ts +29 -0
- package/npm/node_modules/undici-types/cache.d.ts +36 -0
- package/npm/node_modules/undici-types/client.d.ts +108 -0
- package/npm/node_modules/undici-types/connector.d.ts +34 -0
- package/npm/node_modules/undici-types/content-type.d.ts +21 -0
- package/npm/node_modules/undici-types/cookies.d.ts +28 -0
- package/npm/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
- package/npm/node_modules/undici-types/dispatcher.d.ts +256 -0
- package/npm/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
- package/npm/node_modules/undici-types/errors.d.ts +149 -0
- package/npm/node_modules/undici-types/eventsource.d.ts +61 -0
- package/npm/node_modules/undici-types/fetch.d.ts +209 -0
- package/npm/node_modules/undici-types/file.d.ts +39 -0
- package/npm/node_modules/undici-types/filereader.d.ts +54 -0
- package/npm/node_modules/undici-types/formdata.d.ts +108 -0
- package/npm/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/npm/node_modules/undici-types/global-origin.d.ts +7 -0
- package/npm/node_modules/undici-types/handlers.d.ts +15 -0
- package/npm/node_modules/undici-types/header.d.ts +4 -0
- package/npm/node_modules/undici-types/index.d.ts +71 -0
- package/npm/node_modules/undici-types/interceptors.d.ts +17 -0
- package/npm/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/npm/node_modules/undici-types/mock-client.d.ts +25 -0
- package/npm/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/npm/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/npm/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/npm/node_modules/undici-types/package.json +55 -0
- package/npm/node_modules/undici-types/patch.d.ts +33 -0
- package/npm/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/npm/node_modules/undici-types/pool.d.ts +39 -0
- package/npm/node_modules/undici-types/proxy-agent.d.ts +28 -0
- package/npm/node_modules/undici-types/readable.d.ts +65 -0
- package/npm/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/npm/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/npm/node_modules/undici-types/util.d.ts +18 -0
- package/npm/node_modules/undici-types/webidl.d.ts +228 -0
- package/npm/node_modules/undici-types/websocket.d.ts +150 -0
- package/npm/node_modules/which/LICENSE +15 -0
- package/npm/node_modules/which/README.md +51 -0
- package/npm/node_modules/which/bin/which.js +52 -0
- package/npm/node_modules/which/lib/index.js +111 -0
- package/npm/node_modules/which/package.json +57 -0
- package/npm/package-lock.json +135 -0
- package/npm/package.json +30 -0
- package/npm/script/_dnt.shims.d.ts +8 -0
- package/npm/script/_dnt.shims.d.ts.map +1 -0
- package/npm/script/_dnt.shims.js +99 -0
- package/npm/script/_dnt_2.shims.d.ts +6 -0
- package/npm/script/_dnt_2.shims.d.ts.map +1 -0
- package/npm/script/_dnt_2.shims.js +65 -0
- package/npm/script/helpers/createFolderStructure.d.ts +2 -0
- package/npm/script/helpers/createFolderStructure.d.ts.map +1 -0
- package/npm/script/helpers/createFolderStructure.js +52 -0
- package/npm/script/helpers/ensureAgents.d.ts +2 -0
- package/npm/script/helpers/ensureAgents.d.ts.map +1 -0
- package/npm/script/helpers/ensureAgents.js +95 -0
- package/npm/script/helpers/ensureEnvFile.d.ts +2 -0
- package/npm/script/helpers/ensureEnvFile.d.ts.map +1 -0
- package/npm/script/helpers/ensureEnvFile.js +17 -0
- package/npm/script/helpers/ensureGitignore.d.ts +2 -0
- package/npm/script/helpers/ensureGitignore.d.ts.map +1 -0
- package/npm/script/helpers/ensureGitignore.js +32 -0
- package/npm/script/helpers/ensureReadme.d.ts +2 -0
- package/npm/script/helpers/ensureReadme.d.ts.map +1 -0
- package/npm/script/helpers/ensureReadme.js +40 -0
- package/npm/script/helpers/getInstalledPackages.d.ts +2 -0
- package/npm/script/helpers/getInstalledPackages.d.ts.map +1 -0
- package/npm/script/helpers/getInstalledPackages.js +32 -0
- package/npm/script/helpers/getProjectTasks.d.ts +5 -0
- package/npm/script/helpers/getProjectTasks.d.ts.map +1 -0
- package/npm/script/helpers/getProjectTasks.js +15 -0
- package/npm/script/helpers/getRuntime.d.ts +5 -0
- package/npm/script/helpers/getRuntime.d.ts.map +1 -0
- package/npm/script/helpers/getRuntime.js +57 -0
- package/npm/script/helpers/gitignoreEntries.d.ts +2 -0
- package/npm/script/helpers/gitignoreEntries.d.ts.map +1 -0
- package/npm/script/helpers/gitignoreEntries.js +12 -0
- package/npm/script/helpers/handleFileConflict.d.ts +5 -0
- package/npm/script/helpers/handleFileConflict.d.ts.map +1 -0
- package/npm/script/helpers/handleFileConflict.js +91 -0
- package/npm/script/helpers/installPackagesAndFetchDocs.d.ts +8 -0
- package/npm/script/helpers/installPackagesAndFetchDocs.d.ts.map +1 -0
- package/npm/script/helpers/installPackagesAndFetchDocs.js +98 -0
- package/npm/script/helpers/packageOptions.d.ts +5 -0
- package/npm/script/helpers/packageOptions.d.ts.map +1 -0
- package/npm/script/helpers/packageOptions.js +8 -0
- package/npm/script/helpers/packageRegistry.d.ts +7 -0
- package/npm/script/helpers/packageRegistry.d.ts.map +1 -0
- package/npm/script/helpers/packageRegistry.js +65 -0
- package/npm/script/helpers/updateProjectConfig.d.ts +2 -0
- package/npm/script/helpers/updateProjectConfig.d.ts.map +1 -0
- package/npm/script/helpers/updateProjectConfig.js +39 -0
- package/npm/script/main.d.ts +3 -0
- package/npm/script/main.d.ts.map +1 -0
- package/npm/script/main.js +98 -0
- package/npm/script/package.json +3 -0
- package/package.json +27 -0
- package/script/_dnt.shims.d.ts +6 -0
- package/script/_dnt.shims.d.ts.map +1 -0
- package/script/_dnt.shims.js +65 -0
- package/script/helpers/createFolderStructure.d.ts +2 -0
- package/script/helpers/createFolderStructure.d.ts.map +1 -0
- package/script/helpers/createFolderStructure.js +52 -0
- package/script/helpers/ensureAgents.d.ts +2 -0
- package/script/helpers/ensureAgents.d.ts.map +1 -0
- package/script/helpers/ensureAgents.js +95 -0
- package/script/helpers/ensureEnvFile.d.ts +2 -0
- package/script/helpers/ensureEnvFile.d.ts.map +1 -0
- package/script/helpers/ensureEnvFile.js +17 -0
- package/script/helpers/ensureGitignore.d.ts +2 -0
- package/script/helpers/ensureGitignore.d.ts.map +1 -0
- package/script/helpers/ensureGitignore.js +32 -0
- package/script/helpers/ensureReadme.d.ts +2 -0
- package/script/helpers/ensureReadme.d.ts.map +1 -0
- package/script/helpers/ensureReadme.js +40 -0
- package/script/helpers/getInstalledPackages.d.ts +2 -0
- package/script/helpers/getInstalledPackages.d.ts.map +1 -0
- package/script/helpers/getInstalledPackages.js +32 -0
- package/script/helpers/getProjectTasks.d.ts +5 -0
- package/script/helpers/getProjectTasks.d.ts.map +1 -0
- package/script/helpers/getProjectTasks.js +15 -0
- package/script/helpers/getRuntime.d.ts +5 -0
- package/script/helpers/getRuntime.d.ts.map +1 -0
- package/script/helpers/getRuntime.js +57 -0
- package/script/helpers/gitignoreEntries.d.ts +2 -0
- package/script/helpers/gitignoreEntries.d.ts.map +1 -0
- package/script/helpers/gitignoreEntries.js +12 -0
- package/script/helpers/handleFileConflict.d.ts +5 -0
- package/script/helpers/handleFileConflict.d.ts.map +1 -0
- package/script/helpers/handleFileConflict.js +91 -0
- package/script/helpers/installPackagesAndFetchDocs.d.ts +8 -0
- package/script/helpers/installPackagesAndFetchDocs.d.ts.map +1 -0
- package/script/helpers/installPackagesAndFetchDocs.js +98 -0
- package/script/helpers/packageOptions.d.ts +5 -0
- package/script/helpers/packageOptions.d.ts.map +1 -0
- package/script/helpers/packageOptions.js +8 -0
- package/script/helpers/packageRegistry.d.ts +7 -0
- package/script/helpers/packageRegistry.d.ts.map +1 -0
- package/script/helpers/packageRegistry.js +65 -0
- package/script/helpers/updateProjectConfig.d.ts +2 -0
- package/script/helpers/updateProjectConfig.d.ts.map +1 -0
- package/script/helpers/updateProjectConfig.js +39 -0
- package/script/main.d.ts +3 -0
- package/script/main.d.ts.map +1 -0
- package/script/main.js +98 -0
- package/script/package.json +3 -0
|
@@ -0,0 +1,626 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { URL } from "url";
|
|
3
|
+
/**
|
|
4
|
+
* Register a test which will be run when `deno test` is used on the command
|
|
5
|
+
* line and the containing module looks like a test module.
|
|
6
|
+
*
|
|
7
|
+
* `fn` can be async if required.
|
|
8
|
+
*
|
|
9
|
+
* ```ts
|
|
10
|
+
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
|
|
11
|
+
*
|
|
12
|
+
* Deno.test({
|
|
13
|
+
* name: "example test",
|
|
14
|
+
* fn() {
|
|
15
|
+
* assertEquals("world", "world");
|
|
16
|
+
* },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* Deno.test({
|
|
20
|
+
* name: "example ignored test",
|
|
21
|
+
* ignore: Deno.build.os === "windows",
|
|
22
|
+
* fn() {
|
|
23
|
+
* // This test is ignored only on Windows machines
|
|
24
|
+
* },
|
|
25
|
+
* });
|
|
26
|
+
*
|
|
27
|
+
* Deno.test({
|
|
28
|
+
* name: "example async test",
|
|
29
|
+
* async fn() {
|
|
30
|
+
* const decoder = new TextDecoder("utf-8");
|
|
31
|
+
* const data = await Deno.readFile("hello_world.txt");
|
|
32
|
+
* assertEquals(decoder.decode(data), "Hello world");
|
|
33
|
+
* }
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @category Testing
|
|
38
|
+
*/
|
|
39
|
+
export declare const test: DenoTest;
|
|
40
|
+
/** @category Testing */
|
|
41
|
+
export interface DenoTest {
|
|
42
|
+
/**
|
|
43
|
+
* Register a test which will be run when `deno test` is used on the command
|
|
44
|
+
* line and the containing module looks like a test module.
|
|
45
|
+
*
|
|
46
|
+
* `fn` can be async if required.
|
|
47
|
+
*
|
|
48
|
+
* ```ts
|
|
49
|
+
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
|
|
50
|
+
*
|
|
51
|
+
* Deno.test({
|
|
52
|
+
* name: "example test",
|
|
53
|
+
* fn() {
|
|
54
|
+
* assertEquals("world", "world");
|
|
55
|
+
* },
|
|
56
|
+
* });
|
|
57
|
+
*
|
|
58
|
+
* Deno.test({
|
|
59
|
+
* name: "example ignored test",
|
|
60
|
+
* ignore: Deno.build.os === "windows",
|
|
61
|
+
* fn() {
|
|
62
|
+
* // This test is ignored only on Windows machines
|
|
63
|
+
* },
|
|
64
|
+
* });
|
|
65
|
+
*
|
|
66
|
+
* Deno.test({
|
|
67
|
+
* name: "example async test",
|
|
68
|
+
* async fn() {
|
|
69
|
+
* const decoder = new TextDecoder("utf-8");
|
|
70
|
+
* const data = await Deno.readFile("hello_world.txt");
|
|
71
|
+
* assertEquals(decoder.decode(data), "Hello world");
|
|
72
|
+
* }
|
|
73
|
+
* });
|
|
74
|
+
* ```
|
|
75
|
+
*
|
|
76
|
+
* @category Testing
|
|
77
|
+
*/
|
|
78
|
+
(t: TestDefinition): void;
|
|
79
|
+
/**
|
|
80
|
+
* Register a test which will be run when `deno test` is used on the command
|
|
81
|
+
* line and the containing module looks like a test module.
|
|
82
|
+
*
|
|
83
|
+
* `fn` can be async if required.
|
|
84
|
+
*
|
|
85
|
+
* ```ts
|
|
86
|
+
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
|
|
87
|
+
*
|
|
88
|
+
* Deno.test("My test description", () => {
|
|
89
|
+
* assertEquals("hello", "hello");
|
|
90
|
+
* });
|
|
91
|
+
*
|
|
92
|
+
* Deno.test("My async test description", async () => {
|
|
93
|
+
* const decoder = new TextDecoder("utf-8");
|
|
94
|
+
* const data = await Deno.readFile("hello_world.txt");
|
|
95
|
+
* assertEquals(decoder.decode(data), "Hello world");
|
|
96
|
+
* });
|
|
97
|
+
* ```
|
|
98
|
+
*
|
|
99
|
+
* @category Testing
|
|
100
|
+
*/
|
|
101
|
+
(name: string, fn: (t: TestContext) => void | Promise<void>): void;
|
|
102
|
+
/**
|
|
103
|
+
* Register a test which will be run when `deno test` is used on the command
|
|
104
|
+
* line and the containing module looks like a test module.
|
|
105
|
+
*
|
|
106
|
+
* `fn` can be async if required. Declared function must have a name.
|
|
107
|
+
*
|
|
108
|
+
* ```ts
|
|
109
|
+
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
|
|
110
|
+
*
|
|
111
|
+
* Deno.test(function myTestName() {
|
|
112
|
+
* assertEquals("hello", "hello");
|
|
113
|
+
* });
|
|
114
|
+
*
|
|
115
|
+
* Deno.test(async function myOtherTestName() {
|
|
116
|
+
* const decoder = new TextDecoder("utf-8");
|
|
117
|
+
* const data = await Deno.readFile("hello_world.txt");
|
|
118
|
+
* assertEquals(decoder.decode(data), "Hello world");
|
|
119
|
+
* });
|
|
120
|
+
* ```
|
|
121
|
+
*
|
|
122
|
+
* @category Testing
|
|
123
|
+
*/
|
|
124
|
+
(fn: (t: TestContext) => void | Promise<void>): void;
|
|
125
|
+
/**
|
|
126
|
+
* Register a test which will be run when `deno test` is used on the command
|
|
127
|
+
* line and the containing module looks like a test module.
|
|
128
|
+
*
|
|
129
|
+
* `fn` can be async if required.
|
|
130
|
+
*
|
|
131
|
+
* ```ts
|
|
132
|
+
* import {assert, fail, assertEquals} from "https://deno.land/std/testing/asserts.ts";
|
|
133
|
+
*
|
|
134
|
+
* Deno.test("My test description", { permissions: { read: true } }, (): void => {
|
|
135
|
+
* assertEquals("hello", "hello");
|
|
136
|
+
* });
|
|
137
|
+
*
|
|
138
|
+
* Deno.test("My async test description", { permissions: { read: false } }, async (): Promise<void> => {
|
|
139
|
+
* const decoder = new TextDecoder("utf-8");
|
|
140
|
+
* const data = await Deno.readFile("hello_world.txt");
|
|
141
|
+
* assertEquals(decoder.decode(data), "Hello world");
|
|
142
|
+
* });
|
|
143
|
+
* ```
|
|
144
|
+
*
|
|
145
|
+
* @category Testing
|
|
146
|
+
*/
|
|
147
|
+
(name: string, options: Omit<TestDefinition, "fn" | "name">, fn: (t: TestContext) => void | Promise<void>): void;
|
|
148
|
+
/**
|
|
149
|
+
* Register a test which will be run when `deno test` is used on the command
|
|
150
|
+
* line and the containing module looks like a test module.
|
|
151
|
+
*
|
|
152
|
+
* `fn` can be async if required.
|
|
153
|
+
*
|
|
154
|
+
* ```ts
|
|
155
|
+
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
|
|
156
|
+
*
|
|
157
|
+
* Deno.test(
|
|
158
|
+
* {
|
|
159
|
+
* name: "My test description",
|
|
160
|
+
* permissions: { read: true },
|
|
161
|
+
* },
|
|
162
|
+
* () => {
|
|
163
|
+
* assertEquals("hello", "hello");
|
|
164
|
+
* },
|
|
165
|
+
* );
|
|
166
|
+
*
|
|
167
|
+
* Deno.test(
|
|
168
|
+
* {
|
|
169
|
+
* name: "My async test description",
|
|
170
|
+
* permissions: { read: false },
|
|
171
|
+
* },
|
|
172
|
+
* async () => {
|
|
173
|
+
* const decoder = new TextDecoder("utf-8");
|
|
174
|
+
* const data = await Deno.readFile("hello_world.txt");
|
|
175
|
+
* assertEquals(decoder.decode(data), "Hello world");
|
|
176
|
+
* },
|
|
177
|
+
* );
|
|
178
|
+
* ```
|
|
179
|
+
*
|
|
180
|
+
* @category Testing
|
|
181
|
+
*/
|
|
182
|
+
(options: Omit<TestDefinition, "fn" | "name">, fn: (t: TestContext) => void | Promise<void>): void;
|
|
183
|
+
/**
|
|
184
|
+
* Register a test which will be run when `deno test` is used on the command
|
|
185
|
+
* line and the containing module looks like a test module.
|
|
186
|
+
*
|
|
187
|
+
* `fn` can be async if required. Declared function must have a name.
|
|
188
|
+
*
|
|
189
|
+
* ```ts
|
|
190
|
+
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
|
|
191
|
+
*
|
|
192
|
+
* Deno.test(
|
|
193
|
+
* { permissions: { read: true } },
|
|
194
|
+
* function myTestName() {
|
|
195
|
+
* assertEquals("hello", "hello");
|
|
196
|
+
* },
|
|
197
|
+
* );
|
|
198
|
+
*
|
|
199
|
+
* Deno.test(
|
|
200
|
+
* { permissions: { read: false } },
|
|
201
|
+
* async function myOtherTestName() {
|
|
202
|
+
* const decoder = new TextDecoder("utf-8");
|
|
203
|
+
* const data = await Deno.readFile("hello_world.txt");
|
|
204
|
+
* assertEquals(decoder.decode(data), "Hello world");
|
|
205
|
+
* },
|
|
206
|
+
* );
|
|
207
|
+
* ```
|
|
208
|
+
*
|
|
209
|
+
* @category Testing
|
|
210
|
+
*/
|
|
211
|
+
(options: Omit<TestDefinition, "fn">, fn: (t: TestContext) => void | Promise<void>): void;
|
|
212
|
+
/**
|
|
213
|
+
* Shorthand property for ignoring a particular test case.
|
|
214
|
+
*
|
|
215
|
+
* @category Testing
|
|
216
|
+
*/
|
|
217
|
+
ignore(t: Omit<TestDefinition, "ignore">): void;
|
|
218
|
+
/**
|
|
219
|
+
* Shorthand property for ignoring a particular test case.
|
|
220
|
+
*
|
|
221
|
+
* @category Testing
|
|
222
|
+
*/
|
|
223
|
+
ignore(name: string, fn: (t: TestContext) => void | Promise<void>): void;
|
|
224
|
+
/**
|
|
225
|
+
* Shorthand property for ignoring a particular test case.
|
|
226
|
+
*
|
|
227
|
+
* @category Testing
|
|
228
|
+
*/
|
|
229
|
+
ignore(fn: (t: TestContext) => void | Promise<void>): void;
|
|
230
|
+
/**
|
|
231
|
+
* Shorthand property for ignoring a particular test case.
|
|
232
|
+
*
|
|
233
|
+
* @category Testing
|
|
234
|
+
*/
|
|
235
|
+
ignore(name: string, options: Omit<TestDefinition, "fn" | "name" | "ignore">, fn: (t: TestContext) => void | Promise<void>): void;
|
|
236
|
+
/**
|
|
237
|
+
* Shorthand property for ignoring a particular test case.
|
|
238
|
+
*
|
|
239
|
+
* @category Testing
|
|
240
|
+
*/
|
|
241
|
+
ignore(options: Omit<TestDefinition, "fn" | "name" | "ignore">, fn: (t: TestContext) => void | Promise<void>): void;
|
|
242
|
+
/**
|
|
243
|
+
* Shorthand property for ignoring a particular test case.
|
|
244
|
+
*
|
|
245
|
+
* @category Testing
|
|
246
|
+
*/
|
|
247
|
+
ignore(options: Omit<TestDefinition, "fn" | "ignore">, fn: (t: TestContext) => void | Promise<void>): void;
|
|
248
|
+
/**
|
|
249
|
+
* Shorthand property for focusing a particular test case.
|
|
250
|
+
*
|
|
251
|
+
* @category Testing
|
|
252
|
+
*/
|
|
253
|
+
only(t: Omit<TestDefinition, "only">): void;
|
|
254
|
+
/**
|
|
255
|
+
* Shorthand property for focusing a particular test case.
|
|
256
|
+
*
|
|
257
|
+
* @category Testing
|
|
258
|
+
*/
|
|
259
|
+
only(name: string, fn: (t: TestContext) => void | Promise<void>): void;
|
|
260
|
+
/**
|
|
261
|
+
* Shorthand property for focusing a particular test case.
|
|
262
|
+
*
|
|
263
|
+
* @category Testing
|
|
264
|
+
*/
|
|
265
|
+
only(fn: (t: TestContext) => void | Promise<void>): void;
|
|
266
|
+
/**
|
|
267
|
+
* Shorthand property for focusing a particular test case.
|
|
268
|
+
*
|
|
269
|
+
* @category Testing
|
|
270
|
+
*/
|
|
271
|
+
only(name: string, options: Omit<TestDefinition, "fn" | "name" | "only">, fn: (t: TestContext) => void | Promise<void>): void;
|
|
272
|
+
/**
|
|
273
|
+
* Shorthand property for focusing a particular test case.
|
|
274
|
+
*
|
|
275
|
+
* @category Testing
|
|
276
|
+
*/
|
|
277
|
+
only(options: Omit<TestDefinition, "fn" | "name" | "only">, fn: (t: TestContext) => void | Promise<void>): void;
|
|
278
|
+
/**
|
|
279
|
+
* Shorthand property for focusing a particular test case.
|
|
280
|
+
*
|
|
281
|
+
* @category Testing
|
|
282
|
+
*/
|
|
283
|
+
only(options: Omit<TestDefinition, "fn" | "only">, fn: (t: TestContext) => void | Promise<void>): void;
|
|
284
|
+
}
|
|
285
|
+
/** @category Testing */
|
|
286
|
+
export interface TestDefinition {
|
|
287
|
+
fn: (t: TestContext) => void | Promise<void>;
|
|
288
|
+
/** The name of the test. */
|
|
289
|
+
name: string;
|
|
290
|
+
/**
|
|
291
|
+
* If truthy the current test step will be ignored.
|
|
292
|
+
*
|
|
293
|
+
* It is a quick way to skip over a step, but also can be used for
|
|
294
|
+
* conditional logic, like determining if an environment feature is present.
|
|
295
|
+
*/
|
|
296
|
+
ignore?: boolean;
|
|
297
|
+
/**
|
|
298
|
+
* If at least one test has `only` set to `true`, only run tests that have
|
|
299
|
+
* `only` set to `true` and fail the test suite.
|
|
300
|
+
*/
|
|
301
|
+
only?: boolean;
|
|
302
|
+
/**
|
|
303
|
+
* Check that the number of async completed operations after the test step
|
|
304
|
+
* is the same as number of dispatched operations. This ensures that the
|
|
305
|
+
* code tested does not start async operations which it then does
|
|
306
|
+
* not await. This helps in preventing logic errors and memory leaks
|
|
307
|
+
* in the application code.
|
|
308
|
+
*
|
|
309
|
+
* @default {true}
|
|
310
|
+
*/
|
|
311
|
+
sanitizeOps?: boolean;
|
|
312
|
+
/**
|
|
313
|
+
* Ensure the test step does not "leak" resources - like open files or
|
|
314
|
+
* network connections - by ensuring the open resources at the start of the
|
|
315
|
+
* test match the open resources at the end of the test.
|
|
316
|
+
*
|
|
317
|
+
* @default {true}
|
|
318
|
+
*/
|
|
319
|
+
sanitizeResources?: boolean;
|
|
320
|
+
/**
|
|
321
|
+
* Ensure the test case does not prematurely cause the process to exit,
|
|
322
|
+
* for example via a call to {@linkcode Deno.exit}.
|
|
323
|
+
*
|
|
324
|
+
* @default {true}
|
|
325
|
+
*/
|
|
326
|
+
sanitizeExit?: boolean;
|
|
327
|
+
/**
|
|
328
|
+
* Specifies the permissions that should be used to run the test.
|
|
329
|
+
*
|
|
330
|
+
* Set this to "inherit" to keep the calling runtime permissions, set this
|
|
331
|
+
* to "none" to revoke all permissions, or set a more specific set of
|
|
332
|
+
* permissions using a {@linkcode PermissionOptionsObject}.
|
|
333
|
+
*
|
|
334
|
+
* @default {"inherit"}
|
|
335
|
+
*/
|
|
336
|
+
permissions?: PermissionOptions;
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* Context that is passed to a testing function, which can be used to either
|
|
340
|
+
* gain information about the current test, or register additional test
|
|
341
|
+
* steps within the current test.
|
|
342
|
+
*
|
|
343
|
+
* @category Testing
|
|
344
|
+
*/
|
|
345
|
+
export interface TestContext {
|
|
346
|
+
/** The current test name. */
|
|
347
|
+
name: string;
|
|
348
|
+
/** The string URL of the current test. */
|
|
349
|
+
origin: string;
|
|
350
|
+
/**
|
|
351
|
+
* If the current test is a step of another test, the parent test context
|
|
352
|
+
* will be set here.
|
|
353
|
+
*/
|
|
354
|
+
parent?: TestContext;
|
|
355
|
+
/**
|
|
356
|
+
* Run a sub step of the parent test or step. Returns a promise
|
|
357
|
+
* that resolves to a boolean signifying if the step completed successfully.
|
|
358
|
+
*
|
|
359
|
+
* The returned promise never rejects unless the arguments are invalid.
|
|
360
|
+
*
|
|
361
|
+
* If the test was ignored the promise returns `false`.
|
|
362
|
+
*
|
|
363
|
+
* ```ts
|
|
364
|
+
* Deno.test({
|
|
365
|
+
* name: "a parent test",
|
|
366
|
+
* async fn(t) {
|
|
367
|
+
* console.log("before the step");
|
|
368
|
+
* await t.step({
|
|
369
|
+
* name: "step 1",
|
|
370
|
+
* fn(t) {
|
|
371
|
+
* console.log("current step:", t.name);
|
|
372
|
+
* }
|
|
373
|
+
* });
|
|
374
|
+
* console.log("after the step");
|
|
375
|
+
* }
|
|
376
|
+
* });
|
|
377
|
+
* ```
|
|
378
|
+
*/
|
|
379
|
+
step(definition: TestStepDefinition): Promise<boolean>;
|
|
380
|
+
/**
|
|
381
|
+
* Run a sub step of the parent test or step. Returns a promise
|
|
382
|
+
* that resolves to a boolean signifying if the step completed successfully.
|
|
383
|
+
*
|
|
384
|
+
* The returned promise never rejects unless the arguments are invalid.
|
|
385
|
+
*
|
|
386
|
+
* If the test was ignored the promise returns `false`.
|
|
387
|
+
*
|
|
388
|
+
* ```ts
|
|
389
|
+
* Deno.test(
|
|
390
|
+
* "a parent test",
|
|
391
|
+
* async (t) => {
|
|
392
|
+
* console.log("before the step");
|
|
393
|
+
* await t.step(
|
|
394
|
+
* "step 1",
|
|
395
|
+
* (t) => {
|
|
396
|
+
* console.log("current step:", t.name);
|
|
397
|
+
* }
|
|
398
|
+
* );
|
|
399
|
+
* console.log("after the step");
|
|
400
|
+
* }
|
|
401
|
+
* );
|
|
402
|
+
* ```
|
|
403
|
+
*/
|
|
404
|
+
step(name: string, fn: (t: TestContext) => void | Promise<void>): Promise<boolean>;
|
|
405
|
+
/**
|
|
406
|
+
* Run a sub step of the parent test or step. Returns a promise
|
|
407
|
+
* that resolves to a boolean signifying if the step completed successfully.
|
|
408
|
+
*
|
|
409
|
+
* The returned promise never rejects unless the arguments are invalid.
|
|
410
|
+
*
|
|
411
|
+
* If the test was ignored the promise returns `false`.
|
|
412
|
+
*
|
|
413
|
+
* ```ts
|
|
414
|
+
* Deno.test(async function aParentTest(t) {
|
|
415
|
+
* console.log("before the step");
|
|
416
|
+
* await t.step(function step1(t) {
|
|
417
|
+
* console.log("current step:", t.name);
|
|
418
|
+
* });
|
|
419
|
+
* console.log("after the step");
|
|
420
|
+
* });
|
|
421
|
+
* ```
|
|
422
|
+
*/
|
|
423
|
+
step(fn: (t: TestContext) => void | Promise<void>): Promise<boolean>;
|
|
424
|
+
}
|
|
425
|
+
/** @category Testing */
|
|
426
|
+
export interface TestStepDefinition {
|
|
427
|
+
/**
|
|
428
|
+
* The test function that will be tested when this step is executed. The
|
|
429
|
+
* function can take an argument which will provide information about the
|
|
430
|
+
* current step's context.
|
|
431
|
+
*/
|
|
432
|
+
fn: (t: TestContext) => void | Promise<void>;
|
|
433
|
+
/** The name of the step. */
|
|
434
|
+
name: string;
|
|
435
|
+
/**
|
|
436
|
+
* If truthy the current test step will be ignored.
|
|
437
|
+
*
|
|
438
|
+
* This is a quick way to skip over a step, but also can be used for
|
|
439
|
+
* conditional logic, like determining if an environment feature is present.
|
|
440
|
+
*/
|
|
441
|
+
ignore?: boolean;
|
|
442
|
+
/**
|
|
443
|
+
* Check that the number of async completed operations after the test step
|
|
444
|
+
* is the same as number of dispatched operations. This ensures that the
|
|
445
|
+
* code tested does not start async operations which it then does
|
|
446
|
+
* not await. This helps in preventing logic errors and memory leaks
|
|
447
|
+
* in the application code.
|
|
448
|
+
*
|
|
449
|
+
* Defaults to the parent test or step's value.
|
|
450
|
+
*/
|
|
451
|
+
sanitizeOps?: boolean;
|
|
452
|
+
/**
|
|
453
|
+
* Ensure the test step does not "leak" resources - like open files or
|
|
454
|
+
* network connections - by ensuring the open resources at the start of the
|
|
455
|
+
* step match the open resources at the end of the step.
|
|
456
|
+
*
|
|
457
|
+
* Defaults to the parent test or step's value.
|
|
458
|
+
*/
|
|
459
|
+
sanitizeResources?: boolean;
|
|
460
|
+
/**
|
|
461
|
+
* Ensure the test step does not prematurely cause the process to exit,
|
|
462
|
+
* for example via a call to {@linkcode Deno.exit}.
|
|
463
|
+
*
|
|
464
|
+
* Defaults to the parent test or step's value.
|
|
465
|
+
*/
|
|
466
|
+
sanitizeExit?: boolean;
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* A set of options which can define the permissions within a test or worker
|
|
470
|
+
* context at a highly specific level.
|
|
471
|
+
*
|
|
472
|
+
* @category Permissions
|
|
473
|
+
*/
|
|
474
|
+
export interface PermissionOptionsObject {
|
|
475
|
+
/**
|
|
476
|
+
* Specifies if the `env` permission should be requested or revoked.
|
|
477
|
+
* If set to `"inherit"`, the current `env` permission will be inherited.
|
|
478
|
+
* If set to `true`, the global `env` permission will be requested.
|
|
479
|
+
* If set to `false`, the global `env` permission will be revoked.
|
|
480
|
+
*
|
|
481
|
+
* @default {false}
|
|
482
|
+
*/
|
|
483
|
+
env?: "inherit" | boolean | string[];
|
|
484
|
+
/**
|
|
485
|
+
* Specifies if the `sys` permission should be requested or revoked.
|
|
486
|
+
* If set to `"inherit"`, the current `sys` permission will be inherited.
|
|
487
|
+
* If set to `true`, the global `sys` permission will be requested.
|
|
488
|
+
* If set to `false`, the global `sys` permission will be revoked.
|
|
489
|
+
*
|
|
490
|
+
* @default {false}
|
|
491
|
+
*/
|
|
492
|
+
sys?: "inherit" | boolean | string[];
|
|
493
|
+
/**
|
|
494
|
+
* Specifies if the `hrtime` permission should be requested or revoked.
|
|
495
|
+
* If set to `"inherit"`, the current `hrtime` permission will be inherited.
|
|
496
|
+
* If set to `true`, the global `hrtime` permission will be requested.
|
|
497
|
+
* If set to `false`, the global `hrtime` permission will be revoked.
|
|
498
|
+
*
|
|
499
|
+
* @default {false}
|
|
500
|
+
*/
|
|
501
|
+
hrtime?: "inherit" | boolean;
|
|
502
|
+
/**
|
|
503
|
+
* Specifies if the `net` permission should be requested or revoked.
|
|
504
|
+
* if set to `"inherit"`, the current `net` permission will be inherited.
|
|
505
|
+
* if set to `true`, the global `net` permission will be requested.
|
|
506
|
+
* if set to `false`, the global `net` permission will be revoked.
|
|
507
|
+
* if set to `string[]`, the `net` permission will be requested with the
|
|
508
|
+
* specified host strings with the format `"<host>[:<port>]`.
|
|
509
|
+
*
|
|
510
|
+
* @default {false}
|
|
511
|
+
*
|
|
512
|
+
* Examples:
|
|
513
|
+
*
|
|
514
|
+
* ```ts
|
|
515
|
+
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
|
|
516
|
+
*
|
|
517
|
+
* Deno.test({
|
|
518
|
+
* name: "inherit",
|
|
519
|
+
* permissions: {
|
|
520
|
+
* net: "inherit",
|
|
521
|
+
* },
|
|
522
|
+
* async fn() {
|
|
523
|
+
* const status = await Deno.permissions.query({ name: "net" })
|
|
524
|
+
* assertEquals(status.state, "granted");
|
|
525
|
+
* },
|
|
526
|
+
* });
|
|
527
|
+
* ```
|
|
528
|
+
*
|
|
529
|
+
* ```ts
|
|
530
|
+
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
|
|
531
|
+
*
|
|
532
|
+
* Deno.test({
|
|
533
|
+
* name: "true",
|
|
534
|
+
* permissions: {
|
|
535
|
+
* net: true,
|
|
536
|
+
* },
|
|
537
|
+
* async fn() {
|
|
538
|
+
* const status = await Deno.permissions.query({ name: "net" });
|
|
539
|
+
* assertEquals(status.state, "granted");
|
|
540
|
+
* },
|
|
541
|
+
* });
|
|
542
|
+
* ```
|
|
543
|
+
*
|
|
544
|
+
* ```ts
|
|
545
|
+
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
|
|
546
|
+
*
|
|
547
|
+
* Deno.test({
|
|
548
|
+
* name: "false",
|
|
549
|
+
* permissions: {
|
|
550
|
+
* net: false,
|
|
551
|
+
* },
|
|
552
|
+
* async fn() {
|
|
553
|
+
* const status = await Deno.permissions.query({ name: "net" });
|
|
554
|
+
* assertEquals(status.state, "denied");
|
|
555
|
+
* },
|
|
556
|
+
* });
|
|
557
|
+
* ```
|
|
558
|
+
*
|
|
559
|
+
* ```ts
|
|
560
|
+
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
|
|
561
|
+
*
|
|
562
|
+
* Deno.test({
|
|
563
|
+
* name: "localhost:8080",
|
|
564
|
+
* permissions: {
|
|
565
|
+
* net: ["localhost:8080"],
|
|
566
|
+
* },
|
|
567
|
+
* async fn() {
|
|
568
|
+
* const status = await Deno.permissions.query({ name: "net", host: "localhost:8080" });
|
|
569
|
+
* assertEquals(status.state, "granted");
|
|
570
|
+
* },
|
|
571
|
+
* });
|
|
572
|
+
* ```
|
|
573
|
+
*/
|
|
574
|
+
net?: "inherit" | boolean | string[];
|
|
575
|
+
/**
|
|
576
|
+
* Specifies if the `ffi` permission should be requested or revoked.
|
|
577
|
+
* If set to `"inherit"`, the current `ffi` permission will be inherited.
|
|
578
|
+
* If set to `true`, the global `ffi` permission will be requested.
|
|
579
|
+
* If set to `false`, the global `ffi` permission will be revoked.
|
|
580
|
+
*
|
|
581
|
+
* @default {false}
|
|
582
|
+
*/
|
|
583
|
+
ffi?: "inherit" | boolean | Array<string | URL>;
|
|
584
|
+
/**
|
|
585
|
+
* Specifies if the `read` permission should be requested or revoked.
|
|
586
|
+
* If set to `"inherit"`, the current `read` permission will be inherited.
|
|
587
|
+
* If set to `true`, the global `read` permission will be requested.
|
|
588
|
+
* If set to `false`, the global `read` permission will be revoked.
|
|
589
|
+
* If set to `Array<string | URL>`, the `read` permission will be requested with the
|
|
590
|
+
* specified file paths.
|
|
591
|
+
*
|
|
592
|
+
* @default {false}
|
|
593
|
+
*/
|
|
594
|
+
read?: "inherit" | boolean | Array<string | URL>;
|
|
595
|
+
/**
|
|
596
|
+
* Specifies if the `run` permission should be requested or revoked.
|
|
597
|
+
* If set to `"inherit"`, the current `run` permission will be inherited.
|
|
598
|
+
* If set to `true`, the global `run` permission will be requested.
|
|
599
|
+
* If set to `false`, the global `run` permission will be revoked.
|
|
600
|
+
*
|
|
601
|
+
* @default {false}
|
|
602
|
+
*/
|
|
603
|
+
run?: "inherit" | boolean | Array<string | URL>;
|
|
604
|
+
/**
|
|
605
|
+
* Specifies if the `write` permission should be requested or revoked.
|
|
606
|
+
* If set to `"inherit"`, the current `write` permission will be inherited.
|
|
607
|
+
* If set to `true`, the global `write` permission will be requested.
|
|
608
|
+
* If set to `false`, the global `write` permission will be revoked.
|
|
609
|
+
* If set to `Array<string | URL>`, the `write` permission will be requested with the
|
|
610
|
+
* specified file paths.
|
|
611
|
+
*
|
|
612
|
+
* @default {false}
|
|
613
|
+
*/
|
|
614
|
+
write?: "inherit" | boolean | Array<string | URL>;
|
|
615
|
+
}
|
|
616
|
+
/**
|
|
617
|
+
* Options which define the permissions within a test or worker context.
|
|
618
|
+
*
|
|
619
|
+
* `"inherit"` ensures that all permissions of the parent process will be
|
|
620
|
+
* applied to the test context. `"none"` ensures the test context has no
|
|
621
|
+
* permissions. A `PermissionOptionsObject` provides a more specific
|
|
622
|
+
* set of permissions to the test context.
|
|
623
|
+
*
|
|
624
|
+
* @category Permissions
|
|
625
|
+
*/
|
|
626
|
+
export type PermissionOptions = "inherit" | "none" | PermissionOptionsObject;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.testDefinitions = exports.Deno = void 0;
|
|
18
|
+
exports.Deno = require("./test.js");
|
|
19
|
+
__exportStar(require("./test.js"), exports);
|
|
20
|
+
var definitions_js_1 = require("./definitions.js");
|
|
21
|
+
Object.defineProperty(exports, "testDefinitions", { enumerable: true, get: function () { return definitions_js_1.testDefinitions; } });
|