Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@icreate/ics-chromely-plugin-core

Package Overview
Dependencies
Maintainers
8
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@icreate/ics-chromely-plugin-core - npm Package Compare versions

Comparing version 0.0.18 to 0.0.19

dist/lib/core/keycode.js

207

dist/ics-chromely-plugin-core.es5.js

@@ -136,3 +136,3 @@ import { LogLevels } from '@icreate/core';

* @LastEditors: 文贝
* @LastEditTime: 2022-09-01 17:52:39
* @LastEditTime: 2022-10-29 22:00:08
* @Descripttion:

@@ -148,3 +148,3 @@ * @FilePath: \ics-chromely-plugin-core\src\core\window.ts

url: "window/".concat(url),
data: data
data: data,
};

@@ -159,3 +159,3 @@ icsChromelyRequest.command(opts);

method: 'GET',
data: data
data: data,
});

@@ -166,4 +166,4 @@ };

var opts = {
url: "splash/".concat(url),
data: data
url: "splash/".concat(url.toLowerCase()),
data: data,
};

@@ -220,2 +220,47 @@ icsChromelyRequest.command(opts);

};
/**
* @description: 显示屏幕键盘
*/
Window.ShowScreenKeyboard = function () {
this.Operate('ShowScreenKeyboard');
};
/**
* @description: 发送按键事件
*/
Window.SendKeyEvent = function (keycode) {
this.Operate('SendKeyEvent', { keycode: keycode });
};
/**
* @description: 切换输入语言
* @param cultureType 语言项,如zh-CN,en-US
*/
Window.SwitchLanguage = function (cultureType) {
this.Operate('SwitchLanguage', { cultureType: cultureType });
};
/**
* @description: 切换为中文输入法
*/
Window.SwitchLanguageToChinese = function () {
this.Operate('SwitchLanguage', { cultureType: 'zh-CN' });
};
/**
* @description: 切换为英文输入法
*/
Window.SwitchLanguageToEnglish = function () {
this.Operate('SwitchLanguage', { cultureType: 'en-US' });
};
/**
* @description: 切换当前语言的具体输入法
* @param name 输入法名称:如搜狗拼音输入法,微软拼音
*/
Window.ChangeInputMethod = function (name) {
return this.OperateEx('ChangeInputMethod', { name: name });
};
/**
* @description: 获取当前语言输入法列表
* @return name 输入法名称列表:如["搜狗拼音输入法","微软拼音"]
*/
Window.GetInputMethodList = function () {
return this.OperateEx('GetInputMethodList');
};
return Window;

@@ -308,6 +353,6 @@ }());

* @Date: 2022-05-05 15:20:51
* @LastEditors: 刘邓
* @LastEditTime: 2022-05-09 14:11:36
* @LastEditors: 陶慧灵
* @LastEditTime: 2022-12-13 13:43:25
* @Description:
* @FilePath: \src\core\printer.ts
* @FilePath: \ics-chromely-plugin-core\src\core\printer.ts
*/

@@ -317,8 +362,11 @@ var Printer = /** @class */ (function () {

}
Printer.OperateEx = function (url, data) {
Printer.OperateEx = function (url, data, method, headers) {
if (method === void 0) { method = 'GET'; }
if (headers === void 0) { headers = { 'Content-Type': 'application/json' }; }
// let opts =
return icsChromelyRequest.function({
url: "Printer/".concat(url),
method: 'GET',
data: data
method: method,
data: data,
headers: headers,
});

@@ -338,2 +386,9 @@ };

};
/**
* 打印pdf流
* @param blob 流
*/
Printer.printPdf = function (bytes) {
return this.OperateEx('PrintPdf', bytes, "POST", { 'Content-Type': 'application/pdf' });
};
return Printer;

@@ -345,4 +400,4 @@ }());

* @Date: 2022-05-05 15:20:51
* @LastEditors: 文贝
* @LastEditTime: 2022-07-19 09:19:23
* @LastEditors: 陶慧灵
* @LastEditTime: 2022-11-22 12:21:12
* @Description:

