summaryrefslogtreecommitdiff
path: root/std/encoding
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2020-05-09 13:34:47 +0100
committerGitHub <noreply@github.com>2020-05-09 08:34:47 -0400
commitf184332c09c851faac50f598d29ebe4426e05464 (patch)
tree2659aba63702537fcde1bb64ddeafea1e5863f3e /std/encoding
parent2b02535028f868ea8dfc471c4921a237747ccd4a (diff)
BREAKING(std): reorganization (#5087)
* Prepend underscores to private modules * Remove collectUint8Arrays() It would be a misuse of Deno.iter()'s result. * Move std/_util/async.ts to std/async * Move std/util/sha*.ts to std/hash
Diffstat (limited to 'std/encoding')
-rw-r--r--std/encoding/README.md4
-rw-r--r--std/encoding/_yaml/dumper/dumper.ts (renamed from std/encoding/yaml/dumper/dumper.ts)0
-rw-r--r--std/encoding/_yaml/dumper/dumper_state.ts (renamed from std/encoding/yaml/dumper/dumper_state.ts)0
-rw-r--r--std/encoding/_yaml/error.ts (renamed from std/encoding/yaml/error.ts)0
-rw-r--r--std/encoding/_yaml/example/dump.ts (renamed from std/encoding/yaml/example/dump.ts)0
-rw-r--r--std/encoding/_yaml/example/inout.ts (renamed from std/encoding/yaml/example/inout.ts)0
-rw-r--r--std/encoding/_yaml/example/parse.ts (renamed from std/encoding/yaml/example/parse.ts)0
-rw-r--r--std/encoding/_yaml/example/sample_document.ts (renamed from std/encoding/yaml/example/sample_document.ts)0
-rw-r--r--std/encoding/_yaml/example/sample_document.yml (renamed from std/encoding/yaml/example/sample_document.yml)0
-rw-r--r--std/encoding/_yaml/loader/loader.ts (renamed from std/encoding/yaml/loader/loader.ts)0
-rw-r--r--std/encoding/_yaml/loader/loader_state.ts (renamed from std/encoding/yaml/loader/loader_state.ts)0
-rw-r--r--std/encoding/_yaml/mark.ts (renamed from std/encoding/yaml/mark.ts)0
-rw-r--r--std/encoding/_yaml/parse.ts (renamed from std/encoding/yaml/parse.ts)0
-rw-r--r--std/encoding/_yaml/parse_test.ts (renamed from std/encoding/yaml/parse_test.ts)0
-rw-r--r--std/encoding/_yaml/schema.ts (renamed from std/encoding/yaml/schema.ts)0
-rw-r--r--std/encoding/_yaml/schema/core.ts (renamed from std/encoding/yaml/schema/core.ts)0
-rw-r--r--std/encoding/_yaml/schema/default.ts (renamed from std/encoding/yaml/schema/default.ts)0
-rw-r--r--std/encoding/_yaml/schema/failsafe.ts (renamed from std/encoding/yaml/schema/failsafe.ts)0
-rw-r--r--std/encoding/_yaml/schema/json.ts (renamed from std/encoding/yaml/schema/json.ts)0
-rw-r--r--std/encoding/_yaml/schema/mod.ts (renamed from std/encoding/yaml/schema/mod.ts)0
-rw-r--r--std/encoding/_yaml/state.ts (renamed from std/encoding/yaml/state.ts)0
-rw-r--r--std/encoding/_yaml/stringify.ts (renamed from std/encoding/yaml/stringify.ts)0
-rw-r--r--std/encoding/_yaml/stringify_test.ts (renamed from std/encoding/yaml/stringify_test.ts)0
-rw-r--r--std/encoding/_yaml/type.ts (renamed from std/encoding/yaml/type.ts)0
-rw-r--r--std/encoding/_yaml/type/binary.ts (renamed from std/encoding/yaml/type/binary.ts)0
-rw-r--r--std/encoding/_yaml/type/bool.ts (renamed from std/encoding/yaml/type/bool.ts)0
-rw-r--r--std/encoding/_yaml/type/float.ts (renamed from std/encoding/yaml/type/float.ts)0
-rw-r--r--std/encoding/_yaml/type/int.ts (renamed from std/encoding/yaml/type/int.ts)0
-rw-r--r--std/encoding/_yaml/type/map.ts (renamed from std/encoding/yaml/type/map.ts)0
-rw-r--r--std/encoding/_yaml/type/merge.ts (renamed from std/encoding/yaml/type/merge.ts)0
-rw-r--r--std/encoding/_yaml/type/mod.ts (renamed from std/encoding/yaml/type/mod.ts)0
-rw-r--r--std/encoding/_yaml/type/nil.ts (renamed from std/encoding/yaml/type/nil.ts)0
-rw-r--r--std/encoding/_yaml/type/omap.ts (renamed from std/encoding/yaml/type/omap.ts)0
-rw-r--r--std/encoding/_yaml/type/pairs.ts (renamed from std/encoding/yaml/type/pairs.ts)0
-rw-r--r--std/encoding/_yaml/type/seq.ts (renamed from std/encoding/yaml/type/seq.ts)0
-rw-r--r--std/encoding/_yaml/type/set.ts (renamed from std/encoding/yaml/type/set.ts)0
-rw-r--r--std/encoding/_yaml/type/str.ts (renamed from std/encoding/yaml/type/str.ts)0
-rw-r--r--std/encoding/_yaml/type/timestamp.ts (renamed from std/encoding/yaml/type/timestamp.ts)0
-rw-r--r--std/encoding/_yaml/utils.ts (renamed from std/encoding/yaml/utils.ts)0
-rw-r--r--std/encoding/toml.ts2
-rw-r--r--std/encoding/yaml.ts6
-rw-r--r--std/encoding/yaml_test.ts4
42 files changed, 7 insertions, 9 deletions
diff --git a/std/encoding/README.md b/std/encoding/README.md
index 7d9c89117..973713360 100644
--- a/std/encoding/README.md
+++ b/std/encoding/README.md
@@ -243,9 +243,7 @@ Serializes `object` as a YAML document.
### More example
-See [`./yaml/example`](./yaml/example) folder and [js-yaml] repository.
-
-[js-yaml]: https://github.com/nodeca/js-yaml
+See https://github.com/nodeca/js-yaml.
## base32
diff --git a/std/encoding/yaml/dumper/dumper.ts b/std/encoding/_yaml/dumper/dumper.ts
index 1280ee757..1280ee757 100644
--- a/std/encoding/yaml/dumper/dumper.ts
+++ b/std/encoding/_yaml/dumper/dumper.ts
diff --git a/std/encoding/yaml/dumper/dumper_state.ts b/std/encoding/_yaml/dumper/dumper_state.ts
index 94cd84878..94cd84878 100644
--- a/std/encoding/yaml/dumper/dumper_state.ts
+++ b/std/encoding/_yaml/dumper/dumper_state.ts
diff --git a/std/encoding/yaml/error.ts b/std/encoding/_yaml/error.ts
index 7f305ccf2..7f305ccf2 100644
--- a/std/encoding/yaml/error.ts
+++ b/std/encoding/_yaml/error.ts
diff --git a/std/encoding/yaml/example/dump.ts b/std/encoding/_yaml/example/dump.ts
index db3647274..db3647274 100644
--- a/std/encoding/yaml/example/dump.ts
+++ b/std/encoding/_yaml/example/dump.ts
diff --git a/std/encoding/yaml/example/inout.ts b/std/encoding/_yaml/example/inout.ts
index b0b47e3fe..b0b47e3fe 100644
--- a/std/encoding/yaml/example/inout.ts
+++ b/std/encoding/_yaml/example/inout.ts
diff --git a/std/encoding/yaml/example/parse.ts b/std/encoding/_yaml/example/parse.ts
index fc15daf9c..fc15daf9c 100644
--- a/std/encoding/yaml/example/parse.ts
+++ b/std/encoding/_yaml/example/parse.ts
diff --git a/std/encoding/yaml/example/sample_document.ts b/std/encoding/_yaml/example/sample_document.ts
index da969d679..da969d679 100644
--- a/std/encoding/yaml/example/sample_document.ts
+++ b/std/encoding/_yaml/example/sample_document.ts
diff --git a/std/encoding/yaml/example/sample_document.yml b/std/encoding/_yaml/example/sample_document.yml
index 1f3c2eb3e..1f3c2eb3e 100644
--- a/std/encoding/yaml/example/sample_document.yml
+++ b/std/encoding/_yaml/example/sample_document.yml
diff --git a/std/encoding/yaml/loader/loader.ts b/std/encoding/_yaml/loader/loader.ts
index f0d535624..f0d535624 100644
--- a/std/encoding/yaml/loader/loader.ts
+++ b/std/encoding/_yaml/loader/loader.ts
diff --git a/std/encoding/yaml/loader/loader_state.ts b/std/encoding/_yaml/loader/loader_state.ts
index ca50fcaf1..ca50fcaf1 100644
--- a/std/encoding/yaml/loader/loader_state.ts
+++ b/std/encoding/_yaml/loader/loader_state.ts
diff --git a/std/encoding/yaml/mark.ts b/std/encoding/_yaml/mark.ts
index 44cf175a0..44cf175a0 100644
--- a/std/encoding/yaml/mark.ts
+++ b/std/encoding/_yaml/mark.ts
diff --git a/std/encoding/yaml/parse.ts b/std/encoding/_yaml/parse.ts
index 2aa0042bd..2aa0042bd 100644
--- a/std/encoding/yaml/parse.ts
+++ b/std/encoding/_yaml/parse.ts
diff --git a/std/encoding/yaml/parse_test.ts b/std/encoding/_yaml/parse_test.ts
index 21f1b893b..21f1b893b 100644
--- a/std/encoding/yaml/parse_test.ts
+++ b/std/encoding/_yaml/parse_test.ts
diff --git a/std/encoding/yaml/schema.ts b/std/encoding/_yaml/schema.ts
index 579644dbb..579644dbb 100644
--- a/std/encoding/yaml/schema.ts
+++ b/std/encoding/_yaml/schema.ts
diff --git a/std/encoding/yaml/schema/core.ts b/std/encoding/_yaml/schema/core.ts
index 4fadc9bfe..4fadc9bfe 100644
--- a/std/encoding/yaml/schema/core.ts
+++ b/std/encoding/_yaml/schema/core.ts
diff --git a/std/encoding/yaml/schema/default.ts b/std/encoding/_yaml/schema/default.ts
index 4c5ceeba7..4c5ceeba7 100644
--- a/std/encoding/yaml/schema/default.ts
+++ b/std/encoding/_yaml/schema/default.ts
diff --git a/std/encoding/yaml/schema/failsafe.ts b/std/encoding/_yaml/schema/failsafe.ts
index 74e1897be..74e1897be 100644
--- a/std/encoding/yaml/schema/failsafe.ts
+++ b/std/encoding/_yaml/schema/failsafe.ts
diff --git a/std/encoding/yaml/schema/json.ts b/std/encoding/_yaml/schema/json.ts
index c30166fdf..c30166fdf 100644
--- a/std/encoding/yaml/schema/json.ts
+++ b/std/encoding/_yaml/schema/json.ts
diff --git a/std/encoding/yaml/schema/mod.ts b/std/encoding/_yaml/schema/mod.ts
index 7cbe0c283..7cbe0c283 100644
--- a/std/encoding/yaml/schema/mod.ts
+++ b/std/encoding/_yaml/schema/mod.ts
diff --git a/std/encoding/yaml/state.ts b/std/encoding/_yaml/state.ts
index 6df6dc047..6df6dc047 100644
--- a/std/encoding/yaml/state.ts
+++ b/std/encoding/_yaml/state.ts
diff --git a/std/encoding/yaml/stringify.ts b/std/encoding/_yaml/stringify.ts
index f037631d9..f037631d9 100644
--- a/std/encoding/yaml/stringify.ts
+++ b/std/encoding/_yaml/stringify.ts
diff --git a/std/encoding/yaml/stringify_test.ts b/std/encoding/_yaml/stringify_test.ts
index 03a3090d9..03a3090d9 100644
--- a/std/encoding/yaml/stringify_test.ts
+++ b/std/encoding/_yaml/stringify_test.ts
diff --git a/std/encoding/yaml/type.ts b/std/encoding/_yaml/type.ts
index 4a2c6bbac..4a2c6bbac 100644
--- a/std/encoding/yaml/type.ts
+++ b/std/encoding/_yaml/type.ts
diff --git a/std/encoding/yaml/type/binary.ts b/std/encoding/_yaml/type/binary.ts
index f4823b3f7..f4823b3f7 100644
--- a/std/encoding/yaml/type/binary.ts
+++ b/std/encoding/_yaml/type/binary.ts
diff --git a/std/encoding/yaml/type/bool.ts b/std/encoding/_yaml/type/bool.ts
index a5a85cf9e..a5a85cf9e 100644
--- a/std/encoding/yaml/type/bool.ts
+++ b/std/encoding/_yaml/type/bool.ts
diff --git a/std/encoding/yaml/type/float.ts b/std/encoding/_yaml/type/float.ts
index 5ae0689b2..5ae0689b2 100644
--- a/std/encoding/yaml/type/float.ts
+++ b/std/encoding/_yaml/type/float.ts
diff --git a/std/encoding/yaml/type/int.ts b/std/encoding/_yaml/type/int.ts
index 6a86aafe9..6a86aafe9 100644
--- a/std/encoding/yaml/type/int.ts
+++ b/std/encoding/_yaml/type/int.ts
diff --git a/std/encoding/yaml/type/map.ts b/std/encoding/_yaml/type/map.ts
index dcd99abca..dcd99abca 100644
--- a/std/encoding/yaml/type/map.ts
+++ b/std/encoding/_yaml/type/map.ts
diff --git a/std/encoding/yaml/type/merge.ts b/std/encoding/_yaml/type/merge.ts
index 68314bf2e..68314bf2e 100644
--- a/std/encoding/yaml/type/merge.ts
+++ b/std/encoding/_yaml/type/merge.ts
diff --git a/std/encoding/yaml/type/mod.ts b/std/encoding/_yaml/type/mod.ts
index 15f33301e..15f33301e 100644
--- a/std/encoding/yaml/type/mod.ts
+++ b/std/encoding/_yaml/type/mod.ts
diff --git a/std/encoding/yaml/type/nil.ts b/std/encoding/_yaml/type/nil.ts
index 8a48d02fb..8a48d02fb 100644
--- a/std/encoding/yaml/type/nil.ts
+++ b/std/encoding/_yaml/type/nil.ts
diff --git a/std/encoding/yaml/type/omap.ts b/std/encoding/_yaml/type/omap.ts
index d6d751505..d6d751505 100644
--- a/std/encoding/yaml/type/omap.ts
+++ b/std/encoding/_yaml/type/omap.ts
diff --git a/std/encoding/yaml/type/pairs.ts b/std/encoding/_yaml/type/pairs.ts
index e999748ae..e999748ae 100644
--- a/std/encoding/yaml/type/pairs.ts
+++ b/std/encoding/_yaml/type/pairs.ts
diff --git a/std/encoding/yaml/type/seq.ts b/std/encoding/_yaml/type/seq.ts
index b19565dbc..b19565dbc 100644
--- a/std/encoding/yaml/type/seq.ts
+++ b/std/encoding/_yaml/type/seq.ts
diff --git a/std/encoding/yaml/type/set.ts b/std/encoding/_yaml/type/set.ts
index 0bfe1c8db..0bfe1c8db 100644
--- a/std/encoding/yaml/type/set.ts
+++ b/std/encoding/_yaml/type/set.ts
diff --git a/std/encoding/yaml/type/str.ts b/std/encoding/_yaml/type/str.ts
index cd6e9430f..cd6e9430f 100644
--- a/std/encoding/yaml/type/str.ts
+++ b/std/encoding/_yaml/type/str.ts
diff --git a/std/encoding/yaml/type/timestamp.ts b/std/encoding/_yaml/type/timestamp.ts
index eb03b3825..eb03b3825 100644
--- a/std/encoding/yaml/type/timestamp.ts
+++ b/std/encoding/_yaml/type/timestamp.ts
diff --git a/std/encoding/yaml/utils.ts b/std/encoding/_yaml/utils.ts
index 4630a45a2..4630a45a2 100644
--- a/std/encoding/yaml/utils.ts
+++ b/std/encoding/_yaml/utils.ts
diff --git a/std/encoding/toml.ts b/std/encoding/toml.ts
index ce4519572..7e44bdc18 100644
--- a/std/encoding/toml.ts
+++ b/std/encoding/toml.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import { deepAssign } from "../util/deep_assign.ts";
+import { deepAssign } from "../_util/deep_assign.ts";
import { assert } from "../testing/asserts.ts";
class KeyValuePair {
diff --git a/std/encoding/yaml.ts b/std/encoding/yaml.ts
index 76b1b8379..abe210d85 100644
--- a/std/encoding/yaml.ts
+++ b/std/encoding/yaml.ts
@@ -3,9 +3,9 @@
// Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-export { ParseOptions, parse, parseAll } from "./yaml/parse.ts";
+export { ParseOptions, parse, parseAll } from "./_yaml/parse.ts";
export {
DumpOptions as StringifyOptions,
stringify,
-} from "./yaml/stringify.ts";
-export * from "./yaml/schema/mod.ts";
+} from "./_yaml/stringify.ts";
+export { Schema, SchemaDefinition, TypeMap } from "./_yaml/schema/mod.ts";
diff --git a/std/encoding/yaml_test.ts b/std/encoding/yaml_test.ts
index a5a8374cc..d65be604c 100644
--- a/std/encoding/yaml_test.ts
+++ b/std/encoding/yaml_test.ts
@@ -1,4 +1,4 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import "./yaml/parse_test.ts";
-import "./yaml/stringify_test.ts";
+import "./_yaml/parse_test.ts";
+import "./_yaml/stringify_test.ts";