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.9.0 to 1.9.1

13

dist/useForm.js

@@ -169,9 +169,14 @@ "use strict";

}, [errors, latestValidation, setValidationError, values, refs, setValue]);
const reset = (0, react_1.useCallback)((initialValues = {}) => {
// @ts-expect-error it's fine if we don't specify all the values
setValues(initialValues);
const reset = (0, react_1.useCallback)((values) => {
setErrors({});
}, [setValues, setErrors]);
Object.values(refs.current).forEach((ref) => {
ref?.reset();
});
if (values) {
// @ts-expect-error it's fine if we don't specify all the values
setValues(values);
}
}, [setValues, setErrors, refs]);
return { handleSubmit, setValidationError, setValue, values, itemProps, focus, reset };
}
exports.useForm = useForm;
{
"name": "@raycast/utils",
"version": "1.9.0",
"version": "1.9.1",
"description": "Set of utilities to streamline building Raycast extensions",

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

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