@@ -367,2 +422,10 @@ * @FilePath: \ics-chromely-plugin-core\src\core\hardware.ts

};
/**
* 根据本地IP地址获取MAC地址(Windows API函数方式)
* @param ip IP地址
* @returns mac地址
*/
Hardware.GetMacFromIP = function (ip) {
return this.OperateEx('GetMACFromIP', { ip: ip });
};
// 获取本机Mac地址

@@ -376,2 +439,6 @@ Hardware.getMacAddress = function () {

};
// 获取本机Ip和Mac地址列表
Hardware.getIpMacAddress = function () {
return this.OperateEx('GetLocalIpMacList');
};
// 获取本机端口号

@@ -415,4 +482,4 @@ Hardware.getHostName = function () {

* @Date: 2022-05-05 15:20:51
* @LastEditors: 文贝
* @LastEditTime: 2022-06-24 13:33:48
* @LastEditors: 陶慧灵
* @LastEditTime: 2022-11-18 11:19:25
* @Description:

@@ -494,2 +561,96 @@ * @FilePath: \ics-chromely-plugin-core\src\core\regedit.ts

var KeyCode = {
backspace: 8,
tab: 9,
enter: 13,
shift: 16,
ctrl: 17,
pause: 19,
capslock: 20,
esc: 27,
space: 32,
pageUp: 33,
pageDown: 34,
end: 35,
home: 36,
left: 37,
up: 38,
right: 39,
down: 40,
ss: 44,
del: 46,
zero: 48,
one: 49,
two: 50,
three: 51,
four: 52,
five: 53,
six: 54,
seven: 55,
eight: 56,
nine: 57,
a: 65,
b: 66,
c: 67,
d: 68,
e: 69,
f: 70,
g: 71,
h: 72,
i: 73,
j: 74,
k: 75,
l: 76,
m: 77,
n: 78,
o: 79,
p: 80,
q: 81,
r: 82,
s: 83,
t: 84,
u: 85,
v: 86,
w: 87,
x: 88,
y: 89,
z: 90,
meta: 91,
context: 93,
num0: 96,
num1: 97,
num2: 98,
num3: 99,
num4: 100,
num5: 101,
num6: 102,
num7: 103,
num8: 104,
num9: 105,
multiply: 106,
add: 107,
subtract: 109,
divide: 111,
f1: 112,
f2: 113,
f3: 114,
f4: 115,
f5: 116,
f6: 117,
f7: 118,
f8: 119,
f9: 120,
f10: 121,
f11: 122,
f12: 123,
semicolon: 186,
equal: 187,
comma: 188,
minus: 189,
period: 190,
backquote: 192,
slash: 193,
quote: 222,
};
/*

@@ -499,3 +660,3 @@ * @Author: 文贝

* @LastEditors: 文贝
* @LastEditTime: 2022-09-15 19:23:04
* @LastEditTime: 2022-10-30 21:33:43
* @Descripttion:

@@ -505,13 +666,2 @@ * @FilePath: \ics-chromely-plugin-core\src\ics-chromely-plugin-core.ts

var Chromely = Chromely$1.getInstance();
// if (typeof window !== 'undefined') {
// // 设置baseUrl
// if (window['Chromely'] && window['Chromely']['baseUrl']) {
// chromely.baseUrl = window['Chromely']['baseUrl']
// }
// // 设置tokenId
// if (window['Chromely'] && window['Chromely']['tokenId']) {
// chromely.tokenId = window['Chromely']['tokenId']
// }
// window['Chromely'] = chromely
// }
var icsChromelyPluginCore = {

@@ -525,6 +675,7 @@ LocalLogger: Logger,

ConfigHelper: ConfigHelper,
KeyCode: KeyCode,
Chromely: Chromely
};
export { icsChromelyPluginCore as default };
export { Browser as BrowserHelper, Chromely, ConfigHelper, Hardware as HardwareHelper, KeyCode, Logger as LocalLogger, Printer as PrinterHelper, Regedit as RegeditHelper, Window as WindowHelper, icsChromelyPluginCore as default };
//# sourceMappingURL=ics-chromely-plugin-core.es5.js.map
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@icreate/core'), require('@icreate/ics-chromely-js-sdk')) :
typeof define === 'function' && define.amd ? define(['@icreate/core', '@icreate/ics-chromely-js-sdk'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.icsChromelyPluginCore = factory(global.core, global.icsChromelyRequest));
})(this, (function (core, icsChromelyRequest) { 'use strict';
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@icreate/core'), require('@icreate/ics-chromely-js-sdk')) :
typeof define === 'function' && define.amd ? define(['exports', '@icreate/core', '@icreate/ics-chromely-js-sdk'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.icsChromelyPluginCore = {}, global.core, global.icsChromelyRequest));
})(this, (function (exports, core, icsChromelyRequest) { 'use strict';

@@ -143,3 +143,3 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

* @LastEditors: 文贝
* @LastEditTime: 2022-09-01 17:52:39
* @LastEditTime: 2022-10-29 22:00:08
* @Descripttion:

@@ -155,3 +155,3 @@ * @FilePath: \ics-chromely-plugin-core\src\core\window.ts

url: "window/".concat(url),
data: data
data: data,
};

@@ -166,3 +166,3 @@ icsChromelyRequest__default["default"].command(opts);

method: 'GET',
data: data
data: data,
});

@@ -173,4 +173,4 @@ };

var opts = {
url: "splash/".concat(url),
data: data
url: "splash/".concat(url.toLowerCase()),
data: data,
};

@@ -227,2 +227,47 @@ icsChromelyRequest__default["default"].command(opts);

};
/**
* @description: 显示屏幕键盘
*/
Window.ShowScreenKeyboard = function () {
this.Operate('ShowScreenKeyboard');
};
/**
* @description: 发送按键事件
*/
Window.SendKeyEvent = function (keycode) {
this.Operate('SendKeyEvent', { keycode: keycode });
};
/**
* @description: 切换输入语言
* @param cultureType 语言项,如zh-CN,en-US
*/
Window.SwitchLanguage = function (cultureType) {
this.Operate('SwitchLanguage', { cultureType: cultureType });
};
/**
* @description: 切换为中文输入法
*/
Window.SwitchLanguageToChinese = function () {
this.Operate('SwitchLanguage', { cultureType: 'zh-CN' });
};
/**
* @description: 切换为英文输入法
*/
Window.SwitchLanguageToEnglish = function () {
this.Operate('SwitchLanguage', { cultureType: 'en-US' });
};
/**
* @description: 切换当前语言的具体输入法
* @param name 输入法名称:如搜狗拼音输入法,微软拼音
*/
Window.ChangeInputMethod = function (name) {
return this.OperateEx('ChangeInputMethod', { name: name });
};
/**
* @description: 获取当前语言输入法列表
* @return name 输入法名称列表:如["搜狗拼音输入法","微软拼音"]
*/
Window.GetInputMethodList = function () {
return this.OperateEx('GetInputMethodList');
};
return Window;

@@ -315,6 +360,6 @@ }());

