Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@effect-ts-app/core

Package Overview
Dependencies
Maintainers
1
Versions
344
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@effect-ts-app/core - npm Package Compare versions

Comparing version 0.18.4 to 0.18.5

4

package.json
{
"name": "@effect-ts-app/core",
"version": "0.18.4",
"version": "0.18.5",
"main": "./index.js",

@@ -44,3 +44,3 @@ "license": "MIT",

},
"gitHead": "e6afa5b18aeaf351ef18a8a6a005204857f27475"
"gitHead": "09e2122c459a95595fce12f4aea0c0a258da9948"
}
import * as MO from "../_schema";
export declare const FutureDate: MO.Schema<unknown, MO.CompositionE<MO.AnyError> | MO.LeafE<MO.ParseDateE>, Date, Date, MO.CompositionE<MO.AnyError>, string, {}>;
export declare const fromDateIdentifier: MO.Annotation<{}>;
export declare const fromDate: MO.DefaultSchema<Date, never, Date, Date, never, Date, {}>;
export declare const FutureDateFromDate: MO.Schema<Date, MO.CompositionE<MO.AnyError>, Date, Date, MO.CompositionE<MO.AnyError>, Date, {}>;
export declare const FutureDate: MO.Schema<unknown, MO.CompositionE<MO.PrevE<MO.LeafE<MO.ParseDateE>> | MO.NextE<MO.CompositionE<MO.AnyError>>>, Date, Date, MO.CompositionE<MO.AnyError>, string, {}>;
export declare type FutureDate = MO.ParsedShapeOf<typeof FutureDate>;

