Socket
Socket
Sign inDemoInstall

@effect/stm

Package Overview
Dependencies
Maintainers
3
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@effect/stm - npm Package Compare versions

Comparing version 0.12.0 to 0.13.0

internal/core.d.ts

6

package.json
{
"name": "@effect/stm",
"version": "0.12.0",
"version": "0.13.0",
"license": "MIT",

@@ -10,4 +10,4 @@ "repository": {

"dependencies": {
"@effect/data": "~0.12.2",
"@effect/io": "~0.25.2"
"@effect/data": "~0.13.6",
"@effect/io": "~0.31.3"
},

@@ -14,0 +14,0 @@ "publishConfig": {

@@ -5,5 +5,5 @@ /**

import type * as Option from "@effect/data/Option"
import type * as Order from "@effect/data/Order"
import type { Predicate } from "@effect/data/Predicate"
import type * as Order from "@effect/data/typeclass/Order"
import * as internal from "@effect/stm/internal_effect_untraced/tArray"
import * as internal from "@effect/stm/internal/tArray"
import type * as STM from "@effect/stm/STM"

@@ -10,0 +10,0 @@ import type * as TRef from "@effect/stm/TRef"

@@ -6,3 +6,3 @@ /**

import type * as Option from "@effect/data/Option"
import * as internal from "@effect/stm/internal_effect_untraced/tDeferred"
import * as internal from "@effect/stm/internal/tDeferred"
import type * as STM from "@effect/stm/STM"

@@ -9,0 +9,0 @@ import type * as TRef from "@effect/stm/TRef"

@@ -7,4 +7,4 @@ /**

import type * as Scope from "@effect/io/Scope"
import * as internal from "@effect/stm/internal_effect_untraced/tHub"
import type * as tQueue from "@effect/stm/internal_effect_untraced/tQueue"
import * as internal from "@effect/stm/internal/tHub"
import type * as tQueue from "@effect/stm/internal/tQueue"
import type * as STM from "@effect/stm/STM"

@@ -11,0 +11,0 @@ import type * as TQueue from "@effect/stm/TQueue"

@@ -8,3 +8,3 @@ /**

import type * as Option from "@effect/data/Option"
import * as internal from "@effect/stm/internal_effect_untraced/tMap"
import * as internal from "@effect/stm/internal/tMap"
import type * as STM from "@effect/stm/STM"

@@ -11,0 +11,0 @@ import type * as TArray from "@effect/stm/TArray"

@@ -5,6 +5,6 @@ /**

import type * as Option from "@effect/data/Option"
import type * as Order from "@effect/data/Order"
import type { Predicate } from "@effect/data/Predicate"
import type * as SortedMap from "@effect/data/SortedMap"
import type * as Order from "@effect/data/typeclass/Order"
import * as internal from "@effect/stm/internal_effect_untraced/tPriorityQueue"
import * as internal from "@effect/stm/internal/tPriorityQueue"
import type * as STM from "@effect/stm/STM"

@@ -11,0 +11,0 @@ import type * as TRef from "@effect/stm/TRef"

@@ -6,3 +6,3 @@ /**

import type { Predicate } from "@effect/data/Predicate"
import * as internal from "@effect/stm/internal_effect_untraced/tQueue"
import * as internal from "@effect/stm/internal/tQueue"
import type * as STM from "@effect/stm/STM"

@@ -9,0 +9,0 @@

@@ -7,3 +7,3 @@ /**

import type * as Layer from "@effect/io/Layer"
import * as internal from "@effect/stm/internal_effect_untraced/tRandom"
import * as internal from "@effect/stm/internal/tRandom"
import type * as STM from "@effect/stm/STM"

@@ -10,0 +10,0 @@ import type * as TRef from "@effect/stm/TRef"

@@ -6,3 +6,3 @@ /**

import type * as Scope from "@effect/io/Scope"
import * as internal from "@effect/stm/internal_effect_untraced/tReentrantLock"
import * as internal from "@effect/stm/internal/tReentrantLock"
import type * as STM from "@effect/stm/STM"

@@ -9,0 +9,0 @@ import type * as TRef from "@effect/stm/TRef"

@@ -6,6 +6,6 @@ /**

import type * as Option from "@effect/data/Option"
import type * as Journal from "@effect/stm/internal_effect_untraced/stm/journal"
import type * as TxnId from "@effect/stm/internal_effect_untraced/stm/txnId"
import type * as Versioned from "@effect/stm/internal_effect_untraced/stm/versioned"
import * as internal from "@effect/stm/internal_effect_untraced/tRef"
import type * as Journal from "@effect/stm/internal/stm/journal"
import type * as TxnId from "@effect/stm/internal/stm/txnId"
import type * as Versioned from "@effect/stm/internal/stm/versioned"
import * as internal from "@effect/stm/internal/tRef"
import type * as STM from "@effect/stm/STM"

@@ -12,0 +12,0 @@

@@ -7,3 +7,3 @@ /**

import type * as Scope from "@effect/io/Scope"
import * as internal from "@effect/stm/internal_effect_untraced/tSemaphore"
import * as internal from "@effect/stm/internal/tSemaphore"
import type * as STM from "@effect/stm/STM"

@@ -10,0 +10,0 @@ import type * as TRef from "@effect/stm/TRef"

@@ -7,3 +7,3 @@ /**

import type { Predicate } from "@effect/data/Predicate"
import * as internal from "@effect/stm/internal_effect_untraced/tSet"
import * as internal from "@effect/stm/internal/tSet"
import type * as STM from "@effect/stm/STM"

@@ -10,0 +10,0 @@ import type * as TMap from "@effect/stm/TMap"

@@ -6,17 +6,8 @@ "use strict";

});
exports.option = exports.none = exports.nonEmptyTuple = exports.nonEmptyStruct = exports.negate = exports.mergeAll = exports.merge = exports.matchSTM = exports.match = exports.mapError = exports.mapBoth = exports.mapAttempt = exports.map = exports.loopDiscard = exports.loop = exports.letDiscard = exports.let = exports.left = exports.iterate = exports.isSuccess = exports.isSTM = exports.isFailure = exports.interruptAs = exports.interrupt = exports.ignore = exports.ifSTM = exports.head = exports.getFirstSuccessSemigroup = exports.getFailureSemigroup = exports.getFailureMonoid = exports.gen = exports.fromOption = exports.fromEither = exports.forEachDiscard = exports.forEach = exports.flipWith = exports.flip = exports.flattenErrorOption = exports.flatten = exports.flatMapError = exports.flatMap = exports.firstSuccessOf = exports.filterOrFail = exports.filterOrElseWith = exports.filterOrElse = exports.filterOrDieMessage = exports.filterOrDie = exports.filterNot = exports.filter = exports.fiberId = exports.failSync = exports.fail = exports.exists = exports.every = exports.eventually = exports.ensuring = exports.either = exports.dieSync = exports.dieMessage = exports.die = exports.contramapContext = exports.contextWithSTM = exports.contextWith = exports.context = exports.cond = exports.commitEither = exports.commit = exports.collectSTM = exports.collectFirst = exports.collect = exports.check = exports.catchSome = exports.catchAll = exports.bindTo = exports.bindDiscard = exports.bind = exports.attempt = exports.asUnit = exports.asSomeError = exports.asSome = exports.as = exports.allDiscard = exports.all = exports.acquireUseRelease = exports.absolve = exports.SemiProduct = exports.SemiCoproduct = exports.SemiApplicative = exports.SemiAlternative = exports.STMTypeId = exports.Product = exports.Pointed = exports.Monad = exports.Invariant = exports.FlatMap = exports.Do = exports.Covariant = exports.Chainable = exports.Bicovariant = exports.Applicative = void 0;
exports.zipWith = exports.zipRight = exports.zipLeft = exports.zip = exports.whenSTM = exports.whenCaseSTM = exports.whenCase = exports.when = exports.validateFirst = exports.validateAll = exports.unsome = exports.unright = exports.unlessSTM = exports.unless = exports.unleft = exports.unit = exports.tryCatch = exports.tapError = exports.tapBoth = exports.tap = exports.sync = exports.suspend = exports.summarized = exports.succeedSome = exports.succeedRight = exports.succeedNone = exports.succeedLeft = exports.succeed = exports.someOrFailException = exports.someOrFail = exports.someOrElseSTM = exports.someOrElse = exports.some = exports.right = exports.retryWhile = exports.retryUntil = exports.retry = exports.replicateSTMDiscard = exports.replicateSTM = exports.replicate = exports.repeatWhile = exports.repeatUntil = exports.rejectSTM = exports.reject = exports.refineOrDieWith = exports.refineOrDie = exports.reduceRight = exports.reduceAll = exports.reduce = exports.provideSomeContext = exports.provideServiceSTM = exports.provideService = exports.provideContext = exports.partition = exports.orTry = exports.orElseSucceed = exports.orElseOptional = exports.orElseFail = exports.orElseEither = exports.orElse = exports.orDieWith = exports.orDie = void 0;
exports.replicateSTM = exports.replicate = exports.repeatWhile = exports.repeatUntil = exports.rejectSTM = exports.reject = exports.refineOrDieWith = exports.refineOrDie = exports.reduceRight = exports.reduceAll = exports.reduce = exports.provideSomeContext = exports.provideServiceSTM = exports.provideService = exports.provideContext = exports.partition = exports.orTry = exports.orElseSucceed = exports.orElseOptional = exports.orElseFail = exports.orElseEither = exports.orElse = exports.orDieWith = exports.orDie = exports.option = exports.none = exports.negate = exports.mergeAll = exports.merge = exports.matchSTM = exports.match = exports.mapError = exports.mapBoth = exports.mapAttempt = exports.map = exports.loopDiscard = exports.loop = exports.let = exports.iterate = exports.isSuccess = exports.isSTM = exports.isFailure = exports.interruptAs = exports.interrupt = exports.ignore = exports.ifSTM = exports.head = exports.gen = exports.fromOption = exports.fromEither = exports.forEachDiscard = exports.forEach = exports.flipWith = exports.flip = exports.flatten = exports.flatMap = exports.firstSuccessOf = exports.filterOrFail = exports.filterOrElseWith = exports.filterOrElse = exports.filterOrDieMessage = exports.filterOrDie = exports.filterNot = exports.filter = exports.fiberId = exports.failSync = exports.fail = exports.exists = exports.every = exports.eventually = exports.ensuring = exports.either = exports.dieSync = exports.dieMessage = exports.die = exports.contramapContext = exports.contextWithSTM = exports.contextWith = exports.context = exports.cond = exports.commitEither = exports.commit = exports.collectSTM = exports.collectFirst = exports.collect = exports.check = exports.catchSome = exports.catchAll = exports.bindTo = exports.bind = exports.attempt = exports.asUnit = exports.asSomeError = exports.asSome = exports.as = exports.allDiscard = exports.all = exports.acquireUseRelease = exports.STMTypeId = exports.Do = void 0;
exports.zipWith = exports.zipRight = exports.zipLeft = exports.zip = exports.whenSTM = exports.when = exports.validateFirst = exports.validateAll = exports.unsome = exports.unlessSTM = exports.unless = exports.unit = exports.tryCatch = exports.tapError = exports.tapBoth = exports.tap = exports.sync = exports.suspend = exports.summarized = exports.succeedSome = exports.succeedNone = exports.succeed = exports.someOrElseSTM = exports.someOrElse = exports.some = exports.retryWhile = exports.retryUntil = exports.retry = exports.replicateSTMDiscard = void 0;
var Chunk = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/data/Chunk"));
var Debug = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/data/Debug"));
var applicative = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/data/typeclass/Applicative"));
var chainable = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/data/typeclass/Chainable"));
var covariant = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/data/typeclass/Covariant"));
var invariant = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/data/typeclass/Invariant"));
var of_ = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/data/typeclass/Of"));
var semiApplicative = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/data/typeclass/SemiApplicative"));
var semiCoproduct = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/data/typeclass/SemiCoproduct"));
var semiProduct = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/data/typeclass/SemiProduct"));
var Cause = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/io/Cause"));
var core = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/stm/internal_effect_untraced/core"));
var stm = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/stm/internal_effect_untraced/stm"));
var core = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/stm/internal/core"));
var stm = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/stm/internal/stm"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }

@@ -42,11 +33,2 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

/**
* Returns an effect that submerges the error case of an `Either` into the
* `STM`. The inverse operation of `STM.either`.
*
* @since 1.0.0
* @category mutations
*/
exports.isSTM = isSTM;
const absolve = stm.absolve;
/**
* Treats the specified `acquire` transaction as the acquisition of a

@@ -60,3 +42,3 @@ * resource. The `acquire` transaction will be executed interruptibly. If it

*/
exports.absolve = absolve;
exports.isSTM = isSTM;
const acquireUseRelease = stm.acquireUseRelease;

@@ -142,10 +124,2 @@ /**

/**
* Simultaneously filters and maps the value produced by this effect.
*
* @since 1.0.0
* @category mutations
*/
exports.check = check;
const collect = stm.collect;
/**
* Collects all the transactional effects, returning a single transactional

@@ -160,15 +134,14 @@ * effect that produces `Unit`.

*/
exports.collect = collect;
exports.check = check;
const allDiscard = stm.collectAllDiscard;
/**
* Collects the first element of the `Iterable<A>` for which the effectual
* function `f` returns `Some`.
* Simultaneously filters and maps the value produced by this effect.
*
* @since 1.0.0
* @category constructors
* @category mutations
*/
exports.allDiscard = allDiscard;
const collectFirst = stm.collectFirst;
const collect = stm.collect;
/**
* Simultaneously filters and flatMaps the value produced by this effect.
* Simultaneously filters and maps the value produced by this effect.
*

@@ -178,5 +151,14 @@ * @since 1.0.0

*/
exports.collectFirst = collectFirst;
exports.collect = collect;
const collectSTM = stm.collectSTM;
/**
* Collects the first element of the `Iterable<A>` for which the effectual
* function `f` returns `Some`.
*
* @since 1.0.0
* @category constructors
*/
exports.collectSTM = collectSTM;
const collectFirst = stm.collectFirst;
/**
* Commits this transaction atomically.

@@ -187,3 +169,3 @@ *

*/
exports.collectSTM = collectSTM;
exports.collectFirst = collectFirst;
const commit = core.commit;

@@ -403,4 +385,3 @@ /**

/**
* Creates a composite effect that represents this effect followed by another
* one that may depend on the error produced by this one.
* Flattens out a nested `STM` effect.
*

@@ -411,20 +392,4 @@ * @since 1.0.0

exports.flatMap = flatMap;
const flatMapError = stm.flatMapError;
/**
* Flattens out a nested `STM` effect.
*
* @since 1.0.0
* @category sequencing
*/
exports.flatMapError = flatMapError;
const flatten = stm.flatten;
/**
* Unwraps the optional error, defaulting to the provided value.
*
* @since 1.0.0
* @category sequencing
*/
exports.flatten = flatten;
const flattenErrorOption = stm.flattenErrorOption;
/**
* Flips the success and failure channels of this transactional effect. This

@@ -437,3 +402,3 @@ * allows you to use all methods on the error channel, possibly before

*/
exports.flattenErrorOption = flattenErrorOption;
exports.flatten = flatten;
const flip = stm.flip;

@@ -586,11 +551,2 @@ /**

/**
* "Zooms in" on the value in the `Left` side of an `Either`, moving the
* possibility that the value is a `Right` to the error channel.
*
* @since 1.0.0
* @category getters
*/
exports.iterate = iterate;
const left = stm.left;
/**
* Loops with the specified transactional function, collecting the results

@@ -614,3 +570,3 @@ * into a list. The moral equivalent of:

*/
exports.left = left;
exports.iterate = iterate;
const loop = stm.loop;

@@ -982,4 +938,3 @@ /**

/**
* "Zooms in" on the value in the `Right` side of an `Either`, moving the
* possibility that the value is a `Left` to the error channel.
* Converts an option on values into an option on errors.
*

@@ -990,10 +945,2 @@ * @since 1.0.0

exports.retryWhile = retryWhile;
const right = stm.right;
/**
* Converts an option on values into an option on errors.
*
* @since 1.0.0
* @category getters
*/
exports.right = right;
const some = stm.some;

@@ -1017,19 +964,2 @@ /**

/**
* Extracts the optional value, or fails with the given error 'e'.
*
* @since 1.0.0
* @category getters
*/
exports.someOrElseSTM = someOrElseSTM;
const someOrFail = stm.someOrFail;
/**
* Extracts the optional value, or fails with a
* `Cause.NoSuchElementException`.
*
* @since 1.0.0
* @category getters
*/
exports.someOrFail = someOrFail;
const someOrFailException = stm.someOrFailException;
/**
* Returns an `STM` effect that succeeds with the specified value.

@@ -1040,6 +970,6 @@ *

*/
exports.someOrFailException = someOrFailException;
exports.someOrElseSTM = someOrElseSTM;
const succeed = core.succeed;
/**
* Returns an effect with the value on the left part.
* Returns an effect with the empty value.
*

@@ -1050,13 +980,5 @@ * @since 1.0.0

exports.succeed = succeed;
const succeedLeft = stm.succeedLeft;
/**
* Returns an effect with the empty value.
*
* @since 1.0.0
* @category constructors
*/
exports.succeedLeft = succeedLeft;
const succeedNone = stm.succeedNone;
/**
* Returns an effect with the value on the right part.
* Returns an effect with the optional value.
*

@@ -1067,10 +989,2 @@ * @since 1.0.0

exports.succeedNone = succeedNone;
const succeedRight = stm.succeedRight;
/**
* Returns an effect with the optional value.
*
* @since 1.0.0
* @category constructors
*/
exports.succeedRight = succeedRight;
const succeedSome = stm.succeedSome;

@@ -1138,11 +1052,2 @@ /**

/**
* Converts a `STM<R, Either<E, A>, A2>` into a `STM<R, E, Either<A2, A>>`.
* The inverse of `left`.
*
* @since 1.0.0
* @category getters
*/
exports.tryCatch = tryCatch;
const unleft = stm.unleft;
/**
* The moral equivalent of `if (!p) exp`

@@ -1153,3 +1058,3 @@ *

*/
exports.unleft = unleft;
exports.tryCatch = tryCatch;
const unless = stm.unless;

@@ -1165,4 +1070,3 @@ /**

/**
* Converts a `STM<R, Either<A, E>, A2>` into a `STM<R, E, Either<A, A2>>`.
* The inverse of `right`.
* Converts an option on errors into an option on values.
*

@@ -1173,10 +1077,2 @@ * @since 1.0.0

exports.unlessSTM = unlessSTM;
const unright = stm.unright;
/**
* Converts an option on errors into an option on values.
*
* @since 1.0.0
* @category getters
*/
exports.unright = unright;
const unsome = stm.unsome;

@@ -1221,4 +1117,3 @@ /**

/**
* Runs an effect when the supplied partial function matches for the given
* value, otherwise does nothing.
* The moral equivalent of `if (p) exp` when `p` has side-effects.
*

@@ -1229,19 +1124,2 @@ * @since 1.0.0

exports.when = when;
const whenCase = stm.whenCase;
/**
* Runs an effect when the supplied partial function matches for the given
* effectful value, otherwise does nothing.
*
* @since 1.0.0
* @category mutations
*/
exports.whenCase = whenCase;
const whenCaseSTM = stm.whenCaseSTM;
/**
* The moral equivalent of `if (p) exp` when `p` has side-effects.
*
* @since 1.0.0
* @category mutations
*/
exports.whenCaseSTM = whenCaseSTM;
const whenSTM = stm.whenSTM;

@@ -1284,113 +1162,2 @@ /**

/**
* @category instances
* @since 1.0.0
*/
exports.zipWith = zipWith;
const Bicovariant = {
bimap: mapBoth
};
exports.Bicovariant = Bicovariant;
const imap = /*#__PURE__*/covariant.imap(map);
/**
* @category instances
* @since 1.0.0
*/
const Covariant = {
imap,
map
};
/**
* @category instances
* @since 1.0.0
*/
exports.Covariant = Covariant;
const Invariant = {
imap
};
/**
* @category instances
* @since 1.0.0
*/
exports.Invariant = Invariant;
const Pointed = {
of: succeed,
imap,
map
};
/**
* @category instances
* @since 1.0.0
*/
exports.Pointed = Pointed;
const FlatMap = {
flatMap
};
/**
* @category instances
* @since 1.0.0
*/
exports.FlatMap = FlatMap;
const Chainable = {
imap,
map,
flatMap
};
/**
* @category instances
* @since 1.0.0
*/
exports.Chainable = Chainable;
const Monad = {
imap,
of: succeed,
map,
flatMap
};
/**
* @category instances
* @since 1.0.0
*/
exports.Monad = Monad;
const SemiProduct = {
imap,
product: zip,
productMany: (self, rest) => flatMap(self, a => map(all(rest), r => [a, ...r]))
};
/**
* @category instances
* @since 1.0.0
*/
exports.SemiProduct = SemiProduct;
const Product = {
of: succeed,
imap,
product: SemiProduct.product,
productMany: SemiProduct.productMany,
productAll: rest => map(all(rest), x => Array.from(x))
};
/**
* @category instances
* @since 1.0.0
*/
exports.Product = Product;
const SemiApplicative = {
imap,
map,
product: SemiProduct.product,
productMany: SemiProduct.productMany
};
/**
* @category instances
* @since 1.0.0
*/
exports.SemiApplicative = SemiApplicative;
const Applicative = {
imap,
of: succeed,
map,
product: SemiProduct.product,
productMany: SemiProduct.productMany,
productAll: Product.productAll
};
/**
* This function takes an iterable of `STM` values and returns a new

@@ -1414,4 +1181,4 @@ * `STM` value that represents the first `STM` value in the iterable

*/
exports.Applicative = Applicative;
const firstSuccessOf = /*#__PURE__*/Debug.methodWithTrace(trace => effects => suspend(() => {
exports.zipWith = zipWith;
const firstSuccessOf = effects => suspend(() => {
const list = Chunk.fromIterable(effects);

@@ -1422,38 +1189,17 @@ if (!Chunk.isNonEmpty(list)) {

return Chunk.reduce(Chunk.tailNonEmpty(list), Chunk.headNonEmpty(list), (left, right) => orElse(left, () => right));
}).traced(trace));
});
/**
* @category instances
* @category do notation
* @since 1.0.0
*/
exports.firstSuccessOf = firstSuccessOf;
const SemiCoproduct = {
imap,
coproduct: (self, that) => orElse(self, () => that),
coproductMany: (self, rest) => firstSuccessOf([self, ...rest])
};
const Do = /*#__PURE__*/succeed({});
/**
* @category instances
* @since 1.0.0
*/
exports.SemiCoproduct = SemiCoproduct;
const SemiAlternative = {
map,
imap,
coproduct: SemiCoproduct.coproduct,
coproductMany: SemiCoproduct.coproductMany
};
/**
* @category do notation
* @since 1.0.0
*/
exports.SemiAlternative = SemiAlternative;
const Do = /*#__PURE__*/of_.Do(Pointed);
/**
* @category do notation
* @since 1.0.0
*/
exports.Do = Do;
const bind = /*#__PURE__*/chainable.bind(Chainable);
const bind = stm.bind;
exports.bind = bind;
const let_ = /*#__PURE__*/covariant.let(Covariant);
const let_ = stm.let_;
exports.let = let_;

@@ -1464,46 +1210,4 @@ /**

*/
const letDiscard = /*#__PURE__*/covariant.letDiscard(Covariant);
/**
* @category do notation
* @since 1.0.0
*/
exports.letDiscard = letDiscard;
const bindDiscard = /*#__PURE__*/semiProduct.bindDiscard(SemiProduct);
/**
* @category do notation
* @since 1.0.0
*/
exports.bindDiscard = bindDiscard;
const bindTo = /*#__PURE__*/invariant.bindTo(SemiProduct);
/**
* @category utils
* @since 1.0.0
*/
const bindTo = stm.bindTo;
exports.bindTo = bindTo;
const nonEmptyStruct = /*#__PURE__*/semiProduct.nonEmptyStruct(SemiProduct);
/**
* @category utils
* @since 1.0.0
*/
exports.nonEmptyStruct = nonEmptyStruct;
const nonEmptyTuple = /*#__PURE__*/semiProduct.nonEmptyTuple(SemiProduct);
/**
* @category utils
* @since 1.0.0
*/
exports.nonEmptyTuple = nonEmptyTuple;
const getFailureSemigroup = /*#__PURE__*/semiApplicative.getSemigroup(SemiApplicative);
/**
* @category utils
* @since 1.0.0
*/
exports.getFailureSemigroup = getFailureSemigroup;
const getFirstSuccessSemigroup = /*#__PURE__*/semiCoproduct.getSemigroup(SemiCoproduct);
/**
* @category utils
* @since 1.0.0
*/
exports.getFirstSuccessSemigroup = getFirstSuccessSemigroup;
const getFailureMonoid = /*#__PURE__*/applicative.getMonoid(Applicative);
exports.getFailureMonoid = getFailureMonoid;
//# sourceMappingURL=STM.js.map

@@ -5,4 +5,4 @@ /**

import type * as Option from "@effect/data/Option";
import type * as Order from "@effect/data/Order";
import type { Predicate } from "@effect/data/Predicate";
import type * as Order from "@effect/data/typeclass/Order";
import type * as STM from "@effect/stm/STM";

@@ -9,0 +9,0 @@ /**

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

exports.updateSTM = exports.update = exports.transformSTM = exports.transform = exports.toArray = exports.someSTM = exports.some = exports.size = exports.reduceSTM = exports.reduceOptionSTM = exports.reduceOption = exports.reduce = exports.minOption = exports.maxOption = exports.make = exports.lastOption = exports.headOption = exports.get = exports.fromIterable = exports.forEach = exports.findLastSTM = exports.findLastIndexFrom = exports.findLastIndex = exports.findLast = exports.findFirstSTM = exports.findFirstIndexWhereSTM = exports.findFirstIndexWhereFromSTM = exports.findFirstIndexWhereFrom = exports.findFirstIndexWhere = exports.findFirstIndexFrom = exports.findFirstIndex = exports.findFirst = exports.everySTM = exports.every = exports.empty = exports.countSTM = exports.count = exports.contains = exports.collectFirstSTM = exports.collectFirst = exports.TArrayTypeId = void 0;
var internal = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/stm/internal_effect_untraced/tArray"));
var internal = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/stm/internal/tArray"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }

@@ -10,0 +10,0 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

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

exports.succeed = exports.poll = exports.make = exports.fail = exports.done = exports.await = exports.TDeferredTypeId = void 0;
var internal = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/stm/internal_effect_untraced/tDeferred"));
var internal = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/stm/internal/tDeferred"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }

@@ -10,0 +10,0 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

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

exports.unbounded = exports.subscribeScoped = exports.subscribe = exports.sliding = exports.size = exports.publishAll = exports.publish = exports.isShutdown = exports.isFull = exports.isEmpty = exports.dropping = exports.capacity = exports.bounded = exports.awaitShutdown = exports.THubTypeId = void 0;
var internal = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/stm/internal_effect_untraced/tHub"));
var internal = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/stm/internal/tHub"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }

@@ -10,0 +10,0 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

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

exports.values = exports.updateWith = exports.transformValuesSTM = exports.transformValues = exports.transformSTM = exports.transform = exports.toReadonlyMap = exports.toReadonlyArray = exports.toHashMap = exports.toChunk = exports.takeSomeSTM = exports.takeSome = exports.takeFirstSTM = exports.takeFirst = exports.size = exports.setIfAbsent = exports.set = exports.retainIfDiscard = exports.retainIf = exports.removeIfDiscard = exports.removeIf = exports.removeAll = exports.remove = exports.reduceWithIndexSTM = exports.reduceWithIndex = exports.reduceSTM = exports.reduce = exports.merge = exports.make = exports.keys = exports.isEmpty = exports.has = exports.getOrElse = exports.get = exports.fromIterable = exports.forEach = exports.findSTM = exports.findAllSTM = exports.findAll = exports.find = exports.empty = exports.TMapTypeId = void 0;
var internal = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/stm/internal_effect_untraced/tMap"));
var internal = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/stm/internal/tMap"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }

@@ -10,0 +10,0 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

@@ -5,4 +5,4 @@ /**

import type * as Option from "@effect/data/Option";
import type * as Order from "@effect/data/Order";
import type { Predicate } from "@effect/data/Predicate";
import type * as Order from "@effect/data/typeclass/Order";
import type * as STM from "@effect/stm/STM";

@@ -9,0 +9,0 @@ /**

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

exports.toReadonlyArray = exports.toArray = exports.takeUpTo = exports.takeOption = exports.takeAll = exports.take = exports.size = exports.retainIf = exports.removeIf = exports.peekOption = exports.peek = exports.offerAll = exports.offer = exports.make = exports.isNonEmpty = exports.isEmpty = exports.fromIterable = exports.empty = exports.TPriorityQueueTypeId = void 0;
var internal = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/stm/internal_effect_untraced/tPriorityQueue"));
var internal = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/stm/internal/tPriorityQueue"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }

@@ -10,0 +10,0 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

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

exports.unbounded = exports.takeUpTo = exports.takeN = exports.takeBetween = exports.takeAll = exports.take = exports.sliding = exports.size = exports.shutdown = exports.seek = exports.poll = exports.peekOption = exports.peek = exports.offerAll = exports.offer = exports.isTQueue = exports.isTEnqueue = exports.isTDequeue = exports.isShutdown = exports.isFull = exports.isEmpty = exports.dropping = exports.capacity = exports.bounded = exports.awaitShutdown = exports.TEnqueueTypeId = exports.TDequeueTypeId = void 0;
var internal = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/stm/internal_effect_untraced/tQueue"));
var internal = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/stm/internal/tQueue"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }

@@ -10,0 +10,0 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

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

exports.shuffle = exports.nextRange = exports.nextIntBetween = exports.nextInt = exports.nextBoolean = exports.next = exports.live = exports.Tag = exports.TRandomTypeId = void 0;
var internal = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/stm/internal_effect_untraced/tRandom"));
var internal = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/stm/internal/tRandom"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }

@@ -10,0 +10,0 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

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

exports.writeLocks = exports.writeLocked = exports.writeLock = exports.withWriteLock = exports.withReadLock = exports.withLock = exports.releaseWrite = exports.releaseRead = exports.readLocks = exports.readLocked = exports.readLock = exports.make = exports.locked = exports.lock = exports.fiberWriteLocks = exports.fiberReadLocks = exports.acquireWrite = exports.acquireRead = exports.TReentrantLockTypeId = void 0;
var internal = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/stm/internal_effect_untraced/tReentrantLock"));
var internal = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/stm/internal/tReentrantLock"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }

@@ -10,0 +10,0 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

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

exports.updateSomeAndGet = exports.updateSome = exports.updateAndGet = exports.update = exports.setAndGet = exports.set = exports.modifySome = exports.modify = exports.make = exports.getAndUpdateSome = exports.getAndUpdate = exports.getAndSet = exports.get = exports.TRefTypeId = void 0;
var internal = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/stm/internal_effect_untraced/tRef"));
var internal = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/stm/internal/tRef"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }

@@ -10,0 +10,0 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

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

exports.withPermitsScoped = exports.withPermits = exports.withPermitScoped = exports.withPermit = exports.unsafeMake = exports.releaseN = exports.release = exports.make = exports.available = exports.acquireN = exports.acquire = exports.TSemaphoreTypeId = void 0;
var internal = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/stm/internal_effect_untraced/tSemaphore"));
var internal = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/stm/internal/tSemaphore"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }

@@ -10,0 +10,0 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

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

exports.union = exports.transformSTM = exports.transform = exports.toReadonlySet = exports.toReadonlyArray = exports.toHashSet = exports.toChunk = exports.takeSomeSTM = exports.takeSome = exports.takeFirstSTM = exports.takeFirst = exports.size = exports.retainIfDiscard = exports.retainIf = exports.removeIfDiscard = exports.removeIf = exports.removeAll = exports.remove = exports.reduceSTM = exports.reduce = exports.make = exports.isEmpty = exports.intersection = exports.has = exports.fromIterable = exports.forEach = exports.empty = exports.difference = exports.add = exports.TSetTypeId = void 0;
var internal = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/stm/internal_effect_untraced/tSet"));
var internal = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/stm/internal/tSet"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }

@@ -10,0 +10,0 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

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

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

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 too big to display

Sorry, the diff of this file is too big to display

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

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc