@tauri-apps/api
Advanced tools
Comparing version 1.0.0-rc.1 to 1.0.0-rc.2
# Changelog | ||
## \[1.0.0-rc.2] | ||
- Do not crash if `__TAURI_METADATA__` is not set, log an error instead. | ||
- [9cb1059a](https://www.github.com/tauri-apps/tauri/commit/9cb1059aa3f81521ccc6da655243acfe0327cd98) fix(api): do not throw an exception if **TAURI_METADATA** is not set, fixes [#3554](https://www.github.com/tauri-apps/tauri/pull/3554) ([#3572](https://www.github.com/tauri-apps/tauri/pull/3572)) on 2022-03-03 | ||
- Reimplement endpoint to read file as string for performance. | ||
- [834ccc51](https://www.github.com/tauri-apps/tauri/commit/834ccc51539401d36a7dfa1c0982623c9c446a4c) feat(core): reimplement `readTextFile` for performance ([#3631](https://www.github.com/tauri-apps/tauri/pull/3631)) on 2022-03-07 | ||
- Fixes a regression on the `unlisten` command. | ||
- [76c791bd](https://www.github.com/tauri-apps/tauri/commit/76c791bd2b836d2055410e37e71716172a3f81ef) fix(core): regression on the unlisten function ([#3623](https://www.github.com/tauri-apps/tauri/pull/3623)) on 2022-03-06 | ||
## \[1.0.0-rc.1] | ||
@@ -4,0 +13,0 @@ |
@@ -26,2 +26,7 @@ /** Extension filters for the file dialog. */ | ||
directory?: boolean; | ||
/** | ||
* If `directory` is true, indicates that it will be read recursively later. | ||
* Defines whether subdirectories will be allowed on the scope or not. | ||
*/ | ||
recursive?: boolean; | ||
} | ||
@@ -42,4 +47,11 @@ /** Options for the save dialog. */ | ||
/** | ||
* Open a file/directory selection dialog | ||
* Open a file/directory selection dialog. | ||
* | ||
* The selected paths are added to the filesystem and asset protocol allowlist scopes. | ||
* When security is more important than the easy of use of this API, | ||
* prefer writing a dedicated command instead. | ||
* | ||
* Note that the allowlist scope change is not persisted, so the values are cleared when the application is restarted. | ||
* You can save it to the filesystem using [tauri-plugin-persisted-scope](https://github.com/tauri-apps/tauri-plugin-persisted-scope). | ||
* | ||
* @returns A promise resolving to the selected path(s) | ||
@@ -51,2 +63,9 @@ */ | ||
* | ||
* The selected path is added to the filesystem and asset protocol allowlist scopes. | ||
* When security is more important than the easy of use of this API, | ||
* prefer writing a dedicated command instead. | ||
* | ||
* Note that the allowlist scope change is not persisted, so the values are cleared when the application is restarted. | ||
* You can save it to the filesystem using [tauri-plugin-persisted-scope](https://github.com/tauri-apps/tauri-plugin-persisted-scope). | ||
* | ||
* @returns A promise resolving to the selected path. | ||
@@ -53,0 +72,0 @@ */ |
@@ -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-b9aef9fa.js";import"./tauri-94e4ec1e.js"; | ||
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"; |
@@ -1,1 +0,1 @@ | ||
import"./tslib.es6-6e0f8414.js";import"./event-53654ff1.js";export{a as emit,l as listen,o as once}from"./event-0ad4d52e.js";import"./tauri-c3f7456b.js";import"./tauri-94e4ec1e.js"; | ||
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"; |
@@ -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-63612ae1.js";import"./tauri-94e4ec1e.js"; | ||
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-9fb26658.js";import"./tauri-94e4ec1e.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-63612ae1.js";export{h as http}from"./http-0b777fc2.js";export{p as path}from"./path-2088b954.js";export{s as shell}from"./shell-914c0a19.js";export{w as window}from"./window-efc01659.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-b9aef9fa.js";export{e as event}from"./event-0ad4d52e.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-620d3c7d.js";import"./tslib.es6-6e0f8414.js";import"./tauri-c3f7456b.js";import"./os-check-094ffe86.js";import"./event-53654ff1.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 f(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{f({},"")}catch(t){f=function(t,r,e){return t[r]=e}}function s(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=s;var l="suspendedStart",p="suspendedYield",y="executing",d="completed",m={};function v(){}function g(){}function w(){}var x={};f(x,a,(function(){return this}));var b=Object.getPrototypeOf,j=b&&b(b(N([])));j&&j!==o&&n.call(j,a)&&(x=j);var L=w.prototype=v.prototype=Object.create(x);function E(t){["next","throw","return"].forEach((function(r){f(t,r,(function(t){return this._invoke(r,t)}))}))}function _(t,e){function o(i,a,c,u){var f=h(t[i],t,a);if("throw"!==f.type){var s=f.arg,l=s.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){s.value=t,c(s)}),(function(t){return o("throw",t,c,u)}))}u(f.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,f(L,"constructor",w),f(w,"constructor",g),g.displayName=f(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,f(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},t.awrap=function(t){return{__await:t}},E(_.prototype),f(_.prototype,c,(function(){return this})),t.AsyncIterator=_,t.async=function(r,e,o,n,i){void 0===i&&(i=Promise);var a=new _(s(r,e,o,n),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(L),f(L,u,"Generator"),f(L,a,(function(){return this})),f(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"),f=n.call(a,"finallyLoc");if(u&&f){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(!f)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}; | ||
import{i as t}from"./tauri-94e4ec1e.js";export{a as tauri}from"./tauri-94e4ec1e.js";export{f as fs}from"./fs-9fb26658.js";export{h as http}from"./http-0b777fc2.js";export{p as path}from"./path-cc98399a.js";export{s as shell}from"./shell-606f3ca2.js";export{w as window}from"./window-7c216509.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 f(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{f({},"")}catch(t){f=function(t,r,e){return t[r]=e}}function s(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=s;var l="suspendedStart",p="suspendedYield",y="executing",m="completed",d={};function v(){}function g(){}function w(){}var b={};f(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){f(t,r,(function(t){return this._invoke(r,t)}))}))}function _(t,e){function o(i,a,c,u){var f=h(t[i],t,a);if("throw"!==f.type){var s=f.arg,l=s.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){s.value=t,c(s)}),(function(t){return o("throw",t,c,u)}))}u(f.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,f(L,"constructor",w),f(w,"constructor",g),g.displayName=f(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,f(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},t.awrap=function(t){return{__await:t}},E(_.prototype),f(_.prototype,c,(function(){return this})),t.AsyncIterator=_,t.async=function(r,e,o,n,i){void 0===i&&(i=Promise);var a=new _(s(r,e,o,n),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(L),f(L,u,"Generator"),f(L,a,(function(){return this})),f(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"),f=n.call(a,"finallyLoc");if(u&&f){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(!f)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}; |
{ | ||
"name": "@tauri-apps/api", | ||
"version": "1.0.0-rc.1", | ||
"version": "1.0.0-rc.2", | ||
"description": "Tauri API definitions", | ||
@@ -98,3 +98,3 @@ "type": "module", | ||
"format:check": "prettier --check --end-of-line=auto \"./**/*.{cjs,js,jsx,ts,tsx,html,css,json}\" --ignore-path .gitignore", | ||
"generate-docs": "typedoc src --githubPages false --readme none --entryDocument index.md --hideInPageTOC true --out docs --json docs/js-api.json --pretty false" | ||
"generate-docs": "typedoc" | ||
}, | ||
@@ -122,14 +122,14 @@ "repository": { | ||
"devDependencies": { | ||
"@babel/core": "7.17.2", | ||
"@babel/core": "7.17.5", | ||
"@babel/preset-env": "7.16.11", | ||
"@babel/preset-typescript": "7.16.7", | ||
"@rollup/plugin-babel": "5.3.0", | ||
"@rollup/plugin-commonjs": "21.0.1", | ||
"@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.0", | ||
"@typescript-eslint/eslint-plugin": "5.11.0", | ||
"@typescript-eslint/parser": "5.11.0", | ||
"eslint": "8.8.0", | ||
"eslint-config-prettier": "8.3.0", | ||
"@rollup/plugin-typescript": "8.3.1", | ||
"@typescript-eslint/eslint-plugin": "5.13.0", | ||
"@typescript-eslint/parser": "5.13.0", | ||
"eslint": "8.10.0", | ||
"eslint-config-prettier": "8.4.0", | ||
"eslint-config-standard-with-typescript": "21.0.1", | ||
@@ -144,12 +144,12 @@ "eslint-plugin-import": "2.25.4", | ||
"rimraf": "3.0.2", | ||
"rollup": "2.67.1", | ||
"rollup": "2.69.0", | ||
"rollup-plugin-terser": "7.0.2", | ||
"tslib": "2.3.1", | ||
"typedoc": "0.22.11", | ||
"typedoc-plugin-markdown": "3.11.13", | ||
"typescript": "4.5.5" | ||
"typedoc": "0.22.12", | ||
"typedoc-plugin-markdown": "3.11.14", | ||
"typescript": "4.6.2" | ||
}, | ||
"dependencies": { | ||
"type-fest": "2.11.2" | ||
"type-fest": "2.12.0" | ||
} | ||
} |
@@ -1,1 +0,1 @@ | ||
import"./tslib.es6-6e0f8414.js";import"./tauri-c3f7456b.js";export{B as BaseDirectory}from"./fs-63612ae1.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-2088b954.js";import"./tauri-94e4ec1e.js"; | ||
import"./tslib.es6-6e0f8414.js";import"./tauri-c3f7456b.js";export{B as BaseDirectory}from"./fs-9fb26658.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-cc98399a.js";import"./tauri-94e4ec1e.js"; |
@@ -140,3 +140,3 @@ interface SpawnOptions { | ||
* The `openWith` value must be one of `firefox`, `google chrome`, `chromium` `safari`, | ||
* `open`, `start`, `xdg-open`, `gio`, gnome-open`, `kde-open` or `wslview`. | ||
* `open`, `start`, `xdg-open`, `gio`, `gnome-open`, `kde-open` or `wslview`. | ||
* | ||
@@ -143,0 +143,0 @@ * @example |
@@ -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-914c0a19.js"; | ||
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"; |
@@ -1,1 +0,1 @@ | ||
import"./tslib.es6-6e0f8414.js";import"./event-0ad4d52e.js";export{c as checkUpdate,i as installUpdate}from"./updater-620d3c7d.js";import"./event-53654ff1.js";import"./tauri-c3f7456b.js";import"./tauri-94e4ec1e.js"; | ||
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"; |
@@ -317,2 +317,9 @@ import type { EventName, EventCallback, UnlistenFn } from './event'; | ||
* | ||
* Note that you need the `icon-ico` or `icon-png` Cargo features to use this API. | ||
* To enable it, change your Cargo.toml file: | ||
* ```toml | ||
* [dependencies] | ||
* tauri = { version = "...", features = ["...", "icon-png"] } | ||
* ``` | ||
* | ||
* @param icon Icon bytes or path to the icon file. | ||
@@ -379,3 +386,3 @@ * @returns A promise indicating the success or failure of the operation. | ||
/** The WebviewWindow for the current window. */ | ||
declare const appWindow: WebviewWindow; | ||
declare let appWindow: any; | ||
/** Configuration for the window to create. */ | ||
@@ -382,0 +389,0 @@ interface WindowOptions { |
@@ -1,1 +0,1 @@ | ||
import"./tslib.es6-6e0f8414.js";import"./tauri-c3f7456b.js";import"./event-53654ff1.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-efc01659.js";import"./tauri-94e4ec1e.js"; | ||
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-7c216509.js";import"./tauri-94e4ec1e.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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 2 instances in 1 package
225387
2284
+ Addedtype-fest@2.12.0(transitive)
- Removedtype-fest@2.11.2(transitive)
Updatedtype-fest@2.12.0