@icreate/ics-chromely-plugin-core
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -358,6 +358,6 @@ import { LogLevels } from '@icreate/core'; | ||
* @Date: 2022-05-05 15:20:51 | ||
* @LastEditors: 刘邓 | ||
* @LastEditTime: 2022-05-09 14:11:53 | ||
* @LastEditors: 文贝 | ||
* @LastEditTime: 2022-06-24 13:33:48 | ||
* @Description: | ||
* @FilePath: \src\core\regedit.ts | ||
* @FilePath: \ics-chromely-plugin-core\src\core\regedit.ts | ||
*/ | ||
@@ -375,9 +375,20 @@ var Regedit = /** @class */ (function () { | ||
}; | ||
// 获取指定的注册表键对应的值 | ||
Regedit.getRegeditValue = function (name) { | ||
return this.OperateEx('GetValue', { name: name }); | ||
/** | ||
* 获取指定的注册表键对应的值 | ||
* @param key 注册表键 | ||
* @param name 注册表项 | ||
* @returns 注册表键对应注册项的值 | ||
*/ | ||
Regedit.getRegeditValue = function (key, name) { | ||
return this.OperateEx('GetValue', { key: key, name: name }); | ||
}; | ||
// 设置注册表键值 | ||
Regedit.setRegeditValue = function (name, value) { | ||
return this.OperateEx('SetValue', { name: name, value: value }); | ||
/** | ||
* 设置注册表键值 | ||
* @param key 注册表键 | ||
* @param name 注册表项 | ||
* @param value 注册表值 | ||
* @returns Ok | ||
*/ | ||
Regedit.setRegeditValue = function (key, name, value) { | ||
return this.OperateEx('SetValue', { key: key, name: name, value: value }); | ||
}; | ||
@@ -384,0 +395,0 @@ return Regedit; |
@@ -363,6 +363,6 @@ (function (global, factory) { | ||
* @Date: 2022-05-05 15:20:51 | ||
* @LastEditors: 刘邓 | ||
* @LastEditTime: 2022-05-09 14:11:53 | ||
* @LastEditors: 文贝 | ||
* @LastEditTime: 2022-06-24 13:33:48 | ||
* @Description: | ||
* @FilePath: \src\core\regedit.ts | ||
* @FilePath: \ics-chromely-plugin-core\src\core\regedit.ts | ||
*/ | ||
@@ -380,9 +380,20 @@ var Regedit = /** @class */ (function () { | ||
}; | ||
// 获取指定的注册表键对应的值 | ||
Regedit.getRegeditValue = function (name) { | ||
return this.OperateEx('GetValue', { name: name }); | ||
/** | ||
* 获取指定的注册表键对应的值 | ||
* @param key 注册表键 | ||
* @param name 注册表项 | ||
* @returns 注册表键对应注册项的值 | ||
*/ | ||
Regedit.getRegeditValue = function (key, name) { | ||
return this.OperateEx('GetValue', { key: key, name: name }); | ||
}; | ||
// 设置注册表键值 | ||
Regedit.setRegeditValue = function (name, value) { | ||
return this.OperateEx('SetValue', { name: name, value: value }); | ||
/** | ||
* 设置注册表键值 | ||
* @param key 注册表键 | ||
* @param name 注册表项 | ||
* @param value 注册表值 | ||
* @returns Ok | ||
*/ | ||
Regedit.setRegeditValue = function (key, name, value) { | ||
return this.OperateEx('SetValue', { key: key, name: name, value: value }); | ||
}; | ||
@@ -389,0 +400,0 @@ return Regedit; |
@@ -6,6 +6,6 @@ "use strict"; | ||
* @Date: 2022-05-05 15:20:51 | ||
* @LastEditors: 刘邓 | ||
* @LastEditTime: 2022-05-09 14:11:53 | ||
* @LastEditors: 文贝 | ||
* @LastEditTime: 2022-06-24 13:33:48 | ||
* @Description: | ||
* @FilePath: \src\core\regedit.ts | ||
* @FilePath: \ics-chromely-plugin-core\src\core\regedit.ts | ||
*/ | ||
@@ -24,9 +24,20 @@ var ics_chromely_js_sdk_1 = require("@icreate/ics-chromely-js-sdk"); | ||
}; | ||
// 获取指定的注册表键对应的值 | ||
Regedit.getRegeditValue = function (name) { | ||
return this.OperateEx('GetValue', { name: name }); | ||
/** | ||
* 获取指定的注册表键对应的值 | ||
* @param key 注册表键 | ||
* @param name 注册表项 | ||
* @returns 注册表键对应注册项的值 | ||
*/ | ||
Regedit.getRegeditValue = function (key, name) { | ||
return this.OperateEx('GetValue', { key: key, name: name }); | ||
}; | ||
// 设置注册表键值 | ||
Regedit.setRegeditValue = function (name, value) { | ||
return this.OperateEx('SetValue', { name: name, value: value }); | ||
/** | ||
* 设置注册表键值 | ||
* @param key 注册表键 | ||
* @param name 注册表项 | ||
* @param value 注册表值 | ||
* @returns Ok | ||
*/ | ||
Regedit.setRegeditValue = function (key, name, value) { | ||
return this.OperateEx('SetValue', { key: key, name: name, value: value }); | ||
}; | ||
@@ -33,0 +44,0 @@ return Regedit; |
export default class Regedit { | ||
private static OperateEx; | ||
static getRegeditValue(name: string): Promise<any>; | ||
static setRegeditValue(name: string, value: string): Promise<any>; | ||
/** | ||
* 获取指定的注册表键对应的值 | ||
* @param key 注册表键 | ||
* @param name 注册表项 | ||
* @returns 注册表键对应注册项的值 | ||
*/ | ||
static getRegeditValue(key: string, name: string): Promise<any>; | ||
/** | ||
* 设置注册表键值 | ||
* @param key 注册表键 | ||
* @param name 注册表项 | ||
* @param value 注册表值 | ||
* @returns Ok | ||
*/ | ||
static setRegeditValue(key: string, name: string, value: string): Promise<any>; | ||
} |
{ | ||
"name": "@icreate/ics-chromely-plugin-core", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "提供Ics Chromely Client核心本地操作插件js sdk,包含本地日志、主窗体控制、打开三方浏览器、打印机列表、硬件IP和Mac地址、本地配置获取和注册表读写等", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
@@ -5,3 +5,3 @@ <!-- | ||
* @LastEditors: 文贝 | ||
* @LastEditTime: 2022-06-23 17:43:43 | ||
* @LastEditTime: 2022-06-23 18:08:05 | ||
* @Descripttion: | ||
@@ -17,3 +17,3 @@ * @FilePath: \ics-chromely-plugin-core\README.md | ||
``` | ||
0.0.11 HardwareHelper增加获取操作系统描述GetOSDesc() | ||
0.0.11 HardwareHelper增加获取操作系统版本、关闭操作系统和重启操作系统 | ||
0.0.10 HardwareHelper增加获取操作系统描述GetOSDesc() | ||
@@ -20,0 +20,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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
106515
1597