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

@tauri-apps/api

Package Overview
Dependencies
Maintainers
4
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tauri-apps/api - npm Package Compare versions

Comparing version 1.0.0-rc.3 to 1.0.0-rc.4

app-240bb7bf.cjs

2

app.js

@@ -1,1 +0,1 @@

import"./tslib.es6-6e0f8414.js";import"./tauri-c3f7456b.js";export{g as getName,c as getTauriVersion,b as getVersion}from"./app-42cc3d2d.js";import"./tauri-94e4ec1e.js";
import"./tslib.es6-6e0f8414.js";import"./tauri-3fc238fd.js";export{g as getName,c as getTauriVersion,b as getVersion}from"./app-c15953c5.js";import"./tauri-c8e78b35.js";
# Changelog
## \[1.0.0-rc.4]
- Encode the file path in the `convertFileSrc` function.
- [42e8d9cf](https://www.github.com/tauri-apps/tauri/commit/42e8d9cf925089e9ad591198ee04b0cc0a0eed48) fix(api): encode file path in `convertFileSrc` function, closes [#3841](https://www.github.com/tauri-apps/tauri/pull/3841) ([#3846](https://www.github.com/tauri-apps/tauri/pull/3846)) on 2022-04-02
- Added `theme` getter to `WebviewWindow`.
- [4cebcf6d](https://www.github.com/tauri-apps/tauri/commit/4cebcf6da7cad1953e0f01b426afac3b5ef1f81e) feat: expose theme APIs, closes [#3903](https://www.github.com/tauri-apps/tauri/pull/3903) ([#3937](https://www.github.com/tauri-apps/tauri/pull/3937)) on 2022-04-21
- Added `theme` field to `WindowOptions`.
- [4cebcf6d](https://www.github.com/tauri-apps/tauri/commit/4cebcf6da7cad1953e0f01b426afac3b5ef1f81e) feat: expose theme APIs, closes [#3903](https://www.github.com/tauri-apps/tauri/pull/3903) ([#3937](https://www.github.com/tauri-apps/tauri/pull/3937)) on 2022-04-21
- Added the `setCursorGrab`, `setCursorVisible`, `setCursorIcon` and `setCursorPosition` methods to the `WebviewWindow` class.
- [c54ddfe9](https://www.github.com/tauri-apps/tauri/commit/c54ddfe9338e7eb90b4d5b02dfde687d432d5bc1) feat: expose window cursor APIs, closes [#3888](https://www.github.com/tauri-apps/tauri/pull/3888) [#3890](https://www.github.com/tauri-apps/tauri/pull/3890) ([#3935](https://www.github.com/tauri-apps/tauri/pull/3935)) on 2022-04-21
- **Breaking change:** The process Command API stdio lines now includes the trailing `\r`.
- [b5622882](https://www.github.com/tauri-apps/tauri/commit/b5622882cf3748e1e5a90915f415c0cd922aaaf8) fix(cli): exit on non-compilation Cargo errors, closes [#3930](https://www.github.com/tauri-apps/tauri/pull/3930) ([#3942](https://www.github.com/tauri-apps/tauri/pull/3942)) on 2022-04-22
- Added the `tauri://theme-changed` event.
- [4cebcf6d](https://www.github.com/tauri-apps/tauri/commit/4cebcf6da7cad1953e0f01b426afac3b5ef1f81e) feat: expose theme APIs, closes [#3903](https://www.github.com/tauri-apps/tauri/pull/3903) ([#3937](https://www.github.com/tauri-apps/tauri/pull/3937)) on 2022-04-21
## \[1.0.0-rc.3]

@@ -4,0 +19,0 @@

@@ -1,1 +0,1 @@

import"./tslib.es6-6e0f8414.js";import"./tauri-c3f7456b.js";export{g as getMatches}from"./cli-10ae93fb.js";import"./tauri-94e4ec1e.js";
import"./tslib.es6-6e0f8414.js";import"./tauri-3fc238fd.js";export{g as getMatches}from"./cli-6d9670a2.js";import"./tauri-c8e78b35.js";

@@ -1,1 +0,1 @@

import"./tslib.es6-6e0f8414.js";import"./tauri-c3f7456b.js";export{r as readText,w as writeText}from"./clipboard-9faaff6b.js";import"./tauri-94e4ec1e.js";
import"./tslib.es6-6e0f8414.js";import"./tauri-3fc238fd.js";export{r as readText,w as writeText}from"./clipboard-a62a43e0.js";import"./tauri-c8e78b35.js";

@@ -57,3 +57,3 @@ /** Extension filters for the file dialog. */

*/
declare function open(options?: OpenDialogOptions): Promise<string | string[]>;
declare function open(options?: OpenDialogOptions): Promise<null | string | string[]>;
/**

@@ -60,0 +60,0 @@ * Open a file/directory save dialog.

@@ -1,1 +0,1 @@

import"./tslib.es6-6e0f8414.js";import"./tauri-c3f7456b.js";export{a as ask,c as confirm,m as message,o as open,s as save}from"./dialog-6470b656.js";import"./tauri-94e4ec1e.js";
import"./tslib.es6-6e0f8414.js";import"./tauri-3fc238fd.js";export{a as ask,c as confirm,m as message,o as open,s as save}from"./dialog-2a44d024.js";import"./tauri-c8e78b35.js";

@@ -1,1 +0,1 @@

import"./tslib.es6-6e0f8414.js";import"./event-975cbc7a.js";export{a as emit,l as listen,o as once}from"./event-f97424d7.js";import"./tauri-c3f7456b.js";import"./tauri-94e4ec1e.js";
import"./tslib.es6-6e0f8414.js";import"./event-423d7017.js";export{a as emit,l as listen,o as once}from"./event-1e11bdaf.js";import"./tauri-3fc238fd.js";import"./tauri-c8e78b35.js";

@@ -1,1 +0,1 @@

import"./tslib.es6-6e0f8414.js";import"./tauri-c3f7456b.js";export{B as BaseDirectory,B as Dir,g as copyFile,d as createDir,a as readBinaryFile,c as readDir,r as readTextFile,e as removeDir,h as removeFile,i as renameFile,b as writeBinaryFile,w as writeFile}from"./fs-9194ac62.js";import"./tauri-94e4ec1e.js";
import"./tslib.es6-6e0f8414.js";import"./tauri-3fc238fd.js";export{B as BaseDirectory,B as Dir,g as copyFile,d as createDir,a as readBinaryFile,c as readDir,r as readTextFile,e as removeDir,h as removeFile,i as renameFile,b as writeBinaryFile,w as writeFile}from"./fs-f1ae5df7.js";import"./tauri-c8e78b35.js";

@@ -1,1 +0,1 @@

import"./tslib.es6-6e0f8414.js";import"./tauri-c3f7456b.js";import"./tauri-94e4ec1e.js";export{i as isRegistered,r as register,a as registerAll,u as unregister,b as unregisterAll}from"./globalShortcut-3e27c211.js";
import"./tslib.es6-6e0f8414.js";import"./tauri-3fc238fd.js";import"./tauri-c8e78b35.js";export{i as isRegistered,r as register,a as registerAll,u as unregister,b as unregisterAll}from"./globalShortcut-7a2b88b1.js";

@@ -13,3 +13,3 @@ import { WindowLabel } from '../window';

}
export declare type EventName = LiteralUnion<'tauri://update' | 'tauri://update-available' | 'tauri://update-download-progress' | 'tauri://update-install' | 'tauri://update-status' | 'tauri://resize' | 'tauri://move' | 'tauri://close-requested' | 'tauri://focus' | 'tauri://blur' | 'tauri://scale-change' | 'tauri://menu' | 'tauri://file-drop' | 'tauri://file-drop-hover' | 'tauri://file-drop-cancelled', string>;
export declare type EventName = LiteralUnion<'tauri://update' | 'tauri://update-available' | 'tauri://update-download-progress' | 'tauri://update-install' | 'tauri://update-status' | 'tauri://resize' | 'tauri://move' | 'tauri://close-requested' | 'tauri://focus' | 'tauri://blur' | 'tauri://scale-change' | 'tauri://menu' | 'tauri://file-drop' | 'tauri://file-drop-hover' | 'tauri://file-drop-cancelled' | 'tauri://theme-changed', string>;
export declare type EventCallback<T> = (event: Event<T>) => void;

@@ -16,0 +16,0 @@ export declare type UnlistenFn = () => void;

@@ -10,3 +10,8 @@ interface ClientOptions {

}
declare type Part = string | Uint8Array;
interface FilePart<T> {
value: string | T;
mime?: string;
fileName?: string;
}
declare type Part = string | Uint8Array | FilePart<Uint8Array>;
/** The body object to be used on POST and PUT requests. */

@@ -19,4 +24,24 @@ declare class Body {

/**
* Creates a new form data body.
* Creates a new form data body. The form data is an object where each key is the entry name,
* and the value is either a string or a file object.
*
* By default it sets the `application/x-www-form-urlencoded` Content-Type header,
* but you can set it to `multipart/form-data` if the Cargo feature `http-multipart` is enabled.
*
* Note that a file path must be allowed in the `fs` allowlist scope.
*
* # Examples
*
* ```js
* import { Body } from "@tauri-apps/api/http"
* Body.form({
* key: 'value',
* image: {
* file: '/path/to/file', // either a path of an array buffer of the file contents
* mime: 'image/jpeg', // optional
* fileName: 'image.jpg' // optional
* }
* })
* ```
*
* @param data The body data.

@@ -23,0 +48,0 @@ *

@@ -1,1 +0,1 @@

import"./tslib.es6-6e0f8414.js";import"./tauri-c3f7456b.js";export{B as Body,C as Client,R as Response,a as ResponseType,f as fetch,g as getClient}from"./http-0b777fc2.js";import"./tauri-94e4ec1e.js";
import"./tslib.es6-6e0f8414.js";import"./tauri-3fc238fd.js";export{B as Body,C as Client,R as Response,a as ResponseType,f as fetch,g as getClient}from"./http-d562182a.js";import"./tauri-c8e78b35.js";

@@ -1,1 +0,1 @@

import{i as t}from"./tauri-94e4ec1e.js";export{a as tauri}from"./tauri-94e4ec1e.js";export{f as fs}from"./fs-9194ac62.js";export{h as http}from"./http-0b777fc2.js";export{p as path}from"./path-8b82d11e.js";export{s as shell}from"./shell-606f3ca2.js";export{w as window}from"./window-bdb78264.js";export{o as os}from"./os-08466882.js";export{a as app}from"./app-42cc3d2d.js";export{c as cli}from"./cli-10ae93fb.js";export{c as clipboard}from"./clipboard-9faaff6b.js";export{d as dialog}from"./dialog-6470b656.js";export{e as event}from"./event-f97424d7.js";export{g as globalShortcut}from"./globalShortcut-3e27c211.js";export{n as notification}from"./notification-f9090ece.js";export{p as process}from"./process-c56a56ee.js";export{u as updater}from"./updater-9b96cf6f.js";import"./tslib.es6-6e0f8414.js";import"./tauri-c3f7456b.js";import"./os-check-094ffe86.js";import"./event-975cbc7a.js";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t){var e=function(t){var e,o=Object.prototype,n=o.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{s({},"")}catch(t){s=function(t,r,e){return t[r]=e}}function f(t,r,e,o){var n=r&&r.prototype instanceof v?r:v,i=Object.create(n.prototype),a=new G(o||[]);return i._invoke=function(t,r,e){var o=l;return function(n,i){if(o===y)throw new Error("Generator is already running");if(o===m){if("throw"===n)throw i;return T()}for(e.method=n,e.arg=i;;){var a=e.delegate;if(a){var c=S(a,e);if(c){if(c===d)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(o===l)throw o=m,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);o=y;var u=h(t,r,e);if("normal"===u.type){if(o=e.done?m:p,u.arg===d)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(o=m,e.method="throw",e.arg=u.arg)}}}(t,e,a),i}function h(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var l="suspendedStart",p="suspendedYield",y="executing",m="completed",d={};function v(){}function g(){}function w(){}var b={};s(b,a,(function(){return this}));var x=Object.getPrototypeOf,j=x&&x(x(N([])));j&&j!==o&&n.call(j,a)&&(b=j);var L=w.prototype=v.prototype=Object.create(b);function E(t){["next","throw","return"].forEach((function(r){s(t,r,(function(t){return this._invoke(r,t)}))}))}function _(t,e){function o(i,a,c,u){var s=h(t[i],t,a);if("throw"!==s.type){var f=s.arg,l=f.value;return l&&"object"===r(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){o("next",t,c,u)}),(function(t){o("throw",t,c,u)})):e.resolve(l).then((function(t){f.value=t,c(f)}),(function(t){return o("throw",t,c,u)}))}u(s.arg)}var i;this._invoke=function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}}function S(t,r){var o=t.iterator[r.method];if(o===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,S(t,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=h(o,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,d;var i=n.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function O(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function k(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function G(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function N(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}return{next:T}}function T(){return{value:e,done:!0}}return g.prototype=w,s(L,"constructor",w),s(w,"constructor",g),g.displayName=s(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===g||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,s(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},t.awrap=function(t){return{__await:t}},E(_.prototype),s(_.prototype,c,(function(){return this})),t.AsyncIterator=_,t.async=function(r,e,o,n,i){void 0===i&&(i=Promise);var a=new _(f(r,e,o,n),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(L),s(L,u,"Generator"),s(L,a,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var o=r.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},t.values=N,G.prototype={constructor:G,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(o,n){return c.type="throw",c.arg=t,r.next=o,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),d},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),k(e),d}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var o=e.completion;if("throw"===o.type){var n=o.arg;k(e)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,o){return this.delegate={iterator:N(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"===("undefined"==typeof globalThis?"undefined":r(globalThis))?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}({exports:{}});var i=t;export{i as invoke};
import{i as t}from"./tauri-c8e78b35.js";export{a as tauri}from"./tauri-c8e78b35.js";export{f as fs}from"./fs-f1ae5df7.js";export{h as http}from"./http-d562182a.js";export{p as path}from"./path-d0e12767.js";export{s as shell}from"./shell-6ca25640.js";export{w as window}from"./window-6d9e129a.js";export{o as os}from"./os-1b7b3262.js";export{a as app}from"./app-c15953c5.js";export{c as cli}from"./cli-6d9670a2.js";export{c as clipboard}from"./clipboard-a62a43e0.js";export{d as dialog}from"./dialog-2a44d024.js";export{e as event}from"./event-1e11bdaf.js";export{g as globalShortcut}from"./globalShortcut-7a2b88b1.js";export{n as notification}from"./notification-85ce9482.js";export{p as process}from"./process-824cb6cc.js";export{u as updater}from"./updater-1bd7bae4.js";import"./tslib.es6-6e0f8414.js";import"./tauri-3fc238fd.js";import"./os-check-094ffe86.js";import"./event-423d7017.js";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t){var e=function(t){var e,o=Object.prototype,n=o.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{s({},"")}catch(t){s=function(t,r,e){return t[r]=e}}function f(t,r,e,o){var n=r&&r.prototype instanceof v?r:v,i=Object.create(n.prototype),a=new G(o||[]);return i._invoke=function(t,r,e){var o=l;return function(n,i){if(o===y)throw new Error("Generator is already running");if(o===d){if("throw"===n)throw i;return T()}for(e.method=n,e.arg=i;;){var a=e.delegate;if(a){var c=S(a,e);if(c){if(c===m)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(o===l)throw o=d,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);o=y;var u=h(t,r,e);if("normal"===u.type){if(o=e.done?d:p,u.arg===m)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(o=d,e.method="throw",e.arg=u.arg)}}}(t,e,a),i}function h(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var l="suspendedStart",p="suspendedYield",y="executing",d="completed",m={};function v(){}function g(){}function w(){}var b={};s(b,a,(function(){return this}));var x=Object.getPrototypeOf,j=x&&x(x(N([])));j&&j!==o&&n.call(j,a)&&(b=j);var L=w.prototype=v.prototype=Object.create(b);function E(t){["next","throw","return"].forEach((function(r){s(t,r,(function(t){return this._invoke(r,t)}))}))}function _(t,e){function o(i,a,c,u){var s=h(t[i],t,a);if("throw"!==s.type){var f=s.arg,l=f.value;return l&&"object"===r(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){o("next",t,c,u)}),(function(t){o("throw",t,c,u)})):e.resolve(l).then((function(t){f.value=t,c(f)}),(function(t){return o("throw",t,c,u)}))}u(s.arg)}var i;this._invoke=function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}}function S(t,r){var o=t.iterator[r.method];if(o===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,S(t,r),"throw"===r.method))return m;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var n=h(o,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,m;var i=n.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function O(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function k(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function G(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function N(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}return{next:T}}function T(){return{value:e,done:!0}}return g.prototype=w,s(L,"constructor",w),s(w,"constructor",g),g.displayName=s(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===g||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,s(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},t.awrap=function(t){return{__await:t}},E(_.prototype),s(_.prototype,c,(function(){return this})),t.AsyncIterator=_,t.async=function(r,e,o,n,i){void 0===i&&(i=Promise);var a=new _(f(r,e,o,n),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(L),s(L,u,"Generator"),s(L,a,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var o=r.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},t.values=N,G.prototype={constructor:G,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(o,n){return c.type="throw",c.arg=t,r.next=o,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),m},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),k(e),m}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var o=e.completion;if("throw"===o.type){var n=o.arg;k(e)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,o){return this.delegate={iterator:N(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=e),m}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"===("undefined"==typeof globalThis?"undefined":r(globalThis))?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}({exports:{}});var i=t;export{i as invoke};

@@ -1,1 +0,1 @@

import"./tslib.es6-6e0f8414.js";import"./tauri-c3f7456b.js";export{i as isPermissionGranted,r as requestPermission,s as sendNotification}from"./notification-f9090ece.js";import"./tauri-94e4ec1e.js";
import"./tslib.es6-6e0f8414.js";import"./tauri-3fc238fd.js";export{i as isPermissionGranted,r as requestPermission,s as sendNotification}from"./notification-85ce9482.js";import"./tauri-c8e78b35.js";

@@ -1,1 +0,1 @@

import"./tslib.es6-6e0f8414.js";import"./os-check-094ffe86.js";import"./tauri-c3f7456b.js";export{E as EOL,a as arch,p as platform,b as tempdir,t as type,v as version}from"./os-08466882.js";import"./tauri-94e4ec1e.js";
import"./tslib.es6-6e0f8414.js";import"./os-check-094ffe86.js";import"./tauri-3fc238fd.js";export{E as EOL,a as arch,p as platform,b as tempdir,t as type,v as version}from"./os-1b7b3262.js";import"./tauri-c8e78b35.js";
{
"name": "@tauri-apps/api",
"version": "1.0.0-rc.3",
"version": "1.0.0-rc.4",
"description": "Tauri API definitions",

@@ -121,33 +121,33 @@ "type": "module",

"devDependencies": {
"@babel/core": "7.17.8",
"@babel/core": "7.17.9",
"@babel/preset-env": "7.16.11",
"@babel/preset-typescript": "7.16.7",
"@rollup/plugin-babel": "5.3.1",
"@rollup/plugin-commonjs": "21.0.2",
"@rollup/plugin-node-resolve": "13.1.3",
"@rollup/plugin-sucrase": "4.0.2",
"@rollup/plugin-typescript": "8.3.1",
"@typescript-eslint/eslint-plugin": "5.16.0",
"@typescript-eslint/parser": "5.16.0",
"eslint": "8.11.0",
"@rollup/plugin-commonjs": "21.1.0",
"@rollup/plugin-node-resolve": "13.2.1",
"@rollup/plugin-sucrase": "4.0.3",
"@rollup/plugin-typescript": "8.3.2",
"@typescript-eslint/eslint-plugin": "5.20.0",
"@typescript-eslint/parser": "5.20.0",
"eslint": "8.13.0",
"eslint-config-prettier": "8.5.0",
"eslint-config-standard-with-typescript": "21.0.1",
"eslint-plugin-import": "2.25.4",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "6.0.0",
"eslint-plugin-security": "1.4.0",
"eslint-plugin-security": "1.5.0",
"lockfile-lint": "4.7.4",
"prettier": "2.6.0",
"prettier": "2.6.2",
"regenerator-runtime": "0.13.9",
"rimraf": "3.0.2",
"rollup": "2.70.1",
"rollup": "2.70.2",
"rollup-plugin-terser": "7.0.2",
"tslib": "2.3.1",
"typedoc": "0.22.13",
"typedoc-plugin-markdown": "3.11.14",
"typescript": "4.6.2"
"typedoc": "0.22.15",
"typedoc-plugin-markdown": "3.12.0",
"typescript": "4.6.3"
},
"dependencies": {
"type-fest": "2.12.1"
"type-fest": "2.12.2"
}
}

@@ -1,1 +0,1 @@

import"./tslib.es6-6e0f8414.js";import"./tauri-c3f7456b.js";export{B as BaseDirectory}from"./fs-9194ac62.js";import"./os-check-094ffe86.js";export{a as appDir,b as audioDir,B as basename,c as cacheDir,d as configDir,e as dataDir,u as delimiter,f as desktopDir,z as dirname,g as documentDir,h as downloadDir,i as executableDir,A as extname,j as fontDir,k as homeDir,C as isAbsolute,y as join,l as localDataDir,q as logDir,x as normalize,m as pictureDir,n as publicDir,w as resolve,r as resourceDir,o as runtimeDir,s as sep,t as templateDir,v as videoDir}from"./path-8b82d11e.js";import"./tauri-94e4ec1e.js";
import"./tslib.es6-6e0f8414.js";import"./tauri-3fc238fd.js";export{B as BaseDirectory}from"./fs-f1ae5df7.js";import"./os-check-094ffe86.js";export{a as appDir,b as audioDir,B as basename,c as cacheDir,d as configDir,e as dataDir,u as delimiter,f as desktopDir,z as dirname,g as documentDir,h as downloadDir,i as executableDir,A as extname,j as fontDir,k as homeDir,C as isAbsolute,y as join,l as localDataDir,q as logDir,x as normalize,m as pictureDir,n as publicDir,w as resolve,r as resourceDir,o as runtimeDir,s as sep,t as templateDir,v as videoDir}from"./path-d0e12767.js";import"./tauri-c8e78b35.js";

@@ -1,1 +0,1 @@

import"./tslib.es6-6e0f8414.js";import"./tauri-c3f7456b.js";export{e as exit,r as relaunch}from"./process-c56a56ee.js";import"./tauri-94e4ec1e.js";
import"./tslib.es6-6e0f8414.js";import"./tauri-3fc238fd.js";export{e as exit,r as relaunch}from"./process-824cb6cc.js";import"./tauri-c8e78b35.js";

@@ -1,1 +0,1 @@

import"./tslib.es6-6e0f8414.js";import"./tauri-c3f7456b.js";import"./tauri-94e4ec1e.js";export{a as Child,C as Command,E as EventEmitter,o as open}from"./shell-606f3ca2.js";
import"./tslib.es6-6e0f8414.js";import"./tauri-3fc238fd.js";import"./tauri-c8e78b35.js";export{a as Child,C as Command,E as EventEmitter,o as open}from"./shell-6ca25640.js";

@@ -1,1 +0,1 @@

import"./tslib.es6-6e0f8414.js";export{c as convertFileSrc,i as invoke,t as transformCallback}from"./tauri-94e4ec1e.js";
import"./tslib.es6-6e0f8414.js";export{c as convertFileSrc,i as invoke,t as transformCallback}from"./tauri-c8e78b35.js";

@@ -1,1 +0,1 @@

import"./tslib.es6-6e0f8414.js";import"./event-f97424d7.js";export{c as checkUpdate,i as installUpdate}from"./updater-9b96cf6f.js";import"./event-975cbc7a.js";import"./tauri-c3f7456b.js";import"./tauri-94e4ec1e.js";
import"./tslib.es6-6e0f8414.js";import"./event-1e11bdaf.js";export{c as checkUpdate,i as installUpdate}from"./updater-1bd7bae4.js";import"./event-423d7017.js";import"./tauri-3fc238fd.js";import"./tauri-c8e78b35.js";
import type { EventName, EventCallback, UnlistenFn } from './event';
declare type Theme = 'light' | 'dark';
/** Allows you to retrieve information about a given monitor. */

@@ -73,2 +74,3 @@ interface Monitor {

}
export declare type CursorIcon = 'default' | 'crosshair' | 'hand' | 'arrow' | 'move' | 'text' | 'wait' | 'help' | 'progress' | 'notAllowed' | 'contextMenu' | 'cell' | 'verticalText' | 'alias' | 'copy' | 'noDrop' | 'grab' | 'grabbing' | 'allScroll' | 'zoomIn' | 'zoomOut' | 'eResize' | 'nResize' | 'neResize' | 'nwResize' | 'sResize' | 'seResize' | 'swResize' | 'wResize' | 'ewResize' | 'nsResize' | 'neswResize' | 'nwseResize' | 'colResize' | 'rowResize';
/**

@@ -154,2 +156,4 @@ * Get an instance of `WebviewWindow` for the current webview window.

isVisible(): Promise<boolean>;
/** Gets the window's current visible state. */
theme(): Promise<Theme | null>;
/**

@@ -338,2 +342,44 @@ * Centers the window.

/**
* Grabs the cursor, preventing it from leaving the window.
*
* There's no guarantee that the cursor will be hidden. You should
* hide it by yourself if you want so.
*
* #### Platform-specific
*
* - **Linux:** Unsupported.
* - **macOS:** This locks the cursor in a fixed location, which looks visually awkward.
*
* @param grab `true` to grab the cursor icon, `false` to release it.
* @returns A promise indicating the success or failure of the operation.
*/
setCursorGrab(grab: boolean): Promise<void>;
/**
* Modifies the cursor's visibility.
*
* #### Platform-specific
*
* - **Windows:** The cursor is only hidden within the confines of the window.
* - **macOS:** The cursor is hidden as long as the window has input focus, even if the cursor is
* outside of the window.
*
* @param visible If `false`, this will hide the cursor. If `true`, this will show the cursor.
* @returns A promise indicating the success or failure of the operation.
*/
setCursorVisible(visible: boolean): Promise<void>;
/**
* Modifies the cursor icon of the window.
*
* @param icon The new cursor icon.
* @returns A promise indicating the success or failure of the operation.
*/
setCursorIcon(icon: CursorIcon): Promise<void>;
/**
* Changes the position of the cursor in window coordinates.
*
* @param position The new cursor position.
* @returns A promise indicating the success or failure of the operation.
*/
setCursorPosition(position: LogicalPosition | PhysicalPosition): Promise<void>;
/**
* Starts dragging the window.

@@ -431,3 +477,3 @@ *

* Whether the window is transparent or not.
* Note that on `macOS` this requires the `macos-private-api` feature flag, enabled under `tauri.conf.json > tauri > macosPrivateApi`.
* Note that on `macOS` this requires the `macos-private-api` feature flag, enabled under `tauri.conf.json > tauri > macOSPrivateApi`.
* WARNING: Using private APIs on `macOS` prevents your application from being accepted for the `App Store`.

@@ -452,2 +498,8 @@ */

fileDropEnabled?: boolean;
/**
* The initial window theme. Defaults to the system theme.
*
* Only implemented on Windows.
*/
theme?: Theme;
}

@@ -467,2 +519,2 @@ /**

export { WebviewWindow, WebviewWindowHandle, WindowManager, getCurrent, getAll, appWindow, LogicalSize, PhysicalSize, LogicalPosition, PhysicalPosition, UserAttentionType, currentMonitor, primaryMonitor, availableMonitors };
export type { Monitor, WindowOptions };
export type { Theme, Monitor, WindowOptions };

@@ -1,1 +0,1 @@

import"./tslib.es6-6e0f8414.js";import"./tauri-c3f7456b.js";import"./event-975cbc7a.js";export{e as LogicalPosition,L as LogicalSize,f as PhysicalPosition,P as PhysicalSize,U as UserAttentionType,W as WebviewWindow,a as WebviewWindowHandle,b as WindowManager,d as appWindow,i as availableMonitors,h as currentMonitor,c as getAll,g as getCurrent,p as primaryMonitor}from"./window-bdb78264.js";import"./tauri-94e4ec1e.js";
import"./tslib.es6-6e0f8414.js";import"./tauri-3fc238fd.js";import"./event-423d7017.js";export{e as LogicalPosition,L as LogicalSize,f as PhysicalPosition,P as PhysicalSize,U as UserAttentionType,W as WebviewWindow,a as WebviewWindowHandle,b as WindowManager,d as appWindow,i as availableMonitors,h as currentMonitor,c as getAll,g as getCurrent,p as primaryMonitor}from"./window-6d9e129a.js";import"./tauri-c8e78b35.js";

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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