* @Date: 2022-05-05 15:20:51
* @LastEditors: 刘邓
* @LastEditTime: 2022-05-09 14:11:36
* @LastEditors: 陶慧灵
* @LastEditTime: 2022-12-13 13:43:25
* @Description:
* @FilePath: \src\core\printer.ts
* @FilePath: \ics-chromely-plugin-core\src\core\printer.ts
*/

@@ -324,8 +369,11 @@ var Printer = /** @class */ (function () {

}
Printer.OperateEx = function (url, data) {
Printer.OperateEx = function (url, data, method, headers) {
if (method === void 0) { method = 'GET'; }
if (headers === void 0) { headers = { 'Content-Type': 'application/json' }; }
// let opts =
return icsChromelyRequest__default["default"].function({
url: "Printer/".concat(url),
method: 'GET',
data: data
method: method,
data: data,
headers: headers,
});

@@ -345,2 +393,9 @@ };

};
/**
* 打印pdf流
* @param blob 流
*/
Printer.printPdf = function (bytes) {
return this.OperateEx('PrintPdf', bytes, "POST", { 'Content-Type': 'application/pdf' });
};
return Printer;

@@ -352,4 +407,4 @@ }());

* @Date: 2022-05-05 15:20:51
* @LastEditors: 文贝
* @LastEditTime: 2022-07-19 09:19:23
* @LastEditors: 陶慧灵
* @LastEditTime: 2022-11-22 12:21:12
* @Description:

