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

openfin-launcher

Package Overview
Dependencies
Maintainers
14
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.4.8 to 1.4.9

4

package.json
{
"name": "openfin-launcher",
"version": "1.4.8",
"version": "1.4.9",
"description": "OpenFin launcher",

@@ -10,3 +10,3 @@ "author": "Ricardo de Pena <ricardo.depena@gmail.com>",

},
"license": "MIT",
"license": "Apache-2.0",
"keywords": [

@@ -13,0 +13,0 @@ "openfin-launcher",

@@ -0,1 +1,4 @@

# Deprecated!
This library has been deprecated, please use the `launch` functionallity in the [js-adapter](https://github.com/hadoukenio/js-adapter) library.
# OpenFin-Launcher

@@ -94,2 +97,10 @@ [![Build Status](https://travis-ci.org/openfin/node-openfin-launcher.svg?branch=master)](https://travis-ci.org/openfin/node-openfin-launcher)

MIT
The code in this repository is distributed under the Apache License, Version 2.0
However, if you run this code, it may call on the OpenFin RVM or OpenFin Runtime, which are covered by OpenFin's Developer, Community, and Enterprise licenses. You can learn more about OpenFin licensing at the links listed below or just email us at support@openfin.co with questions.
Copyright 2018-2019 OpenFin
https://openfin.co/developer-agreement/
https://openfin.co/licensing/

@@ -11,16 +11,16 @@ var spawn = require('child_process').spawn;

function download(url, existingDeffered) {
var deffered = existingDeffered || q.defer();
function download(url, existingDeferred) {
var deferred = existingDeferred || q.defer();
assetFetcher.getData(url, function(err, data) {
if (err) {
deffered.reject(err);
deferred.reject(err);
} else {
deffered.resolve(data);
deferred.resolve(data);
}
});
return deffered.promise;
return deferred.promise;
}
function getConfig(configPath) {
var deffered = q.defer();
var deferred = q.defer();
if (isURL(configPath)) {

@@ -32,9 +32,9 @@ return download(configPath).then(function(config) {

var appConfig = require(configPath);
deffered.resolve(appConfig);
deferred.resolve(appConfig);
}
return deffered.promise;
return deferred.promise;
}
function launch(options) {
var deffered = q.defer();
var deferred = q.defer();
var combinedOpts = expandOptions(options);

@@ -46,3 +46,3 @@

if (err) {
deffered.reject(err);
deferred.reject(err);
} else {

@@ -68,3 +68,3 @@ var args = config.runtime.arguments ? config.runtime.arguments.split(' ') : [];

if (sData.indexOf('Opened on')) {
deffered.resolve();
deferred.resolve();
}

@@ -81,3 +81,3 @@ } else {

console.log(code);
deffered.resolve(code);
deferred.resolve(code);
});

@@ -88,8 +88,8 @@ }

console.log(error);
deffered.reject(error);
deferred.reject(error);
}
}).fail(function(err) {
deffered.reject(err);
deferred.reject(err);
});
return deffered.promise;
return deferred.promise;
}

@@ -96,0 +96,0 @@

@@ -8,15 +8,15 @@ var q = require('q');

function download(url, writePath) {
var deffered = q.defer();
var deferred = q.defer();
var tmpLocation = '.rvmTmp';
assetFetcher.downloadFile(url, tmpLocation, function(err) {
if (err) {
deffered.reject(err);
deferred.reject(err);
} else {
assetUtilities.unzipFile(tmpLocation, path.dirname(writePath), function(unzipErr) {
if (unzipErr) {
deffered.reject(unzipErr);
deferred.reject(unzipErr);
} else {
fs.unlink(tmpLocation);
//unzip pipe finishes early and the file is still being moved by the OS, need to wait it out.
setTimeout(deffered.resolve, 300);
setTimeout(deferred.resolve, 300);
}

@@ -27,3 +27,3 @@ });

return deffered.promise;
return deferred.promise;
}

@@ -30,0 +30,0 @@

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

function launchOpenFin(options) {
var deffered = q.defer();
var deferred = q.defer();
var combinedOpts = expandOptions(options);

@@ -33,3 +33,3 @@

process.chdir(wd);
deffered.resolve();
deferred.resolve();
}

@@ -42,3 +42,3 @@ }

process.chdir(wd);
deffered.resolve(code);
deferred.resolve(code);
});

@@ -51,3 +51,3 @@

.then(launch)
.fail(deffered.reject);
.fail(deferred.reject);
}

@@ -57,3 +57,3 @@ });

launch();
return deffered.promise;
return deferred.promise;
}

@@ -60,0 +60,0 @@

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