@effected/toml 0.6.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/Toml.js +1 -1
- package/TomlDocument.js +1 -1
- package/package.json +2 -2
- package/tsdoc-metadata.json +1 -1
package/Toml.js
CHANGED
|
@@ -227,7 +227,7 @@ var Toml = class Toml {
|
|
|
227
227
|
* paths; the pre-bound {@link Toml.TomlFromString} covers the common case.
|
|
228
228
|
*/
|
|
229
229
|
static fromString() {
|
|
230
|
-
return Schema.String.pipe(Schema.decodeTo(Schema.Unknown, SchemaTransformation.
|
|
230
|
+
return Schema.String.pipe(Schema.decodeTo(Schema.Unknown, SchemaTransformation.transformEffect({
|
|
231
231
|
decode: (input) => Toml.parse(input).pipe(Effect.mapError((error) => new SchemaIssue.InvalidValue({ message: error.message }, input))),
|
|
232
232
|
encode: (value) => Effect.fromResult(Toml.stringifyResult(value)).pipe(Effect.mapError((error) => new SchemaIssue.InvalidValue({ message: error.message }, value)))
|
|
233
233
|
})));
|
package/TomlDocument.js
CHANGED
|
@@ -97,7 +97,7 @@ var TomlDocument = class TomlDocument extends Schema.Class("TomlDocument")({
|
|
|
97
97
|
* paths.
|
|
98
98
|
*/
|
|
99
99
|
static schema() {
|
|
100
|
-
return Schema.String.pipe(Schema.decodeTo(Schema.instanceOf(TomlDocument), SchemaTransformation.
|
|
100
|
+
return Schema.String.pipe(Schema.decodeTo(Schema.instanceOf(TomlDocument), SchemaTransformation.transformEffect({
|
|
101
101
|
decode: (input) => TomlDocument.parse(input).pipe(Effect.mapError((error) => new SchemaIssue.InvalidValue({ message: error.message }, input))),
|
|
102
102
|
encode: (doc) => Effect.succeed(doc.stringify())
|
|
103
103
|
})));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effected/toml",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "TOML 1.1.0 parsing, editing and formatting as Effect schemas: typed diagnostics, a lossless CST and first-class date-time values.",
|
|
6
6
|
"keywords": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"./package.json": "./package.json"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"effect": "4.0.0-rc.
|
|
41
|
+
"effect": "4.0.0-rc.115"
|
|
42
42
|
},
|
|
43
43
|
"engines": {
|
|
44
44
|
"node": ">=24.11.0"
|