@effect/platform
Advanced tools
Comparing version 0.58.16 to 0.58.17
@@ -72,2 +72,3 @@ "use strict"; | ||
const schema = exports.schema = /*#__PURE__*/Schema.transform( /*#__PURE__*/Schema.Record(Schema.String, /*#__PURE__*/Schema.Union(Schema.String, /*#__PURE__*/Schema.Array(Schema.String))), schemaFromSelf, { | ||
strict: true, | ||
decode: record => fromInput(record), | ||
@@ -74,0 +75,0 @@ encode: _Function.identity |
@@ -97,2 +97,3 @@ "use strict"; | ||
const SingleFileSchema = exports.SingleFileSchema = /*#__PURE__*/Schema.transform( /*#__PURE__*/FilesSchema.pipe( /*#__PURE__*/Schema.itemsCount(1)), FileSchema, { | ||
strict: true, | ||
decode: ([file]) => file, | ||
@@ -99,0 +100,0 @@ encode: file => [file] |
@@ -92,2 +92,3 @@ "use strict"; | ||
const schema = exports.schema = /*#__PURE__*/(0, _Function.dual)(2, (self, f) => Schema.transformOrFail(Schema.encodedSchema(self), self, { | ||
strict: true, | ||
decode: ParseResult.succeed, | ||
@@ -94,0 +95,0 @@ encode: i => Effect.as(addAll(f(i)), i) |
@@ -39,2 +39,3 @@ /** | ||
export const schema = /*#__PURE__*/Schema.transform( /*#__PURE__*/Schema.Record(Schema.String, /*#__PURE__*/Schema.Union(Schema.String, /*#__PURE__*/Schema.Array(Schema.String))), schemaFromSelf, { | ||
strict: true, | ||
decode: record => fromInput(record), | ||
@@ -41,0 +42,0 @@ encode: identity |
@@ -61,2 +61,3 @@ import * as Schema from "@effect/schema/Schema"; | ||
export const SingleFileSchema = /*#__PURE__*/Schema.transform( /*#__PURE__*/FilesSchema.pipe( /*#__PURE__*/Schema.itemsCount(1)), FileSchema, { | ||
strict: true, | ||
decode: ([file]) => file, | ||
@@ -63,0 +64,0 @@ encode: file => [file] |
@@ -57,2 +57,3 @@ /** | ||
export const schema = /*#__PURE__*/dual(2, (self, f) => Schema.transformOrFail(Schema.encodedSchema(self), self, { | ||
strict: true, | ||
decode: ParseResult.succeed, | ||
@@ -59,0 +60,0 @@ encode: i => Effect.as(addAll(f(i)), i) |
{ | ||
"name": "@effect/platform", | ||
"version": "0.58.16", | ||
"version": "0.58.17", | ||
"description": "Unified interfaces for common platform-specific services", | ||
@@ -18,4 +18,4 @@ "license": "MIT", | ||
"peerDependencies": { | ||
"@effect/schema": "^0.68.14", | ||
"effect": "^3.4.5" | ||
"@effect/schema": "^0.68.15", | ||
"effect": "^3.4.6" | ||
}, | ||
@@ -22,0 +22,0 @@ "publishConfig": { |
@@ -66,3 +66,3 @@ /** | ||
schemaFromSelf, | ||
{ decode: (record) => fromInput(record), encode: identity } | ||
{ strict: true, decode: (record) => fromInput(record), encode: identity } | ||
) | ||
@@ -69,0 +69,0 @@ |
@@ -116,2 +116,3 @@ import type { ParseOptions } from "@effect/schema/AST" | ||
> = Schema.transform(FilesSchema.pipe(Schema.itemsCount(1)), FileSchema, { | ||
strict: true, | ||
decode: ([file]) => file, | ||
@@ -118,0 +119,0 @@ encode: (file) => [file] |
@@ -96,3 +96,3 @@ /** | ||
self, | ||
{ decode: ParseResult.succeed, encode: (i) => Effect.as(addAll(f(i)), i) } | ||
{ strict: true, decode: ParseResult.succeed, encode: (i) => Effect.as(addAll(f(i)), i) } | ||
)) | ||
@@ -99,0 +99,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2223684
38062