@@ -374,2 +429,10 @@ * @FilePath: \ics-chromely-plugin-core\src\core\hardware.ts

};
/**
* 根据本地IP地址获取MAC地址(Windows API函数方式)
* @param ip IP地址
* @returns mac地址
*/
Hardware.GetMacFromIP = function (ip) {
return this.OperateEx('GetMACFromIP', { ip: ip });
};
// 获取本机Mac地址

@@ -383,2 +446,6 @@ Hardware.getMacAddress = function () {

};
// 获取本机Ip和Mac地址列表
Hardware.getIpMacAddress = function () {
return this.OperateEx('GetLocalIpMacList');
};
// 获取本机端口号

@@ -422,4 +489,4 @@ Hardware.getHostName = function () {

* @Date: 2022-05-05 15:20:51
* @LastEditors: 文贝
* @LastEditTime: 2022-06-24 13:33:48
* @LastEditors: 陶慧灵
* @LastEditTime: 2022-11-18 11:19:25
* @Description:

@@ -501,2 +568,96 @@ * @FilePath: \ics-chromely-plugin-core\src\core\regedit.ts

var KeyCode = {
backspace: 8,
tab: 9,
enter: 13,
shift: 16,
ctrl: 17,
pause: 19,
capslock: 20,
esc: 27,
space: 32,
pageUp: 33,
pageDown: 34,
end: 35,
home: 36,
left: 37,
up: 38,
right: 39,
down: 40,
ss: 44,
del: 46,
zero: 48,
one: 49,
two: 50,
three: 51,
four: 52,
five: 53,
six: 54,
seven: 55,
eight: 56,
nine: 57,
a: 65,
b: 66,
c: 67,
d: 68,
e: 69,
f: 70,
g: 71,
h: 72,
i: 73,
j: 74,
k: 75,
l: 76,
m: 77,
n: 78,
o: 79,
p: 80,
q: 81,
r: 82,
s: 83,
t: 84,
u: 85,
v: 86,
w: 87,
x: 88,
y: 89,
z: 90,
meta: 91,
context: 93,
num0: 96,
num1: 97,
num2: 98,
num3: 99,
num4: 100,
num5: 101,
num6: 102,
num7: 103,
num8: 104,
num9: 105,
multiply: 106,
add: 107,
subtract: 109,
divide: 111,
f1: 112,
f2: 113,
f3: 114,
f4: 115,
f5: 116,
f6: 117,
f7: 118,
f8: 119,
f9: 120,
f10: 121,
f11: 122,
f12: 123,
semicolon: 186,
equal: 187,
comma: 188,
minus: 189,
period: 190,
backquote: 192,
slash: 193,
quote: 222,
};
/*

@@ -506,3 +667,3 @@ * @Author: 文贝

* @LastEditors: 文贝
* @LastEditTime: 2022-09-15 19:23:04
* @LastEditTime: 2022-10-30 21:33:43
* @Descripttion:

@@ -512,13 +673,2 @@ * @FilePath: \ics-chromely-plugin-core\src\ics-chromely-plugin-core.ts

var Chromely = Chromely$1.getInstance();
// if (typeof window !== 'undefined') {
// // 设置baseUrl
// if (window['Chromely'] && window['Chromely']['baseUrl']) {
// chromely.baseUrl = window['Chromely']['baseUrl']
// }
// // 设置tokenId
// if (window['Chromely'] && window['Chromely']['tokenId']) {
// chromely.tokenId = window['Chromely']['tokenId']
// }
// window['Chromely'] = chromely
// }
var icsChromelyPluginCore = {

@@ -532,8 +682,20 @@ LocalLogger: Logger,

ConfigHelper: ConfigHelper,
KeyCode: KeyCode,
Chromely: Chromely
};
return icsChromelyPluginCore;
exports.BrowserHelper = Browser;
exports.Chromely = Chromely;
exports.ConfigHelper = ConfigHelper;
exports.HardwareHelper = Hardware;
exports.KeyCode = KeyCode;
exports.LocalLogger = Logger;
exports.PrinterHelper = Printer;
exports.RegeditHelper = Regedit;
exports.WindowHelper = Window;
exports["default"] = icsChromelyPluginCore;
Object.defineProperty(exports, '__esModule', { value: true });
}));
//# sourceMappingURL=ics-chromely-plugin-core.umd.js.map

@@ -6,4 +6,4 @@ "use strict";

* @Date: 2022-05-05 15:20:51
* @LastEditors: 文贝
* @LastEditTime: 2022-07-19 09:19:23
* @LastEditors: 陶慧灵
* @LastEditTime: 2022-11-22 12:21:12
* @Description:

@@ -29,2 +29,10 @@ * @FilePath: \ics-chromely-plugin-core\src\core\hardware.ts

};
/**
* 根据本地IP地址获取MAC地址(Windows API函数方式)
* @param ip IP地址
* @returns mac地址
*/
Hardware.GetMacFromIP = function (ip) {
return this.OperateEx('GetMACFromIP', { ip: ip });
};
// 获取本机Mac地址

@@ -38,2 +46,6 @@ Hardware.getMacAddress = function () {

};
// 获取本机Ip和Mac地址列表
Hardware.getIpMacAddress = function () {
return this.OperateEx('GetLocalIpMacList');
};
// 获取本机端口号

@@ -40,0 +52,0 @@ Hardware.getHostName = function () {

22

dist/lib/core/printer.js

@@ -6,6 +6,6 @@ "use strict";

* @Date: 2022-05-05 15:20:51
* @LastEditors: 刘邓
* @LastEditTime: 2022-05-09 14:11:36
* @LastEditors: 陶慧灵
* @LastEditTime: 2022-12-13 13:43:25
* @Description:
* @FilePath: \src\core\printer.ts
* @FilePath: \ics-chromely-plugin-core\src\core\printer.ts
*/

@@ -16,8 +16,11 @@ var ics_chromely_js_sdk_1 = require("@icreate/ics-chromely-js-sdk");

}
Printer.OperateEx = function (url, data) {
Printer.OperateEx = function (url, data, method, headers) {
if (method === void 0) { method = 'GET'; }
if (headers === void 0) { headers = { 'Content-Type': 'application/json' }; }
// let opts =
return ics_chromely_js_sdk_1.default.function({
url: "Printer/".concat(url),
method: 'GET',
data: data
method: method,
data: data,
headers: headers,
});

@@ -37,2 +40,9 @@ };

};
/**
* 打印pdf流
* @param blob 流
*/
Printer.printPdf = function (bytes) {
return this.OperateEx('PrintPdf', bytes, "POST", { 'Content-Type': 'application/pdf' });
};
return Printer;

@@ -39,0 +49,0 @@ }());

