effect 3.19.16 → 3.19.17
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/dist/cjs/Schema.js +1 -1
- package/dist/cjs/internal/stream.js +3 -1
- package/dist/cjs/internal/stream.js.map +1 -1
- package/dist/cjs/internal/version.js +1 -1
- package/dist/dts/Schema.d.ts +1 -1
- package/dist/esm/Schema.js +1 -1
- package/dist/esm/internal/stream.js +3 -1
- package/dist/esm/internal/stream.js.map +1 -1
- package/dist/esm/internal/version.js +1 -1
- package/package.json +1 -1
- package/src/Schema.ts +1 -1
- package/src/internal/stream.ts +1 -1
- package/src/internal/version.ts +1 -1
package/dist/cjs/Schema.js
CHANGED
|
@@ -2900,7 +2900,7 @@ const JsonNumberSchemaId = exports.JsonNumberSchemaId = schemaId_.JsonNumberSche
|
|
|
2900
2900
|
* import * as assert from "node:assert"
|
|
2901
2901
|
* import * as Schema from "effect/Schema"
|
|
2902
2902
|
*
|
|
2903
|
-
* const is = Schema.is(
|
|
2903
|
+
* const is = Schema.is(Schema.JsonNumber)
|
|
2904
2904
|
*
|
|
2905
2905
|
* assert.deepStrictEqual(is(42), true)
|
|
2906
2906
|
* assert.deepStrictEqual(is(Number.NaN), false)
|
|
@@ -2960,7 +2960,9 @@ const channelToStream = self => {
|
|
|
2960
2960
|
exports.channelToStream = channelToStream;
|
|
2961
2961
|
const decodeText = exports.decodeText = /*#__PURE__*/(0, _Function.dual)(args => isStream(args[0]), (self, encoding = "utf-8") => suspend(() => {
|
|
2962
2962
|
const decoder = new TextDecoder(encoding);
|
|
2963
|
-
return map(self, s => decoder.decode(s
|
|
2963
|
+
return map(self, s => decoder.decode(s, {
|
|
2964
|
+
stream: true
|
|
2965
|
+
}));
|
|
2964
2966
|
}));
|
|
2965
2967
|
/** @internal */
|
|
2966
2968
|
const encodeText = self => suspend(() => {
|