@raycast/utils
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -39,3 +39,3 @@ /// <reference types="react" /> | ||
permissionPriming?: string; | ||
} & Omit<PromiseOptions<(query: string) => Promise<T[]>>, "abortable">): { | ||
} & Omit<PromiseOptions<(database: string, query: string) => Promise<T[]>>, "abortable">): { | ||
permissionView: JSX.Element | undefined; | ||
@@ -42,0 +42,0 @@ isLoading: boolean; |
@@ -89,3 +89,3 @@ "use strict"; | ||
let workaroundCopiedDb = undefined; | ||
return async (query) => { | ||
return async (databasePath, query) => { | ||
const abortSignal = abortable.current?.signal; | ||
@@ -128,3 +128,3 @@ const spawned = node_child_process_1.default.spawn("sqlite3", ["--json", "--readonly", databasePath, query], { | ||
return { | ||
...(0, usePromise_1.usePromise)(fn, [query], { ...usePromiseOptions, onError: handleError }), | ||
...(0, usePromise_1.usePromise)(fn, [databasePath, query], { ...usePromiseOptions, onError: handleError }), | ||
permissionView, | ||
@@ -131,0 +131,0 @@ }; |
{ | ||
"name": "@raycast/utils", | ||
"version": "1.5.0", | ||
"version": "1.5.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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
105561
62
2284
1