@@ -6,4 +6,4 @@ "use strict";

* @Date: 2022-05-05 15:20:51
* @LastEditors: 文贝
* @LastEditTime: 2022-06-24 13:33:48
* @LastEditors: 陶慧灵
* @LastEditTime: 2022-11-18 11:19:25
* @Description:

@@ -10,0 +10,0 @@ * @FilePath: \ics-chromely-plugin-core\src\core\regedit.ts

@@ -6,3 +6,3 @@ "use strict";

* @LastEditors: 文贝
* @LastEditTime: 2022-09-01 17:52:39
* @LastEditTime: 2022-10-29 22:00:08
* @Descripttion:

@@ -20,3 +20,3 @@ * @FilePath: \ics-chromely-plugin-core\src\core\window.ts

url: "window/".concat(url),
data: data
data: data,
};

@@ -31,3 +31,3 @@ ics_chromely_js_sdk_1.default.command(opts);

method: 'GET',
data: data
data: data,
});

@@ -38,4 +38,4 @@ };

var opts = {
url: "splash/".concat(url),
data: data
url: "splash/".concat(url.toLowerCase()),
data: data,
};

@@ -92,2 +92,47 @@ ics_chromely_js_sdk_1.default.command(opts);

};
/**
* @description: 显示屏幕键盘
*/
Window.ShowScreenKeyboard = function () {
this.Operate('ShowScreenKeyboard');
};
/**
* @description: 发送按键事件
*/
Window.SendKeyEvent = function (keycode) {
this.Operate('SendKeyEvent', { keycode: keycode });
};
/**
* @description: 切换输入语言
* @param cultureType 语言项,如zh-CN,en-US
*/
Window.SwitchLanguage = function (cultureType) {
this.Operate('SwitchLanguage', { cultureType: cultureType });
};
/**
* @description: 切换为中文输入法
*/
Window.SwitchLanguageToChinese = function () {
this.Operate('SwitchLanguage', { cultureType: 'zh-CN' });
};
/**
* @description: 切换为英文输入法
*/
Window.SwitchLanguageToEnglish = function () {
this.Operate('SwitchLanguage', { cultureType: 'en-US' });
};
/**
* @description: 切换当前语言的具体输入法
* @param name 输入法名称:如搜狗拼音输入法,微软拼音
*/
Window.ChangeInputMethod = function (name) {
return this.OperateEx('ChangeInputMethod', { name: name });
};
/**
* @description: 获取当前语言输入法列表
* @return name 输入法名称列表:如["搜狗拼音输入法","微软拼音"]
*/
Window.GetInputMethodList = function () {
return this.OperateEx('GetInputMethodList');
};
return Window;

