@raycast/utils
Advanced tools
Comparing version 1.4.16 to 1.4.17
@@ -8,2 +8,3 @@ "use strict"; | ||
const useLatest_1 = require("./useLatest"); | ||
const handle_error_toast_action_1 = require("./handle-error-toast-action"); | ||
function usePromise(fn, args, options) { | ||
@@ -59,9 +60,3 @@ const lastCallId = (0, react_1.useRef)(0); | ||
}, | ||
secondaryAction: { | ||
title: "Copy Logs", | ||
onAction(toast) { | ||
toast.hide(); | ||
api_1.Clipboard.copy(error?.stack || error?.message || ""); | ||
}, | ||
}, | ||
secondaryAction: (0, handle_error_toast_action_1.handleErrorToastAction)(error), | ||
}); | ||
@@ -68,0 +63,0 @@ } |
@@ -19,2 +19,3 @@ "use strict"; | ||
const exec_utils_1 = require("./exec-utils"); | ||
const handle_error_toast_action_1 = require("./handle-error-toast-action"); | ||
/** | ||
@@ -78,9 +79,3 @@ * Executes a query on a local SQL database and returns the {@link AsyncState} corresponding to the query of the command. The last value will be kept between command runs. | ||
message: error.message, | ||
primaryAction: { | ||
title: "Copy Logs", | ||
onAction(toast) { | ||
toast.hide(); | ||
api_1.Clipboard.copy(error?.stack || error?.message || ""); | ||
}, | ||
}, | ||
primaryAction: (0, handle_error_toast_action_1.handleErrorToastAction)(error), | ||
}); | ||
@@ -87,0 +82,0 @@ } |
{ | ||
"name": "@raycast/utils", | ||
"version": "1.4.16", | ||
"version": "1.4.17", | ||
"description": "Set of utilities to streamline building Raycast extensions", | ||
@@ -31,3 +31,3 @@ "author": "Raycast Technologies Ltd.", | ||
"dependencies": { | ||
"content-type": "^1.0.4", | ||
"content-type": "^1.0.5", | ||
"cross-fetch": "^3.1.5", | ||
@@ -34,0 +34,0 @@ "dequal": "^2.0.3", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
124926
74
2704
3
Updatedcontent-type@^1.0.5