Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tizentv/webide-common-tizentv

Package Overview
Dependencies
Maintainers
8
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tizentv/webide-common-tizentv

Common APIs for web IDEs extension development to support Tizen SDK features.

  • 1.0.20
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.3K
increased by33.08%
Maintainers
8
Weekly downloads
 
Created
Source

@tizentv/webIDE-common-tizentv

@tizentv/webIDE-common-tizentv package is a common lib project for VScode/Atom extension and Wits, providing build, install, launch web project and certificate manager.

Please note that, In order to use this pacakge, @tizentv/webIDE-common-tizentv is required.

Supported APIs

  • TVWebApp
    constructor(name, location, id);
    init();
    buildWidget(profilePath, excludeFiles);
    launchOnSimulator(simulatorLocation);
    launchOnEmulator(chromeExecPath, isDebug);
    launchOnTV(tvIP, chromeExecPath, isDebug);
    openProject(projectPath);
  • TizenCertManager
    constructor(resourcePath) ;
    async init();
    /*
    authorInfo {
        keyFileName: '',
        authorName: '',
        authorPassword: '',
        countryInfo: '',
        stateInfo: '',
        cityInfo: '',
        organizationInfo: '',
        departmentInfo: '',
        emailInfo: ''
    }
    */
    createCert(authorInfo);
    getTizenDeveloperCA();
    /*
    * privilegeLevel: 'public'/'partner'
    */
    getTizenDistributorProfile(privilegeLevel);

    usage:
        /*
         * TizenCertManager downloads certificate file from tizen.org, if using proxy to connect internet, please configure 'http-proxy' and 'https-proxy' in npm config list.
         * eg. npm config set http-proxy http://192.168.0.1:8080
         *     npm config set https-proxy http://192.168.0.1:8080
         */
        let tizenCertMgr = new TizenCertManager('D:\resource');
        await tizenCertMgr.init();
        tizenCertMgr.createCert(authorInfo);
  • SamsungCertManager
    constructor(resourcePath);
    async init();
    /*
    authorInfo  {
        name : '',
        password : '',
        country : '',
        state : '',
        city : '',
        organization : '',
        department : ''
    */
    createAuthorCert(profileName, authorInfo, accessInfo);

    /*
        distrbutorInfo {
            distributorPassword : '',
            privilegeLevel : '',
            duidList : ['', '', ...]
    */
    createDistributorCert(profileName, distrbutorInfo, accessInfo);

    usage:
        /*
         * SamsungCertManager downloads certificate file from tizen.org, if using proxy to connect internet, please configure 'http-proxy' and 'https-proxy' in npm config list.
         * eg. npm config set http-proxy http://192.168.0.1:8080
         *     npm config set https-proxy http://192.168.0.1:8080
         */
        let samsungCertMgr = new SamsungCertManager('D:\resource');
        await samsungCertMgr.init();
        samsungCertMgr.createAuthorCert(authorInfo);
        samsungCertMgr.createDistributorCert(profileName, distrbutorInfo, accessInfo);
  • ProfileManager
    constructor(resourcePath);

    /*
        authorProfile{
            authorCA: '',
            authorCertPath: '',
            authorPassword: ''
        }
        distributorProfile{
            distributorCA: '',
            distributorCertPath: '',
            distributorPassword: ''
        }
    */
    registerProfile(profileName, authorProfile, distributorProfile);
    setActivateProfile(profileName);
    removeProfile(profileName);
    modifyProfile(profileName, itemType, certpath, password);
    isProfileExist(profileName);
    listProfile();
    getProfileKeys(profileName);
    getProfileItems(profileName);

    usage:
        let profileMgr = new ProfileManager(common.resourcePath);
        tizenAuthorProfile = {
            authorCA: tizenCertMgr.getTizenDeveloperCA(),
            authorCertPath: authorCertPath,
            authorPassword: authorPassword
        };
        tizenDistributorProfile = tizenCertMgr.getTizenDistributorProfile('public');
        profileMgr.registerProfile('name', tizenAuthorProfile, tizenDistributorProfile);

Keywords

FAQs

Package last updated on 11 Oct 2023

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

  • 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