@@ -94,0 +139,0 @@ }());

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Chromely = exports.KeyCode = exports.ConfigHelper = exports.RegeditHelper = exports.HardwareHelper = exports.PrinterHelper = exports.WindowHelper = exports.BrowserHelper = exports.LocalLogger = void 0;
/*

@@ -7,3 +8,3 @@ * @Author: 文贝

* @LastEditors: 文贝
* @LastEditTime: 2022-09-15 19:23:04
* @LastEditTime: 2022-10-30 21:33:43
* @Descripttion:

@@ -13,21 +14,20 @@ * @FilePath: \ics-chromely-plugin-core\src\ics-chromely-plugin-core.ts

var logger_1 = require("./core/logger");
exports.LocalLogger = logger_1.default;
var browser_1 = require("./core/browser");
exports.BrowserHelper = browser_1.default;
var window_1 = require("./core/window");
exports.WindowHelper = window_1.default;
var chromely_1 = require("./core/chromely");
var printer_1 = require("./core/printer");
exports.PrinterHelper = printer_1.default;
var hardware_1 = require("./core/hardware");
exports.HardwareHelper = hardware_1.default;
var regedit_1 = require("./core/regedit");
exports.RegeditHelper = regedit_1.default;
var config_1 = require("./core/config");
exports.ConfigHelper = config_1.default;
var keycode_1 = require("./core/keycode");
exports.KeyCode = keycode_1.default;
var Chromely = chromely_1.default.getInstance();
// if (typeof window !== 'undefined') {
// // 设置baseUrl
// if (window['Chromely'] && window['Chromely']['baseUrl']) {
// chromely.baseUrl = window['Chromely']['baseUrl']
// }
// // 设置tokenId
// if (window['Chromely'] && window['Chromely']['tokenId']) {
// chromely.tokenId = window['Chromely']['tokenId']
// }
// window['Chromely'] = chromely
// }
exports.Chromely = Chromely;
exports.default = {

@@ -41,4 +41,5 @@ LocalLogger: logger_1.default,

ConfigHelper: config_1.default,
KeyCode: keycode_1.default,
Chromely: Chromely
};
//# sourceMappingURL=ics-chromely-plugin-core.js.map
export default class Hardware {
private static OperateEx;
private static Operate;
/**
* 根据本地IP地址获取MAC地址(Windows API函数方式)
* @param ip IP地址
* @returns mac地址
*/
static GetMacFromIP(ip: string): Promise<any>;
static getMacAddress(): Promise<any>;
static getIpAddress(): Promise<any>;
static getIpMacAddress(): Promise<any>;
static getHostName(): Promise<any>;

