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
4
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.5 to 0.0.6

dist/lib/core/config.js

60

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

@@ -1,2 +0,2 @@

import { LogLevels, ExecOptons, Utils } from '@icreate/core';
import { LogLevels } from '@icreate/core';
import icsChromelyRequest from '@icreate/ics-chromely-js-sdk';

@@ -7,6 +7,6 @@

* @Date: 2022-02-09 10:25:53
* @LastEditors: 刘邓
* @LastEditTime: 2022-05-09 15:15:23
* @LastEditors: 文贝
* @LastEditTime: 2022-05-31 15:15:56
* @Descripttion:
* @FilePath: \src\core\logger.ts
* @FilePath: \ics-chromely-plugin-core\src\core\logger.ts
*/

@@ -88,5 +88,5 @@ var Logger = /** @class */ (function () {

* @LastEditors: 文贝
* @LastEditTime: 2022-02-12 01:11:51
* @LastEditTime: 2022-05-31 15:18:18
* @Descripttion:
* @FilePath: \src\core\BrowserHelper.ts
* @FilePath: \ics-chromely-plugin-core\src\core\browser.ts
*/

@@ -97,7 +97,7 @@ var Browser = /** @class */ (function () {

Browser.Open = function (type, url) {
var opts = new ExecOptons();
opts.url = "Browser/Open" + type;
opts.method = 'GET';
opts.data = { url: url };
Utils.command(opts);
var opts = {
url: "Browser/Open" + type,
data: { url: url }
};
icsChromelyRequest.command(opts);
};

@@ -366,5 +366,39 @@ /**

* @Author: 文贝
* @Date: 2022-02-11 23:25:34
* @LastEditors: 文贝
* @LastEditTime: 2022-05-31 15:27:21
* @Descripttion:
* @FilePath: \ics-chromely-plugin-core\src\core\config.ts
*/
var ConfigHelper = /** @class */ (function () {
function ConfigHelper() {
}
ConfigHelper.OperateEx = function (key) {
return icsChromelyRequest.function({
url: "Config/Get",
method: 'GET',
data: { key: key }
});
};
/**
* @description: 获取配置值
* @param {string} key 配置键
*/
ConfigHelper.Get = function (key) {
return this.OperateEx(key);
};
/**
* @description: 获取BaseUrl
*/
ConfigHelper.GetBaseUrl = function () {
return this.OperateEx('BaseUrl');
};
return ConfigHelper;
}());
/*
* @Author: 文贝
* @Date: 2022-02-11 23:21:34
* @LastEditors: 文贝
* @LastEditTime: 2022-05-28 19:40:50
* @LastEditTime: 2022-05-31 15:27:15
* @Descripttion:

@@ -377,3 +411,3 @@ * @FilePath: \ics-chromely-plugin-core\src\ics-chromely-plugin-core.ts

export { Logger as LocalLogger, Browser as BrowserHelper, Window as WindowHelper, Printer as PrinterHelper, Hardware as HardwareHelper, Regedit as RegeditHelper, chromely as Chromely };
export { Logger as LocalLogger, Browser as BrowserHelper, Window as WindowHelper, Printer as PrinterHelper, Hardware as HardwareHelper, Regedit as RegeditHelper, ConfigHelper, chromely as Chromely };
//# sourceMappingURL=ics-chromely-plugin-core.es5.js.map

@@ -12,6 +12,6 @@ (function (global, factory) {

* @Date: 2022-02-09 10:25:53
* @LastEditors: 刘邓
* @LastEditTime: 2022-05-09 15:15:23
* @LastEditors: 文贝
* @LastEditTime: 2022-05-31 15:15:56
* @Descripttion:
* @FilePath: \src\core\logger.ts
* @FilePath: \ics-chromely-plugin-core\src\core\logger.ts
*/

@@ -93,5 +93,5 @@ var Logger = /** @class */ (function () {

* @LastEditors: 文贝
* @LastEditTime: 2022-02-12 01:11:51
* @LastEditTime: 2022-05-31 15:18:18
* @Descripttion:
* @FilePath: \src\core\BrowserHelper.ts
* @FilePath: \ics-chromely-plugin-core\src\core\browser.ts
*/

@@ -102,7 +102,7 @@ var Browser = /** @class */ (function () {

Browser.Open = function (type, url) {
var opts = new core.ExecOptons();
opts.url = "Browser/Open" + type;
opts.method = 'GET';
opts.data = { url: url };
core.Utils.command(opts);
var opts = {
url: "Browser/Open" + type,
data: { url: url }
};
icsChromelyRequest.command(opts);
};

@@ -371,5 +371,39 @@ /**

* @Author: 文贝
* @Date: 2022-02-11 23:25:34
* @LastEditors: 文贝
* @LastEditTime: 2022-05-31 15:27:21
* @Descripttion:
* @FilePath: \ics-chromely-plugin-core\src\core\config.ts
*/
var ConfigHelper = /** @class */ (function () {
function ConfigHelper() {
}
ConfigHelper.OperateEx = function (key) {
return icsChromelyRequest.function({
url: "Config/Get",
method: 'GET',
data: { key: key }
});
};
/**
* @description: 获取配置值
* @param {string} key 配置键
*/
ConfigHelper.Get = function (key) {
return this.OperateEx(key);
};
/**
* @description: 获取BaseUrl
*/
ConfigHelper.GetBaseUrl = function () {
return this.OperateEx('BaseUrl');
};
return ConfigHelper;
}());
/*
* @Author: 文贝
* @Date: 2022-02-11 23:21:34
* @LastEditors: 文贝
* @LastEditTime: 2022-05-28 19:40:50
* @LastEditTime: 2022-05-31 15:27:15
* @Descripttion:

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

exports.RegeditHelper = Regedit;
exports.ConfigHelper = ConfigHelper;
exports.Chromely = chromely;

@@ -390,0 +425,0 @@

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

* @LastEditors: 文贝
* @LastEditTime: 2022-02-12 01:11:51
* @LastEditTime: 2022-05-31 15:18:18
* @Descripttion:
* @FilePath: \src\core\BrowserHelper.ts
* @FilePath: \ics-chromely-plugin-core\src\core\browser.ts
*/
var core_1 = require("@icreate/core");
var ics_chromely_js_sdk_1 = require("@icreate/ics-chromely-js-sdk");
var Browser = /** @class */ (function () {

@@ -17,7 +17,7 @@ function Browser() {

Browser.Open = function (type, url) {
var opts = new core_1.ExecOptons();
opts.url = "Browser/Open" + type;
opts.method = 'GET';
opts.data = { url: url };
core_1.Utils.command(opts);
var opts = {
url: "Browser/Open" + type,
data: { url: url }
};
ics_chromely_js_sdk_1.default.command(opts);
};

@@ -24,0 +24,0 @@ /**

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

* @Date: 2022-02-09 10:25:53
* @LastEditors: 刘邓
* @LastEditTime: 2022-05-09 15:15:23
* @LastEditors: 文贝
* @LastEditTime: 2022-05-31 15:15:56
* @Descripttion:
* @FilePath: \src\core\logger.ts
* @FilePath: \ics-chromely-plugin-core\src\core\logger.ts
*/

@@ -12,0 +12,0 @@ var core_1 = require("@icreate/core");

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

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

* @LastEditors: 文贝
* @LastEditTime: 2022-05-28 19:40:50
* @LastEditTime: 2022-05-31 15:27:15
* @Descripttion:

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

exports.RegeditHelper = regedit_1.default;
var config_1 = require("./core/config");
exports.ConfigHelper = config_1.default;
var chromely = new chromely_1.default();

@@ -28,0 +30,0 @@ exports.Chromely = chromely;

@@ -8,3 +8,4 @@ import LocalLogger from './core/logger';

import RegeditHelper from './core/regedit';
import ConfigHelper from './core/config';
declare const chromely: Chromely;
export { LocalLogger, BrowserHelper, WindowHelper, PrinterHelper, HardwareHelper, RegeditHelper, chromely as Chromely };
export { LocalLogger, BrowserHelper, WindowHelper, PrinterHelper, HardwareHelper, RegeditHelper, ConfigHelper, chromely as Chromely };
{
"name": "@icreate/ics-chromely-plugin-core",
"version": "0.0.5",
"description": "提供Ics Chromely Client核心本地操作插件js sdk,包含本地日志、主窗体控制、打开三方浏览器、打印机列表、硬件IP和Mac地址和注册表读写等",
"version": "0.0.6",
"description": "提供Ics Chromely Client核心本地操作插件js sdk,包含本地日志、主窗体控制、打开三方浏览器、打印机列表、硬件IP和Mac地址、本地配置获取和注册表读写等",
"keywords": [],

@@ -6,0 +6,0 @@ "main": "dist/ics-chromely-plugin-core.umd.js",

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