xshell 1.2.29 → 1.2.30
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/file.d.ts +1 -1
- package/file.js +2 -1
- package/net.d.ts +1 -1
- package/package.json +1 -1
- package/path.d.ts +2 -2
package/file.d.ts
CHANGED
|
@@ -71,7 +71,7 @@ export interface FWriteOptions {
|
|
|
71
71
|
- any: 通过 JSON.stringify 转为文本后写入文件
|
|
72
72
|
- options?:
|
|
73
73
|
- print?: `true`
|
|
74
|
-
- mtime?: 在写入后设置修改时间 */
|
|
74
|
+
- mtime?: 在写入后设置修改时间 (utc 毫秒数) */
|
|
75
75
|
export declare function fwrite(fp: string, data: string | Uint8Array | any, options?: FWriteOptions): Promise<string>;
|
|
76
76
|
export declare function fwrite(fp: FileHandle, data: string | Uint8Array | any, options?: FWriteOptions): Promise<FileHandle>;
|
|
77
77
|
export declare function fwrite(fp: string | FileHandle, data: string | Uint8Array | any, options?: FWriteOptions): Promise<string | FileHandle>;
|
package/file.js
CHANGED
|
@@ -100,7 +100,8 @@ export async function fwrite(fp, data, { print = true, mtime } = {}) {
|
|
|
100
100
|
let handle = await fopen(fp, 'w', noprint);
|
|
101
101
|
try {
|
|
102
102
|
await handle.write(data, 0);
|
|
103
|
-
|
|
103
|
+
const mseconds = mtime / 1000;
|
|
104
|
+
await handle.utimes(mseconds, mseconds);
|
|
104
105
|
}
|
|
105
106
|
finally {
|
|
106
107
|
await handle.close();
|
package/net.d.ts
CHANGED
|
@@ -285,5 +285,5 @@ export declare class RemoteClient {
|
|
|
285
285
|
[inspect.custom](): {
|
|
286
286
|
remote: string;
|
|
287
287
|
websocket: string;
|
|
288
|
-
} & Omit<this, "websocket" | typeof import("util").inspect.custom | "
|
|
288
|
+
} & Omit<this, "call" | "websocket" | typeof import("util").inspect.custom | "remote" | "send">;
|
|
289
289
|
}
|
package/package.json
CHANGED
package/path.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ export declare function extname(path: string): string;
|
|
|
54
54
|
/** `/` */
|
|
55
55
|
export declare const sep = "/";
|
|
56
56
|
/** The platform-specific file delimiter. ';' or ':'. */
|
|
57
|
-
export declare const delimiter: "
|
|
57
|
+
export declare const delimiter: ";" | ":";
|
|
58
58
|
/** Returns an object from a path string - the opposite of format().
|
|
59
59
|
@param path path to evaluate.
|
|
60
60
|
@throws {TypeError} if `path` is not a string. */
|
|
@@ -81,7 +81,7 @@ export declare let path: {
|
|
|
81
81
|
basename: typeof basename;
|
|
82
82
|
extname: typeof extname;
|
|
83
83
|
sep: string;
|
|
84
|
-
delimiter: "
|
|
84
|
+
delimiter: ";" | ":";
|
|
85
85
|
parse: typeof parse;
|
|
86
86
|
format: typeof format;
|
|
87
87
|
toNamespacedPath: typeof toNamespacedPath;
|