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

openfin-launcher

Package Overview
Dependencies
Maintainers
5
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openfin-launcher - npm Package Compare versions

Comparing version 1.3.12 to 1.4.1

14

package.json
{
"name": "openfin-launcher",
"version": "1.3.12",
"version": "1.4.1",
"description": "OpenFin launcher",

@@ -23,2 +23,4 @@ "author": "Ricardo de Pena <ricardo.depena@gmail.com>",

"devDependencies": {
"chai": "^1.10.0",
"grunt": "^1.0.1",
"grunt-cli": "^0.1.13",

@@ -28,10 +30,12 @@ "grunt-contrib-jshint": "^0.10.0",

"grunt-contrib-watch": "^0.6.1",
"load-grunt-tasks": "^1.0.0",
"time-grunt": "^1.0.0",
"grunt-jsbeautifier": "^0.2.7",
"grunt-mocha-cli": "^1.11.0",
"jshint-stylish": "^1.0.0",
"chai": "^1.10.0",
"load-grunt-tasks": "^1.0.0",
"sinon": "^1.12.1",
"grunt-jsbeautifier": "^0.2.7"
"time-grunt": "^1.0.0"
},
"optionalDependencies": {
"windows": "0.0.6"
},
"scripts": {

@@ -38,0 +42,0 @@ "test": "grunt"

@@ -1,5 +0,5 @@

#OpenFin-Launcher
# OpenFin-Launcher
[![Build Status](https://travis-ci.org/openfin/node-openfin-launcher.svg?branch=master)](https://travis-ci.org/openfin/node-openfin-launcher)
OpenFin-Launcher is an Node.js module that automates the downloading and launching of The [OpenFin Runtime](http://openfin.co/). This module asumes you have an application config file. You can read up on application config options on the [OpenFin config file API docs](http://openfin.co/developers.html?url=developers/api/config/overview.html), or generate it automatically with the [openfin-config-builder](https://github.com/openfin/node-openfin-config-builder).
OpenFin-Launcher is an Node.js module that automates the downloading and launching of The [OpenFin Runtime](http://openfin.co/). This module assumes you have an application config file. You can read up on application config options on the [OpenFin config file API docs](http://openfin.co/developers.html?url=developers/api/config/overview.html), or generate it automatically with the [openfin-config-builder](https://github.com/openfin/node-openfin-config-builder).

@@ -62,5 +62,5 @@ ## Dependencies

##Options
## Options
####configPath
#### configPath
Type: `String`

@@ -79,3 +79,3 @@

####rvmPath
#### rvmPath
Type: `String`

@@ -87,3 +87,3 @@

###rvmUrl
### rvmUrl
Type: `String`

@@ -90,0 +90,0 @@

@@ -10,3 +10,3 @@ var assetFetcher = require('./asset-fetcher');

var home = process.env.HOME;
var runtimeRoot = 'https://developer.openfin.co/release/runtime/';
var runtimeRoot = process.env.RUNTIME_ROOT || 'https://developer.openfin.co/release/runtime/';

@@ -13,0 +13,0 @@ var OS_TYPES = {

@@ -5,2 +5,3 @@ var os = require('os');

var xpLocation = '\\Local Settings\\Application Data\\OpenFin';

@@ -11,2 +12,8 @@ var winEightOrGreater = '\\AppData\\Local\\OpenFin';

// Resolves out environment paths (%localappdata%)
function resolveToAbsolutePath(path) {
return path.replace(/%([^%]+)%/g, function(_, key) {
return process.env[key];
});
}

@@ -19,4 +26,20 @@ function expand(options) {

if (isWindows) {
var windows = require('windows'); //This is Windows specific module and will NOT work on other OS flavors.
var isXP = isWindows && (+os.release().split('.')[0]) < 6;
var defaultAppData = path.join(process.env['USERPROFILE'], isXP ? xpLocation : winEightOrGreater);
try {
var openFinRvmRegistry = windows.registry('HKCU/Software/OpenFin/RVM/Settings/Deployment');
// if a custom rvmInstallDirectory registry key is set, use its value instead of default location
if (openFinRvmRegistry.rvmInstallDirectory !== undefined) {
defaultAppData = path.normalize(resolveToAbsolutePath(openFinRvmRegistry.rvmInstallDirectory.value.toString()));
console.log("rvmInstallDirectory found. Using RVM Location: ", defaultAppData);
}
} catch (err) {
console.log('deployment group policy not found, launching from:', defaultAppData);
}
defaultOptions.rvmPath = path.resolve(defaultAppData, 'OpenFinRVM.exe');

@@ -30,5 +53,4 @@ }

return _.defaults(_.clone(options), defaultOptions);
}
module.exports = expand;

@@ -51,3 +51,4 @@ var spawn = require('child_process').spawn;

}
args.unshift('--startup-url="' + combinedOpts.configPath + '" ');
args.unshift('--startup-url="' + combinedOpts.configPath + '"');
args.push('--version-keyword=' + config.runtime.version);
var of = spawn(runtimePath, args, {

@@ -54,0 +55,0 @@ encoding: 'utf8'

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