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

openfin-cli

Package Overview
Dependencies
Maintainers
18
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openfin-cli - npm Package Compare versions

Comparing version 3.0.2-beta.1 to 3.0.2-beta.2

6

index.js

@@ -39,3 +39,3 @@ 'use strict';

const config = await fetch(manifestUrl);
configObj = JSON.parse(config);
configObj = config;
} else {

@@ -85,7 +85,7 @@ manifestUrl = path.resolve(manifestUrl);

function writeManifest(url, devtoolsPort, runtime, isPlatform, manifestName) {
const writeManifest = (url, devtoolsPort, runtime, isPlatform, manifestName) => {
return new Promise((resolve, reject) => {
const uuid = `app-${getUuid()}`;
const devtools_port = devtoolsPort ? devtoolsPort : 9090;
const version = runtime ? runtime : "stable"
const version = runtime ? runtime : 'stable';
const parsedUrls = url.split(',');

@@ -92,0 +92,0 @@ let manifest;

{
"name": "openfin-cli",
"version": "3.0.2-beta.1",
"version": "3.0.2-beta.2",
"description": "OpenFin Runtime cli tool",

@@ -26,5 +26,5 @@ "homepage": "http://www.openfin.co",

"dependencies": {
"axios": "^0.19.2",
"hadouken-js-adapter": "^1.44.1",
"meow": "^5.0.0",
"request": "^2.87.0",
"node-machine-id": "^1.1.10"

@@ -31,0 +31,0 @@ },

@@ -1,24 +0,18 @@

const request = require('request');
const axios = require('axios');
function fetch(url) {
return new Promise((resolve, reject) => {
request(url, function (error, response, body) {
if (response.statusCode < 200 || response.statusCode > 399) {
reject(new Error(`Failed to load url: ${url}, status code:${response.statusCode}`));
}
const fetch = async (url) => {
const response = await axios.get(url);
if (error) {
reject(error);
}
resolve(body);
});
});
if (response.status < 200 || response.status > 399) {
throw new Error(`Failed to load url: ${url}, status code:${response.status}`);
} else {
return response.data;
}
}
function isURL(str) {
const isURL = (str) => {
return (typeof str === 'string') && str.lastIndexOf('http') >= 0;
}
function getUuid() {
const getUuid = () => {
return `${Date.now()}-${Math.floor(Math.random() * 10000)}`;

@@ -25,0 +19,0 @@ }

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