@tinywork/glass 0.0.47 → 0.0.48

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.d.ts CHANGED
@@ -8,8 +8,12 @@ import axios from "axios";
8
8
  import qs from "qs";
9
9
  import { BrowserWindow, type MenuItemConstructorOptions, type Session } from "electron";
10
10
  /** 1-新增,2-修改,3-删除 */
11
- type Operation = 1 | 2 | 3;
12
- type ResourceType = "Fetch/XHR" | "JS" | "CSS" | "Img" | "Media" | "Font" | "Doc" | "WS" | "Wasm" | "Other";
11
+ export declare enum Operation {
12
+ ADD = 1,
13
+ MODIFY = 2,
14
+ DELETE = 3
15
+ }
16
+ export type ResourceType = "Fetch/XHR" | "JS" | "CSS" | "Img" | "Media" | "Font" | "Doc" | "WS" | "Wasm" | "Other";
13
17
  export type JSONPropertySchema = {
14
18
  type: string;
15
19
  description?: string;
package/dist/index.js CHANGED
@@ -6,6 +6,13 @@ import crypto from "node:crypto";
6
6
  import axios from "axios";
7
7
  import qs from "qs";
8
8
  import { BrowserWindow, shell, clipboard, } from "electron";
9
+ /** 1-新增,2-修改,3-删除 */
10
+ export var Operation;
11
+ (function (Operation) {
12
+ Operation[Operation["ADD"] = 1] = "ADD";
13
+ Operation[Operation["MODIFY"] = 2] = "MODIFY";
14
+ Operation[Operation["DELETE"] = 3] = "DELETE";
15
+ })(Operation || (Operation = {}));
9
16
  const writeText = clipboard.writeText;
10
17
  const openExternal = shell.openExternal;
11
18
  export { fs, qs, path, http, https, axios, crypto, BrowserWindow, openExternal, writeText, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinywork/glass",
3
- "version": "0.0.47",
3
+ "version": "0.0.48",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [