@o3co/ts.hocon 1.9.0 → 1.10.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 +33 -1
- package/dist/adapters/env.cjs +1668 -0
- package/dist/adapters/env.d.cts +41 -0
- package/dist/adapters/env.d.ts +41 -0
- package/dist/adapters/env.js +1629 -0
- package/dist/adapters/jsonc.cjs +1613 -0
- package/dist/adapters/jsonc.d.cts +25 -0
- package/dist/adapters/jsonc.d.ts +25 -0
- package/dist/adapters/jsonc.js +1574 -0
- package/dist/adapters/properties.cjs +1681 -0
- package/dist/adapters/properties.d.cts +27 -0
- package/dist/adapters/properties.d.ts +27 -0
- package/dist/adapters/properties.js +1643 -0
- package/dist/adapters/toml.cjs +1570 -0
- package/dist/adapters/toml.d.cts +18 -0
- package/dist/adapters/toml.d.ts +18 -0
- package/dist/adapters/toml.js +1534 -0
- package/dist/adapters/yaml.cjs +1610 -0
- package/dist/adapters/yaml.d.cts +43 -0
- package/dist/adapters/yaml.d.ts +43 -0
- package/dist/adapters/yaml.js +1573 -0
- package/dist/index.cjs +107 -17
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +107 -17
- package/dist/zod.cjs +107 -17
- package/dist/zod.d.cts +1 -1
- package/dist/zod.d.ts +1 -1
- package/dist/zod.js +107 -17
- package/package.json +47 -13
- package/dist/{config-D27s3_aG.d.cts → config-PdhVgeLS.d.cts} +3 -3
- package/dist/{config-D27s3_aG.d.ts → config-PdhVgeLS.d.ts} +3 -3
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { C as Config } from '../config-PdhVgeLS.cjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Read a TOML document as HOCON config, via `smol-toml`.
|
|
5
|
+
*
|
|
6
|
+
* TOML's types line up with HOCON's apart from dates: HOCON has no datetime, so
|
|
7
|
+
* all four TOML date-time types become their RFC 3339 string forms, which is
|
|
8
|
+
* the honest representation rather than a lossy number (spec F4.2).
|
|
9
|
+
*
|
|
10
|
+
* `smol-toml` refuses an integer it cannot represent losslessly, so a value past
|
|
11
|
+
* the safe-integer range is an error here rather than silently rounded — go's
|
|
12
|
+
* adapter accepts those, its int64 being wide enough (spec F0.5).
|
|
13
|
+
*
|
|
14
|
+
* See docs/specs/format-ingestion-mapping.md items F4.x in the hocon scope.
|
|
15
|
+
*/
|
|
16
|
+
declare function parseTomlConfig(input: string, originDescription?: string): Config;
|
|
17
|
+
|
|
18
|
+
export { parseTomlConfig };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { C as Config } from '../config-PdhVgeLS.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Read a TOML document as HOCON config, via `smol-toml`.
|
|
5
|
+
*
|
|
6
|
+
* TOML's types line up with HOCON's apart from dates: HOCON has no datetime, so
|
|
7
|
+
* all four TOML date-time types become their RFC 3339 string forms, which is
|
|
8
|
+
* the honest representation rather than a lossy number (spec F4.2).
|
|
9
|
+
*
|
|
10
|
+
* `smol-toml` refuses an integer it cannot represent losslessly, so a value past
|
|
11
|
+
* the safe-integer range is an error here rather than silently rounded — go's
|
|
12
|
+
* adapter accepts those, its int64 being wide enough (spec F0.5).
|
|
13
|
+
*
|
|
14
|
+
* See docs/specs/format-ingestion-mapping.md items F4.x in the hocon scope.
|
|
15
|
+
*/
|
|
16
|
+
declare function parseTomlConfig(input: string, originDescription?: string): Config;
|
|
17
|
+
|
|
18
|
+
export { parseTomlConfig };
|