@@ -22,6 +22,9 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.FutureDate = void 0;
exports.FutureDate = exports.FutureDateFromDate = exports.fromDate = exports.fromDateIdentifier = void 0;
const Function_1 = require("@effect-ts-app/core/Function");
const MO = __importStar(require("../_schema"));
const utils_1 = require("../utils");
exports.FutureDate = MO.date["|>"](utils_1.onParseOrConstruct((i) => {
exports.fromDateIdentifier = MO.makeAnnotation();
exports.fromDate = Function_1.pipe(MO.identity((u) => u instanceof Date), MO.arbitrary((_) => _.date()), MO.mapApi(() => ({})), MO.withDefaults, MO.annotate(exports.fromDateIdentifier, {}));
exports.FutureDateFromDate = exports.fromDate["|>"](utils_1.onParseOrConstruct((i) => {
const errors = [];

@@ -33,2 +36,3 @@ if (i < new Date()) {

}));
exports.FutureDate = MO.date[">>>"](exports.FutureDateFromDate);
//# sourceMappingURL=futureDate.js.map

@@ -33,3 +33,3 @@ import * as Lens from "@effect-ts/monocle/Lens";

export declare type StringRecordSchema = MO.Schema<unknown, AnyError, any, any, AnyError, StringRecord, any>;
export interface QueryRequest<M, Path extends StringRecordSchema | undefined, Query extends StringRecordSchema | undefined, Headers extends StringRecordSchema | undefined, Self extends MO.SchemaAny> extends Model<M, Self> {
export interface QueryRequest<M, Path extends StringRecordSchema | undefined, Query extends StringRecordSchema | undefined, Headers extends StringRecordSchema | undefined, Self extends MO.SchemaAny> extends Model<M, Self>, PropsExtensions<GetProps<Self>> {
Body: undefined;

@@ -43,3 +43,3 @@ Path: Path;

}
export interface BodyRequest<M, Path extends StringRecordSchema | undefined, Body extends AnyRecordSchema | undefined, Query extends StringRecordSchema | undefined, Headers extends StringRecordSchema | undefined, Self extends AnyRecordSchema> extends Model<M, Self> {
export interface BodyRequest<M, Path extends StringRecordSchema | undefined, Body extends AnyRecordSchema | undefined, Query extends StringRecordSchema | undefined, Headers extends StringRecordSchema | undefined, Self extends AnyRecordSchema> extends Model<M, Self>, PropsExtensions<GetProps<Self>> {
Path: Path;

@@ -46,0 +46,0 @@ Body: Body;

@@ -5,8 +5,8 @@ import * as MO from "./_schema";

export declare function include_<Props extends Record<string, MO.AnyProperty>, NewProps extends Record<string, MO.AnyProperty>>(props: Props, fnc: (props: Props) => NewProps): NewProps;
export declare function onParseOrConstruct<ParserError extends MO.AnyError, ParsedShape, ConstructorInput, ConstructorError extends MO.AnyError, Encoded, Api, Errors extends MO.AnyError>(mod: (i: ParsedShape) => Th.These<Errors, ParsedShape>): (self: MO.Schema<unknown, ParserError, ParsedShape, ConstructorInput, ConstructorError, Encoded, Api>) => MO.Schema<unknown, ParserError | Errors, ParsedShape, ConstructorInput, ConstructorError | Errors, Encoded, Api>;
export declare function onParseOrConstruct_<ParserError extends MO.AnyError, ParsedShape, ConstructorInput, ConstructorError extends MO.AnyError, Encoded, Api, Errors extends MO.AnyError>(self: MO.Schema<unknown, ParserError, ParsedShape, ConstructorInput, ConstructorError, Encoded, Api>, mod: (i: ParsedShape) => Th.These<Errors, ParsedShape>): MO.Schema<unknown, ParserError | Errors, ParsedShape, ConstructorInput, ConstructorError | Errors, Encoded, Api>;
export declare function onParse<ParserError extends MO.AnyError, ParsedShape, ConstructorInput, ConstructorError extends MO.AnyError, Encoded, Api, Errors extends MO.AnyError>(mod: (i: ParsedShape) => Th.These<Errors, ParsedShape>): (self: MO.Schema<unknown, ParserError, ParsedShape, ConstructorInput, ConstructorError, Encoded, Api>) => MO.Schema<unknown, ParserError | Errors, ParsedShape, ConstructorInput, ConstructorError, Encoded, Api>;
export declare function onParse_<ParserError extends MO.AnyError, ParsedShape, ConstructorInput, ConstructorError extends MO.AnyError, Encoded, Api, Errors extends MO.AnyError>(self: MO.Schema<unknown, ParserError, ParsedShape, ConstructorInput, ConstructorError, Encoded, Api>, mod: (i: ParsedShape) => Th.These<Errors, ParsedShape>): MO.Schema<unknown, ParserError | Errors, ParsedShape, ConstructorInput, ConstructorError, Encoded, Api>;
export declare function onConstruct<ParserError extends MO.AnyError, ParsedShape, ConstructorInput, ConstructorError extends MO.AnyError, Encoded, Api, Errors extends MO.AnyError>(mod: (i: ParsedShape) => Th.These<Errors, ParsedShape>): (self: MO.Schema<unknown, ParserError, ParsedShape, ConstructorInput, ConstructorError, Encoded, Api>) => MO.Schema<unknown, ParserError, ParsedShape, ConstructorInput, ConstructorError | Errors, Encoded, Api>;
export declare function onConstruct_<ParserError extends MO.AnyError, ParsedShape, ConstructorInput, ConstructorError extends MO.AnyError, Encoded, Api, Errors extends MO.AnyError>(self: MO.Schema<unknown, ParserError, ParsedShape, ConstructorInput, ConstructorError, Encoded, Api>, mod: (i: ParsedShape) => Th.These<Errors, ParsedShape>): MO.Schema<unknown, ParserError, ParsedShape, ConstructorInput, ConstructorError | Errors, Encoded, Api>;
export declare function onParseOrConstruct<ParserInput, ParserError extends MO.AnyError, ParsedShape, ConstructorInput, ConstructorError extends MO.AnyError, Encoded, Api, Errors extends MO.AnyError>(mod: (i: ParsedShape) => Th.These<Errors, ParsedShape>): (self: MO.Schema<ParserInput, ParserError, ParsedShape, ConstructorInput, ConstructorError, Encoded, Api>) => MO.Schema<ParserInput, ParserError | Errors, ParsedShape, ConstructorInput, ConstructorError | Errors, Encoded, Api>;
export declare function onParseOrConstruct_<ParserInput, ParserError extends MO.AnyError, ParsedShape, ConstructorInput, ConstructorError extends MO.AnyError, Encoded, Api, Errors extends MO.AnyError>(self: MO.Schema<ParserInput, ParserError, ParsedShape, ConstructorInput, ConstructorError, Encoded, Api>, mod: (i: ParsedShape) => Th.These<Errors, ParsedShape>): MO.Schema<ParserInput, ParserError | Errors, ParsedShape, ConstructorInput, ConstructorError | Errors, Encoded, Api>;
export declare function onParse<ParserInput, ParserError extends MO.AnyError, ParsedShape, ConstructorInput, ConstructorError extends MO.AnyError, Encoded, Api, Errors extends MO.AnyError>(mod: (i: ParsedShape) => Th.These<Errors, ParsedShape>): (self: MO.Schema<ParserInput, ParserError, ParsedShape, ConstructorInput, ConstructorError, Encoded, Api>) => MO.Schema<ParserInput, ParserError | Errors, ParsedShape, ConstructorInput, ConstructorError, Encoded, Api>;
export declare function onParse_<ParserInput, ParserError extends MO.AnyError, ParsedShape, ConstructorInput, ConstructorError extends MO.AnyError, Encoded, Api, Errors extends MO.AnyError>(self: MO.Schema<ParserInput, ParserError, ParsedShape, ConstructorInput, ConstructorError, Encoded, Api>, mod: (i: ParsedShape) => Th.These<Errors, ParsedShape>): MO.Schema<ParserInput, ParserError | Errors, ParsedShape, ConstructorInput, ConstructorError, Encoded, Api>;
export declare function onConstruct<ParserInput, ParserError extends MO.AnyError, ParsedShape, ConstructorInput, ConstructorError extends MO.AnyError, Encoded, Api, Errors extends MO.AnyError>(mod: (i: ParsedShape) => Th.These<Errors, ParsedShape>): (self: MO.Schema<ParserInput, ParserError, ParsedShape, ConstructorInput, ConstructorError, Encoded, Api>) => MO.Schema<ParserInput, ParserError, ParsedShape, ConstructorInput, ConstructorError | Errors, Encoded, Api>;
export declare function onConstruct_<ParserInput, ParserError extends MO.AnyError, ParsedShape, ConstructorInput, ConstructorError extends MO.AnyError, Encoded, Api, Errors extends MO.AnyError>(self: MO.Schema<ParserInput, ParserError, ParsedShape, ConstructorInput, ConstructorError, Encoded, Api>, mod: (i: ParsedShape) => Th.These<Errors, ParsedShape>): MO.Schema<ParserInput, ParserError, ParsedShape, ConstructorInput, ConstructorError | Errors, Encoded, Api>;
export declare type DomainError = MO.RequiredKeyE<any, any>;

@@ -13,0 +13,0 @@ export declare function domainResponse<A>(errors: DomainError[], success: () => A): MO.These.These<MO.CompositionE<MO.NextE<MO.StructE<DomainError>>>, never> | MO.These.These<never, A>;

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc