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.0.4 to 0.0.5

1

internal/core.js

@@ -224,2 +224,3 @@ "use strict";

this.tracesInStack = 0;
Equal.considerByRef(this);
this.env = r0;

@@ -226,0 +227,0 @@ }

@@ -7,2 +7,5 @@ "use strict";

exports.Versioned = void 0;
var Equal = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fp-ts/data/Equal"));
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); }
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; }
/** @internal */

@@ -12,2 +15,3 @@ class Versioned {

this.value = value;
Equal.considerByRef(this);
}

@@ -14,0 +18,0 @@ }

@@ -11,2 +11,3 @@ "use strict";

var Versioned = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/stm/internal/stm/versioned"));
var Equal = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fp-ts/data/Equal"));
var _Function = /*#__PURE__*/require("@fp-ts/data/Function");

@@ -30,2 +31,3 @@ var Option = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fp-ts/data/Option"));

this[_a] = tRefVariance;
Equal.considerByRef(this);
this.versioned = new Versioned.Versioned(value);

@@ -32,0 +34,0 @@ this.todos = new Map();

@@ -15,2 +15,3 @@ "use strict";

var STM = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/stm/STM"));
var Equal = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fp-ts/data/Equal"));
var _Function = /*#__PURE__*/require("@fp-ts/data/Function");

@@ -30,2 +31,3 @@ 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); }

this[_a] = TSemaphoreTypeId;
Equal.considerByRef(this);
}

@@ -32,0 +34,0 @@ }

4

package.json
{
"name": "@effect/stm",
"version": "0.0.4",
"version": "0.0.5",
"license": "MIT",

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

"dependencies": {
"@effect/io": "~0.0.41",
"@effect/io": "~0.0.42",
"@fp-ts/core": "~0.0.11",

@@ -13,0 +13,0 @@ "@fp-ts/data": "~0.0.28"

@@ -418,2 +418,3 @@ import * as Cause from "@effect/io/Cause"

) {
Equal.considerByRef(this)
this.env = r0 as Context.Context<unknown>

@@ -420,0 +421,0 @@ }

@@ -0,4 +1,8 @@

import * as Equal from "@fp-ts/data/Equal"
/** @internal */
export class Versioned<A> {
constructor(readonly value: A) {}
constructor(readonly value: A) {
Equal.considerByRef(this)
}
}

@@ -9,2 +9,3 @@ import { getCallTrace } from "@effect/io/Debug"

import type * as TRef from "@effect/stm/TRef"
import * as Equal from "@fp-ts/data/Equal"
import { pipe } from "@fp-ts/data/Function"

@@ -34,2 +35,3 @@ import * as Option from "@fp-ts/data/Option"

constructor(value: A) {
Equal.considerByRef(this)
this.versioned = new Versioned.Versioned(value)

@@ -36,0 +38,0 @@ this.todos = new Map()

@@ -10,2 +10,3 @@ import * as Cause from "@effect/io/Cause"

import type * as TSemaphore from "@effect/stm/TSemaphore"
import * as Equal from "@fp-ts/data/Equal"
import { pipe } from "@fp-ts/data/Function"

@@ -24,3 +25,5 @@

readonly [TSemaphoreTypeId]: TSemaphore.TSemaphoreTypeId = TSemaphoreTypeId
constructor(readonly permits: TRef.TRef<number>) {}
constructor(readonly permits: TRef.TRef<number>) {
Equal.considerByRef(this)
}
}

@@ -27,0 +30,0 @@

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