New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@raycast/utils

Package Overview
Dependencies
Maintainers
8
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@raycast/utils - npm Package Compare versions

Comparing version 1.3.3 to 1.3.4

12

dist/useCachedState.js

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

if (typeof cachedState !== "undefined") {
if (cachedState === "undefined") {
return undefined;
}
return JSON.parse(cachedState, reviver);

@@ -57,4 +60,9 @@ }

const newValue = typeof updater === "function" ? updater(stateRef.current) : updater;
const stringifiedValue = JSON.stringify(newValue, replacer);
cache.set(keyRef.current, stringifiedValue);
if (typeof newValue === "undefined") {
cache.set(keyRef.current, "undefined");
}
else {
const stringifiedValue = JSON.stringify(newValue, replacer);
cache.set(keyRef.current, stringifiedValue);
}
return newValue;

@@ -61,0 +69,0 @@ }, [cache, keyRef, stateRef]);

2

package.json
{
"name": "@raycast/utils",
"version": "1.3.3",
"version": "1.3.4",
"description": "Set of utilities to streamline building Raycast extensions",

@@ -5,0 +5,0 @@ "author": "Raycast Technologies Ltd.",

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