keri-ts 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -70
- package/esm/cesr/mod.js +1 -0
- package/esm/cesr/src/annotate/render.js +4 -1
- package/esm/cesr/src/core/parser-frame-parser.js +6 -2
- package/esm/cesr/src/primitives/matter.js +7 -0
- package/esm/cesr/src/tables/counter.tables.generated.js +1 -5
- package/esm/cesr/src/tables/hard-code-tables.js +39 -0
- package/esm/cesr/src/tables/indexer.tables.generated.js +1 -9
- package/esm/cesr/src/tables/matter.tables.generated.js +1 -14
- package/esm/cesr/src/version.js +7 -4
- package/esm/deps/jsr.io/@std/internal/1.0.14/_os.js +14 -0
- package/esm/deps/jsr.io/@std/internal/{1.0.12 → 1.0.14}/os.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/assert_path.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/basename.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/common.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/constants.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/dirname.js +1 -1
- package/esm/deps/jsr.io/@std/path/1.1.5/_common/env.js +11 -0
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/format.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/from_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/glob_to_reg_exp.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/normalize.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/normalize_string.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/relative.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/strip_trailing_separators.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/to_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/basename.js +6 -3
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/common.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/constants.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/dirname.js +6 -3
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/extname.js +6 -3
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/format.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/from_file_url.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/glob_to_regexp.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/is_absolute.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/is_glob.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/join.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/join_globs.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/mod.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/normalize.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/normalize_glob.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/parse.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/_util.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/basename.js +6 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/constants.js +2 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/dirname.js +6 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/extname.js +6 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/format.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/from_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/glob_to_regexp.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/is_absolute.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/join.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/join_globs.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/normalize.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/normalize_glob.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/parse.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/relative.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/resolve.js +4 -9
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/to_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/to_namespaced_path.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/relative.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/resolve.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/to_file_url.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/to_namespaced_path.js +2 -2
- package/esm/deps/jsr.io/@std/path/1.1.5/types.js +3 -0
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/_util.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/basename.js +2 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/constants.js +2 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/dirname.js +2 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/extname.js +2 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/format.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/from_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/glob_to_regexp.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/is_absolute.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/join.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/join_globs.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/normalize.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/normalize_glob.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/parse.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/relative.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/resolve.js +5 -14
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/to_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/to_namespaced_path.js +1 -1
- package/esm/keri/src/app/agent-runtime.js +168 -8
- package/esm/keri/src/app/authenticating.js +21 -25
- package/esm/keri/src/app/cesr-http.js +273 -0
- package/esm/keri/src/app/cli/challenge.js +59 -16
- package/esm/keri/src/app/cli/common/displaying.js +43 -0
- package/esm/keri/src/app/cli/common/existing.js +88 -1
- package/esm/keri/src/app/cli/common/parsing.js +178 -10
- package/esm/keri/src/app/cli/db-dump.js +266 -44
- package/esm/keri/src/app/cli/delegate.js +260 -0
- package/esm/keri/src/app/cli/ends.js +2 -2
- package/esm/keri/src/app/cli/exchange.js +34 -40
- package/esm/keri/src/app/cli/export.js +14 -0
- package/esm/keri/src/app/cli/incept.js +38 -6
- package/esm/keri/src/app/cli/index.js +15 -3
- package/esm/keri/src/app/cli/init.js +13 -2
- package/esm/keri/src/app/cli/interact.js +116 -0
- package/esm/keri/src/app/cli/loc.js +2 -2
- package/esm/keri/src/app/cli/notifications.js +110 -0
- package/esm/keri/src/app/cli/oobi.js +77 -4
- package/esm/keri/src/app/cli/query.js +156 -0
- package/esm/keri/src/app/cli/rotate.js +221 -0
- package/esm/keri/src/app/cli/sign.js +67 -0
- package/esm/keri/src/app/cli/verify.js +83 -0
- package/esm/keri/src/app/configing.js +1 -1
- package/esm/keri/src/app/delegating.js +646 -0
- package/esm/keri/src/app/exchanging.js +29 -32
- package/esm/keri/src/app/forwarding.js +941 -0
- package/esm/keri/src/app/habbing.js +657 -245
- package/esm/keri/src/app/httping.js +88 -0
- package/esm/keri/src/app/keeping.js +13 -11
- package/esm/keri/src/app/mailbox-director.js +232 -102
- package/esm/keri/src/app/mailbox-sse.js +117 -0
- package/esm/keri/src/app/mailboxing.js +344 -0
- package/esm/keri/src/app/notifying.js +136 -0
- package/esm/keri/src/app/oobiery.js +159 -41
- package/esm/keri/src/app/organizing.js +108 -0
- package/esm/keri/src/app/parsering.js +363 -0
- package/esm/keri/src/app/query-transport.js +121 -0
- package/esm/keri/src/app/querying.js +13 -1
- package/esm/keri/src/app/reactor.js +18 -400
- package/esm/keri/src/app/respondant.js +132 -0
- package/esm/keri/src/app/runtime-services.js +22 -0
- package/esm/keri/src/app/signaling.js +168 -0
- package/esm/keri/src/app/version.js +7 -4
- package/esm/keri/src/app/witnessing.js +779 -0
- package/esm/keri/src/core/errors.js +0 -3
- package/esm/keri/src/core/eventing.js +212 -20
- package/esm/keri/src/core/kever.js +38 -16
- package/esm/keri/src/core/mailbox-topics.js +17 -0
- package/esm/keri/src/core/protocol-eventing.js +465 -0
- package/esm/keri/src/core/protocol-exchanging.js +124 -0
- package/esm/keri/src/core/protocol-serialization.js +215 -0
- package/esm/keri/src/core/records.js +46 -0
- package/esm/keri/src/core/routing.js +46 -24
- package/esm/keri/src/db/basing.js +68 -12
- package/esm/keri/src/db/core/lmdber.js +32 -7
- package/esm/keri/src/db/core/path-manager.js +1 -1
- package/esm/keri/src/db/index.js +3 -0
- package/esm/keri/src/db/mailboxing.js +178 -0
- package/esm/keri/src/db/noting.js +278 -0
- package/esm/keri/src/db/outboxing.js +322 -0
- package/esm/keri/src/library/index.js +13 -0
- package/esm/keri/src/npm/cli.js +3 -0
- package/esm/keri/src/npm/db.js +3 -0
- package/esm/keri/src/npm/index.js +5 -5
- package/esm/keri/src/npm/runtime.js +3 -0
- package/esm/keri/src/runtime/index.js +44 -0
- package/package.json +16 -14
- package/types/_dnt.shims.d.ts +1 -2
- package/types/_dnt.shims.d.ts.map +1 -1
- package/types/cesr/mod.d.ts +1 -0
- package/types/cesr/mod.d.ts.map +1 -1
- package/types/cesr/src/annotate/render.d.ts.map +1 -1
- package/types/cesr/src/core/parser-frame-parser.d.ts.map +1 -1
- package/types/cesr/src/primitives/matter.d.ts.map +1 -1
- package/types/cesr/src/tables/counter.tables.generated.d.ts +1 -1
- package/types/cesr/src/tables/counter.tables.generated.d.ts.map +1 -1
- package/types/cesr/src/tables/hard-code-tables.d.ts +15 -0
- package/types/cesr/src/tables/hard-code-tables.d.ts.map +1 -0
- package/types/cesr/src/tables/indexer.tables.generated.d.ts +1 -1
- package/types/cesr/src/tables/indexer.tables.generated.d.ts.map +1 -1
- package/types/cesr/src/tables/matter.tables.generated.d.ts +1 -1
- package/types/cesr/src/tables/matter.tables.generated.d.ts.map +1 -1
- package/types/cesr/src/version.d.ts +7 -4
- package/types/cesr/src/version.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/internal/1.0.14/_os.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/internal/{1.0.12 → 1.0.14}/os.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/assert_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/basename.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/common.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/dirname.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/1.1.5/_common/env.d.ts +2 -0
- package/types/deps/jsr.io/@std/path/1.1.5/_common/env.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/from_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/glob_to_reg_exp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/normalize.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/normalize_string.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/relative.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/strip_trailing_separators.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/to_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/basename.d.ts +4 -1
- package/types/deps/jsr.io/@std/path/1.1.5/basename.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/common.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/dirname.d.ts +4 -1
- package/types/deps/jsr.io/@std/path/1.1.5/dirname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/extname.d.ts +4 -1
- package/types/deps/jsr.io/@std/path/1.1.5/extname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/from_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/glob_to_regexp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/is_absolute.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/is_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/join.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/join_globs.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/mod.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/normalize.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/normalize_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/parse.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/_util.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/basename.d.ts +5 -0
- package/types/deps/jsr.io/@std/path/1.1.5/posix/basename.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/dirname.d.ts +5 -0
- package/types/deps/jsr.io/@std/path/1.1.5/posix/dirname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/extname.d.ts +5 -0
- package/types/deps/jsr.io/@std/path/1.1.5/posix/extname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/from_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/glob_to_regexp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/is_absolute.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/join.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/join_globs.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/normalize.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/normalize_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/parse.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/relative.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/1.1.5/posix/resolve.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/to_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/to_namespaced_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/relative.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/resolve.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/to_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/to_namespaced_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/types.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/_util.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/basename.d.ts +1 -0
- package/types/deps/jsr.io/@std/path/1.1.5/windows/basename.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/dirname.d.ts +1 -0
- package/types/deps/jsr.io/@std/path/1.1.5/windows/dirname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/extname.d.ts +1 -0
- package/types/deps/jsr.io/@std/path/1.1.5/windows/extname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/from_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/glob_to_regexp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/is_absolute.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/join.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/join_globs.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/normalize.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/normalize_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/parse.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/relative.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/1.1.5/windows/resolve.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/to_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/to_namespaced_path.d.ts.map +1 -1
- package/types/keri/src/app/agent-runtime.d.ts +71 -1
- package/types/keri/src/app/agent-runtime.d.ts.map +1 -1
- package/types/keri/src/app/authenticating.d.ts +7 -1
- package/types/keri/src/app/authenticating.d.ts.map +1 -1
- package/types/keri/src/app/cesr-http.d.ts +117 -0
- package/types/keri/src/app/cesr-http.d.ts.map +1 -0
- package/types/keri/src/app/cli/challenge.d.ts.map +1 -1
- package/types/keri/src/app/cli/common/displaying.d.ts +12 -0
- package/types/keri/src/app/cli/common/displaying.d.ts.map +1 -0
- package/types/keri/src/app/cli/common/existing.d.ts +25 -6
- package/types/keri/src/app/cli/common/existing.d.ts.map +1 -1
- package/types/keri/src/app/cli/common/parsing.d.ts +69 -4
- package/types/keri/src/app/cli/common/parsing.d.ts.map +1 -1
- package/types/keri/src/app/cli/db-dump.d.ts +16 -4
- package/types/keri/src/app/cli/db-dump.d.ts.map +1 -1
- package/types/keri/src/app/cli/delegate.d.ts +17 -0
- package/types/keri/src/app/cli/delegate.d.ts.map +1 -0
- package/types/keri/src/app/cli/ends.d.ts.map +1 -1
- package/types/keri/src/app/cli/exchange.d.ts +6 -6
- package/types/keri/src/app/cli/exchange.d.ts.map +1 -1
- package/types/keri/src/app/cli/export.d.ts.map +1 -1
- package/types/keri/src/app/cli/incept.d.ts.map +1 -1
- package/types/keri/src/app/cli/index.d.ts +15 -3
- package/types/keri/src/app/cli/index.d.ts.map +1 -1
- package/types/keri/src/app/cli/init.d.ts.map +1 -1
- package/types/keri/src/app/cli/interact.d.ts +20 -0
- package/types/keri/src/app/cli/interact.d.ts.map +1 -0
- package/types/keri/src/app/cli/loc.d.ts.map +1 -1
- package/types/keri/src/app/cli/notifications.d.ts +15 -0
- package/types/keri/src/app/cli/notifications.d.ts.map +1 -0
- package/types/keri/src/app/cli/oobi.d.ts +7 -0
- package/types/keri/src/app/cli/oobi.d.ts.map +1 -1
- package/types/keri/src/app/cli/query.d.ts +12 -0
- package/types/keri/src/app/cli/query.d.ts.map +1 -0
- package/types/keri/src/app/cli/rotate.d.ts +23 -0
- package/types/keri/src/app/cli/rotate.d.ts.map +1 -0
- package/types/keri/src/app/cli/sign.d.ts +24 -0
- package/types/keri/src/app/cli/sign.d.ts.map +1 -0
- package/types/keri/src/app/cli/verify.d.ts +24 -0
- package/types/keri/src/app/cli/verify.d.ts.map +1 -0
- package/types/keri/src/app/delegating.d.ts +163 -0
- package/types/keri/src/app/delegating.d.ts.map +1 -0
- package/types/keri/src/app/exchanging.d.ts.map +1 -1
- package/types/keri/src/app/forwarding.d.ts +334 -0
- package/types/keri/src/app/forwarding.d.ts.map +1 -0
- package/types/keri/src/app/habbing.d.ts +178 -7
- package/types/keri/src/app/habbing.d.ts.map +1 -1
- package/types/keri/src/app/httping.d.ts +40 -0
- package/types/keri/src/app/httping.d.ts.map +1 -0
- package/types/keri/src/app/keeping.d.ts +2 -2
- package/types/keri/src/app/keeping.d.ts.map +1 -1
- package/types/keri/src/app/mailbox-director.d.ts +99 -34
- package/types/keri/src/app/mailbox-director.d.ts.map +1 -1
- package/types/keri/src/app/mailbox-sse.d.ts +25 -0
- package/types/keri/src/app/mailbox-sse.d.ts.map +1 -0
- package/types/keri/src/app/mailboxing.d.ts +208 -0
- package/types/keri/src/app/mailboxing.d.ts.map +1 -0
- package/types/keri/src/app/notifying.d.ts +55 -0
- package/types/keri/src/app/notifying.d.ts.map +1 -0
- package/types/keri/src/app/oobiery.d.ts +49 -4
- package/types/keri/src/app/oobiery.d.ts.map +1 -1
- package/types/keri/src/app/organizing.d.ts +36 -0
- package/types/keri/src/app/organizing.d.ts.map +1 -0
- package/types/keri/src/app/parsering.d.ts +29 -0
- package/types/keri/src/app/parsering.d.ts.map +1 -0
- package/types/keri/src/app/protocol-host-policy.d.ts +27 -0
- package/types/keri/src/app/protocol-host-policy.d.ts.map +1 -0
- package/types/keri/src/app/query-transport.d.ts +13 -0
- package/types/keri/src/app/query-transport.d.ts.map +1 -0
- package/types/keri/src/app/querying.d.ts +7 -0
- package/types/keri/src/app/querying.d.ts.map +1 -1
- package/types/keri/src/app/reactor.d.ts +12 -15
- package/types/keri/src/app/reactor.d.ts.map +1 -1
- package/types/keri/src/app/respondant.d.ts +43 -0
- package/types/keri/src/app/respondant.d.ts.map +1 -0
- package/types/keri/src/app/runtime-services.d.ts +26 -0
- package/types/keri/src/app/runtime-services.d.ts.map +1 -0
- package/types/keri/src/app/signaling.d.ts +64 -0
- package/types/keri/src/app/signaling.d.ts.map +1 -0
- package/types/keri/src/app/version.d.ts +7 -4
- package/types/keri/src/app/version.d.ts.map +1 -1
- package/types/keri/src/app/witnessing.d.ts +148 -0
- package/types/keri/src/app/witnessing.d.ts.map +1 -0
- package/types/keri/src/core/errors.d.ts +0 -3
- package/types/keri/src/core/errors.d.ts.map +1 -1
- package/types/keri/src/core/eventing.d.ts +43 -5
- package/types/keri/src/core/eventing.d.ts.map +1 -1
- package/types/keri/src/core/kever.d.ts.map +1 -1
- package/types/keri/src/core/mailbox-topics.d.ts +17 -0
- package/types/keri/src/core/mailbox-topics.d.ts.map +1 -1
- package/types/keri/src/core/protocol-eventing.d.ts +126 -0
- package/types/keri/src/core/protocol-eventing.d.ts.map +1 -0
- package/types/keri/src/core/protocol-exchanging.d.ts +36 -0
- package/types/keri/src/core/protocol-exchanging.d.ts.map +1 -0
- package/types/keri/src/core/protocol-serialization.d.ts +29 -0
- package/types/keri/src/core/protocol-serialization.d.ts.map +1 -0
- package/types/keri/src/core/records.d.ts +105 -0
- package/types/keri/src/core/records.d.ts.map +1 -1
- package/types/keri/src/core/routing.d.ts +25 -9
- package/types/keri/src/core/routing.d.ts.map +1 -1
- package/types/keri/src/db/basing.d.ts +20 -5
- package/types/keri/src/db/basing.d.ts.map +1 -1
- package/types/keri/src/db/core/lmdber.d.ts +11 -11
- package/types/keri/src/db/core/lmdber.d.ts.map +1 -1
- package/types/keri/src/db/index.d.ts +3 -0
- package/types/keri/src/db/index.d.ts.map +1 -1
- package/types/keri/src/db/mailboxing.d.ts +111 -0
- package/types/keri/src/db/mailboxing.d.ts.map +1 -0
- package/types/keri/src/db/noting.d.ts +108 -0
- package/types/keri/src/db/noting.d.ts.map +1 -0
- package/types/keri/src/db/outboxing.d.ts +160 -0
- package/types/keri/src/db/outboxing.d.ts.map +1 -0
- package/types/keri/src/library/index.d.ts +14 -0
- package/types/keri/src/library/index.d.ts.map +1 -0
- package/types/keri/src/npm/cli.d.ts +4 -0
- package/types/keri/src/npm/cli.d.ts.map +1 -0
- package/types/keri/src/npm/db.d.ts +4 -0
- package/types/keri/src/npm/db.d.ts.map +1 -0
- package/types/keri/src/npm/index.d.ts +5 -5
- package/types/keri/src/npm/index.d.ts.map +1 -1
- package/types/keri/src/npm/runtime.d.ts +4 -0
- package/types/keri/src/npm/runtime.d.ts.map +1 -0
- package/types/keri/src/runtime/index.d.ts +45 -0
- package/types/keri/src/runtime/index.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/_os.js +0 -12
- package/esm/deps/jsr.io/@std/path/1.1.4/types.js +0 -3
- package/esm/keri/src/app/cli/agent.js +0 -77
- package/esm/keri/src/app/cli/cli-node.js +0 -9
- package/esm/keri/src/app/cli/cli.js +0 -83
- package/esm/keri/src/app/cli/command-definitions.js +0 -762
- package/esm/keri/src/app/index.js +0 -17
- package/esm/keri/src/app/server.js +0 -380
- package/esm/keri/src/core/index.js +0 -19
- package/esm/keri/src/core/messages.js +0 -81
- package/types/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/extname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/posix/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/posix/extname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/posix/resolve.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/windows/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/windows/extname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/windows/resolve.d.ts.map +0 -1
- package/types/keri/src/app/cli/agent.d.ts +0 -16
- package/types/keri/src/app/cli/agent.d.ts.map +0 -1
- package/types/keri/src/app/cli/cli-node.d.ts +0 -2
- package/types/keri/src/app/cli/cli-node.d.ts.map +0 -1
- package/types/keri/src/app/cli/cli.d.ts +0 -7
- package/types/keri/src/app/cli/cli.d.ts.map +0 -1
- package/types/keri/src/app/cli/command-definitions.d.ts +0 -17
- package/types/keri/src/app/cli/command-definitions.d.ts.map +0 -1
- package/types/keri/src/app/cli/command-types.d.ts +0 -21
- package/types/keri/src/app/cli/command-types.d.ts.map +0 -1
- package/types/keri/src/app/index.d.ts +0 -18
- package/types/keri/src/app/index.d.ts.map +0 -1
- package/types/keri/src/app/server.d.ts +0 -24
- package/types/keri/src/app/server.d.ts.map +0 -1
- package/types/keri/src/core/index.d.ts +0 -20
- package/types/keri/src/core/index.d.ts.map +0 -1
- package/types/keri/src/core/messages.d.ts +0 -41
- package/types/keri/src/core/messages.d.ts.map +0 -1
- /package/esm/keri/src/app/{cli/command-types.js → protocol-host-policy.js} +0 -0
- /package/types/deps/jsr.io/@std/internal/{1.0.12 → 1.0.14}/_os.d.ts +0 -0
- /package/types/deps/jsr.io/@std/internal/{1.0.12 → 1.0.14}/os.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/assert_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/basename.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/common.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/dirname.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/glob_to_reg_exp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/normalize.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/normalize_string.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/strip_trailing_separators.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/common.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/glob_to_regexp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/is_absolute.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/is_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/join.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/join_globs.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/mod.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/normalize.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/normalize_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/_util.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/glob_to_regexp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/is_absolute.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/join.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/join_globs.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/normalize.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/normalize_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/resolve.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/to_namespaced_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/resolve.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/to_namespaced_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/types.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/_util.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/glob_to_regexp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/is_absolute.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/join.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/join_globs.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/normalize.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/normalize_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/resolve.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/to_namespaced_path.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
/**
|
|
4
4
|
* The character used to separate entries in the PATH environment variable.
|
|
@@ -11,4 +11,5 @@ export const SEPARATOR = "/";
|
|
|
11
11
|
/**
|
|
12
12
|
* A regular expression that matches one or more path separators.
|
|
13
13
|
*/
|
|
14
|
+
// deno-lint-ignore deno-style-guide/naming-convention
|
|
14
15
|
export const SEPARATOR_PATTERN = /\/+/;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { assertArg } from "../_common/dirname.js";
|
|
4
4
|
import { stripTrailingSeparators } from "../_common/strip_trailing_separators.js";
|
|
@@ -20,6 +20,9 @@ import { fromFileUrl } from "./from_file_url.js";
|
|
|
20
20
|
*
|
|
21
21
|
* @example Working with URLs
|
|
22
22
|
*
|
|
23
|
+
* Only `URL` instances with the `file:` protocol are accepted. To process a
|
|
24
|
+
* non-`file:` URL, pass it as a string or pass its `pathname` property.
|
|
25
|
+
*
|
|
23
26
|
* ```ts
|
|
24
27
|
* import { dirname } from "@std/path/posix/dirname";
|
|
25
28
|
* import { assertEquals } from "@std/assert";
|
|
@@ -27,10 +30,12 @@ import { fromFileUrl } from "./from_file_url.js";
|
|
|
27
30
|
* assertEquals(dirname("https://deno.land/std/path/mod.ts"), "https://deno.land/std/path");
|
|
28
31
|
* assertEquals(dirname("https://deno.land/std/path/mod.ts?a=b"), "https://deno.land/std/path");
|
|
29
32
|
* assertEquals(dirname("https://deno.land/std/path/mod.ts#header"), "https://deno.land/std/path");
|
|
33
|
+
* assertEquals(dirname(new URL("https://deno.land/std/path/mod.ts").pathname), "/std/path");
|
|
30
34
|
* ```
|
|
31
35
|
*
|
|
32
36
|
* @param path The path to get the directory from.
|
|
33
37
|
* @returns The directory path.
|
|
38
|
+
* @throws {TypeError} If `path` is a `URL` instance whose protocol is not `file:`.
|
|
34
39
|
*/
|
|
35
40
|
export function dirname(path) {
|
|
36
41
|
if (path instanceof URL) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { CHAR_DOT } from "../_common/constants.js";
|
|
4
4
|
import { assertPath } from "../_common/assert_path.js";
|
|
@@ -22,6 +22,9 @@ import { fromFileUrl } from "./from_file_url.js";
|
|
|
22
22
|
*
|
|
23
23
|
* @example Working with URLs
|
|
24
24
|
*
|
|
25
|
+
* Only `URL` instances with the `file:` protocol are accepted. To process a
|
|
26
|
+
* non-`file:` URL, pass it as a string or pass its `pathname` property.
|
|
27
|
+
*
|
|
25
28
|
* Note: This function doesn't automatically strip hash and query parts from
|
|
26
29
|
* URLs. If your URL contains a hash or query, remove them before passing the
|
|
27
30
|
* URL to the function. This can be done by passing the URL to `new URL(url)`,
|
|
@@ -34,10 +37,12 @@ import { fromFileUrl } from "./from_file_url.js";
|
|
|
34
37
|
* assertEquals(extname("https://deno.land/std/path/mod.ts"), ".ts");
|
|
35
38
|
* assertEquals(extname("https://deno.land/std/path/mod.ts?a=b"), ".ts?a=b");
|
|
36
39
|
* assertEquals(extname("https://deno.land/std/path/mod.ts#header"), ".ts#header");
|
|
40
|
+
* assertEquals(extname(new URL("https://deno.land/std/path/mod.ts").pathname), ".ts");
|
|
37
41
|
* ```
|
|
38
42
|
*
|
|
39
43
|
* @param path The path to get the extension from.
|
|
40
44
|
* @returns The extension (ex. for `file.ts` returns `.ts`).
|
|
45
|
+
* @throws {TypeError} If `path` is a `URL` instance whose protocol is not `file:`.
|
|
41
46
|
*/
|
|
42
47
|
export function extname(path) {
|
|
43
48
|
if (path instanceof URL) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { assertArg } from "../_common/normalize.js";
|
|
4
4
|
import { normalizeString } from "../_common/normalize_string.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { CHAR_DOT } from "../_common/constants.js";
|
|
4
4
|
import { stripTrailingSeparators } from "../_common/strip_trailing_separators.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
|
-
import * as dntShim from "../../../../../../_dnt.shims.js";
|
|
4
3
|
import { normalizeString } from "../_common/normalize_string.js";
|
|
5
4
|
import { assertPath } from "../_common/assert_path.js";
|
|
5
|
+
import { cwd } from "../_common/env.js";
|
|
6
6
|
import { isPosixPathSeparator } from "./_util.js";
|
|
7
7
|
/**
|
|
8
8
|
* Resolves path segments into a `path`.
|
|
@@ -27,12 +27,7 @@ export function resolve(...pathSegments) {
|
|
|
27
27
|
if (i >= 0)
|
|
28
28
|
path = pathSegments[i];
|
|
29
29
|
else {
|
|
30
|
-
|
|
31
|
-
const { Deno } = dntShim.dntGlobalThis;
|
|
32
|
-
if (typeof Deno?.cwd !== "function") {
|
|
33
|
-
throw new TypeError("Resolved a relative path without a current working directory (CWD)");
|
|
34
|
-
}
|
|
35
|
-
path = Deno.cwd();
|
|
30
|
+
path = cwd("Resolved a relative path without a current working directory (CWD)");
|
|
36
31
|
}
|
|
37
32
|
assertPath(path);
|
|
38
33
|
// Skip empty entries
|
|
@@ -43,7 +38,7 @@ export function resolve(...pathSegments) {
|
|
|
43
38
|
resolvedAbsolute = isPosixPathSeparator(path.charCodeAt(0));
|
|
44
39
|
}
|
|
45
40
|
// At this point the path should be resolved to a full absolute path, but
|
|
46
|
-
// handle relative paths to be safe (might happen when
|
|
41
|
+
// handle relative paths to be safe (might happen when cwd() fails)
|
|
47
42
|
// Normalize the path
|
|
48
43
|
resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute, "/", isPosixPathSeparator);
|
|
49
44
|
if (resolvedAbsolute) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
|
-
import { isWindows } from "../../internal/1.0.
|
|
3
|
+
import { isWindows } from "../../internal/1.0.14/os.js";
|
|
4
4
|
import { relative as posixRelative } from "./posix/relative.js";
|
|
5
5
|
import { relative as windowsRelative } from "./windows/relative.js";
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
|
-
import { isWindows } from "../../internal/1.0.
|
|
3
|
+
import { isWindows } from "../../internal/1.0.14/os.js";
|
|
4
4
|
import { resolve as posixResolve } from "./posix/resolve.js";
|
|
5
5
|
import { resolve as windowsResolve } from "./windows/resolve.js";
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
|
-
import { isWindows } from "../../internal/1.0.
|
|
3
|
+
import { isWindows } from "../../internal/1.0.14/os.js";
|
|
4
4
|
import { toFileUrl as posixToFileUrl } from "./posix/to_file_url.js";
|
|
5
5
|
import { toFileUrl as windowsToFileUrl } from "./windows/to_file_url.js";
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
|
-
import { isWindows } from "../../internal/1.0.
|
|
3
|
+
import { isWindows } from "../../internal/1.0.14/os.js";
|
|
4
4
|
import { toNamespacedPath as posixToNamespacedPath } from "./posix/to_namespaced_path.js";
|
|
5
5
|
import { toNamespacedPath as windowsToNamespacedPath } from "./windows/to_namespaced_path.js";
|
|
6
6
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { assertArgs, lastPathSegment, stripSuffix, } from "../_common/basename.js";
|
|
4
4
|
import { CHAR_COLON } from "../_common/constants.js";
|
|
@@ -24,6 +24,7 @@ import { fromFileUrl } from "./from_file_url.js";
|
|
|
24
24
|
* @param path The path to extract the name from.
|
|
25
25
|
* @param suffix The suffix to remove from extracted name.
|
|
26
26
|
* @returns The extracted name.
|
|
27
|
+
* @throws {TypeError} If `path` is a `URL` instance whose protocol is not `file:`.
|
|
27
28
|
*/
|
|
28
29
|
export function basename(path, suffix = "") {
|
|
29
30
|
if (path instanceof URL) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
/**
|
|
4
4
|
* The character used to separate entries in the PATH environment variable.
|
|
@@ -11,4 +11,5 @@ export const SEPARATOR = "\\";
|
|
|
11
11
|
/**
|
|
12
12
|
* A regular expression that matches one or more path separators.
|
|
13
13
|
*/
|
|
14
|
+
// deno-lint-ignore deno-style-guide/naming-convention
|
|
14
15
|
export const SEPARATOR_PATTERN = /[\\/]+/;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { assertArg } from "../_common/dirname.js";
|
|
4
4
|
import { CHAR_COLON } from "../_common/constants.js";
|
|
@@ -19,6 +19,7 @@ import { fromFileUrl } from "./from_file_url.js";
|
|
|
19
19
|
*
|
|
20
20
|
* @param path The path to get the directory from.
|
|
21
21
|
* @returns The directory path.
|
|
22
|
+
* @throws {TypeError} If `path` is a `URL` instance whose protocol is not `file:`.
|
|
22
23
|
*/
|
|
23
24
|
export function dirname(path) {
|
|
24
25
|
if (path instanceof URL) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { CHAR_COLON, CHAR_DOT } from "../_common/constants.js";
|
|
4
4
|
import { assertPath } from "../_common/assert_path.js";
|
|
@@ -18,6 +18,7 @@ import { fromFileUrl } from "./from_file_url.js";
|
|
|
18
18
|
*
|
|
19
19
|
* @param path The path to get the extension from.
|
|
20
20
|
* @returns The extension of the `path`.
|
|
21
|
+
* @throws {TypeError} If `path` is a `URL` instance whose protocol is not `file:`.
|
|
21
22
|
*/
|
|
22
23
|
export function extname(path) {
|
|
23
24
|
if (path instanceof URL) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { CHAR_COLON, CHAR_DOT } from "../_common/constants.js";
|
|
4
4
|
import { assertPath } from "../_common/assert_path.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
|
-
import * as dntShim from "../../../../../../_dnt.shims.js";
|
|
4
3
|
import { CHAR_COLON } from "../_common/constants.js";
|
|
5
4
|
import { normalizeString } from "../_common/normalize_string.js";
|
|
6
5
|
import { assertPath } from "../_common/assert_path.js";
|
|
6
|
+
import { cwd } from "../_common/env.js";
|
|
7
7
|
import { isPathSeparator, isWindowsDeviceRoot } from "./_util.js";
|
|
8
8
|
/**
|
|
9
9
|
* Resolves path segments into a `path`.
|
|
@@ -26,22 +26,14 @@ export function resolve(...pathSegments) {
|
|
|
26
26
|
let resolvedAbsolute = false;
|
|
27
27
|
for (let i = pathSegments.length - 1; i >= -1; i--) {
|
|
28
28
|
let path;
|
|
29
|
-
// deno-lint-ignore no-explicit-any
|
|
30
|
-
const { Deno } = dntShim.dntGlobalThis;
|
|
31
29
|
if (i >= 0) {
|
|
32
30
|
path = pathSegments[i];
|
|
33
31
|
}
|
|
34
32
|
else if (!resolvedDevice) {
|
|
35
|
-
|
|
36
|
-
throw new TypeError("Resolved a drive-letter-less path without a current working directory (CWD)");
|
|
37
|
-
}
|
|
38
|
-
path = Deno.cwd();
|
|
33
|
+
path = cwd("Resolved a drive-letter-less path without a current working directory (CWD)");
|
|
39
34
|
}
|
|
40
35
|
else {
|
|
41
|
-
|
|
42
|
-
throw new TypeError("Resolved a relative path without a current working directory (CWD)");
|
|
43
|
-
}
|
|
44
|
-
path = Deno.cwd();
|
|
36
|
+
path = cwd("Resolved a relative path without a current working directory (CWD)");
|
|
45
37
|
// Verify that a cwd was found and that it actually points
|
|
46
38
|
// to our drive. If not, default to the drive's root.
|
|
47
39
|
if (path === undefined ||
|
|
@@ -146,8 +138,7 @@ export function resolve(...pathSegments) {
|
|
|
146
138
|
break;
|
|
147
139
|
}
|
|
148
140
|
// At this point the path should be resolved to a full absolute path,
|
|
149
|
-
// but handle relative paths to be safe (might happen when
|
|
150
|
-
// fails)
|
|
141
|
+
// but handle relative paths to be safe (might happen when cwd() fails)
|
|
151
142
|
// Normalize the tail path
|
|
152
143
|
resolvedTail = normalizeString(resolvedTail, !resolvedAbsolute, "\\", isPathSeparator);
|
|
153
144
|
return resolvedDevice + (resolvedAbsolute ? "\\" : "") + resolvedTail || ".";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { CHAR_BACKWARD_SLASH, CHAR_COLON, CHAR_DOT, CHAR_QUESTION_MARK, } from "../_common/constants.js";
|
|
4
4
|
import { isWindowsDeviceRoot } from "./_util.js";
|