@multiplatform.one/desktop 7.83.1 → 7.83.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/dialog/index.cjs +60 -0
- package/dist/cjs/dialog/index.native.js +64 -0
- package/dist/cjs/dialog/index.native.js.map +1 -0
- package/dist/cjs/dialog/index.tauri.cjs +74 -0
- package/dist/cjs/dialog/index.tauri.native.js +77 -0
- package/dist/cjs/dialog/index.tauri.native.js.map +1 -0
- package/dist/cjs/fs/index.cjs +50 -0
- package/dist/cjs/fs/index.native.js +53 -0
- package/dist/cjs/fs/index.native.js.map +1 -0
- package/dist/cjs/fs/index.tauri.cjs +51 -0
- package/dist/cjs/fs/index.tauri.native.js +54 -0
- package/dist/cjs/fs/index.tauri.native.js.map +1 -0
- package/dist/cjs/index.cjs +23 -0
- package/dist/cjs/index.native.js +26 -0
- package/dist/cjs/index.native.js.map +1 -0
- package/dist/cjs/paths/index.cjs +46 -0
- package/dist/cjs/paths/index.native.js +55 -0
- package/dist/cjs/paths/index.native.js.map +1 -0
- package/dist/cjs/paths/index.tauri.cjs +53 -0
- package/dist/cjs/paths/index.tauri.native.js +62 -0
- package/dist/cjs/paths/index.tauri.native.js.map +1 -0
- package/dist/cjs/updater/index.cjs +38 -0
- package/dist/cjs/updater/index.native.js +41 -0
- package/dist/cjs/updater/index.native.js.map +1 -0
- package/dist/cjs/updater/index.tauri.cjs +104 -0
- package/dist/cjs/updater/index.tauri.native.js +109 -0
- package/dist/cjs/updater/index.tauri.native.js.map +1 -0
- package/dist/esm/dialog/index.mjs +35 -0
- package/dist/esm/dialog/index.mjs.map +1 -0
- package/dist/esm/dialog/index.native.js +36 -0
- package/dist/esm/dialog/index.native.js.map +1 -0
- package/dist/esm/dialog/index.tauri.mjs +49 -0
- package/dist/esm/dialog/index.tauri.mjs.map +1 -0
- package/dist/esm/dialog/index.tauri.native.js +49 -0
- package/dist/esm/dialog/index.tauri.native.js.map +1 -0
- package/dist/esm/fs/index.mjs +25 -0
- package/dist/esm/fs/index.mjs.map +1 -0
- package/dist/esm/fs/index.native.js +25 -0
- package/dist/esm/fs/index.native.js.map +1 -0
- package/dist/esm/fs/index.tauri.mjs +26 -0
- package/dist/esm/fs/index.tauri.mjs.map +1 -0
- package/dist/esm/fs/index.tauri.native.js +26 -0
- package/dist/esm/fs/index.tauri.native.js.map +1 -0
- package/dist/esm/index.mjs +5 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/esm/index.native.js +5 -0
- package/dist/esm/index.native.js.map +1 -0
- package/dist/esm/paths/index.mjs +21 -0
- package/dist/esm/paths/index.mjs.map +1 -0
- package/dist/esm/paths/index.native.js +27 -0
- package/dist/esm/paths/index.native.js.map +1 -0
- package/dist/esm/paths/index.tauri.mjs +28 -0
- package/dist/esm/paths/index.tauri.mjs.map +1 -0
- package/dist/esm/paths/index.tauri.native.js +34 -0
- package/dist/esm/paths/index.tauri.native.js.map +1 -0
- package/dist/esm/updater/index.mjs +13 -0
- package/dist/esm/updater/index.mjs.map +1 -0
- package/dist/esm/updater/index.native.js +13 -0
- package/dist/esm/updater/index.native.js.map +1 -0
- package/dist/esm/updater/index.tauri.mjs +68 -0
- package/dist/esm/updater/index.tauri.mjs.map +1 -0
- package/dist/esm/updater/index.tauri.native.js +70 -0
- package/dist/esm/updater/index.tauri.native.js.map +1 -0
- package/package.json +12 -3
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
}), mod);
|
|
23
|
+
var dialog_exports = {};
|
|
24
|
+
__export(dialog_exports, {
|
|
25
|
+
dialog: () => dialog
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(dialog_exports);
|
|
28
|
+
function browserDialog(name, api) {
|
|
29
|
+
const fn = typeof window === "undefined" ? void 0 : window[name];
|
|
30
|
+
if (typeof fn !== "function") {
|
|
31
|
+
throw new Error(`@multiplatform.one/desktop: dialog.${api} needs window.${name}, which this platform does not have. The dialog defaults are the browser's modal globals and are web-only; GNOME needs an Adw.AlertDialog backend in dialog/index.gnome.ts.`);
|
|
32
|
+
}
|
|
33
|
+
return fn.bind(window);
|
|
34
|
+
}
|
|
35
|
+
const dialog = {
|
|
36
|
+
async open(_options) {
|
|
37
|
+
return null;
|
|
38
|
+
},
|
|
39
|
+
async save(_options) {
|
|
40
|
+
return null;
|
|
41
|
+
},
|
|
42
|
+
async message(message, options) {
|
|
43
|
+
browserDialog("alert", "message")(options?.title ? `${options.title}
|
|
44
|
+
|
|
45
|
+
${message}` : message);
|
|
46
|
+
},
|
|
47
|
+
async ask(message, options) {
|
|
48
|
+
return browserDialog("confirm", "ask")(options?.title ? `${options.title}
|
|
49
|
+
|
|
50
|
+
${message}` : message);
|
|
51
|
+
},
|
|
52
|
+
async confirm(message, options) {
|
|
53
|
+
return browserDialog("confirm", "confirm")(options?.title ? `${options.title}
|
|
54
|
+
|
|
55
|
+
${message}` : message);
|
|
56
|
+
},
|
|
57
|
+
async prompt(message, defaultValue = "") {
|
|
58
|
+
return browserDialog("prompt", "prompt")(message, defaultValue);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
+
value: true
|
|
24
|
+
}), mod);
|
|
25
|
+
var dialog_exports = {};
|
|
26
|
+
__export(dialog_exports, {
|
|
27
|
+
dialog: () => dialog
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(dialog_exports);
|
|
30
|
+
function browserDialog(name, api) {
|
|
31
|
+
var fn = typeof window === "undefined" ? void 0 : window[name];
|
|
32
|
+
if (typeof fn !== "function") {
|
|
33
|
+
throw new Error(`@multiplatform.one/desktop: dialog.${api} needs window.${name}, which this platform does not have. The dialog defaults are the browser's modal globals and are web-only; GNOME needs an Adw.AlertDialog backend in dialog/index.gnome.ts.`);
|
|
34
|
+
}
|
|
35
|
+
return fn.bind(window);
|
|
36
|
+
}
|
|
37
|
+
var dialog = {
|
|
38
|
+
async open(_options) {
|
|
39
|
+
return null;
|
|
40
|
+
},
|
|
41
|
+
async save(_options) {
|
|
42
|
+
return null;
|
|
43
|
+
},
|
|
44
|
+
async message(message, options) {
|
|
45
|
+
browserDialog("alert", "message")((options === null || options === void 0 ? void 0 : options.title) ? `${options.title}
|
|
46
|
+
|
|
47
|
+
${message}` : message);
|
|
48
|
+
},
|
|
49
|
+
async ask(message, options) {
|
|
50
|
+
return browserDialog("confirm", "ask")((options === null || options === void 0 ? void 0 : options.title) ? `${options.title}
|
|
51
|
+
|
|
52
|
+
${message}` : message);
|
|
53
|
+
},
|
|
54
|
+
async confirm(message, options) {
|
|
55
|
+
return browserDialog("confirm", "confirm")((options === null || options === void 0 ? void 0 : options.title) ? `${options.title}
|
|
56
|
+
|
|
57
|
+
${message}` : message);
|
|
58
|
+
},
|
|
59
|
+
async prompt(message) {
|
|
60
|
+
var defaultValue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
61
|
+
return browserDialog("prompt", "prompt")(message, defaultValue);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=index.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","dialog_exports","__export","dialog","module","exports","browserDialog","name","api","fn","window","Error","bind","open","_options","save","message","options","title","ask","confirm","prompt","defaultValue","arguments","length"],"sources":["../../../src/dialog/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,cAAA;AAAAC,QAAA,CAAAD,cAAA;EAAAE,MAAA,EAAAA,CAAA,KAAAA;AAAA;AA4DAC,MAAA,CAAAC,OAAS,GAAAT,YAEP,CAAAK,cAC2B;AAC3B,SAAMK,aAAYA,CAAAC,IAAA,EAAAC,GAAW;EAC7B,IAAIC,EAAA,UAAOC,MAAO,gBAAY,YAAAA,MAAA,CAAAH,IAAA;EAC5B,WAAME,EAAI;IAAA,MACR,IAAAE,KAAA,uCAAyCH,GAAA,iBAAqBD,IAAA;EAAA;EAIlE,OAAAE,EAAA,CAAAG,IAAA,CAAAF,MAAA;AACA;AACF,IAAAP,MAAA;EAEO,MAAMU,KAAAC,QAAoB;IAC/B,OAAM,IAAK;EAGT;EACF,MAAAC,KAAAD,QAAA;IACA,OAAM,IAAK;EACT;EACF,MAAAE,eAAA,EAAAC,OAAA;IACAX,aAAc,QAAiB,WAA+C,GAAAW,OAAA,aAAAA,OAAA,uBAAAA,OAAA,CAAAC,KAAA,OAAAD,OAAA,CAAAC,KAAA;AAC5E;AAAmE,EAAAF,OAAA,KAAAA,OAAA;EAAO;EAC5E,MAAAG,IAAAH,OAAA,EAAAC,OAAA;IACA,OAAMX,aAAqB,UAAkD,UAAAW,OAAA,aAAAA,OAAA,uBAAAA,OAAA,CAAAC,KAAA,OAAAD,OAAA,CAAAC,KAAA;AAC3E;AAAO,EAAAF,OACL,KAAAA,OAAA;EAAA;EACA,MACAI,OAASA,CAAAJ,OAAQ,EAAAC,OAAG,EAAQ;IAAK,OAAAX,aAAA,wBAAAW,OAAA,aAAAA,OAAA,uBAAAA,OAAA,CAAAC,KAAA,OAAAD,OAAA,CAAAC,KAAA;AAAA;AAA0B,EAC/DF,OAAA,KAAAA,OAAA;EACA;EACE,MAAAK,MAAOA,CAAAL,OAAA;IAAA,IACLM,YAAA,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,iBAAAA,SAAA;IAAA,OACAjB,aAAA,qBAAAU,OAAA,EAAAM,YAAA;EAAA;AACiC","ignoreList":[]}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
}), mod);
|
|
23
|
+
var index_tauri_exports = {};
|
|
24
|
+
__export(index_tauri_exports, {
|
|
25
|
+
dialog: () => dialog
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(index_tauri_exports);
|
|
28
|
+
var import_plugin_dialog = require("@tauri-apps/plugin-dialog");
|
|
29
|
+
const dialog = {
|
|
30
|
+
async open(options) {
|
|
31
|
+
const result = await (0, import_plugin_dialog.open)({
|
|
32
|
+
title: options?.title,
|
|
33
|
+
defaultPath: options?.defaultPath,
|
|
34
|
+
filters: options?.filters,
|
|
35
|
+
multiple: options?.multiple,
|
|
36
|
+
directory: options?.directory
|
|
37
|
+
});
|
|
38
|
+
return result;
|
|
39
|
+
},
|
|
40
|
+
async save(options) {
|
|
41
|
+
const result = await (0, import_plugin_dialog.save)({
|
|
42
|
+
title: options?.title,
|
|
43
|
+
defaultPath: options?.defaultPath,
|
|
44
|
+
filters: options?.filters
|
|
45
|
+
});
|
|
46
|
+
return result;
|
|
47
|
+
},
|
|
48
|
+
async message(message, options) {
|
|
49
|
+
await (0, import_plugin_dialog.message)(message, {
|
|
50
|
+
title: options?.title,
|
|
51
|
+
kind: options?.kind,
|
|
52
|
+
okLabel: options?.okLabel
|
|
53
|
+
});
|
|
54
|
+
},
|
|
55
|
+
async ask(message, options) {
|
|
56
|
+
return (0, import_plugin_dialog.ask)(message, {
|
|
57
|
+
title: options?.title,
|
|
58
|
+
kind: options?.kind,
|
|
59
|
+
okLabel: options?.okLabel,
|
|
60
|
+
cancelLabel: options?.cancelLabel
|
|
61
|
+
});
|
|
62
|
+
},
|
|
63
|
+
async confirm(message, options) {
|
|
64
|
+
return (0, import_plugin_dialog.confirm)(message, {
|
|
65
|
+
title: options?.title,
|
|
66
|
+
kind: options?.kind,
|
|
67
|
+
okLabel: options?.okLabel,
|
|
68
|
+
cancelLabel: options?.cancelLabel
|
|
69
|
+
});
|
|
70
|
+
},
|
|
71
|
+
async prompt(_message, _defaultValue) {
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
+
value: true
|
|
24
|
+
}), mod);
|
|
25
|
+
var index_tauri_exports = {};
|
|
26
|
+
__export(index_tauri_exports, {
|
|
27
|
+
dialog: () => dialog
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(index_tauri_exports);
|
|
30
|
+
var import_plugin_dialog = require("@tauri-apps/plugin-dialog");
|
|
31
|
+
var dialog = {
|
|
32
|
+
async open(options) {
|
|
33
|
+
var result = await (0, import_plugin_dialog.open)({
|
|
34
|
+
title: options === null || options === void 0 ? void 0 : options.title,
|
|
35
|
+
defaultPath: options === null || options === void 0 ? void 0 : options.defaultPath,
|
|
36
|
+
filters: options === null || options === void 0 ? void 0 : options.filters,
|
|
37
|
+
multiple: options === null || options === void 0 ? void 0 : options.multiple,
|
|
38
|
+
directory: options === null || options === void 0 ? void 0 : options.directory
|
|
39
|
+
});
|
|
40
|
+
return result;
|
|
41
|
+
},
|
|
42
|
+
async save(options) {
|
|
43
|
+
var result = await (0, import_plugin_dialog.save)({
|
|
44
|
+
title: options === null || options === void 0 ? void 0 : options.title,
|
|
45
|
+
defaultPath: options === null || options === void 0 ? void 0 : options.defaultPath,
|
|
46
|
+
filters: options === null || options === void 0 ? void 0 : options.filters
|
|
47
|
+
});
|
|
48
|
+
return result;
|
|
49
|
+
},
|
|
50
|
+
async message(message, options) {
|
|
51
|
+
await (0, import_plugin_dialog.message)(message, {
|
|
52
|
+
title: options === null || options === void 0 ? void 0 : options.title,
|
|
53
|
+
kind: options === null || options === void 0 ? void 0 : options.kind,
|
|
54
|
+
okLabel: options === null || options === void 0 ? void 0 : options.okLabel
|
|
55
|
+
});
|
|
56
|
+
},
|
|
57
|
+
async ask(message, options) {
|
|
58
|
+
return (0, import_plugin_dialog.ask)(message, {
|
|
59
|
+
title: options === null || options === void 0 ? void 0 : options.title,
|
|
60
|
+
kind: options === null || options === void 0 ? void 0 : options.kind,
|
|
61
|
+
okLabel: options === null || options === void 0 ? void 0 : options.okLabel,
|
|
62
|
+
cancelLabel: options === null || options === void 0 ? void 0 : options.cancelLabel
|
|
63
|
+
});
|
|
64
|
+
},
|
|
65
|
+
async confirm(message, options) {
|
|
66
|
+
return (0, import_plugin_dialog.confirm)(message, {
|
|
67
|
+
title: options === null || options === void 0 ? void 0 : options.title,
|
|
68
|
+
kind: options === null || options === void 0 ? void 0 : options.kind,
|
|
69
|
+
okLabel: options === null || options === void 0 ? void 0 : options.okLabel,
|
|
70
|
+
cancelLabel: options === null || options === void 0 ? void 0 : options.cancelLabel
|
|
71
|
+
});
|
|
72
|
+
},
|
|
73
|
+
async prompt(_message, _defaultValue) {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
//# sourceMappingURL=index.tauri.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_tauri_exports","__export","dialog","module","exports","import_plugin_dialog","require","open","options","result","title","defaultPath","filters","multiple","directory","save","message","kind","okLabel","ask","cancelLabel","confirm","prompt","_message","_defaultValue"],"sources":["../../../src/dialog/index.tauri.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,mBAAA;AAAAC,QAAA,CAAAD,mBAAA;EAAAE,MAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAMO,CAAAK,mBAAA;AASA,IAAAK,oBAA0B,GAAAC,OAAA;AAAA,IAC/BJ,MAAM,GAAK;EACT,MAAAK,IAAMA,CAAAC,OAAS;IAAgB,IAC7BC,MAAO,SAAS,IAAAJ,oBAAA,CAAAE,IAAA;MAChBG,KAAA,EAAAF,OAAa,SAAS,IAAAA,OAAA,uBAAAA,OAAA,CAAAE,KAAA;MACtBC,WAAS,EAAAH,OAAS,aAAAA,OAAA,uBAAAA,OAAA,CAAAG,WAAA;MAClBC,OAAA,EAAAJ,OAAU,KAAS,QAAAA,OAAA,uBAAAA,OAAA,CAAAI,OAAA;MACnBC,QAAA,EAAAL,OAAW,KAAS,QAAAA,OAAA,uBAAAA,OAAA,CAAAK,QAAA;MACrBC,SAAA,EAAAN,OAAA,aAAAA,OAAA,uBAAAA,OAAA,CAAAM;IACD;IACF,OAAAL,MAAA;EACA;EACE,MAAAM,IAAMA,CAAAP,OAAS;IAAgB,IAC7BC,MAAO,SAAS,IAAAJ,oBAAA,CAAAU,IAAA;MAChBL,KAAA,EAAAF,OAAa,SAAS,IAAAA,OAAA,uBAAAA,OAAA,CAAAE,KAAA;MACtBC,WAAS,EAAAH,OAAS,aAAAA,OAAA,uBAAAA,OAAA,CAAAG,WAAA;MACnBC,OAAA,EAAAJ,OAAA,aAAAA,OAAA,uBAAAA,OAAA,CAAAI;IACD;IACF,OAAAH,MAAA;EACA;EACE,MAAAO,OAAMA,QAAA,EAAAR,OAAA;IAAsB,MAC1B,IAAOH,oBAAS,CAAAW,OAAA,EAAAA,OAAA;MAChBN,KAAA,EAAMF,OAAA,KAAS,QAAAA,OAAA,uBAAAA,OAAA,CAAAE,KAAA;MACfO,IAAA,EAAAT,OAAS,KAAS,QAAAA,OAAA,uBAAAA,OAAA,CAAAS,IAAA;MACnBC,OAAA,EAAAV,OAAA,aAAAA,OAAA,uBAAAA,OAAA,CAAAU;IACH;EACA;EACE,MAAAC,IAAAH,OAAO,EAAAR,OAAA;IAAkB,OACvB,EAAO,EAAAH,oBAAS,CAAAc,GAAA,EAAAH,OAAA;MAChBN,KAAA,EAAMF,OAAA,KAAS,QAAAA,OAAA,uBAAAA,OAAA,CAAAE,KAAA;MACfO,IAAA,EAAAT,OAAS,KAAS,QAAAA,OAAA,uBAAAA,OAAA,CAAAS,IAAA;MAClBC,OAAA,EAAAV,OAAa,SAAS,IAAAA,OAAA,uBAAAA,OAAA,CAAAU,OAAA;MACvBE,WAAA,EAAAZ,OAAA,aAAAA,OAAA,uBAAAA,OAAA,CAAAY;IACH;EACA;EACE,MAAAC,OAAOA,CAAAL,OAAA,EAAAR,OAAA;IAAsB,OAC3B,EAAO,EAAAH,oBAAS,CAAAgB,OAAA,EAAAL,OAAA;MAChBN,KAAA,EAAMF,OAAA,KAAS,QAAAA,OAAA,uBAAAA,OAAA,CAAAE,KAAA;MACfO,IAAA,EAAAT,OAAS,KAAS,QAAAA,OAAA,uBAAAA,OAAA,CAAAS,IAAA;MAClBC,OAAA,EAAAV,OAAa,SAAS,IAAAA,OAAA,uBAAAA,OAAA,CAAAU,OAAA;MACvBE,WAAA,EAAAZ,OAAA,aAAAA,OAAA,uBAAAA,OAAA,CAAAY;IACH;EACA;EACE,MAAAE,MAAOA,CAAAC,QAAA,EAAAC,aAAA;IACT;EACF","ignoreList":[]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
}), mod);
|
|
23
|
+
var fs_exports = {};
|
|
24
|
+
__export(fs_exports, {
|
|
25
|
+
fs: () => fs
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(fs_exports);
|
|
28
|
+
const fs = {
|
|
29
|
+
async readTextFile(_path) {
|
|
30
|
+
throw new Error("File system not available in browser");
|
|
31
|
+
},
|
|
32
|
+
async writeTextFile(_path, _contents) {
|
|
33
|
+
throw new Error("File system not available in browser");
|
|
34
|
+
},
|
|
35
|
+
async exists(_path) {
|
|
36
|
+
throw new Error("File system not available in browser");
|
|
37
|
+
},
|
|
38
|
+
async mkdir(_path, _options) {
|
|
39
|
+
throw new Error("File system not available in browser");
|
|
40
|
+
},
|
|
41
|
+
async remove(_path, _options) {
|
|
42
|
+
throw new Error("File system not available in browser");
|
|
43
|
+
},
|
|
44
|
+
async rename(_oldPath, _newPath) {
|
|
45
|
+
throw new Error("File system not available in browser");
|
|
46
|
+
},
|
|
47
|
+
async copyFile(_src, _dst) {
|
|
48
|
+
throw new Error("File system not available in browser");
|
|
49
|
+
}
|
|
50
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
+
value: true
|
|
24
|
+
}), mod);
|
|
25
|
+
var fs_exports = {};
|
|
26
|
+
__export(fs_exports, {
|
|
27
|
+
fs: () => fs
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(fs_exports);
|
|
30
|
+
var fs = {
|
|
31
|
+
async readTextFile(_path) {
|
|
32
|
+
throw new Error("File system not available in browser");
|
|
33
|
+
},
|
|
34
|
+
async writeTextFile(_path, _contents) {
|
|
35
|
+
throw new Error("File system not available in browser");
|
|
36
|
+
},
|
|
37
|
+
async exists(_path) {
|
|
38
|
+
throw new Error("File system not available in browser");
|
|
39
|
+
},
|
|
40
|
+
async mkdir(_path, _options) {
|
|
41
|
+
throw new Error("File system not available in browser");
|
|
42
|
+
},
|
|
43
|
+
async remove(_path, _options) {
|
|
44
|
+
throw new Error("File system not available in browser");
|
|
45
|
+
},
|
|
46
|
+
async rename(_oldPath, _newPath) {
|
|
47
|
+
throw new Error("File system not available in browser");
|
|
48
|
+
},
|
|
49
|
+
async copyFile(_src, _dst) {
|
|
50
|
+
throw new Error("File system not available in browser");
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=index.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","fs_exports","__export","fs","module","exports","readTextFile","_path","Error","writeTextFile","_contents","exists","mkdir","_options","remove","rename","_oldPath","_newPath","copyFile","_src","_dst"],"sources":["../../../src/fs/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,UAAA;AAAAC,QAAA,CAAAD,UAAA;EAAAE,EAAA,EAAAA,CAAA,KAAAA;AAAA;AAWOC,MAAM,CAAAC,OAAY,GAAAT,YAAA,CAAAK,UAAA;AAAA,IACvBE,EAAA,GAAM;EACJ,MAAAG,YAAgBA,CAAAC,KAAA;IAClB,UAAAC,KAAA;EACA;EACE,MAAAC,aAAgBA,CAAAF,KAAA,EAAAG,SAAA;IAClB,UAAAF,KAAA;EACA;EACE,MAAAG,MAAUA,CAAAJ,KAAM;IAClB,UAAAC,KAAA;EACA;EACE,MAAAI,KAAMA,CAAIL,KAAA,EAAMM,QAAA;IAClB,UAAAL,KAAA;EACA;EACE,MAAAM,MAAUA,CAAAP,KAAM,EAAAM,QAAA;IAClB,UAAAL,KAAA;EACA;EACE,MAAAO,MAAUA,CAAAC,QAAM,EAAAC,QAAA;IAClB,UAAAT,KAAA;EACA;EACE,MAAAU,QAAUA,CAAAC,IAAM,EAAAC,IAAA;IAClB,UAAAZ,KAAA;EACF","ignoreList":[]}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
}), mod);
|
|
23
|
+
var index_tauri_exports = {};
|
|
24
|
+
__export(index_tauri_exports, {
|
|
25
|
+
fs: () => fs
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(index_tauri_exports);
|
|
28
|
+
var import_plugin_fs = require("@tauri-apps/plugin-fs");
|
|
29
|
+
const fs = {
|
|
30
|
+
async readTextFile(path) {
|
|
31
|
+
return (0, import_plugin_fs.readTextFile)(path);
|
|
32
|
+
},
|
|
33
|
+
async writeTextFile(path, contents) {
|
|
34
|
+
await (0, import_plugin_fs.writeTextFile)(path, contents);
|
|
35
|
+
},
|
|
36
|
+
async exists(path) {
|
|
37
|
+
return (0, import_plugin_fs.exists)(path);
|
|
38
|
+
},
|
|
39
|
+
async mkdir(path, options) {
|
|
40
|
+
await (0, import_plugin_fs.mkdir)(path, options);
|
|
41
|
+
},
|
|
42
|
+
async remove(path, options) {
|
|
43
|
+
await (0, import_plugin_fs.remove)(path, options);
|
|
44
|
+
},
|
|
45
|
+
async rename(oldPath, newPath) {
|
|
46
|
+
await (0, import_plugin_fs.rename)(oldPath, newPath);
|
|
47
|
+
},
|
|
48
|
+
async copyFile(src, dst) {
|
|
49
|
+
await (0, import_plugin_fs.copyFile)(src, dst);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
+
value: true
|
|
24
|
+
}), mod);
|
|
25
|
+
var index_tauri_exports = {};
|
|
26
|
+
__export(index_tauri_exports, {
|
|
27
|
+
fs: () => fs
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(index_tauri_exports);
|
|
30
|
+
var import_plugin_fs = require("@tauri-apps/plugin-fs");
|
|
31
|
+
var fs = {
|
|
32
|
+
async readTextFile(path) {
|
|
33
|
+
return (0, import_plugin_fs.readTextFile)(path);
|
|
34
|
+
},
|
|
35
|
+
async writeTextFile(path, contents) {
|
|
36
|
+
await (0, import_plugin_fs.writeTextFile)(path, contents);
|
|
37
|
+
},
|
|
38
|
+
async exists(path) {
|
|
39
|
+
return (0, import_plugin_fs.exists)(path);
|
|
40
|
+
},
|
|
41
|
+
async mkdir(path, options) {
|
|
42
|
+
await (0, import_plugin_fs.mkdir)(path, options);
|
|
43
|
+
},
|
|
44
|
+
async remove(path, options) {
|
|
45
|
+
await (0, import_plugin_fs.remove)(path, options);
|
|
46
|
+
},
|
|
47
|
+
async rename(oldPath, newPath) {
|
|
48
|
+
await (0, import_plugin_fs.rename)(oldPath, newPath);
|
|
49
|
+
},
|
|
50
|
+
async copyFile(src, dst) {
|
|
51
|
+
await (0, import_plugin_fs.copyFile)(src, dst);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=index.tauri.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_tauri_exports","__export","fs","module","exports","import_plugin_fs","require","readTextFile","path","writeTextFile","contents","exists","mkdir","options","remove","rename","oldPath","newPath","copyFile","src","dst"],"sources":["../../../src/fs/index.tauri.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,mBAAA;AAAAC,QAAA,CAAAD,mBAAA;EAAAE,EAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAQO,CAAAK,mBAAA;AAGA,IAAAK,gBAAkB,GAAAC,OAAA;AAAA,IACvBJ,EAAA,GAAM;EACJ,MAAAK,YAAOA,CAAAC,IAAA;IACT,WAAAH,gBAAA,CAAAE,YAAA,EAAAC,IAAA;EACA;EACE,MAAAC,aAAMA,CAAAD,IAAA,EAAAE,QAAA;IACR,UAAAL,gBAAA,CAAAI,aAAA,EAAAD,IAAA,EAAAE,QAAA;EACA;EACE,MAAAC,OAAOH,IAAA;IACT,WAAAH,gBAAA,CAAAM,MAAA,EAAAH,IAAA;EACA;EACE,MAAAI,MAAMJ,IAAA,EAAAK,OAAA;IACR,UAAAR,gBAAA,CAAAO,KAAA,EAAAJ,IAAA,EAAAK,OAAA;EACA;EACE,MAAAC,MAAMA,CAAAN,IAAA,EAAAK,OAAA;IACR,UAAAR,gBAAA,CAAAS,MAAA,EAAAN,IAAA,EAAAK,OAAA;EACA;EACE,MAAAE,MAAMA,CAAAC,OAAA,EAAAC,OAAA;IACR,UAAAZ,gBAAA,CAAAU,MAAA,EAAAC,OAAA,EAAAC,OAAA;EACA;EACE,MAAAC,QAAMA,CAAAC,GAAA,EAAAC,GAAA;IACR,UAAAf,gBAAA,CAAAa,QAAA,EAAAC,GAAA,EAAAC,GAAA;EACF","ignoreList":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
8
|
+
get: () => from[key],
|
|
9
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
16
|
+
value: true
|
|
17
|
+
}), mod);
|
|
18
|
+
var index_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(index_exports);
|
|
20
|
+
__reExport(index_exports, require("./dialog/index.cjs"), module.exports);
|
|
21
|
+
__reExport(index_exports, require("./fs/index.cjs"), module.exports);
|
|
22
|
+
__reExport(index_exports, require("./paths/index.cjs"), module.exports);
|
|
23
|
+
__reExport(index_exports, require("./updater/index.cjs"), module.exports);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __copyProps = (to, from, except, desc) => {
|
|
8
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
9
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
10
|
+
get: () => from[key],
|
|
11
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
17
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
18
|
+
value: true
|
|
19
|
+
}), mod);
|
|
20
|
+
var index_exports = {};
|
|
21
|
+
module.exports = __toCommonJS(index_exports);
|
|
22
|
+
__reExport(index_exports, require("./dialog/index.native.js"), module.exports);
|
|
23
|
+
__reExport(index_exports, require("./fs/index.native.js"), module.exports);
|
|
24
|
+
__reExport(index_exports, require("./paths/index.native.js"), module.exports);
|
|
25
|
+
__reExport(index_exports, require("./updater/index.native.js"), module.exports);
|
|
26
|
+
//# sourceMappingURL=index.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","module","exports","__reExport","require"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAP,YAAc,CAAAK,aAAA;AACdG,UAAA,CAAAH,aAAA,EAAcI,OAAA,2BADd,GAAAH,MAAA,CAAAC,OAAA;AAEAC,UAAA,CAAAH,aAAA,EAAcI,OAAA,0BAAAH,MAFd,CAAAC,OAAA;AAGAC,UAAA,CAAAH,aAAA,EAAcI,OAAA,6BAAAH,MAHd,CAAAC,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
}), mod);
|
|
23
|
+
var paths_exports = {};
|
|
24
|
+
__export(paths_exports, {
|
|
25
|
+
paths: () => paths
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(paths_exports);
|
|
28
|
+
const paths = {
|
|
29
|
+
async getAppPath() {
|
|
30
|
+
return "/";
|
|
31
|
+
},
|
|
32
|
+
async getPath(_name) {
|
|
33
|
+
return "/";
|
|
34
|
+
},
|
|
35
|
+
async join(...segments) {
|
|
36
|
+
return segments.join("/");
|
|
37
|
+
},
|
|
38
|
+
async resolve(...segments) {
|
|
39
|
+
return segments.join("/");
|
|
40
|
+
},
|
|
41
|
+
async dirname(path) {
|
|
42
|
+
const parts = path.split("/");
|
|
43
|
+
parts.pop();
|
|
44
|
+
return parts.join("/") || "/";
|
|
45
|
+
}
|
|
46
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
+
value: true
|
|
24
|
+
}), mod);
|
|
25
|
+
var paths_exports = {};
|
|
26
|
+
__export(paths_exports, {
|
|
27
|
+
paths: () => paths
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(paths_exports);
|
|
30
|
+
var paths = {
|
|
31
|
+
async getAppPath() {
|
|
32
|
+
return "/";
|
|
33
|
+
},
|
|
34
|
+
async getPath(_name) {
|
|
35
|
+
return "/";
|
|
36
|
+
},
|
|
37
|
+
async join() {
|
|
38
|
+
for (var _len = arguments.length, segments = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
39
|
+
segments[_key] = arguments[_key];
|
|
40
|
+
}
|
|
41
|
+
return segments.join("/");
|
|
42
|
+
},
|
|
43
|
+
async resolve() {
|
|
44
|
+
for (var _len = arguments.length, segments = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
45
|
+
segments[_key] = arguments[_key];
|
|
46
|
+
}
|
|
47
|
+
return segments.join("/");
|
|
48
|
+
},
|
|
49
|
+
async dirname(path) {
|
|
50
|
+
var parts = path.split("/");
|
|
51
|
+
parts.pop();
|
|
52
|
+
return parts.join("/") || "/";
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=index.native.js.map
|