@icreate/ics-chromely-plugin-core
Advanced tools
Comparing version 0.0.18-beta5 to 0.0.18-beta6
@@ -382,4 +382,4 @@ import { LogLevels } from '@icreate/core'; | ||
* @Date: 2022-05-05 15:20:51 | ||
* @LastEditors: 文贝 | ||
* @LastEditTime: 2022-07-19 09:19:23 | ||
* @LastEditors: 陶慧灵 | ||
* @LastEditTime: 2022-11-18 18:37:09 | ||
* @Description: | ||
@@ -404,2 +404,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地址 | ||
@@ -406,0 +414,0 @@ Hardware.getMacAddress = function () { |
@@ -389,4 +389,4 @@ (function (global, factory) { | ||
* @Date: 2022-05-05 15:20:51 | ||
* @LastEditors: 文贝 | ||
* @LastEditTime: 2022-07-19 09:19:23 | ||
* @LastEditors: 陶慧灵 | ||
* @LastEditTime: 2022-11-18 18:37:09 | ||
* @Description: | ||
@@ -411,2 +411,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地址 | ||
@@ -413,0 +421,0 @@ Hardware.getMacAddress = function () { |
@@ -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-18 18:37:09 | ||
* @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地址 | ||
@@ -31,0 +39,0 @@ Hardware.getMacAddress = function () { |
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>; | ||
@@ -5,0 +11,0 @@ static getIpAddress(): Promise<any>; |
{ | ||
"name": "@icreate/ics-chromely-plugin-core", | ||
"version": "0.0.18-beta5", | ||
"version": "0.0.18-beta6", | ||
"description": "提供Ics Chromely Client核心本地操作插件js sdk,包含本地日志、主窗体控制、打开三方浏览器、打印机列表、硬件IP和Mac地址、本地配置获取和注册表读写等", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
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
158315
2463