@icreate/ics-chromely-plugin-core
Advanced tools
Comparing version 0.0.20-beta.8 to 0.0.20-beta.9
@@ -683,5 +683,8 @@ import { LogLevels } from '@icreate/core'; | ||
case 1: | ||
_a.trys.push([1, 4, , 5]); | ||
return [4 /*yield*/, navigator.mediaDevices.getUserMedia({ audio: true })]; | ||
case 2: | ||
_a.trys.push([1, 6, , 7]); | ||
if (!!navigator.mediaDevices) return [3 /*break*/, 2]; | ||
reject('请使用https协议操作navigator.mediaDevices对象'); | ||
return [3 /*break*/, 5]; | ||
case 2: return [4 /*yield*/, navigator.mediaDevices.getUserMedia({ audio: true })]; | ||
case 3: | ||
stream_1 = _a.sent(); | ||
@@ -721,10 +724,11 @@ if (stream_1) { | ||
return [4 /*yield*/, pc.createOffer({ offerToReceiveAudio: true })]; | ||
case 3: | ||
case 4: | ||
desc = _a.sent(); | ||
return [3 /*break*/, 5]; | ||
case 4: | ||
_a.label = 5; | ||
case 5: return [3 /*break*/, 7]; | ||
case 6: | ||
error_1 = _a.sent(); | ||
reject(error_1); | ||
return [2 /*return*/]; | ||
case 5: | ||
case 7: | ||
pc.setLocalDescription(desc); | ||
@@ -731,0 +735,0 @@ return [2 /*return*/]; |
@@ -690,5 +690,8 @@ (function (global, factory) { | ||
case 1: | ||
_a.trys.push([1, 4, , 5]); | ||
return [4 /*yield*/, navigator.mediaDevices.getUserMedia({ audio: true })]; | ||
case 2: | ||
_a.trys.push([1, 6, , 7]); | ||
if (!!navigator.mediaDevices) return [3 /*break*/, 2]; | ||
reject('请使用https协议操作navigator.mediaDevices对象'); | ||
return [3 /*break*/, 5]; | ||
case 2: return [4 /*yield*/, navigator.mediaDevices.getUserMedia({ audio: true })]; | ||
case 3: | ||
stream_1 = _a.sent(); | ||
@@ -728,10 +731,11 @@ if (stream_1) { | ||
return [4 /*yield*/, pc.createOffer({ offerToReceiveAudio: true })]; | ||
case 3: | ||
case 4: | ||
desc = _a.sent(); | ||
return [3 /*break*/, 5]; | ||
case 4: | ||
_a.label = 5; | ||
case 5: return [3 /*break*/, 7]; | ||
case 6: | ||
error_1 = _a.sent(); | ||
reject(error_1); | ||
return [2 /*return*/]; | ||
case 5: | ||
case 7: | ||
pc.setLocalDescription(desc); | ||
@@ -738,0 +742,0 @@ return [2 /*return*/]; |
@@ -118,5 +118,8 @@ "use strict"; | ||
case 1: | ||
_a.trys.push([1, 4, , 5]); | ||
return [4 /*yield*/, navigator.mediaDevices.getUserMedia({ audio: true })]; | ||
case 2: | ||
_a.trys.push([1, 6, , 7]); | ||
if (!!navigator.mediaDevices) return [3 /*break*/, 2]; | ||
reject('请使用https协议操作navigator.mediaDevices对象'); | ||
return [3 /*break*/, 5]; | ||
case 2: return [4 /*yield*/, navigator.mediaDevices.getUserMedia({ audio: true })]; | ||
case 3: | ||
stream_1 = _a.sent(); | ||
@@ -156,10 +159,11 @@ if (stream_1) { | ||
return [4 /*yield*/, pc.createOffer({ offerToReceiveAudio: true })]; | ||
case 3: | ||
case 4: | ||
desc = _a.sent(); | ||
return [3 /*break*/, 5]; | ||
case 4: | ||
_a.label = 5; | ||
case 5: return [3 /*break*/, 7]; | ||
case 6: | ||
error_1 = _a.sent(); | ||
reject(error_1); | ||
return [2 /*return*/]; | ||
case 5: | ||
case 7: | ||
pc.setLocalDescription(desc); | ||
@@ -166,0 +170,0 @@ return [2 /*return*/]; |
export default class Hardware { | ||
private static OperateEx; | ||
private static Operate; | ||
private static createFingerprint; | ||
static createFingerprint(domain: string): string | undefined; | ||
private static FindIPsWithWebRTC; | ||
@@ -6,0 +6,0 @@ private static GetUserAgentOsVersion; |
{ | ||
"name": "@icreate/ics-chromely-plugin-core", | ||
"version": "0.0.20-beta.8", | ||
"version": "0.0.20-beta.9", | ||
"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
279380
4083