xshell 1.0.24 → 1.0.25
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/package.json +4 -5
- package/utils.browser.d.ts +1 -1
- package/utils.browser.js +4 -4
- package/utils.d.ts +1 -1
- package/utils.js +1 -1
- /package/patches/{koa@2.14.1.patch → koa@2.14.2.patch} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xshell",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.25",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"bin": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"interactive programming"
|
|
17
17
|
],
|
|
18
18
|
"engines": {
|
|
19
|
-
"node": ">=19.
|
|
19
|
+
"node": ">=19.9.0",
|
|
20
20
|
"vscode": ">=1.77.0"
|
|
21
21
|
},
|
|
22
22
|
"author": "ShenHongFei <shen.hongfei@outlook.com> (https://github.com/ShenHongFei)",
|
|
@@ -60,13 +60,12 @@
|
|
|
60
60
|
"emoji-regex": "^10.2.1",
|
|
61
61
|
"fetch-cookie": "^2.1.0",
|
|
62
62
|
"fs-extra": "^11.1.1",
|
|
63
|
-
"fs-monkey": "^1.0.3",
|
|
64
63
|
"gulp-sort": "^2.0.0",
|
|
65
64
|
"hash-string": "^1.0.0",
|
|
66
65
|
"i18next": "^22.4.14",
|
|
67
66
|
"i18next-scanner": "^4.2.0",
|
|
68
67
|
"js-cookie": "^3.0.1",
|
|
69
|
-
"koa": "^2.14.
|
|
68
|
+
"koa": "^2.14.2",
|
|
70
69
|
"koa-compress": "^5.1.1",
|
|
71
70
|
"koa-useragent": "^4.1.0",
|
|
72
71
|
"lodash": "^4.17.21",
|
|
@@ -100,7 +99,7 @@
|
|
|
100
99
|
"@types/lodash": "^4.14.192",
|
|
101
100
|
"@types/node": "^18.15.11",
|
|
102
101
|
"@types/qs": "^6.9.7",
|
|
103
|
-
"@types/react": "^18.0.
|
|
102
|
+
"@types/react": "^18.0.35",
|
|
104
103
|
"@types/through2": "^2.0.38",
|
|
105
104
|
"@types/tough-cookie": "^4.0.2",
|
|
106
105
|
"@types/vinyl-fs": "^3.0.1",
|
package/utils.browser.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export interface Deferred<TValue> extends Promise<TValue> {
|
|
|
14
14
|
- initial?: `undefined` 传入非 undefined 值(包括 null)时直接设置为 resolved 状态 */
|
|
15
15
|
export declare function defer<TValue>(initial?: TValue): Deferred<TValue>;
|
|
16
16
|
export interface LockedAction<TResource, TResult> {
|
|
17
|
-
(resource: TResource): Promise<TResult>;
|
|
17
|
+
(resource: TResource): TResult | Promise<TResult>;
|
|
18
18
|
}
|
|
19
19
|
/** @example
|
|
20
20
|
let lock = new Lock(redis)
|
package/utils.browser.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t } from './i18n/instance.js';
|
|
2
2
|
export const noop = () => { };
|
|
3
3
|
export function assert(assertion, message) {
|
|
4
|
-
if (assertion)
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
if (!assertion) {
|
|
5
|
+
debugger;
|
|
6
|
+
throw Object.assign(new Error(`断言失败: ${message ? `${message}: ` : ''}${assertion}`), { assertion });
|
|
7
|
+
}
|
|
8
8
|
}
|
|
9
9
|
export async function delay(milliseconds) {
|
|
10
10
|
return new Promise(resolve => {
|
package/utils.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ export interface Deferred<TValue> extends Promise<TValue> {
|
|
|
54
54
|
- initial?: `undefined` 传入非 undefined 值(包括 null)时直接设置为 resolved 状态 */
|
|
55
55
|
export declare function defer<TValue>(initial?: TValue): Deferred<TValue>;
|
|
56
56
|
export interface LockedAction<TResource, TResult> {
|
|
57
|
-
(resource: TResource): Promise<TResult>;
|
|
57
|
+
(resource: TResource): TResult | Promise<TResult>;
|
|
58
58
|
}
|
|
59
59
|
/** @example
|
|
60
60
|
let lock = new Lock(redis)
|
package/utils.js
CHANGED
|
@@ -25,7 +25,7 @@ export function set_inspect_options() {
|
|
|
25
25
|
export function assert(assertion, message) {
|
|
26
26
|
if (!assertion) {
|
|
27
27
|
debugger;
|
|
28
|
-
throw new Error(
|
|
28
|
+
throw Object.assign(new Error(`断言失败: ${message ? `${message}: ` : ''}${inspect(assertion, { colors: false, compact: true })}`), { assertion });
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
export function dedent(templ, ...values) {
|
|
File without changes
|