@o3co/ts.hocon 1.11.0 → 1.13.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.ja.md +7 -5
- package/README.md +19 -10
- package/dist/adapters/env.cjs +471 -82
- package/dist/adapters/env.d.cts +1 -1
- package/dist/adapters/env.d.ts +1 -1
- package/dist/adapters/env.js +471 -82
- package/dist/adapters/json5.cjs +2450 -0
- package/dist/adapters/json5.d.cts +47 -0
- package/dist/adapters/json5.d.ts +47 -0
- package/dist/adapters/json5.js +2413 -0
- package/dist/adapters/jsonc.cjs +448 -81
- package/dist/adapters/jsonc.d.cts +13 -2
- package/dist/adapters/jsonc.d.ts +13 -2
- package/dist/adapters/jsonc.js +448 -81
- package/dist/adapters/properties.cjs +457 -81
- package/dist/adapters/properties.d.cts +1 -1
- package/dist/adapters/properties.d.ts +1 -1
- package/dist/adapters/properties.js +457 -81
- package/dist/adapters/toml.cjs +451 -81
- package/dist/adapters/toml.d.cts +3 -2
- package/dist/adapters/toml.d.ts +3 -2
- package/dist/adapters/toml.js +451 -81
- package/dist/adapters/yaml.cjs +461 -82
- package/dist/adapters/yaml.d.cts +3 -2
- package/dist/adapters/yaml.d.ts +3 -2
- package/dist/adapters/yaml.js +461 -82
- package/dist/{config-Dlq6rF3w.d.cts → config-6sApTEMM.d.cts} +22 -0
- package/dist/{config-Dlq6rF3w.d.ts → config-6sApTEMM.d.ts} +22 -0
- package/dist/index.cjs +491 -97
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +491 -97
- package/dist/zod.cjs +486 -91
- package/dist/zod.d.cts +1 -1
- package/dist/zod.d.ts +1 -1
- package/dist/zod.js +486 -91
- package/package.json +12 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Config } from '../config-
|
|
1
|
+
import { C as Config } from '../config-6sApTEMM.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Read JSON with comments and trailing commas — the dialect VS Code and
|
|
@@ -20,7 +20,18 @@ import { C as Config } from '../config-Dlq6rF3w.cjs';
|
|
|
20
20
|
* the JS number model, as they do for HOCON's own literals, so read large
|
|
21
21
|
* identifiers with `getString`.
|
|
22
22
|
*
|
|
23
|
-
*
|
|
23
|
+
* **An unpaired `\uXXXX` surrogate is accepted here and refused by go.hocon,
|
|
24
|
+
* py.hocon and rs.hocon** (F3.5). That is deliberate, and the same divergence
|
|
25
|
+
* the properties adapter already carries under F2.8: a JavaScript string is
|
|
26
|
+
* UTF-16, like Java's, so it holds a lone surrogate natively and round-trips it.
|
|
27
|
+
* A Go or Rust string cannot hold one at all — Go silently substituted U+FFFD
|
|
28
|
+
* until F3.5 — and a Python `str` can hold one but cannot encode it as UTF-8,
|
|
29
|
+
* so all three refuse rather than defer the failure. Refusing here would mean
|
|
30
|
+
* this spec overriding the host language rather than protecting the user; see
|
|
31
|
+
* S1.2.6 for the class.
|
|
32
|
+
*
|
|
33
|
+
* See the F3.x items in the format-ingestion mapping spec:
|
|
34
|
+
* https://github.com/o3co/xx.hocon/blob/main/docs/format-ingestion-mapping.md
|
|
24
35
|
*/
|
|
25
36
|
declare function parseJsonc(input: string, originDescription?: string): Config;
|
|
26
37
|
/**
|
package/dist/adapters/jsonc.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Config } from '../config-
|
|
1
|
+
import { C as Config } from '../config-6sApTEMM.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Read JSON with comments and trailing commas — the dialect VS Code and
|
|
@@ -20,7 +20,18 @@ import { C as Config } from '../config-Dlq6rF3w.js';
|
|
|
20
20
|
* the JS number model, as they do for HOCON's own literals, so read large
|
|
21
21
|
* identifiers with `getString`.
|
|
22
22
|
*
|
|
23
|
-
*
|
|
23
|
+
* **An unpaired `\uXXXX` surrogate is accepted here and refused by go.hocon,
|
|
24
|
+
* py.hocon and rs.hocon** (F3.5). That is deliberate, and the same divergence
|
|
25
|
+
* the properties adapter already carries under F2.8: a JavaScript string is
|
|
26
|
+
* UTF-16, like Java's, so it holds a lone surrogate natively and round-trips it.
|
|
27
|
+
* A Go or Rust string cannot hold one at all — Go silently substituted U+FFFD
|
|
28
|
+
* until F3.5 — and a Python `str` can hold one but cannot encode it as UTF-8,
|
|
29
|
+
* so all three refuse rather than defer the failure. Refusing here would mean
|
|
30
|
+
* this spec overriding the host language rather than protecting the user; see
|
|
31
|
+
* S1.2.6 for the class.
|
|
32
|
+
*
|
|
33
|
+
* See the F3.x items in the format-ingestion mapping spec:
|
|
34
|
+
* https://github.com/o3co/xx.hocon/blob/main/docs/format-ingestion-mapping.md
|
|
24
35
|
*/
|
|
25
36
|
declare function parseJsonc(input: string, originDescription?: string): Config;
|
|
26
37
|
/**
|