@effect/stm
Advanced tools
Comparing version 0.0.13 to 0.0.14
@@ -109,3 +109,3 @@ "use strict"; | ||
/** @internal */ | ||
const live = () => Layer.fromEffect(Tag)(core.commit(core.map(seed => new TRandomImpl(seed))(tRef.make(new Random.PCGRandom(Math.random() * 4294967296 >>> 0).getState())))); | ||
const live = () => Layer.effect(Tag)(core.commit(core.map(seed => new TRandomImpl(seed))(tRef.make(new Random.PCGRandom(Math.random() * 4294967296 >>> 0).getState())))); | ||
/** | ||
@@ -112,0 +112,0 @@ * @macro traced |
{ | ||
"name": "@effect/stm", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"license": "MIT", | ||
@@ -10,3 +10,3 @@ "repository": { | ||
"dependencies": { | ||
"@effect/io": "~0.0.57", | ||
"@effect/io": "~0.0.61", | ||
"@fp-ts/core": "~0.0.11", | ||
@@ -13,0 +13,0 @@ "@fp-ts/data": "~0.0.36" |
@@ -147,3 +147,3 @@ import { getCallTrace } from "@effect/io/Debug" | ||
export const live = (): Layer.Layer<never, never, TRandom.TRandom> => | ||
Layer.fromEffect(Tag)(pipe( | ||
Layer.effect(Tag)(pipe( | ||
tRef.make(new Random.PCGRandom((Math.random() * 4294967296) >>> 0).getState()), | ||
@@ -150,0 +150,0 @@ core.map((seed) => new TRandomImpl(seed)), |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1565141
Updated@effect/io@~0.0.61