Socket
Socket
Sign inDemoInstall

@effect-ts-app/prelude

Package Overview
Dependencies
127
Maintainers
1
Versions
127
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.75.0 to 0.76.0

6

_ext/Prelude.d.ts

@@ -13,3 +13,3 @@ /**

import {
ROArray,
ImmutableArray,
Cause,

@@ -27,3 +27,3 @@ Chunk,

Managed,
ROMap,
ImmutableMap,
NonEmptyArray,

@@ -39,3 +39,3 @@ NonEmptySet,

Semaphore,
ROSet,
ImmutableSet,
Sync,

@@ -42,0 +42,0 @@ SyncMaybe,

@@ -1,2 +0,2 @@

import { Chunk, Effect, EffectMaybe, Either, Managed, Maybe, NonEmptyArray, ROSet, Sync } from "@effect-ts-app/prelude/Prelude";
import { Chunk, Effect, EffectMaybe, Either, ImmutableSet, Managed, Maybe, NonEmptyArray, Sync } from "@effect-ts-app/prelude/Prelude";
import { pipe } from "./pipe.js";

@@ -231,3 +231,3 @@ /**

*/
export declare const setSucceed: typeof ROSet.fromArray;
export declare const setSucceed: typeof ImmutableSet.fromArray;
/**

@@ -234,0 +234,0 @@ * @tsplus static ets/Chunk __call

@@ -288,3 +288,3 @@ "use strict";

exports.naSucceed = naSucceed;
const setSucceed = _Prelude.ROSet.fromArray;
const setSucceed = _Prelude.ImmutableSet.fromArray;
/**

@@ -291,0 +291,0 @@ * @tsplus static ets/Chunk __call

@@ -9,6 +9,6 @@ //import "./Lens.ext"

Either,
ImmutableSet,
Managed,
Maybe,
NonEmptyArray,
ROSet,
Sync,

@@ -285,3 +285,3 @@ } from "@effect-ts-app/prelude/Prelude"

*/
export const setSucceed = ROSet.fromArray
export const setSucceed = ImmutableSet.fromArray

@@ -288,0 +288,0 @@ /**

@@ -1,2 +0,2 @@

import type { Array as ROArray } from "@effect-ts-app/core/Array";
import type { Array as ImmutableArray } from "@effect-ts-app/core/Array";
/**

@@ -7,3 +7,3 @@ * @tsplus operator ets/Array &

*/
export declare function concat_<A, B>(self: ROArray<A>, that: ROArray<B>): ROArray<A | B>;
export declare function concat_<A, B>(self: ImmutableArray<A>, that: ImmutableArray<B>): ImmutableArray<A | B>;
/**

@@ -14,23 +14,23 @@ * Concatenates two ets/Array together

*/
export declare const concatOperator: <A>(self: ROArray<A>, that: ROArray<A>) => ROArray<A>;
export declare const concatOperator: <A>(self: ImmutableArray<A>, that: ImmutableArray<A>) => ImmutableArray<A>;
/**
* Prepends `a` to ROArray<A>
* Prepends `a` to ImmutableArray<A>
* @tsplus operator ets/Array + 1.0
* @tsplus location "@effect-ts-app/prelude/_ext/RArray"
*/
export declare function prependOperatorStrict<A>(a: A, self: ROArray<A>): ROArray<A>;
export declare function prependOperatorStrict<A>(a: A, self: ImmutableArray<A>): ImmutableArray<A>;
/**
* Prepends `a` to ROArray<A>
* Prepends `a` to ImmutableArray<A>
* @tsplus operator ets/Array >
* @tsplus location "@effect-ts-app/prelude/_ext/RArray"
*/
export declare function prependOperator<A, B>(a: A, self: ROArray<B>): ROArray<A | B>;
export declare function prependOperator<A, B>(a: A, self: ImmutableArray<B>): ImmutableArray<A | B>;
/**
* Prepends `a` to ROArray<A>
* Prepends `a` to ImmutableArray<A>
* @tsplus fluent ets/Array prepend
* @tsplus location "@effect-ts-app/prelude/_ext/RArray"
*/
export declare function prepend_<A, B>(tail: ROArray<A>, head: B): ROArray<A | B>;
export declare function prepend_<A, B>(tail: ImmutableArray<A>, head: B): ImmutableArray<A | B>;
/**
* Appends `a` to ROArray<A>
* Appends `a` to ImmutableArray<A>
* @tsplus fluent ets/Array append

@@ -40,3 +40,3 @@ * @tsplus operator ets/Array <

*/
export declare function append_<A, B>(init: ROArray<A>, end: B): ROArray<A | B>;
export declare function append_<A, B>(init: ImmutableArray<A>, end: B): ImmutableArray<A | B>;
/**

@@ -46,2 +46,2 @@ * @tsplus operator ets/Array + 1.0

*/
export declare const appendOperator: <A>(self: ROArray<A>, a: A) => ROArray<A>;
export declare const appendOperator: <A>(self: ImmutableArray<A>, a: A) => ImmutableArray<A>;

