universal-picgo 1.8.0 → 1.9.0

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/index.js CHANGED
@@ -25649,7 +25649,7 @@ var isBufferBrowser = function(n) {
25649
25649
  return n && typeof n == "object" && typeof n.copy == "function" && typeof n.fill == "function" && typeof n.readUInt8 == "function";
25650
25650
  };
25651
25651
  (function(e) {
25652
- var n = { DEV_MODE: "false", NODE_ENV: "production", PICGO_VERSION: "1.8.0" }, a = Object.getOwnPropertyDescriptors || function(de) {
25652
+ var n = { DEV_MODE: "false", NODE_ENV: "production", PICGO_VERSION: "1.9.0" }, a = Object.getOwnPropertyDescriptors || function(de) {
25653
25653
  for (var he = Object.keys(de), se = {}, te = 0; te < he.length; te++)
25654
25654
  se[he[te]] = Object.getOwnPropertyDescriptor(de, he[te]);
25655
25655
  return se;
@@ -68283,7 +68283,7 @@ logger.logger = new Logger();
68283
68283
  (function(e) {
68284
68284
  Object.defineProperty(e, "__esModule", { value: !0 }), (0, require$$0.__exportStar)(logger, e);
68285
68285
  })(utils$2);
68286
- var define_process_env_default$1 = { DEV_MODE: "false", NODE_ENV: "production", PICGO_VERSION: "1.8.0" };
68286
+ var define_process_env_default$1 = { DEV_MODE: "false", NODE_ENV: "production", PICGO_VERSION: "1.9.0" };
68287
68287
  Object.defineProperty(fileSync, "__esModule", { value: !0 });
68288
68288
  fileSync.FileSyncAdapter = void 0;
68289
68289
  const tslib_1 = require$$0, fs = (0, tslib_1.__importStar)(require$$1), path = (0, tslib_1.__importStar)(pathBrowserify), base_1$1 = base, utils_1$1 = utils$2, types_1 = types$1;
@@ -71928,7 +71928,7 @@ class PicGoRequestWrapper {
71928
71928
  }
71929
71929
  }
71930
71930
  }
71931
- var define_process_env_default = { DEV_MODE: "false", NODE_ENV: "production", PICGO_VERSION: "1.8.0" };
71931
+ var define_process_env_default = { DEV_MODE: "false", NODE_ENV: "production", PICGO_VERSION: "1.9.0" };
71932
71932
  class UniversalPicGo extends eventsExports.EventEmitter {
71933
71933
  constructor(a, t, o, u) {
71934
71934
  super();
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "universal-picgo",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "type": "module",
5
5
  "description": "picgo lib for node, browser and electron",
6
6
  "main": "./dist/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "universal-picgo",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "type": "module",
5
5
  "description": "picgo lib for node, browser and electron",
6
6
  "main": "./dist/index.js",
@@ -32,7 +32,7 @@
32
32
  "mime-types": "^2.1.35",
33
33
  "queue": "^7.0.0",
34
34
  "zhi-lib-base": "^0.8.0",
35
- "universal-picgo-store": "1.8.0"
35
+ "universal-picgo-store": "1.9.0"
36
36
  },
37
37
  "publishConfig": {
38
38
  "access": "public"
@@ -1,37 +0,0 @@
1
- /**
2
- * 使用 Electron 自有的环境执行命令
3
- */
4
- declare class ElectronCmd {
5
- /**
6
- * 使用 Electron 自带的 node 运行命令
7
- *
8
- * https://github.com/UniBO-PRISMLab/wam/issues/26#issuecomment-1456204046
9
- * https://github.com/nodejs/help/issues/3885
10
- * https://github.com/npm/pacote
11
- *
12
- * 示例:
13
- * ```
14
- * await ElectronCmd.executeCommandWithBundledNode("./node_modules/.bin/next", ["-v"], "/Users/terwer/Downloads/n")
15
- *
16
- * const command = "/Users/terwer/Documents/mydocs/siyuan-plugins/siyuan-plugin-local-service/public/setup.cjs"
17
- * const args = []
18
- * const cwd = undefined
19
- * const result = await ElectronCmd.executeCommandWithBundledNodeAsync(command, args, cwd)
20
- * if (result.status) {
21
- * console.log("命令执行成功!😄")
22
- * } else {
23
- * console.error("命令执行失败😭: ", result.msg)
24
- * }
25
- * ```
26
- *
27
- * @param command - 命令
28
- * @param args - 参数
29
- * @param cwd - 运行目录,默认 process.cwd
30
- */
31
- static executeCommandWithBundledNodeAsync(command: string, args?: string[], cwd?: string): Promise<{
32
- status: boolean;
33
- code: number;
34
- msg: string;
35
- }>;
36
- }
37
- export { ElectronCmd };
@@ -1,4 +0,0 @@
1
- import { EventEmitter } from './nodePolyfill';
2
-
3
- declare const eventBus: EventEmitter<[never]>;
4
- export { eventBus };