@@ -7,0 +14,0 @@ static GetOSDesc(): Promise<any>;

@@ -6,2 +6,7 @@ export default class Printer {

static isPrinterExists(printerName: string): Promise<any>;
/**
* 打印pdf流
* @param blob 流
*/
static printPdf(bytes: ArrayBuffer): Promise<any>;
}

@@ -9,3 +9,3 @@ export default class Regedit {

*/
static getRegeditValue(key: string, name: string): Promise<any>;
static getRegeditValue(key: string, name: string): Promise<string>;
/**

@@ -18,3 +18,3 @@ * 设置注册表键值

*/
static setRegeditValue(key: string, name: string, value: string): Promise<any>;
static setRegeditValue(key: string, name: string, value: string): Promise<string>;
}

@@ -37,2 +37,33 @@ export default class Window {

static RedrawSplash(message: string): void;
/**
* @description: 显示屏幕键盘
*/
static ShowScreenKeyboard(): void;
/**
* @description: 发送按键事件
*/
static SendKeyEvent(keycode: number): void;
/**
* @description: 切换输入语言
* @param cultureType 语言项,如zh-CN,en-US
*/
static SwitchLanguage(cultureType: string): void;
/**
* @description: 切换为中文输入法
*/
static SwitchLanguageToChinese(): void;
/**
* @description: 切换为英文输入法
*/
static SwitchLanguageToEnglish(): void;
/**
* @description: 切换当前语言的具体输入法
* @param name 输入法名称:如搜狗拼音输入法,微软拼音
*/
static ChangeInputMethod(name: string): Promise<any>;
/**
* @description: 获取当前语言输入法列表
* @return name 输入法名称列表:如["搜狗拼音输入法","微软拼音"]
*/
static GetInputMethodList(): Promise<any>;
}

@@ -8,2 +8,5 @@ import LocalLogger from './core/logger';