@@ -36,3 +36,3 @@ "use strict";

/**
* Prepends `a` to ROArray<A>
* Prepends `a` to ImmutableArray<A>
*

@@ -48,3 +48,3 @@ * @tsplus operator ets/Array + 1.0

/**
* Prepends `a` to ROArray<A>
* Prepends `a` to ImmutableArray<A>
*

@@ -59,3 +59,3 @@ * @tsplus operator ets/Array >

/**
* Prepends `a` to ROArray<A>
* Prepends `a` to ImmutableArray<A>
*

@@ -78,3 +78,3 @@ * @tsplus fluent ets/Array prepend

/**
* Appends `a` to ROArray<A>
* Appends `a` to ImmutableArray<A>
*

@@ -81,0 +81,0 @@ * @tsplus fluent ets/Array append

@@ -1,3 +0,3 @@

import type { Array as ROArray } from "@effect-ts-app/core/Array"
import { Array as ROArrayOps } from "@effect-ts-app/prelude"
import type { Array as ImmutableArray } from "@effect-ts-app/core/Array"
import { Array as ImmutableArrayOps } from "@effect-ts-app/prelude"

@@ -8,4 +8,4 @@ /**

*/
export function concat_<A, B>(self: ROArray<A>, that: ROArray<B>): ROArray<A | B> {
return ROArrayOps.concat_(self, that)
export function concat_<A, B>(self: ImmutableArray<A>, that: ImmutableArray<B>): ImmutableArray<A | B> {
return ImmutableArrayOps.concat_(self, that)
}

@@ -18,20 +18,20 @@

*/
export const concatOperator: <A>(self: ROArray<A>, that: ROArray<A>) => ROArray<A> =
export const concatOperator: <A>(self: ImmutableArray<A>, that: ImmutableArray<A>) => ImmutableArray<A> =
concat_
/**
* Prepends `a` to ROArray<A>
* Prepends `a` to ImmutableArray<A>
*
* @tsplus operator ets/Array + 1.0
*/
export function prependOperatorStrict<A>(a: A, self: ROArray<A>): ROArray<A> {
return ROArrayOps.prepend_(self, a)
export function prependOperatorStrict<A>(a: A, self: ImmutableArray<A>): ImmutableArray<A> {
return ImmutableArrayOps.prepend_(self, a)
}
/**
* Prepends `a` to ROArray<A>
* Prepends `a` to ImmutableArray<A>
*
* @tsplus operator ets/Array >
*/
export function prependOperator<A, B>(a: A, self: ROArray<B>): ROArray<A | B> {
export function prependOperator<A, B>(a: A, self: ImmutableArray<B>): ImmutableArray<A | B> {
return prepend_(self, a)

@@ -41,7 +41,7 @@ }

/**
* Prepends `a` to ROArray<A>
* Prepends `a` to ImmutableArray<A>
*
* @tsplus fluent ets/Array prepend
*/
export function prepend_<A, B>(tail: ROArray<A>, head: B): ROArray<A | B> {
export function prepend_<A, B>(tail: ImmutableArray<A>, head: B): ImmutableArray<A | B> {
const len = tail.length

@@ -53,7 +53,7 @@ const r = Array(len + 1)

r[0] = head
return r as unknown as ROArray<A | B>
return r as unknown as ImmutableArray<A | B>
}
/**
* Appends `a` to ROArray<A>
* Appends `a` to ImmutableArray<A>
*

@@ -63,3 +63,3 @@ * @tsplus fluent ets/Array append

*/
export function append_<A, B>(init: ROArray<A>, end: B): ROArray<A | B> {
export function append_<A, B>(init: ImmutableArray<A>, end: B): ImmutableArray<A | B> {
const len = init.length

@@ -71,3 +71,3 @@ const r = Array(len + 1)

r[len] = end
return r as unknown as ROArray<A | B>
return r as unknown as ImmutableArray<A | B>
}

@@ -78,2 +78,2 @@

*/
export const appendOperator: <A>(self: ROArray<A>, a: A) => ROArray<A> = append_
export const appendOperator: <A>(self: ImmutableArray<A>, a: A) => ImmutableArray<A> = append_

@@ -148,13 +148,13 @@ import type * as CNK from "@effect-ts-app/core/Chunk"

export namespace Array {
export * from "@effect-ts-app/core/Array"
}
/** @tsplus type ets/Array */
export type Array<A> = A.Array<A>
// export namespace Array {
// export * from "@effect-ts-app/core/Array"
// }
// /** @tsplus type ets/Array */
// export type Array<A> = A.Array<A>
export namespace ROArray {
export namespace ImmutableArray {
export * from "@effect-ts-app/core/Array"
}
/** @tsplus type ets/Array */
export type ROArray<A> = A.Array<A>
export type ImmutableArray<A> = A.Array<A>

@@ -168,9 +168,9 @@

export namespace Set {
export * from "@effect-ts-app/core/Set"
}
/** @tsplus type ets/Set */
export type Set<A> = SET.Set<A>
// export namespace Set {
// export * from "@effect-ts-app/core/Set"
// }
// /** @tsplus type ets/Set */
// export type Set<A> = SET.Set<A>
export namespace ROSet {
export namespace ImmutableSet {
export * from "@effect-ts-app/core/Set"

@@ -180,5 +180,5 @@ }

* @tsplus type ets/Set
* @tsplus type ets/ROSet
* @tsplus type ets/ImmutableSet
*/
export type ROSet<A> = SET.Set<A>
export type ImmutableSet<A> = SET.Set<A>

@@ -210,13 +210,13 @@ export namespace Layer {

export namespace Map {
export * from "@effect-ts/core/Collections/Immutable/Map"
}
/** @tsplus type ets/Map */
export type Map<K, A> = MAP.Map<K, A>
// export namespace Map {
// export * from "@effect-ts/core/Collections/Immutable/Map"
// }
// /** @tsplus type ets/Map */
// export type Map<K, A> = MAP.Map<K, A>
export namespace ROMap {
export namespace ImmutableMap {
export * from "@effect-ts/core/Collections/Immutable/Map"
}
/** @tsplus type ets/Map */
export type ROMap<K, A> = MAP.Map<K, A>
export type ImmutableMap<K, A> = MAP.Map<K, A>

@@ -223,0 +223,0 @@

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

});
exports.XPure = exports.Tuple = exports.SyncMaybe = exports.Sync = exports.Set = exports.Semaphore = exports.Schedule = exports.Ref = exports.ROSet = exports.ROMap = exports.ROArray = exports.Queue = exports.Ord = exports.NonEmptySet = exports.NonEmptyArray = exports.Maybe = exports.Map = exports.Managed = exports.Lens = exports.Layer = exports.Has = exports.Fiber = exports.Exit = exports.Equal = exports.Either = exports.EffectMaybe = exports.Effect = exports.Chunk = exports.Cause = exports.Array = void 0;
exports.XPure = exports.Tuple = exports.SyncMaybe = exports.Sync = exports.Set = exports.Semaphore = exports.Schedule = exports.Ref = exports.Queue = exports.Ord = exports.NonEmptySet = exports.NonEmptyArray = exports.Maybe = exports.Map = exports.Managed = exports.Lens = exports.Layer = exports.ImmutableSet = exports.ImmutableMap = exports.ImmutableArray = exports.Has = exports.Fiber = exports.Exit = exports.Equal = exports.Either = exports.EffectMaybe = exports.Effect = exports.Chunk = exports.Cause = exports.Array = void 0;
var _Array = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect-ts-app/core/Array"));
var _ROArray = _Array;
var _ImmutableArray = _Array;
exports.Array = _Array;
exports.ROArray = _Array;
exports.ImmutableArray = _Array;

@@ -21,5 +21,5 @@ var _Chunk = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect-ts-app/core/Chunk"));

var _ROMap = _Map;
var _ImmutableMap = _Map;
exports.Map = _Map;
exports.ROMap = _Map;
exports.ImmutableMap = _Map;

@@ -104,5 +104,5 @@ var _Cause = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect-ts/core/Effect/Cause"));

var _ROSet = _Set;
var _ImmutableSet = _Set;
exports.Set = _Set;
exports.ROSet = _Set;
exports.ImmutableSet = _Set;

@@ -109,0 +109,0 @@ var _SyncMaybe = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect-ts-app/core/SyncMaybe"));

{
"name": "@effect-ts-app/prelude",
"version": "0.75.0",
"version": "0.76.0",
"license": "MIT",
"dependencies": {
"@effect-ts-app/core": "^0.75.0",
"@effect-ts-app/schema": "^0.75.0"
"@effect-ts-app/core": "^0.76.0",
"@effect-ts-app/schema": "^0.76.0"
},

@@ -71,3 +71,3 @@ "devDependencies": {

"sideEffects": false,
"gitHead": "f37c9a0b5c97ce392f55cef35bc8624f73befdcb"
"gitHead": "97dd10e292a98617cda06eead86dbd9a860a40b2"
}

@@ -148,13 +148,13 @@ import type * as CNK from "@effect-ts-app/core/Chunk"

export namespace Array {
export * from "@effect-ts-app/core/Array"
}
/** @tsplus type ets/Array */
export type Array<A> = A.Array<A>
// export namespace Array {
// export * from "@effect-ts-app/core/Array"
// }
// /** @tsplus type ets/Array */
// export type Array<A> = A.Array<A>
export namespace ROArray {
export namespace ImmutableArray {
export * from "@effect-ts-app/core/Array"
}
/** @tsplus type ets/Array */
export type ROArray<A> = A.Array<A>
export type ImmutableArray<A> = A.Array<A>

@@ -168,9 +168,9 @@

export namespace Set {
export * from "@effect-ts-app/core/Set"
}
/** @tsplus type ets/Set */
export type Set<A> = SET.Set<A>
// export namespace Set {
// export * from "@effect-ts-app/core/Set"
// }
// /** @tsplus type ets/Set */
// export type Set<A> = SET.Set<A>
export namespace ROSet {
export namespace ImmutableSet {
export * from "@effect-ts-app/core/Set"

@@ -180,5 +180,5 @@ }

* @tsplus type ets/Set
* @tsplus type ets/ROSet
* @tsplus type ets/ImmutableSet
*/
export type ROSet<A> = SET.Set<A>
export type ImmutableSet<A> = SET.Set<A>

@@ -210,13 +210,13 @@ export namespace Layer {

export namespace Map {
export * from "@effect-ts/core/Collections/Immutable/Map"
}
/** @tsplus type ets/Map */
export type Map<K, A> = MAP.Map<K, A>
// export namespace Map {
// export * from "@effect-ts/core/Collections/Immutable/Map"
// }
// /** @tsplus type ets/Map */
// export type Map<K, A> = MAP.Map<K, A>
export namespace ROMap {
export namespace ImmutableMap {
export * from "@effect-ts/core/Collections/Immutable/Map"
}
/** @tsplus type ets/Map */
export type ROMap<K, A> = MAP.Map<K, A>
export type ImmutableMap<K, A> = MAP.Map<K, A>

@@ -223,0 +223,0 @@

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

});
exports.XPure = exports.Tuple = exports.SyncMaybe = exports.Sync = exports.Set = exports.Semaphore = exports.Schedule = exports.Ref = exports.ROSet = exports.ROMap = exports.ROArray = exports.Queue = exports.Ord = exports.NonEmptySet = exports.NonEmptyArray = exports.Maybe = exports.Map = exports.Managed = exports.Lens = exports.Layer = exports.Has = exports.Fiber = exports.Exit = exports.Equal = exports.Either = exports.EffectMaybe = exports.Effect = exports.Chunk = exports.Cause = exports.Array = void 0;
exports.XPure = exports.Tuple = exports.SyncMaybe = exports.Sync = exports.Set = exports.Semaphore = exports.Schedule = exports.Ref = exports.Queue = exports.Ord = exports.NonEmptySet = exports.NonEmptyArray = exports.Maybe = exports.Map = exports.Managed = exports.Lens = exports.Layer = exports.ImmutableSet = exports.ImmutableMap = exports.ImmutableArray = exports.Has = exports.Fiber = exports.Exit = exports.Equal = exports.Either = exports.EffectMaybe = exports.Effect = exports.Chunk = exports.Cause = exports.Array = void 0;
var _Array = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect-ts-app/core/Array"));
var _ROArray = _Array;
var _ImmutableArray = _Array;
exports.Array = _Array;
exports.ROArray = _Array;
exports.ImmutableArray = _Array;

@@ -21,5 +21,5 @@ var _Chunk = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect-ts-app/core/Chunk"));

var _ROMap = _Map;
var _ImmutableMap = _Map;
exports.Map = _Map;
exports.ROMap = _Map;
exports.ImmutableMap = _Map;

@@ -104,5 +104,5 @@ var _Cause = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect-ts/core/Effect/Cause"));

var _ROSet = _Set;
var _ImmutableSet = _Set;
exports.Set = _Set;
exports.ROSet = _Set;
exports.ImmutableSet = _Set;

@@ -109,0 +109,0 @@ var _SyncMaybe = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect-ts-app/core/SyncMaybe"));

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

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc