Добавлена ДБ
This commit is contained in:
38
node_modules/effect/dist/esm/internal/encoding/common.js
generated
vendored
Normal file
38
node_modules/effect/dist/esm/internal/encoding/common.js
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
import { hasProperty, isString } from "../../Predicate.js";
|
||||
/** @internal */
|
||||
export const DecodeExceptionTypeId = /*#__PURE__*/Symbol.for("effect/Encoding/errors/Decode");
|
||||
/** @internal */
|
||||
export const DecodeException = (input, message) => {
|
||||
const out = {
|
||||
_tag: "DecodeException",
|
||||
[DecodeExceptionTypeId]: DecodeExceptionTypeId,
|
||||
input
|
||||
};
|
||||
if (isString(message)) {
|
||||
out.message = message;
|
||||
}
|
||||
return out;
|
||||
};
|
||||
/** @internal */
|
||||
export const isDecodeException = u => hasProperty(u, DecodeExceptionTypeId);
|
||||
/** @internal */
|
||||
export const EncodeExceptionTypeId = /*#__PURE__*/Symbol.for("effect/Encoding/errors/Encode");
|
||||
/** @internal */
|
||||
export const EncodeException = (input, message) => {
|
||||
const out = {
|
||||
_tag: "EncodeException",
|
||||
[EncodeExceptionTypeId]: EncodeExceptionTypeId,
|
||||
input
|
||||
};
|
||||
if (isString(message)) {
|
||||
out.message = message;
|
||||
}
|
||||
return out;
|
||||
};
|
||||
/** @internal */
|
||||
export const isEncodeException = u => hasProperty(u, EncodeExceptionTypeId);
|
||||
/** @interal */
|
||||
export const encoder = /*#__PURE__*/new TextEncoder();
|
||||
/** @interal */
|
||||
export const decoder = /*#__PURE__*/new TextDecoder();
|
||||
//# sourceMappingURL=common.js.map
|
||||
Reference in New Issue
Block a user