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

optimism

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

optimism - npm Package Compare versions

Comparing version 0.6.4 to 0.6.5

23

lib/local.js
"use strict";
var fakeNullFiber = function Fiber(){};
var fakeNullFiber = new (function Fiber(){});
var localKey = "_optimism_local";

@@ -10,14 +10,11 @@

try {
var fiberPath = require.resolve("fibers");
} catch (e) {}
if (fiberPath) {
var Fiber = require(fiberPath);
// If we were able to require("fibers"), redefine the getCurrentFiber
// function so that it has a chance to return Fiber.current.
getCurrentFiber = function () {
return Fiber.current || fakeNullFiber;
};
if (typeof module === "object") {
try {
var Fiber = module.require("fibers");
// If we were able to require fibers, redefine the getCurrentFiber
// function so that it has a chance to return Fiber.current.
getCurrentFiber = function () {
return Fiber.current || fakeNullFiber;
};
} catch (e) {}
}

@@ -24,0 +21,0 @@

{
"name": "optimism",
"version": "0.6.4",
"version": "0.6.5",
"author": "Ben Newman <ben@benjamn.com>",

@@ -5,0 +5,0 @@ "description": "Composable reactive caching with efficient invalidation.",

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