import ConfigHelper from './core/config';
import KeyCode from './core/keycode';
declare const Chromely: import("./interfaces/interfaces").IChromely;
export { LocalLogger, BrowserHelper, WindowHelper, PrinterHelper, HardwareHelper, RegeditHelper, ConfigHelper, KeyCode, Chromely };
declare const _default: {

@@ -17,4 +20,97 @@ LocalLogger: typeof LocalLogger;

ConfigHelper: typeof ConfigHelper;
KeyCode: {
backspace: number;
tab: number;
enter: number;
shift: number;
ctrl: number;
pause: number;
capslock: number;
esc: number;
space: number;
pageUp: number;
pageDown: number;
end: number;
home: number;
left: number;
up: number;
right: number;
down: number;
ss: number;
del: number;
zero: number;
one: number;
two: number;
three: number;
four: number;
five: number;
six: number;
seven: number;
eight: number;
nine: number;
a: number;
b: number;
c: number;
d: number;
e: number;
f: number;
g: number;
h: number;
i: number;
j: number;
k: number;
l: number;
m: number;
n: number;
o: number;
p: number;
q: number;
r: number;
s: number;
t: number;
u: number;
v: number;
w: number;
x: number;
y: number;
z: number;
meta: number;
context: number;
num0: number;
num1: number;
num2: number;
num3: number;
num4: number;
num5: number;
num6: number;
num7: number;
num8: number;
num9: number;
multiply: number;
add: number;
subtract: number;
divide: number;
f1: number;
f2: number;
f3: number;
f4: number;
f5: number;
f6: number;
f7: number;
f8: number;
f9: number;
f10: number;
f11: number;
f12: number;
semicolon: number;
equal: number;
comma: number;
minus: number;
period: number;
backquote: number;
slash: number;
quote: number;
};
Chromely: import("./interfaces/interfaces").IChromely;
};
export default _default;
{
"name": "@icreate/ics-chromely-plugin-core",
"version": "0.0.18",
"version": "0.0.19",
"description": "提供Ics Chromely Client核心本地操作插件js sdk,包含本地日志、主窗体控制、打开三方浏览器、打印机列表、硬件IP和Mac地址、本地配置获取和注册表读写等",

@@ -5,0 +5,0 @@ "keywords": [],

<!--
* @Author: 文贝
* @Date: 2022-02-08 21:36:57
* @LastEditors: 文贝
* @LastEditTime: 2022-09-15 19:25:26
* @LastEditors: 陶慧灵
* @LastEditTime: 2022-11-22 12:47:09
* @Descripttion:

@@ -12,7 +12,13 @@ * @FilePath: \ics-chromely-plugin-core\README.md

```bash
npm i @icreate/ics-chromely-plugin-core
npm i @icreate/ics-chromely-plugin-core@0.0.18-beta3
```
### feature
```
0.0.17 修改导出对象为默认导出
0.0.18-beta7 新增获取本机Ip和Mac地址列表方法`getIpMacAddress`
0.0.18-beta6 修复注册表调用方法对应路由
0.0.18-beta5 注册表帮助类调用修改为Get方式
0.0.18-beta4 修复获取和设置注册表路由地址
0.0.18-beta3 增加发送按键事件、切换输入语言、切换为中文输入法、切换为英文输入法、切换当前语言的具体输入法、获取当前语言输入法列表和KeyCode定义
0.0.18-beta2 增加显示屏幕键盘
0.0.18 修改导出对象为默认导出
0.0.17 修改Chromely为单例模式

@@ -43,3 +49,3 @@ 0.0.16 WindowHelper增加关闭和重绘闪屏README描述

```javascript
import { LocalLogger, BrowserHelper, WindowHelper, Chromely, ConfigHelper } from '@icreate/ics-chromely-plugin-core'
import { LocalLogger, BrowserHelper, WindowHelper, Chromely, ConfigHelper, KeyCode } from '@icreate/ics-chromely-plugin-core'
```

@@ -96,2 +102,16 @@

RedrawSplash(message: string): void
//显示屏幕键盘
ShowScreenKeyboard(): void
//发送按键事件
SendKeyEvent(keycode: number): void
//切换输入语言
SwitchLanguage(cultureType: string): void
//切换为中文输入法
SwitchLanguageToChinese(): void
//切换为英文输入法
SwitchLanguageToEnglish(): void
//切换当前语言的具体输入法
ChangeInputMethod(name: string): Promise<any>
//获取当前语言输入法列表
GetInputMethodList(): Promise<any>
```

@@ -114,6 +134,8 @@

```javascript
// 获取本机Mac地址
// 获取本机Mac地址 ["00:E0:4C:68:0B:D4"]
getMacAddress(): Promise<array>
// 获取本机Ip地址
// 获取本机Ip地址 ["192.168.2.8"]
getIpAddress(): Promise<array>
// 获取本机Ip和Mac地址列表 [{"Ip":"192.168.2.8","Mac":"00:E0:4C:68:0B:D4"}]
getIpMacAddress(): Promise<array>
// 获取本机主机名

@@ -155,5 +177,5 @@ getHostName(): Promise<string>

// 获取指定的注册表键对应的值
getRegeditValue(name: string): Promise<string>
getRegeditValue(key: string, name: string): Promise<string>
// 设置注册表键值
setRegeditValue(name: string, value: string): Promise<string>
setRegeditValue(key: string, name: string, value: string): Promise<string>
```

@@ -160,0 +182,0 @@ ### ConfigHelper

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc