@tinywork/glass 0.0.17 → 0.0.19
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 +3 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import fs from 'node:fs';
|
|
|
3
3
|
import path from 'node:path';
|
|
4
4
|
import http from 'node:http';
|
|
5
5
|
import https from 'node:https';
|
|
6
|
+
import querystring from 'node:querystring';
|
|
6
7
|
import axios from 'axios';
|
|
7
8
|
import { BrowserWindow, type MenuItemConstructorOptions, type Session } from 'electron';
|
|
8
9
|
export type DocSchema = {
|
|
@@ -80,6 +81,7 @@ export interface IGlassContext {
|
|
|
80
81
|
type?: 'success' | 'info' | 'error';
|
|
81
82
|
}) => Promise<void>;
|
|
82
83
|
showProgress: () => IProgress;
|
|
84
|
+
postMessage: (message: Partial<NetLog>) => Promise<void>;
|
|
83
85
|
}
|
|
84
86
|
export interface IGlassExtension {
|
|
85
87
|
install?(context: IGlassContext): Promise<void>;
|
|
@@ -115,4 +117,4 @@ export interface IGlassExtension {
|
|
|
115
117
|
apiId: string;
|
|
116
118
|
}>): Promise<void>;
|
|
117
119
|
}
|
|
118
|
-
export { fs, path, http, https, axios, BrowserWindow, type Session };
|
|
120
|
+
export { fs, querystring, path, http, https, axios, BrowserWindow, type Session };
|
package/dist/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import fs from 'node:fs';
|
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import http from 'node:http';
|
|
4
4
|
import https from 'node:https';
|
|
5
|
+
import querystring from 'node:querystring';
|
|
5
6
|
import axios from 'axios';
|
|
6
7
|
import { BrowserWindow } from 'electron';
|
|
7
|
-
export { fs, path, http, https, axios, BrowserWindow };
|
|
8
|
+
export { fs, querystring, path, http, https, axios, BrowserWindow };
|