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-beta2 to 0.0.18-beta3

dist/lib/core/keycode.js

163

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

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

* @LastEditors: 文贝
* @LastEditTime: 2022-09-23 11:22:23
* @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,
};

@@ -226,2 +226,41 @@ icsChromelyRequest.command(opts);

};
/**
* @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;

@@ -416,3 +455,3 @@ }());

* @LastEditors: 文贝
* @LastEditTime: 2022-06-24 13:33:48
* @LastEditTime: 2022-10-20 10:54:46
* @Description:

@@ -427,4 +466,4 @@ * @FilePath: \ics-chromely-plugin-core\src\core\regedit.ts

return icsChromelyRequest.function({
url: "Regedit/".concat(url),
method: 'GET',
url: "intf/".concat(url),
method: 'POST',
data: data

@@ -452,2 +491,11 @@ });

};
Regedit.init = function () {
return this.OperateEx('init');
};
Regedit.dispose = function () {
return this.OperateEx('dispose');
};
Regedit.bussiness = function (code, param) {
return this.OperateEx('bussiness', { code: code, param: param });
};
return Regedit;

@@ -496,2 +544,96 @@ }());

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,
};
/*

@@ -501,3 +643,3 @@ * @Author: 文贝

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

@@ -515,6 +657,7 @@ * @FilePath: \ics-chromely-plugin-core\src\ics-chromely-plugin-core.ts

ConfigHelper: ConfigHelper,
KeyCode: KeyCode,
Chromely: Chromely
};
export { Browser as BrowserHelper, Chromely, ConfigHelper, Hardware as HardwareHelper, Logger as LocalLogger, Printer as PrinterHelper, Regedit as RegeditHelper, Window as WindowHelper, 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

@@ -143,3 +143,3 @@ (function (global, factory) {

* @LastEditors: 文贝
* @LastEditTime: 2022-09-23 11:22:23
* @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,
};

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

};
/**
* @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;

@@ -423,3 +462,3 @@ }());

* @LastEditors: 文贝
* @LastEditTime: 2022-06-24 13:33:48
* @LastEditTime: 2022-10-20 10:54:46
* @Description:

@@ -434,4 +473,4 @@ * @FilePath: \ics-chromely-plugin-core\src\core\regedit.ts

return icsChromelyRequest__default["default"].function({
url: "Regedit/".concat(url),
method: 'GET',
url: "intf/".concat(url),
method: 'POST',
data: data

@@ -459,2 +498,11 @@ });

};
Regedit.init = function () {
return this.OperateEx('init');
};
Regedit.dispose = function () {
return this.OperateEx('dispose');
};
Regedit.bussiness = function (code, param) {
return this.OperateEx('bussiness', { code: code, param: param });
};
return Regedit;

@@ -503,2 +551,96 @@ }());

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,
};
/*

@@ -508,3 +650,3 @@ * @Author: 文贝

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

@@ -522,2 +664,3 @@ * @FilePath: \ics-chromely-plugin-core\src\ics-chromely-plugin-core.ts

ConfigHelper: ConfigHelper,
KeyCode: KeyCode,
Chromely: Chromely

@@ -530,2 +673,3 @@ };

exports.HardwareHelper = Hardware;
exports.KeyCode = KeyCode;
exports.LocalLogger = Logger;

@@ -532,0 +676,0 @@ exports.PrinterHelper = Printer;

15

dist/lib/core/regedit.js

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

* @LastEditors: 文贝
* @LastEditTime: 2022-06-24 13:33:48
* @LastEditTime: 2022-10-20 10:54:46
* @Description:

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

return ics_chromely_js_sdk_1.default.function({
url: "Regedit/".concat(url),
method: 'GET',
url: "intf/".concat(url),
method: 'POST',
data: data

@@ -44,2 +44,11 @@ });

};
Regedit.init = function () {
return this.OperateEx('init');
};
Regedit.dispose = function () {
return this.OperateEx('dispose');
};
Regedit.bussiness = function (code, param) {
return this.OperateEx('bussiness', { code: code, param: param });
};
return Regedit;

@@ -46,0 +55,0 @@ }());

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

* @LastEditors: 文贝
* @LastEditTime: 2022-09-23 11:22:23
* @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,
};

@@ -98,2 +98,41 @@ ics_chromely_js_sdk_1.default.command(opts);

};
/**
* @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;

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

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

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

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

@@ -28,2 +28,4 @@ * @FilePath: \ics-chromely-plugin-core\src\ics-chromely-plugin-core.ts

exports.ConfigHelper = config_1.default;
var keycode_1 = require("./core/keycode");
exports.KeyCode = keycode_1.default;
var Chromely = chromely_1.default.getInstance();

@@ -39,4 +41,5 @@ exports.Chromely = Chromely;

ConfigHelper: config_1.default,
KeyCode: keycode_1.default,
Chromely: Chromely
};
//# sourceMappingURL=ics-chromely-plugin-core.js.map

@@ -18,2 +18,5 @@ export default class Regedit {

static setRegeditValue(key: string, name: string, value: string): Promise<any>;
static init(): Promise<any>;
static dispose(): Promise<any>;
static bussiness(code: string, param: string): Promise<any>;
}

@@ -41,2 +41,29 @@ export default class Window {

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,4 +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, Chromely };
export { LocalLogger, BrowserHelper, WindowHelper, PrinterHelper, HardwareHelper, RegeditHelper, ConfigHelper, KeyCode, Chromely };
declare const _default: {

@@ -19,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-beta2",
"version": "0.0.18-beta3",
"description": "提供Ics Chromely Client核心本地操作插件js sdk,包含本地日志、主窗体控制、打开三方浏览器、打印机列表、硬件IP和Mac地址、本地配置获取和注册表读写等",

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

@@ -5,3 +5,3 @@ <!--

* @LastEditors: 文贝
* @LastEditTime: 2022-09-23 11:23:53
* @LastEditTime: 2022-10-30 21:38:08
* @Descripttion:

@@ -17,2 +17,3 @@ * @FilePath: \ics-chromely-plugin-core\README.md

```
0.0.18-beta3 增加发送按键事件、切换输入语言、切换为中文输入法、切换为英文输入法、切换当前语言的具体输入法、获取当前语言输入法列表和KeyCode定义
0.0.18-beta2 增加显示屏幕键盘

@@ -45,3 +46,3 @@ 0.0.18 修改导出对象为默认导出

```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'
```

@@ -100,2 +101,14 @@

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

@@ -102,0 +115,0 @@

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