@tizianoluziramos/manageos-windows 2.4.1 → 2.4.3
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/Keyboard/keyboard.exe +0 -0
- package/dist/Mouse/mouse.exe +0 -0
- package/dist/Server/HTTP/http.exe +0 -0
- package/dist/clipboard.d.ts.map +1 -1
- package/dist/clipboard.js +28 -17
- package/dist/clipboard.js.map +1 -1
- package/package.json +11 -13
|
Binary file
|
package/dist/Mouse/mouse.exe
CHANGED
|
Binary file
|
|
Binary file
|
package/dist/clipboard.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../src/clipboard.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../src/clipboard.ts"],"names":[],"mappings":"AAGA,cAAM,IAAI;IACR,MAAM,CAAC,IAAI,IAAI,MAAM,GAAG,OAAO;IAU/B,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO;IAU7C,MAAM,CAAC,KAAK,IAAI,OAAO,GAAG,OAAO;CAGlC;AAED,cAAM,KAAK;WACI,IAAI,IAAI,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC;WAUjC,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC;WAU/C,KAAK,IAAI,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC;CAGjD;AAED,MAAM,CAAC,OAAO,OAAO,SAAS;IAC5B,gBAAuB,IAAI,cAAQ;IACnC,gBAAuB,KAAK,eAAS;CACtC"}
|
package/dist/clipboard.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { execSync, exec } from "node:child_process";
|
|
2
|
+
import { platform } from "node:os";
|
|
2
3
|
class Sync {
|
|
3
4
|
static read() {
|
|
4
5
|
try {
|
|
5
|
-
|
|
6
|
+
if (platform() !== "win32")
|
|
7
|
+
throw new Error("Sync read not implemented for this OS");
|
|
8
|
+
const result = execSync(`powershell Get-Clipboard`, { encoding: "utf8" });
|
|
9
|
+
return result.replace(/\r\n$/, "");
|
|
6
10
|
}
|
|
7
11
|
catch (error) {
|
|
8
12
|
return error;
|
|
@@ -10,7 +14,9 @@ class Sync {
|
|
|
10
14
|
}
|
|
11
15
|
static write(text) {
|
|
12
16
|
try {
|
|
13
|
-
|
|
17
|
+
if (platform() !== "win32")
|
|
18
|
+
throw new Error("Sync write not implemented for this OS");
|
|
19
|
+
execSync(`echo ${text.replace(/\n/g, "\r\n")} | clip`);
|
|
14
20
|
return true;
|
|
15
21
|
}
|
|
16
22
|
catch (error) {
|
|
@@ -23,24 +29,29 @@ class Sync {
|
|
|
23
29
|
}
|
|
24
30
|
class Async {
|
|
25
31
|
static async read() {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
+
return new Promise((resolve) => {
|
|
33
|
+
if (platform() !== "win32")
|
|
34
|
+
return resolve(new Error("Async read not implemented for this OS"));
|
|
35
|
+
exec(`powershell Get-Clipboard`, { encoding: "utf8" }, (err, stdout) => {
|
|
36
|
+
if (err)
|
|
37
|
+
return resolve(err);
|
|
38
|
+
resolve(stdout.replace(/\r\n$/, ""));
|
|
39
|
+
});
|
|
40
|
+
});
|
|
32
41
|
}
|
|
33
42
|
static async write(text) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
43
|
+
return new Promise((resolve) => {
|
|
44
|
+
if (platform() !== "win32")
|
|
45
|
+
return resolve(new Error("Async write not implemented for this OS"));
|
|
46
|
+
exec(`echo ${text.replace(/\n/g, "\r\n")} | clip`, (err) => {
|
|
47
|
+
if (err)
|
|
48
|
+
return resolve(err);
|
|
49
|
+
resolve(true);
|
|
50
|
+
});
|
|
51
|
+
});
|
|
41
52
|
}
|
|
42
53
|
static async clear() {
|
|
43
|
-
return
|
|
54
|
+
return this.write("");
|
|
44
55
|
}
|
|
45
56
|
}
|
|
46
57
|
export default class Clipboard {
|
package/dist/clipboard.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clipboard.js","sourceRoot":"","sources":["../src/clipboard.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"clipboard.js","sourceRoot":"","sources":["../src/clipboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,MAAM,IAAI;IACR,MAAM,CAAC,IAAI;QACT,IAAI,CAAC;YACH,IAAI,QAAQ,EAAE,KAAK,OAAO;gBAAE,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;YACrF,MAAM,MAAM,GAAG,QAAQ,CAAC,0BAA0B,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC;YAC1E,OAAO,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QACrC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,IAAY;QACvB,IAAI,CAAC;YACH,IAAI,QAAQ,EAAE,KAAK,OAAO;gBAAE,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;YACtF,QAAQ,CAAC,QAAQ,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC;YACvD,OAAO,IAAI,CAAC;QACd,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IAED,MAAM,CAAC,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,IAAI,GAAG,IAAI,CAAC;IAC5B,MAAM,CAAU,KAAK,GAAG,KAAK,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tizianoluziramos/manageos-windows",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.3",
|
|
4
4
|
"description": "ManageOS Windows Package",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -25,33 +25,31 @@
|
|
|
25
25
|
"scripts"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@types/deasync": "^0.1.5",
|
|
29
|
-
"@types/node-notifier": "^8.0.5",
|
|
30
|
-
"@types/node-webcam": "^0.8.3",
|
|
31
|
-
"@types/node-windows": "^0.1.6",
|
|
32
|
-
"@types/screenshot-desktop": "^1.15.0",
|
|
33
|
-
"@types/systeminformation": "^3.23.1",
|
|
34
|
-
"clipboardy": "^5.0.2",
|
|
35
28
|
"deasync": "^0.1.30",
|
|
36
29
|
"ftp-srv": "^4.6.3",
|
|
30
|
+
"loudness": "^0.4.2",
|
|
37
31
|
"node-hid": "^3.2.0",
|
|
38
32
|
"node-mic": "^1.0.1",
|
|
39
33
|
"node-notifier": "^10.0.1",
|
|
40
34
|
"node-webcam": "^0.8.2",
|
|
35
|
+
"node-windows": "^1.0.0-beta.8",
|
|
41
36
|
"ping": "^1.0.0",
|
|
37
|
+
"regedit": "^5.1.4",
|
|
42
38
|
"screenshot-desktop": "^1.15.2",
|
|
43
39
|
"ssh2-sftp-server": "^1.1.2",
|
|
44
|
-
"typedoc-material-theme": "^1.4.0"
|
|
45
|
-
},
|
|
46
|
-
"optionalDependencies": {
|
|
47
|
-
"loudness": "^0.4.2",
|
|
48
|
-
"node-windows": "^1.0.0-beta.8",
|
|
49
40
|
"systeminformation": "^5.27.10",
|
|
50
41
|
"win-screen-resolution": "^3.0.2"
|
|
51
42
|
},
|
|
52
43
|
"devDependencies": {
|
|
44
|
+
"@types/deasync": "^0.1.5",
|
|
53
45
|
"@types/node": "^24.9.2",
|
|
46
|
+
"@types/node-notifier": "^8.0.5",
|
|
47
|
+
"@types/node-webcam": "^0.8.3",
|
|
48
|
+
"@types/node-windows": "^0.1.6",
|
|
49
|
+
"@types/screenshot-desktop": "^1.15.0",
|
|
50
|
+
"@types/systeminformation": "^3.23.1",
|
|
54
51
|
"typedoc": "^0.28.13",
|
|
52
|
+
"typedoc-material-theme": "^1.4.0",
|
|
55
53
|
"typedoc-plugin-extras": "^4.0.1",
|
|
56
54
|
"typedoc-umlclass": "^0.10.2",
|
|
57
55
|
"typescript": "^5.6.3"
|