@icreate/ics-chromely-plugin-core
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -195,28 +195,2 @@ import { LogLevels, ExecOptons, Utils } from '@icreate/core'; | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. All rights reserved. | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
this file except in compliance with the License. You may obtain a copy of the | ||
License at http://www.apache.org/licenses/LICENSE-2.0 | ||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED | ||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, | ||
MERCHANTABLITY OR NON-INFRINGEMENT. | ||
See the Apache Version 2.0 License for specific language governing permissions | ||
and limitations under the License. | ||
***************************************************************************** */ | ||
var __assign = function() { | ||
__assign = Object.assign || function __assign(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
var Chromely = /** @class */ (function () { | ||
@@ -284,5 +258,5 @@ function Chromely() { | ||
*/ | ||
Chromely.prototype.$emit = function (eventName) { | ||
var args = Array.prototype.slice.call(arguments, 1); | ||
this.cefSharp.PostMessage(JSON.stringify({ eventName: eventName, data: __assign({}, args) })); | ||
Chromely.prototype.$emit = function (eventName, data) { | ||
// let args = Array.prototype.slice.call(arguments, 1) | ||
this.cefSharp.PostMessage(JSON.stringify({ eventName: eventName, data: data })); | ||
}; | ||
@@ -289,0 +263,0 @@ return Chromely; |
@@ -200,28 +200,2 @@ (function (global, factory) { | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. All rights reserved. | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
this file except in compliance with the License. You may obtain a copy of the | ||
License at http://www.apache.org/licenses/LICENSE-2.0 | ||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED | ||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, | ||
MERCHANTABLITY OR NON-INFRINGEMENT. | ||
See the Apache Version 2.0 License for specific language governing permissions | ||
and limitations under the License. | ||
***************************************************************************** */ | ||
var __assign = function() { | ||
__assign = Object.assign || function __assign(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
var Chromely = /** @class */ (function () { | ||
@@ -289,5 +263,5 @@ function Chromely() { | ||
*/ | ||
Chromely.prototype.$emit = function (eventName) { | ||
var args = Array.prototype.slice.call(arguments, 1); | ||
this.cefSharp.PostMessage(JSON.stringify({ eventName: eventName, data: __assign({}, args) })); | ||
Chromely.prototype.$emit = function (eventName, data) { | ||
// let args = Array.prototype.slice.call(arguments, 1) | ||
this.cefSharp.PostMessage(JSON.stringify({ eventName: eventName, data: data })); | ||
}; | ||
@@ -294,0 +268,0 @@ return Chromely; |
"use strict"; | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -76,5 +65,5 @@ var Chromely = /** @class */ (function () { | ||
*/ | ||
Chromely.prototype.$emit = function (eventName) { | ||
var args = Array.prototype.slice.call(arguments, 1); | ||
this.cefSharp.PostMessage(JSON.stringify({ eventName: eventName, data: __assign({}, args) })); | ||
Chromely.prototype.$emit = function (eventName, data) { | ||
// let args = Array.prototype.slice.call(arguments, 1) | ||
this.cefSharp.PostMessage(JSON.stringify({ eventName: eventName, data: data })); | ||
}; | ||
@@ -81,0 +70,0 @@ return Chromely; |
@@ -32,3 +32,3 @@ import { IChromely } from '../interfaces/interfaces'; | ||
*/ | ||
$emit(eventName: string): void; | ||
$emit(eventName: string, data: object): void; | ||
} |
@@ -21,3 +21,3 @@ import { LogLevels } from '@icreate/core/dist/types/interfaces/interfaces'; | ||
$off(eventName: string, callback: Function): void; | ||
$emit(eventName: string): void; | ||
$emit(eventName: string, data: object): void; | ||
} |
{ | ||
"name": "@icreate/ics-chromely-plugin-core", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"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
89852
1326