Socket
Book a DemoInstallSign in
Socket

komarov-sdk

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

komarov-sdk

komarov-sdk 是公司内部产品的一个JS工具

2.0.3
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

KomarovSDK

komarov-sdk 是公司内部产品的一个JS工具

Example

import KomarovSDK  from 'komarov-sdk';

var idxTreeOut = {};
var fullFeaTree = null;
$.get('http://loaclhost:8081/fea?idx=P.a', null, function(data) {
    var paTree = data.result;
    console.log('P.a loaded');
    $.get('http://loaclhost:8081/fea?idx=P.b', null, function(data) {
        var pbTree = data.result;
        console.log('P.b loaded');

        fullFeaTree = KomarovSDK.mergeFeaTree(paTree, pbTree);
        console.log(KomarovSDK.check(fullFeaTree, idxTreeOut, '4.7.3.a'));
        console.log(KomarovSDK.check(fullFeaTree, idxTreeOut, '4.2.a'));
    });
});



/**
* 取消选择,并去掉该项的关联项信息
*
* idxTreeOut:已经选择的idxTree
* idx       :当前选择项目的IDX
*/
KomarovSDK.unCheck(idxTreeOut,idx);

Installation

npm install komarov-sdk --save

Contributors

  • Yanghc
  • Zhangji

Keywords

komarov

FAQs

Package last updated on 30 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.