@nshiab/setup-data-project 1.0.7 → 1.0.9
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/esm/helpers/createFolderStructure.d.ts.map +1 -1
- package/esm/helpers/createFolderStructure.js +1 -15
- package/esm/helpers/ensureAgents.d.ts.map +1 -1
- package/esm/helpers/ensureAgents.js +2 -8
- package/esm/helpers/ensureEnvFile.d.ts.map +1 -1
- package/esm/helpers/ensureEnvFile.js +1 -7
- package/esm/helpers/ensureGitignore.d.ts.map +1 -1
- package/esm/helpers/ensureGitignore.js +0 -6
- package/esm/helpers/ensureReadme.d.ts.map +1 -1
- package/esm/helpers/ensureReadme.js +1 -7
- package/esm/main.js +7 -17
- package/package.json +8 -2
- package/script/helpers/createFolderStructure.d.ts.map +1 -1
- package/script/helpers/createFolderStructure.js +1 -15
- package/script/helpers/ensureAgents.d.ts.map +1 -1
- package/script/helpers/ensureAgents.js +2 -8
- package/script/helpers/ensureEnvFile.d.ts.map +1 -1
- package/script/helpers/ensureEnvFile.js +1 -7
- package/script/helpers/ensureGitignore.d.ts.map +1 -1
- package/script/helpers/ensureGitignore.js +0 -6
- package/script/helpers/ensureReadme.d.ts.map +1 -1
- package/script/helpers/ensureReadme.js +1 -7
- package/script/main.js +7 -17
- package/npm/LICENSE +0 -21
- package/npm/README.md +0 -25
- package/npm/esm/_dnt.shims.d.ts +0 -8
- package/npm/esm/_dnt.shims.d.ts.map +0 -1
- package/npm/esm/_dnt.shims.js +0 -62
- package/npm/esm/_dnt_2.shims.d.ts +0 -6
- package/npm/esm/_dnt_2.shims.d.ts.map +0 -1
- package/npm/esm/_dnt_2.shims.js +0 -61
- package/npm/esm/helpers/createFolderStructure.d.ts +0 -2
- package/npm/esm/helpers/createFolderStructure.d.ts.map +0 -1
- package/npm/esm/helpers/createFolderStructure.js +0 -49
- package/npm/esm/helpers/ensureAgents.d.ts +0 -2
- package/npm/esm/helpers/ensureAgents.d.ts.map +0 -1
- package/npm/esm/helpers/ensureAgents.js +0 -92
- package/npm/esm/helpers/ensureEnvFile.d.ts +0 -2
- package/npm/esm/helpers/ensureEnvFile.d.ts.map +0 -1
- package/npm/esm/helpers/ensureEnvFile.js +0 -14
- package/npm/esm/helpers/ensureGitignore.d.ts +0 -2
- package/npm/esm/helpers/ensureGitignore.d.ts.map +0 -1
- package/npm/esm/helpers/ensureGitignore.js +0 -29
- package/npm/esm/helpers/ensureReadme.d.ts +0 -2
- package/npm/esm/helpers/ensureReadme.d.ts.map +0 -1
- package/npm/esm/helpers/ensureReadme.js +0 -37
- package/npm/esm/helpers/getInstalledPackages.d.ts +0 -2
- package/npm/esm/helpers/getInstalledPackages.d.ts.map +0 -1
- package/npm/esm/helpers/getInstalledPackages.js +0 -29
- package/npm/esm/helpers/getProjectTasks.d.ts +0 -5
- package/npm/esm/helpers/getProjectTasks.d.ts.map +0 -1
- package/npm/esm/helpers/getProjectTasks.js +0 -12
- package/npm/esm/helpers/getRuntime.d.ts +0 -5
- package/npm/esm/helpers/getRuntime.d.ts.map +0 -1
- package/npm/esm/helpers/getRuntime.js +0 -17
- package/npm/esm/helpers/gitignoreEntries.d.ts +0 -2
- package/npm/esm/helpers/gitignoreEntries.d.ts.map +0 -1
- package/npm/esm/helpers/gitignoreEntries.js +0 -9
- package/npm/esm/helpers/handleFileConflict.d.ts +0 -5
- package/npm/esm/helpers/handleFileConflict.d.ts.map +0 -1
- package/npm/esm/helpers/handleFileConflict.js +0 -51
- package/npm/esm/helpers/installPackagesAndFetchDocs.d.ts +0 -8
- package/npm/esm/helpers/installPackagesAndFetchDocs.d.ts.map +0 -1
- package/npm/esm/helpers/installPackagesAndFetchDocs.js +0 -61
- package/npm/esm/helpers/packageOptions.d.ts +0 -5
- package/npm/esm/helpers/packageOptions.d.ts.map +0 -1
- package/npm/esm/helpers/packageOptions.js +0 -5
- package/npm/esm/helpers/packageRegistry.d.ts +0 -7
- package/npm/esm/helpers/packageRegistry.d.ts.map +0 -1
- package/npm/esm/helpers/packageRegistry.js +0 -62
- package/npm/esm/helpers/updateProjectConfig.d.ts +0 -2
- package/npm/esm/helpers/updateProjectConfig.d.ts.map +0 -1
- package/npm/esm/helpers/updateProjectConfig.js +0 -36
- package/npm/esm/main.d.ts +0 -3
- package/npm/esm/main.d.ts.map +0 -1
- package/npm/esm/main.js +0 -93
- package/npm/esm/package.json +0 -3
- package/npm/node_modules/.package-lock.json +0 -123
- package/npm/node_modules/@clack/core/CHANGELOG.md +0 -348
- package/npm/node_modules/@clack/core/LICENSE +0 -9
- package/npm/node_modules/@clack/core/README.md +0 -22
- package/npm/node_modules/@clack/core/dist/index.d.mts +0 -363
- package/npm/node_modules/@clack/core/dist/index.mjs +0 -17
- package/npm/node_modules/@clack/core/dist/index.mjs.map +0 -1
- package/npm/node_modules/@clack/core/package.json +0 -63
- package/npm/node_modules/@clack/prompts/CHANGELOG.md +0 -591
- package/npm/node_modules/@clack/prompts/LICENSE +0 -9
- package/npm/node_modules/@clack/prompts/README.md +0 -375
- package/npm/node_modules/@clack/prompts/dist/index.d.mts +0 -396
- package/npm/node_modules/@clack/prompts/dist/index.mjs +0 -144
- package/npm/node_modules/@clack/prompts/dist/index.mjs.map +0 -1
- package/npm/node_modules/@clack/prompts/package.json +0 -68
- package/npm/node_modules/@deno/shim-deno/LICENSE +0 -20
- package/npm/node_modules/@deno/shim-deno/README.md +0 -30
- package/npm/node_modules/@deno/shim-deno/dist/deno/internal/Conn.js +0 -56
- package/npm/node_modules/@deno/shim-deno/dist/deno/internal/Listener.js +0 -92
- package/npm/node_modules/@deno/shim-deno/dist/deno/internal/consts.js +0 -4
- package/npm/node_modules/@deno/shim-deno/dist/deno/internal/errorMap.js +0 -44
- package/npm/node_modules/@deno/shim-deno/dist/deno/internal/fs_flags.js +0 -91
- package/npm/node_modules/@deno/shim-deno/dist/deno/internal/iterutil.js +0 -37
- package/npm/node_modules/@deno/shim-deno/dist/deno/internal/random_id.js +0 -8
- package/npm/node_modules/@deno/shim-deno/dist/deno/internal/streams.js +0 -122
- package/npm/node_modules/@deno/shim-deno/dist/deno/internal/test.d.ts +0 -1
- package/npm/node_modules/@deno/shim-deno/dist/deno/internal/test.js +0 -5
- package/npm/node_modules/@deno/shim-deno/dist/deno/internal/version.js +0 -5
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/classes/FsFile.js +0 -143
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/classes/PermissionStatus.js +0 -19
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/classes/Permissions.js +0 -26
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/classes.js +0 -10
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/enums/SeekMode.js +0 -9
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/enums.js +0 -5
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/addSignalListener.js +0 -18
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/chdir.js +0 -22
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/chmod.js +0 -29
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/chmodSync.js +0 -29
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/chown.js +0 -30
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/chownSync.js +0 -30
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/close.js +0 -29
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/connect.js +0 -37
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/connectTls.js +0 -31
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/consoleSize.js +0 -17
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/copy.js +0 -27
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/copyFile.js +0 -45
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/copyFileSync.js +0 -45
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/create.js +0 -9
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/createSync.js +0 -14
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/cwd.js +0 -5
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/execPath.js +0 -10
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/exit.js +0 -8
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/fdatasync.js +0 -8
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/fdatasyncSync.js +0 -6
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/fstat.js +0 -44
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/fstatSync.js +0 -19
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/fsync.js +0 -10
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/fsyncSync.js +0 -9
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/ftruncate.js +0 -8
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/ftruncateSync.js +0 -6
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/gid.js +0 -10
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/hostname.js +0 -32
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/inspect.js +0 -30
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/kill.js +0 -16
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/link.js +0 -29
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/linkSync.js +0 -29
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/listen.js +0 -51
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/listenTls.js +0 -49
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/loadavg.js +0 -32
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/lstat.js +0 -42
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/lstatSync.js +0 -42
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/makeTempDir.js +0 -11
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/makeTempDirSync.js +0 -11
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/makeTempFile.js +0 -14
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/makeTempFileSync.js +0 -14
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/memoryUsage.js +0 -5
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/mkdir.js +0 -22
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/mkdirSync.js +0 -45
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/open.js +0 -33
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/openSync.js +0 -31
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/osRelease.js +0 -9
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/osUptime.js +0 -9
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/read.js +0 -19
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readDir.js +0 -26
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readDirSync.js +0 -26
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readFile.js +0 -19
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readFileSync.js +0 -19
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readLink.js +0 -29
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readLinkSync.js +0 -29
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readSync.js +0 -34
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readTextFile.js +0 -18
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readTextFileSync.js +0 -41
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/realPath.js +0 -29
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/realPathSync.js +0 -29
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/remove.js +0 -22
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/removeSignalListener.js +0 -12
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/removeSync.js +0 -45
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/rename.js +0 -9
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/renameSync.js +0 -29
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/resolveDns.js +0 -41
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/run.js +0 -276
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/shutdown.js +0 -9
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/stat.js +0 -68
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/statSync.js +0 -42
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/symlink.js +0 -30
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/symlinkSync.js +0 -30
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/test.js +0 -5
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/truncate.js +0 -45
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/truncateSync.js +0 -45
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/uid.js +0 -10
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/watchFs.js +0 -27
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/write.js +0 -35
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/writeFile.js +0 -46
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/writeFileSync.js +0 -45
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/writeSync.js +0 -29
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/writeTextFile.js +0 -52
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/writeTextFileSync.js +0 -44
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions.js +0 -234
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/main.js +0 -21
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/types.js +0 -3
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/args.js +0 -5
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/build.js +0 -38
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/customInspect.js +0 -4
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/env.js +0 -47
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/errors.js +0 -63
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/mainModule.js +0 -8
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/metrics.js +0 -21
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/noColor.js +0 -5
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/permissions.js +0 -6
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/pid.js +0 -5
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/ppid.js +0 -5
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/resources.js +0 -12
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/std.js +0 -132
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/version.js +0 -10
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables.js +0 -53
- package/npm/node_modules/@deno/shim-deno/dist/deno/unstable/main.js +0 -62
- package/npm/node_modules/@deno/shim-deno/dist/deno.js +0 -17
- package/npm/node_modules/@deno/shim-deno/dist/index.d.ts +0 -4762
- package/npm/node_modules/@deno/shim-deno/dist/index.js +0 -27
- package/npm/node_modules/@deno/shim-deno/package.json +0 -50
- package/npm/node_modules/@deno/shim-deno-test/LICENSE +0 -20
- package/npm/node_modules/@deno/shim-deno-test/README.md +0 -28
- package/npm/node_modules/@deno/shim-deno-test/dist/definitions.d.ts +0 -3
- package/npm/node_modules/@deno/shim-deno-test/dist/definitions.js +0 -5
- package/npm/node_modules/@deno/shim-deno-test/dist/deno.types.gen.d.ts +0 -626
- package/npm/node_modules/@deno/shim-deno-test/dist/deno.types.gen.js +0 -2
- package/npm/node_modules/@deno/shim-deno-test/dist/index.d.ts +0 -3
- package/npm/node_modules/@deno/shim-deno-test/dist/index.js +0 -21
- package/npm/node_modules/@deno/shim-deno-test/dist/test.d.ts +0 -3
- package/npm/node_modules/@deno/shim-deno-test/dist/test.js +0 -87
- package/npm/node_modules/@deno/shim-deno-test/package.json +0 -34
- package/npm/node_modules/@types/node/LICENSE +0 -21
- package/npm/node_modules/@types/node/README.md +0 -15
- package/npm/node_modules/@types/node/assert/strict.d.ts +0 -8
- package/npm/node_modules/@types/node/assert.d.ts +0 -1062
- package/npm/node_modules/@types/node/async_hooks.d.ts +0 -605
- package/npm/node_modules/@types/node/buffer.buffer.d.ts +0 -471
- package/npm/node_modules/@types/node/buffer.d.ts +0 -1936
- package/npm/node_modules/@types/node/child_process.d.ts +0 -1475
- package/npm/node_modules/@types/node/cluster.d.ts +0 -577
- package/npm/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
- package/npm/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/npm/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
- package/npm/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
- package/npm/node_modules/@types/node/console.d.ts +0 -452
- package/npm/node_modules/@types/node/constants.d.ts +0 -21
- package/npm/node_modules/@types/node/crypto.d.ts +0 -4590
- package/npm/node_modules/@types/node/dgram.d.ts +0 -597
- package/npm/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
- package/npm/node_modules/@types/node/dns/promises.d.ts +0 -479
- package/npm/node_modules/@types/node/dns.d.ts +0 -871
- package/npm/node_modules/@types/node/domain.d.ts +0 -170
- package/npm/node_modules/@types/node/events.d.ts +0 -977
- package/npm/node_modules/@types/node/fs/promises.d.ts +0 -1270
- package/npm/node_modules/@types/node/fs.d.ts +0 -4375
- package/npm/node_modules/@types/node/globals.d.ts +0 -172
- package/npm/node_modules/@types/node/globals.typedarray.d.ts +0 -38
- package/npm/node_modules/@types/node/http.d.ts +0 -2049
- package/npm/node_modules/@types/node/http2.d.ts +0 -2631
- package/npm/node_modules/@types/node/https.d.ts +0 -578
- package/npm/node_modules/@types/node/index.d.ts +0 -93
- package/npm/node_modules/@types/node/inspector.generated.d.ts +0 -3966
- package/npm/node_modules/@types/node/module.d.ts +0 -539
- package/npm/node_modules/@types/node/net.d.ts +0 -1031
- package/npm/node_modules/@types/node/os.d.ts +0 -506
- package/npm/node_modules/@types/node/package.json +0 -140
- package/npm/node_modules/@types/node/path.d.ts +0 -200
- package/npm/node_modules/@types/node/perf_hooks.d.ts +0 -961
- package/npm/node_modules/@types/node/process.d.ts +0 -1961
- package/npm/node_modules/@types/node/punycode.d.ts +0 -117
- package/npm/node_modules/@types/node/querystring.d.ts +0 -152
- package/npm/node_modules/@types/node/readline/promises.d.ts +0 -162
- package/npm/node_modules/@types/node/readline.d.ts +0 -589
- package/npm/node_modules/@types/node/repl.d.ts +0 -430
- package/npm/node_modules/@types/node/sea.d.ts +0 -153
- package/npm/node_modules/@types/node/stream/consumers.d.ts +0 -38
- package/npm/node_modules/@types/node/stream/promises.d.ts +0 -90
- package/npm/node_modules/@types/node/stream/web.d.ts +0 -533
- package/npm/node_modules/@types/node/stream.d.ts +0 -1698
- package/npm/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/npm/node_modules/@types/node/test.d.ts +0 -1787
- package/npm/node_modules/@types/node/timers/promises.d.ts +0 -108
- package/npm/node_modules/@types/node/timers.d.ts +0 -286
- package/npm/node_modules/@types/node/tls.d.ts +0 -1259
- package/npm/node_modules/@types/node/trace_events.d.ts +0 -197
- package/npm/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -468
- package/npm/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -34
- package/npm/node_modules/@types/node/ts5.6/index.d.ts +0 -93
- package/npm/node_modules/@types/node/tty.d.ts +0 -208
- package/npm/node_modules/@types/node/url.d.ts +0 -964
- package/npm/node_modules/@types/node/util.d.ts +0 -2331
- package/npm/node_modules/@types/node/v8.d.ts +0 -809
- package/npm/node_modules/@types/node/vm.d.ts +0 -1001
- package/npm/node_modules/@types/node/wasi.d.ts +0 -181
- package/npm/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
- package/npm/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
- package/npm/node_modules/@types/node/web-globals/events.d.ts +0 -97
- package/npm/node_modules/@types/node/web-globals/fetch.d.ts +0 -55
- package/npm/node_modules/@types/node/worker_threads.d.ts +0 -715
- package/npm/node_modules/@types/node/zlib.d.ts +0 -598
- package/npm/node_modules/fast-string-truncated-width/dist/index.d.ts +0 -4
- package/npm/node_modules/fast-string-truncated-width/dist/index.js +0 -111
- package/npm/node_modules/fast-string-truncated-width/dist/types.d.ts +0 -19
- package/npm/node_modules/fast-string-truncated-width/dist/types.js +0 -2
- package/npm/node_modules/fast-string-truncated-width/dist/utils.d.ts +0 -4
- package/npm/node_modules/fast-string-truncated-width/dist/utils.js +0 -20
- package/npm/node_modules/fast-string-truncated-width/license +0 -21
- package/npm/node_modules/fast-string-truncated-width/package.json +0 -35
- package/npm/node_modules/fast-string-truncated-width/readme.md +0 -59
- package/npm/node_modules/fast-string-width/dist/index.d.ts +0 -4
- package/npm/node_modules/fast-string-width/dist/index.js +0 -14
- package/npm/node_modules/fast-string-width/license +0 -21
- package/npm/node_modules/fast-string-width/package.json +0 -34
- package/npm/node_modules/fast-string-width/readme.md +0 -42
- package/npm/node_modules/fast-wrap-ansi/LICENSE +0 -23
- package/npm/node_modules/fast-wrap-ansi/README.md +0 -26
- package/npm/node_modules/fast-wrap-ansi/lib/main.d.ts +0 -6
- package/npm/node_modules/fast-wrap-ansi/lib/main.js +0 -219
- package/npm/node_modules/fast-wrap-ansi/lib/main.js.map +0 -1
- package/npm/node_modules/fast-wrap-ansi/package.json +0 -51
- package/npm/node_modules/isexe/LICENSE.md +0 -55
- package/npm/node_modules/isexe/README.md +0 -80
- package/npm/node_modules/isexe/dist/commonjs/index.d.ts +0 -14
- package/npm/node_modules/isexe/dist/commonjs/index.d.ts.map +0 -1
- package/npm/node_modules/isexe/dist/commonjs/index.js +0 -56
- package/npm/node_modules/isexe/dist/commonjs/index.js.map +0 -1
- package/npm/node_modules/isexe/dist/commonjs/index.min.js +0 -2
- package/npm/node_modules/isexe/dist/commonjs/index.min.js.map +0 -7
- package/npm/node_modules/isexe/dist/commonjs/options.d.ts +0 -32
- package/npm/node_modules/isexe/dist/commonjs/options.d.ts.map +0 -1
- package/npm/node_modules/isexe/dist/commonjs/options.js +0 -3
- package/npm/node_modules/isexe/dist/commonjs/options.js.map +0 -1
- package/npm/node_modules/isexe/dist/commonjs/package.json +0 -3
- package/npm/node_modules/isexe/dist/commonjs/posix.d.ts +0 -18
- package/npm/node_modules/isexe/dist/commonjs/posix.d.ts.map +0 -1
- package/npm/node_modules/isexe/dist/commonjs/posix.js +0 -67
- package/npm/node_modules/isexe/dist/commonjs/posix.js.map +0 -1
- package/npm/node_modules/isexe/dist/commonjs/win32.d.ts +0 -18
- package/npm/node_modules/isexe/dist/commonjs/win32.d.ts.map +0 -1
- package/npm/node_modules/isexe/dist/commonjs/win32.js +0 -63
- package/npm/node_modules/isexe/dist/commonjs/win32.js.map +0 -1
- package/npm/node_modules/isexe/dist/esm/index.d.ts +0 -14
- package/npm/node_modules/isexe/dist/esm/index.d.ts.map +0 -1
- package/npm/node_modules/isexe/dist/esm/index.js +0 -16
- package/npm/node_modules/isexe/dist/esm/index.js.map +0 -1
- package/npm/node_modules/isexe/dist/esm/index.min.js +0 -2
- package/npm/node_modules/isexe/dist/esm/index.min.js.map +0 -7
- package/npm/node_modules/isexe/dist/esm/options.d.ts +0 -32
- package/npm/node_modules/isexe/dist/esm/options.d.ts.map +0 -1
- package/npm/node_modules/isexe/dist/esm/options.js +0 -2
- package/npm/node_modules/isexe/dist/esm/options.js.map +0 -1
- package/npm/node_modules/isexe/dist/esm/package.json +0 -3
- package/npm/node_modules/isexe/dist/esm/posix.d.ts +0 -18
- package/npm/node_modules/isexe/dist/esm/posix.d.ts.map +0 -1
- package/npm/node_modules/isexe/dist/esm/posix.js +0 -62
- package/npm/node_modules/isexe/dist/esm/posix.js.map +0 -1
- package/npm/node_modules/isexe/dist/esm/win32.d.ts +0 -18
- package/npm/node_modules/isexe/dist/esm/win32.d.ts.map +0 -1
- package/npm/node_modules/isexe/dist/esm/win32.js +0 -58
- package/npm/node_modules/isexe/dist/esm/win32.js.map +0 -1
- package/npm/node_modules/isexe/package.json +0 -78
- package/npm/node_modules/sisteransi/license +0 -21
- package/npm/node_modules/sisteransi/package.json +0 -34
- package/npm/node_modules/sisteransi/readme.md +0 -113
- package/npm/node_modules/sisteransi/src/index.js +0 -58
- package/npm/node_modules/sisteransi/src/sisteransi.d.ts +0 -35
- package/npm/node_modules/undici-types/LICENSE +0 -21
- package/npm/node_modules/undici-types/README.md +0 -6
- package/npm/node_modules/undici-types/agent.d.ts +0 -31
- package/npm/node_modules/undici-types/api.d.ts +0 -43
- package/npm/node_modules/undici-types/balanced-pool.d.ts +0 -29
- package/npm/node_modules/undici-types/cache.d.ts +0 -36
- package/npm/node_modules/undici-types/client.d.ts +0 -108
- package/npm/node_modules/undici-types/connector.d.ts +0 -34
- package/npm/node_modules/undici-types/content-type.d.ts +0 -21
- package/npm/node_modules/undici-types/cookies.d.ts +0 -28
- package/npm/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
- package/npm/node_modules/undici-types/dispatcher.d.ts +0 -256
- package/npm/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
- package/npm/node_modules/undici-types/errors.d.ts +0 -149
- package/npm/node_modules/undici-types/eventsource.d.ts +0 -61
- package/npm/node_modules/undici-types/fetch.d.ts +0 -209
- package/npm/node_modules/undici-types/file.d.ts +0 -39
- package/npm/node_modules/undici-types/filereader.d.ts +0 -54
- package/npm/node_modules/undici-types/formdata.d.ts +0 -108
- package/npm/node_modules/undici-types/global-dispatcher.d.ts +0 -9
- package/npm/node_modules/undici-types/global-origin.d.ts +0 -7
- package/npm/node_modules/undici-types/handlers.d.ts +0 -15
- package/npm/node_modules/undici-types/header.d.ts +0 -4
- package/npm/node_modules/undici-types/index.d.ts +0 -71
- package/npm/node_modules/undici-types/interceptors.d.ts +0 -17
- package/npm/node_modules/undici-types/mock-agent.d.ts +0 -50
- package/npm/node_modules/undici-types/mock-client.d.ts +0 -25
- package/npm/node_modules/undici-types/mock-errors.d.ts +0 -12
- package/npm/node_modules/undici-types/mock-interceptor.d.ts +0 -93
- package/npm/node_modules/undici-types/mock-pool.d.ts +0 -25
- package/npm/node_modules/undici-types/package.json +0 -55
- package/npm/node_modules/undici-types/patch.d.ts +0 -33
- package/npm/node_modules/undici-types/pool-stats.d.ts +0 -19
- package/npm/node_modules/undici-types/pool.d.ts +0 -39
- package/npm/node_modules/undici-types/proxy-agent.d.ts +0 -28
- package/npm/node_modules/undici-types/readable.d.ts +0 -65
- package/npm/node_modules/undici-types/retry-agent.d.ts +0 -8
- package/npm/node_modules/undici-types/retry-handler.d.ts +0 -116
- package/npm/node_modules/undici-types/util.d.ts +0 -18
- package/npm/node_modules/undici-types/webidl.d.ts +0 -228
- package/npm/node_modules/undici-types/websocket.d.ts +0 -150
- package/npm/node_modules/which/LICENSE +0 -15
- package/npm/node_modules/which/README.md +0 -51
- package/npm/node_modules/which/bin/which.js +0 -52
- package/npm/node_modules/which/lib/index.js +0 -111
- package/npm/node_modules/which/package.json +0 -57
- package/npm/package-lock.json +0 -135
- package/npm/package.json +0 -30
- package/npm/script/_dnt.shims.d.ts +0 -8
- package/npm/script/_dnt.shims.d.ts.map +0 -1
- package/npm/script/_dnt.shims.js +0 -99
- package/npm/script/_dnt_2.shims.d.ts +0 -6
- package/npm/script/_dnt_2.shims.d.ts.map +0 -1
- package/npm/script/_dnt_2.shims.js +0 -65
- package/npm/script/helpers/createFolderStructure.d.ts +0 -2
- package/npm/script/helpers/createFolderStructure.d.ts.map +0 -1
- package/npm/script/helpers/createFolderStructure.js +0 -52
- package/npm/script/helpers/ensureAgents.d.ts +0 -2
- package/npm/script/helpers/ensureAgents.d.ts.map +0 -1
- package/npm/script/helpers/ensureAgents.js +0 -95
- package/npm/script/helpers/ensureEnvFile.d.ts +0 -2
- package/npm/script/helpers/ensureEnvFile.d.ts.map +0 -1
- package/npm/script/helpers/ensureEnvFile.js +0 -17
- package/npm/script/helpers/ensureGitignore.d.ts +0 -2
- package/npm/script/helpers/ensureGitignore.d.ts.map +0 -1
- package/npm/script/helpers/ensureGitignore.js +0 -32
- package/npm/script/helpers/ensureReadme.d.ts +0 -2
- package/npm/script/helpers/ensureReadme.d.ts.map +0 -1
- package/npm/script/helpers/ensureReadme.js +0 -40
- package/npm/script/helpers/getInstalledPackages.d.ts +0 -2
- package/npm/script/helpers/getInstalledPackages.d.ts.map +0 -1
- package/npm/script/helpers/getInstalledPackages.js +0 -32
- package/npm/script/helpers/getProjectTasks.d.ts +0 -5
- package/npm/script/helpers/getProjectTasks.d.ts.map +0 -1
- package/npm/script/helpers/getProjectTasks.js +0 -15
- package/npm/script/helpers/getRuntime.d.ts +0 -5
- package/npm/script/helpers/getRuntime.d.ts.map +0 -1
- package/npm/script/helpers/getRuntime.js +0 -57
- package/npm/script/helpers/gitignoreEntries.d.ts +0 -2
- package/npm/script/helpers/gitignoreEntries.d.ts.map +0 -1
- package/npm/script/helpers/gitignoreEntries.js +0 -12
- package/npm/script/helpers/handleFileConflict.d.ts +0 -5
- package/npm/script/helpers/handleFileConflict.d.ts.map +0 -1
- package/npm/script/helpers/handleFileConflict.js +0 -91
- package/npm/script/helpers/installPackagesAndFetchDocs.d.ts +0 -8
- package/npm/script/helpers/installPackagesAndFetchDocs.d.ts.map +0 -1
- package/npm/script/helpers/installPackagesAndFetchDocs.js +0 -98
- package/npm/script/helpers/packageOptions.d.ts +0 -5
- package/npm/script/helpers/packageOptions.d.ts.map +0 -1
- package/npm/script/helpers/packageOptions.js +0 -8
- package/npm/script/helpers/packageRegistry.d.ts +0 -7
- package/npm/script/helpers/packageRegistry.d.ts.map +0 -1
- package/npm/script/helpers/packageRegistry.js +0 -65
- package/npm/script/helpers/updateProjectConfig.d.ts +0 -2
- package/npm/script/helpers/updateProjectConfig.d.ts.map +0 -1
- package/npm/script/helpers/updateProjectConfig.js +0 -39
- package/npm/script/main.d.ts +0 -3
- package/npm/script/main.d.ts.map +0 -1
- package/npm/script/main.js +0 -98
- package/npm/script/package.json +0 -3
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
///<reference path="../stable/lib.deno.d.ts" />
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
-
}) : function(o, v) {
|
|
17
|
-
o["default"] = v;
|
|
18
|
-
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
-
if (mod && mod.__esModule) return mod;
|
|
21
|
-
var result = {};
|
|
22
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
-
__setModuleDefault(result, mod);
|
|
24
|
-
return result;
|
|
25
|
-
};
|
|
26
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
27
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
28
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
29
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
30
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
31
|
-
};
|
|
32
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
33
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
34
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
35
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
36
|
-
};
|
|
37
|
-
var _Listener_listener;
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.Listener = void 0;
|
|
40
|
-
const close_js_1 = require("../stable/functions/close.js");
|
|
41
|
-
const errors = __importStar(require("../stable/variables/errors.js"));
|
|
42
|
-
class Listener {
|
|
43
|
-
constructor(rid, addr, listener) {
|
|
44
|
-
this.rid = rid;
|
|
45
|
-
this.addr = addr;
|
|
46
|
-
_Listener_listener.set(this, void 0);
|
|
47
|
-
__classPrivateFieldSet(this, _Listener_listener, listener, "f");
|
|
48
|
-
}
|
|
49
|
-
[(_Listener_listener = new WeakMap(), Symbol.dispose)]() {
|
|
50
|
-
this.close();
|
|
51
|
-
}
|
|
52
|
-
async accept() {
|
|
53
|
-
if (!__classPrivateFieldGet(this, _Listener_listener, "f")) {
|
|
54
|
-
throw new errors.BadResource("Listener not initialised");
|
|
55
|
-
}
|
|
56
|
-
const result = await __classPrivateFieldGet(this, _Listener_listener, "f").next();
|
|
57
|
-
if (result.done) {
|
|
58
|
-
throw new errors.BadResource("Server not listening");
|
|
59
|
-
}
|
|
60
|
-
return result.value;
|
|
61
|
-
}
|
|
62
|
-
async next() {
|
|
63
|
-
let conn;
|
|
64
|
-
try {
|
|
65
|
-
conn = await this.accept();
|
|
66
|
-
}
|
|
67
|
-
catch (error) {
|
|
68
|
-
if (error instanceof errors.BadResource) {
|
|
69
|
-
return { value: undefined, done: true };
|
|
70
|
-
}
|
|
71
|
-
throw error;
|
|
72
|
-
}
|
|
73
|
-
return { value: conn, done: false };
|
|
74
|
-
}
|
|
75
|
-
return(value) {
|
|
76
|
-
this.close();
|
|
77
|
-
return Promise.resolve({ value, done: true });
|
|
78
|
-
}
|
|
79
|
-
close() {
|
|
80
|
-
(0, close_js_1.close)(this.rid);
|
|
81
|
-
}
|
|
82
|
-
ref() {
|
|
83
|
-
throw new Error("Not implemented");
|
|
84
|
-
}
|
|
85
|
-
unref() {
|
|
86
|
-
throw new Error("Not implemented");
|
|
87
|
-
}
|
|
88
|
-
[Symbol.asyncIterator]() {
|
|
89
|
-
return this;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
exports.Listener = Listener;
|
|
@@ -1,44 +0,0 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
const errors = __importStar(require("../stable/variables/errors.js"));
|
|
27
|
-
const mapper = (Ctor) => (err) => Object.assign(new Ctor(err.message), {
|
|
28
|
-
stack: err.stack,
|
|
29
|
-
});
|
|
30
|
-
const map = {
|
|
31
|
-
EEXIST: mapper(errors.AlreadyExists),
|
|
32
|
-
ENOENT: mapper(errors.NotFound),
|
|
33
|
-
EBADF: mapper(errors.BadResource),
|
|
34
|
-
};
|
|
35
|
-
const isNodeErr = (e) => {
|
|
36
|
-
return e instanceof Error && "code" in e;
|
|
37
|
-
};
|
|
38
|
-
function mapError(e) {
|
|
39
|
-
var _a;
|
|
40
|
-
if (!isNodeErr(e))
|
|
41
|
-
return e;
|
|
42
|
-
return ((_a = map[e.code]) === null || _a === void 0 ? void 0 : _a.call(map, e)) || e;
|
|
43
|
-
}
|
|
44
|
-
exports.default = mapError;
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// getAccessFlag and getCreationFlag adapted from the original in Rust's std::fs
|
|
3
|
-
// <source path="https://github.com/rust-lang/rust/blob/304441960e7058fe97f09ef00b20739b4dc56d11/library/std/src/sys/unix/fs.rs#L694-L728" />
|
|
4
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
-
if (k2 === undefined) k2 = k;
|
|
6
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
-
}
|
|
10
|
-
Object.defineProperty(o, k2, desc);
|
|
11
|
-
}) : (function(o, m, k, k2) {
|
|
12
|
-
if (k2 === undefined) k2 = k;
|
|
13
|
-
o[k2] = m[k];
|
|
14
|
-
}));
|
|
15
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
-
}) : function(o, v) {
|
|
18
|
-
o["default"] = v;
|
|
19
|
-
});
|
|
20
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
-
if (mod && mod.__esModule) return mod;
|
|
22
|
-
var result = {};
|
|
23
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
-
__setModuleDefault(result, mod);
|
|
25
|
-
return result;
|
|
26
|
-
};
|
|
27
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
28
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29
|
-
};
|
|
30
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
-
exports.getFsFlag = exports.getCreationFlag = exports.getAccessFlag = void 0;
|
|
32
|
-
const errors = __importStar(require("../stable/variables/errors.js"));
|
|
33
|
-
const fs_1 = require("fs");
|
|
34
|
-
const os_1 = __importDefault(require("os"));
|
|
35
|
-
const { O_APPEND, O_CREAT, O_EXCL, O_RDONLY, O_RDWR, O_TRUNC, O_WRONLY } = fs_1.constants;
|
|
36
|
-
function getAccessFlag(opts) {
|
|
37
|
-
if (opts.read && !opts.write && !opts.append)
|
|
38
|
-
return O_RDONLY;
|
|
39
|
-
if (!opts.read && opts.write && !opts.append)
|
|
40
|
-
return O_WRONLY;
|
|
41
|
-
if (opts.read && opts.write && !opts.append)
|
|
42
|
-
return O_RDWR;
|
|
43
|
-
if (!opts.read && opts.append)
|
|
44
|
-
return O_WRONLY | O_APPEND;
|
|
45
|
-
if (opts.read && opts.append)
|
|
46
|
-
return O_RDWR | O_APPEND;
|
|
47
|
-
if (!opts.read && !opts.write && !opts.append) {
|
|
48
|
-
throw new errors.BadResource("EINVAL: One of 'read', 'write', 'append' is required to open file.");
|
|
49
|
-
}
|
|
50
|
-
throw new errors.BadResource("EINVAL: Invalid fs flags.");
|
|
51
|
-
}
|
|
52
|
-
exports.getAccessFlag = getAccessFlag;
|
|
53
|
-
function getCreationFlag(opts) {
|
|
54
|
-
if (!opts.write && !opts.append) {
|
|
55
|
-
if (opts.truncate || opts.create || opts.createNew) {
|
|
56
|
-
throw new errors.BadResource("EINVAL: One of 'write', 'append' is required to 'truncate', 'create' or 'createNew' file.");
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
if (opts.append) {
|
|
60
|
-
if (opts.truncate && !opts.createNew) {
|
|
61
|
-
throw new errors.BadResource("EINVAL: unexpected 'truncate': true and 'createNew': false when 'append' is true.");
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
if (!opts.create && !opts.truncate && !opts.createNew)
|
|
65
|
-
return 0;
|
|
66
|
-
if (opts.create && !opts.truncate && !opts.createNew)
|
|
67
|
-
return O_CREAT;
|
|
68
|
-
if (!opts.create && opts.truncate && !opts.createNew) {
|
|
69
|
-
if (os_1.default.platform() === "win32") {
|
|
70
|
-
// for some reason only providing O_TRUNC on windows will
|
|
71
|
-
// throw a "EINVAL: invalid argument", so to work around this
|
|
72
|
-
// we relax the restriction here to also create the file if it
|
|
73
|
-
// doesn't exist
|
|
74
|
-
return O_CREAT | O_TRUNC;
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
return O_TRUNC;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
if (opts.create && opts.truncate && !opts.createNew) {
|
|
81
|
-
return O_CREAT | O_TRUNC;
|
|
82
|
-
}
|
|
83
|
-
if (opts.createNew)
|
|
84
|
-
return O_CREAT | O_EXCL;
|
|
85
|
-
throw new errors.BadResource("EINVAL: Invalid fs flags.");
|
|
86
|
-
}
|
|
87
|
-
exports.getCreationFlag = getCreationFlag;
|
|
88
|
-
function getFsFlag(flags) {
|
|
89
|
-
return getAccessFlag(flags) | getCreationFlag(flags);
|
|
90
|
-
}
|
|
91
|
-
exports.getFsFlag = getFsFlag;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.merge = exports.filterAsync = exports.mapAsync = exports.map = void 0;
|
|
4
|
-
function* map(iter, f) {
|
|
5
|
-
for (const i of iter) {
|
|
6
|
-
yield f(i);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
exports.map = map;
|
|
10
|
-
async function* mapAsync(iter, f) {
|
|
11
|
-
for await (const i of iter) {
|
|
12
|
-
yield f(i);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.mapAsync = mapAsync;
|
|
16
|
-
async function* filterAsync(iter, filter) {
|
|
17
|
-
for await (const i of iter) {
|
|
18
|
-
if (filter(i)) {
|
|
19
|
-
yield i;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.filterAsync = filterAsync;
|
|
24
|
-
async function* merge(iterables) {
|
|
25
|
-
const racers = new Map(map(map(iterables, (iter) => iter[Symbol.asyncIterator]()), (iter) => [iter, iter.next()]));
|
|
26
|
-
while (racers.size > 0) {
|
|
27
|
-
const winner = await Promise.race(map(racers.entries(), ([iter, prom]) => prom.then((result) => ({ result, iter }))));
|
|
28
|
-
if (winner.result.done) {
|
|
29
|
-
racers.delete(winner.iter);
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
yield await winner.result.value;
|
|
33
|
-
racers.set(winner.iter, winner.iter.next());
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
exports.merge = merge;
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/// <reference path="../stable/lib.deno.d.ts" />
|
|
3
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
4
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
5
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
6
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
7
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
8
|
-
};
|
|
9
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
10
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
11
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
12
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
13
|
-
};
|
|
14
|
-
var _BufferStreamReader_instances, _BufferStreamReader_stream, _BufferStreamReader_error, _BufferStreamReader_ended, _BufferStreamReader_pendingActions, _BufferStreamReader_runPendingActions, _StreamWriter_stream;
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.StreamWriter = exports.BufferStreamReader = void 0;
|
|
17
|
-
class BufferStreamReader {
|
|
18
|
-
constructor(stream) {
|
|
19
|
-
_BufferStreamReader_instances.add(this);
|
|
20
|
-
_BufferStreamReader_stream.set(this, void 0);
|
|
21
|
-
_BufferStreamReader_error.set(this, void 0);
|
|
22
|
-
_BufferStreamReader_ended.set(this, false);
|
|
23
|
-
_BufferStreamReader_pendingActions.set(this, []);
|
|
24
|
-
__classPrivateFieldSet(this, _BufferStreamReader_stream, stream, "f");
|
|
25
|
-
__classPrivateFieldGet(this, _BufferStreamReader_stream, "f").pause();
|
|
26
|
-
__classPrivateFieldGet(this, _BufferStreamReader_stream, "f").on("error", (error) => {
|
|
27
|
-
__classPrivateFieldSet(this, _BufferStreamReader_error, error, "f");
|
|
28
|
-
__classPrivateFieldGet(this, _BufferStreamReader_instances, "m", _BufferStreamReader_runPendingActions).call(this);
|
|
29
|
-
});
|
|
30
|
-
__classPrivateFieldGet(this, _BufferStreamReader_stream, "f").on("readable", () => {
|
|
31
|
-
__classPrivateFieldGet(this, _BufferStreamReader_instances, "m", _BufferStreamReader_runPendingActions).call(this);
|
|
32
|
-
});
|
|
33
|
-
__classPrivateFieldGet(this, _BufferStreamReader_stream, "f").on("end", () => {
|
|
34
|
-
__classPrivateFieldSet(this, _BufferStreamReader_ended, true, "f");
|
|
35
|
-
__classPrivateFieldGet(this, _BufferStreamReader_instances, "m", _BufferStreamReader_runPendingActions).call(this);
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
readAll() {
|
|
39
|
-
return new Promise((resolve, reject) => {
|
|
40
|
-
const chunks = [];
|
|
41
|
-
const action = () => {
|
|
42
|
-
if (__classPrivateFieldGet(this, _BufferStreamReader_error, "f")) {
|
|
43
|
-
reject(__classPrivateFieldGet(this, _BufferStreamReader_error, "f"));
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
const buffer = __classPrivateFieldGet(this, _BufferStreamReader_stream, "f").read();
|
|
47
|
-
if (buffer != null) {
|
|
48
|
-
chunks.push(buffer);
|
|
49
|
-
__classPrivateFieldGet(this, _BufferStreamReader_pendingActions, "f").push(action);
|
|
50
|
-
}
|
|
51
|
-
else if (__classPrivateFieldGet(this, _BufferStreamReader_ended, "f")) {
|
|
52
|
-
const result = Buffer.concat(chunks);
|
|
53
|
-
resolve(result);
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
__classPrivateFieldGet(this, _BufferStreamReader_pendingActions, "f").push(action);
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
action();
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
read(p) {
|
|
63
|
-
return new Promise((resolve, reject) => {
|
|
64
|
-
const action = () => {
|
|
65
|
-
if (__classPrivateFieldGet(this, _BufferStreamReader_error, "f")) {
|
|
66
|
-
reject(__classPrivateFieldGet(this, _BufferStreamReader_error, "f"));
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
const readBuffer = __classPrivateFieldGet(this, _BufferStreamReader_stream, "f").read(p.byteLength);
|
|
70
|
-
if (readBuffer && readBuffer.byteLength > 0) {
|
|
71
|
-
readBuffer.copy(p, 0, 0, readBuffer.byteLength);
|
|
72
|
-
resolve(readBuffer.byteLength);
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
if (__classPrivateFieldGet(this, _BufferStreamReader_ended, "f")) {
|
|
76
|
-
resolve(null);
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
__classPrivateFieldGet(this, _BufferStreamReader_pendingActions, "f").push(action);
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
action();
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
exports.BufferStreamReader = BufferStreamReader;
|
|
87
|
-
_BufferStreamReader_stream = new WeakMap(), _BufferStreamReader_error = new WeakMap(), _BufferStreamReader_ended = new WeakMap(), _BufferStreamReader_pendingActions = new WeakMap(), _BufferStreamReader_instances = new WeakSet(), _BufferStreamReader_runPendingActions = function _BufferStreamReader_runPendingActions() {
|
|
88
|
-
const errors = [];
|
|
89
|
-
for (const action of __classPrivateFieldGet(this, _BufferStreamReader_pendingActions, "f").splice(0)) {
|
|
90
|
-
try {
|
|
91
|
-
action();
|
|
92
|
-
}
|
|
93
|
-
catch (err) {
|
|
94
|
-
errors.push(err);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
if (errors.length > 0) {
|
|
98
|
-
throw (errors.length > 1
|
|
99
|
-
? new globalThis.AggregateError(errors)
|
|
100
|
-
: errors[0]);
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
class StreamWriter {
|
|
104
|
-
constructor(stream) {
|
|
105
|
-
_StreamWriter_stream.set(this, void 0);
|
|
106
|
-
__classPrivateFieldSet(this, _StreamWriter_stream, stream, "f");
|
|
107
|
-
}
|
|
108
|
-
write(p) {
|
|
109
|
-
return new Promise((resolve, reject) => {
|
|
110
|
-
__classPrivateFieldGet(this, _StreamWriter_stream, "f").write(p, (err) => {
|
|
111
|
-
if (err) {
|
|
112
|
-
reject(err);
|
|
113
|
-
}
|
|
114
|
-
else {
|
|
115
|
-
resolve(p.byteLength);
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
exports.StreamWriter = StreamWriter;
|
|
122
|
-
_StreamWriter_stream = new WeakMap();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { testDefinitions } from "@deno/shim-deno-test";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.testDefinitions = void 0;
|
|
4
|
-
var shim_deno_test_1 = require("@deno/shim-deno-test");
|
|
5
|
-
Object.defineProperty(exports, "testDefinitions", { enumerable: true, get: function () { return shim_deno_test_1.testDefinitions; } });
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
///<reference path="../lib.deno.d.ts" />
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
-
}) : function(o, v) {
|
|
17
|
-
o["default"] = v;
|
|
18
|
-
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
-
if (mod && mod.__esModule) return mod;
|
|
21
|
-
var result = {};
|
|
22
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
-
__setModuleDefault(result, mod);
|
|
24
|
-
return result;
|
|
25
|
-
};
|
|
26
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
27
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
28
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
29
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
30
|
-
};
|
|
31
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
32
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
33
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
34
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
35
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
36
|
-
};
|
|
37
|
-
var _a, _b;
|
|
38
|
-
var _c, _d;
|
|
39
|
-
var _FsFile_closed, _FsFile_readableStream, _FsFile_writableStream;
|
|
40
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
-
exports.File = exports.FsFile = void 0;
|
|
42
|
-
const fs = __importStar(require("node:fs"));
|
|
43
|
-
const stream = __importStar(require("node:stream"));
|
|
44
|
-
const fstat_js_1 = require("../functions/fstat.js");
|
|
45
|
-
const fstatSync_js_1 = require("../functions/fstatSync.js");
|
|
46
|
-
const ftruncate_js_1 = require("../functions/ftruncate.js");
|
|
47
|
-
const ftruncateSync_js_1 = require("../functions/ftruncateSync.js");
|
|
48
|
-
const fdatasync_js_1 = require("../functions/fdatasync.js");
|
|
49
|
-
const fdatasyncSync_js_1 = require("../functions/fdatasyncSync.js");
|
|
50
|
-
const read_js_1 = require("../functions/read.js");
|
|
51
|
-
const readSync_js_1 = require("../functions/readSync.js");
|
|
52
|
-
const write_js_1 = require("../functions/write.js");
|
|
53
|
-
const writeSync_js_1 = require("../functions/writeSync.js");
|
|
54
|
-
(_a = (_c = Symbol).dispose) !== null && _a !== void 0 ? _a : (_c.dispose = Symbol("Symbol.dispose"));
|
|
55
|
-
(_b = (_d = Symbol).asyncDispose) !== null && _b !== void 0 ? _b : (_d.asyncDispose = Symbol("Symbol.asyncDispose"));
|
|
56
|
-
class FsFile {
|
|
57
|
-
constructor(rid) {
|
|
58
|
-
this.rid = rid;
|
|
59
|
-
_FsFile_closed.set(this, false);
|
|
60
|
-
_FsFile_readableStream.set(this, void 0);
|
|
61
|
-
_FsFile_writableStream.set(this, void 0);
|
|
62
|
-
}
|
|
63
|
-
[(_FsFile_closed = new WeakMap(), _FsFile_readableStream = new WeakMap(), _FsFile_writableStream = new WeakMap(), Symbol.dispose)]() {
|
|
64
|
-
if (!__classPrivateFieldGet(this, _FsFile_closed, "f")) {
|
|
65
|
-
this.close();
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
async write(p) {
|
|
69
|
-
return await (0, write_js_1.write)(this.rid, p);
|
|
70
|
-
}
|
|
71
|
-
writeSync(p) {
|
|
72
|
-
return (0, writeSync_js_1.writeSync)(this.rid, p);
|
|
73
|
-
}
|
|
74
|
-
async truncate(len) {
|
|
75
|
-
await (0, ftruncate_js_1.ftruncate)(this.rid, len);
|
|
76
|
-
}
|
|
77
|
-
truncateSync(len) {
|
|
78
|
-
return (0, ftruncateSync_js_1.ftruncateSync)(this.rid, len);
|
|
79
|
-
}
|
|
80
|
-
read(p) {
|
|
81
|
-
return (0, read_js_1.read)(this.rid, p);
|
|
82
|
-
}
|
|
83
|
-
readSync(p) {
|
|
84
|
-
return (0, readSync_js_1.readSync)(this.rid, p);
|
|
85
|
-
}
|
|
86
|
-
seek(_offset, _whence) {
|
|
87
|
-
throw new Error("Method not implemented.");
|
|
88
|
-
}
|
|
89
|
-
seekSync(_offset, _whence) {
|
|
90
|
-
throw new Error("Method not implemented.");
|
|
91
|
-
}
|
|
92
|
-
async stat() {
|
|
93
|
-
return await (0, fstat_js_1.fstat)(this.rid);
|
|
94
|
-
}
|
|
95
|
-
statSync() {
|
|
96
|
-
return (0, fstatSync_js_1.fstatSync)(this.rid);
|
|
97
|
-
}
|
|
98
|
-
sync() {
|
|
99
|
-
throw new Error("Method not implemented.");
|
|
100
|
-
}
|
|
101
|
-
syncSync() {
|
|
102
|
-
throw new Error("Method not implemented.");
|
|
103
|
-
}
|
|
104
|
-
syncData() {
|
|
105
|
-
return (0, fdatasync_js_1.fdatasync)(this.rid);
|
|
106
|
-
}
|
|
107
|
-
syncDataSync() {
|
|
108
|
-
return (0, fdatasyncSync_js_1.fdatasyncSync)(this.rid);
|
|
109
|
-
}
|
|
110
|
-
utime(_atime, _mtime) {
|
|
111
|
-
throw new Error("Method not implemented.");
|
|
112
|
-
}
|
|
113
|
-
utimeSync(_atime, _mtime) {
|
|
114
|
-
throw new Error("Method not implemented.");
|
|
115
|
-
}
|
|
116
|
-
close() {
|
|
117
|
-
__classPrivateFieldSet(this, _FsFile_closed, true, "f");
|
|
118
|
-
fs.closeSync(this.rid);
|
|
119
|
-
}
|
|
120
|
-
get readable() {
|
|
121
|
-
if (__classPrivateFieldGet(this, _FsFile_readableStream, "f") == null) {
|
|
122
|
-
const nodeStream = fs.createReadStream(null, {
|
|
123
|
-
fd: this.rid,
|
|
124
|
-
autoClose: false,
|
|
125
|
-
});
|
|
126
|
-
__classPrivateFieldSet(this, _FsFile_readableStream, stream.Readable.toWeb(nodeStream), "f");
|
|
127
|
-
}
|
|
128
|
-
return __classPrivateFieldGet(this, _FsFile_readableStream, "f");
|
|
129
|
-
}
|
|
130
|
-
get writable() {
|
|
131
|
-
if (__classPrivateFieldGet(this, _FsFile_writableStream, "f") == null) {
|
|
132
|
-
const nodeStream = fs.createWriteStream(null, {
|
|
133
|
-
fd: this.rid,
|
|
134
|
-
autoClose: false,
|
|
135
|
-
});
|
|
136
|
-
__classPrivateFieldSet(this, _FsFile_writableStream, stream.Writable.toWeb(nodeStream), "f");
|
|
137
|
-
}
|
|
138
|
-
return __classPrivateFieldGet(this, _FsFile_writableStream, "f");
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
exports.FsFile = FsFile;
|
|
142
|
-
const File = FsFile;
|
|
143
|
-
exports.File = File;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
///<reference path="../lib.deno.d.ts" />
|
|
3
|
-
var _a, _b;
|
|
4
|
-
var _c;
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.PermissionStatus = void 0;
|
|
7
|
-
// The listeners don't actually matter because the state of these permissions
|
|
8
|
-
// is constant and mocked as Node.js has all doors open.
|
|
9
|
-
(_a = (_c = globalThis).EventTarget) !== null && _a !== void 0 ? _a : (_c.EventTarget = (_b = require("events").EventTarget) !== null && _b !== void 0 ? _b : null);
|
|
10
|
-
class PermissionStatus extends EventTarget {
|
|
11
|
-
/** @internal */
|
|
12
|
-
constructor(state) {
|
|
13
|
-
super();
|
|
14
|
-
this.state = state;
|
|
15
|
-
this.onchange = null;
|
|
16
|
-
this.partial = false;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.PermissionStatus = PermissionStatus;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
///<reference path="../lib.deno.d.ts" />
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Permissions = void 0;
|
|
5
|
-
const PermissionStatus_js_1 = require("../classes/PermissionStatus.js");
|
|
6
|
-
class Permissions {
|
|
7
|
-
query(desc) {
|
|
8
|
-
return Promise.resolve(this.querySync(desc));
|
|
9
|
-
}
|
|
10
|
-
querySync(_desc) {
|
|
11
|
-
return new PermissionStatus_js_1.PermissionStatus("granted");
|
|
12
|
-
}
|
|
13
|
-
revoke(desc) {
|
|
14
|
-
return Promise.resolve(this.revokeSync(desc));
|
|
15
|
-
}
|
|
16
|
-
revokeSync(_desc) {
|
|
17
|
-
return new PermissionStatus_js_1.PermissionStatus("denied");
|
|
18
|
-
}
|
|
19
|
-
request(desc) {
|
|
20
|
-
return this.query(desc);
|
|
21
|
-
}
|
|
22
|
-
requestSync(desc) {
|
|
23
|
-
return this.querySync(desc);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
exports.Permissions = Permissions;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PermissionStatus = exports.Permissions = exports.FsFile = exports.File = void 0;
|
|
4
|
-
var FsFile_js_1 = require("./classes/FsFile.js");
|
|
5
|
-
Object.defineProperty(exports, "File", { enumerable: true, get: function () { return FsFile_js_1.File; } });
|
|
6
|
-
Object.defineProperty(exports, "FsFile", { enumerable: true, get: function () { return FsFile_js_1.FsFile; } });
|
|
7
|
-
var Permissions_js_1 = require("./classes/Permissions.js");
|
|
8
|
-
Object.defineProperty(exports, "Permissions", { enumerable: true, get: function () { return Permissions_js_1.Permissions; } });
|
|
9
|
-
var PermissionStatus_js_1 = require("./classes/PermissionStatus.js");
|
|
10
|
-
Object.defineProperty(exports, "PermissionStatus", { enumerable: true, get: function () { return PermissionStatus_js_1.PermissionStatus; } });
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SeekMode = void 0;
|
|
4
|
-
var SeekMode;
|
|
5
|
-
(function (SeekMode) {
|
|
6
|
-
SeekMode[SeekMode["Start"] = 0] = "Start";
|
|
7
|
-
SeekMode[SeekMode["Current"] = 1] = "Current";
|
|
8
|
-
SeekMode[SeekMode["End"] = 2] = "End";
|
|
9
|
-
})(SeekMode || (exports.SeekMode = SeekMode = {}));
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SeekMode = void 0;
|
|
4
|
-
var SeekMode_js_1 = require("./enums/SeekMode.js");
|
|
5
|
-
Object.defineProperty(exports, "SeekMode", { enumerable: true, get: function () { return SeekMode_js_1.SeekMode; } });
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/// <reference path="../lib.deno.d.ts" />
|
|
3
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
-
};
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.addSignalListener = void 0;
|
|
8
|
-
const process_1 = __importDefault(require("process"));
|
|
9
|
-
function denoSignalToNodeJs(signal) {
|
|
10
|
-
if (signal === "SIGEMT") {
|
|
11
|
-
throw new Error("SIGEMT is not supported");
|
|
12
|
-
}
|
|
13
|
-
return signal;
|
|
14
|
-
}
|
|
15
|
-
const addSignalListener = (signal, handler) => {
|
|
16
|
-
process_1.default.addListener(denoSignalToNodeJs(signal), handler);
|
|
17
|
-
};
|
|
18
|
-
exports.addSignalListener = addSignalListener;
|