New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cx-protofetch

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cx-protofetch - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

11

getBinary.js

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

const { Binary } = require('binary-install');
const os = require('os');
import { Binary } from 'simple-binary-install';
import * as os from 'os';
import * as fs from 'fs';

@@ -31,5 +32,5 @@ function getPlatform() {

function getBinary() {
export function getBinary() {
const platform = getPlatform();
const version = require('./package.json').version;
const { version } = JSON.parse(fs.readFileSync('./package.json'));
const url = `https://github.com/coralogix/protofetch/releases/download/v${version}/protofetch_${platform}.tar.gz`;

@@ -40,3 +41,1 @@ const name = 'protofetch';

}
module.exports = getBinary;
{
"name": "cx-protofetch",
"version": "0.1.2",
"version": "0.1.3",
"description": "A source dependency management tool for Protobuf.",

@@ -8,2 +8,3 @@ "repository": "https://github.com/coralogix/protofetch.git",

"license": "Apache-2.0",
"type": "module",
"bin": {

@@ -16,8 +17,4 @@ "protofetch": "run.js"

"dependencies": {
"binary-install": "^1.0.1"
"simple-binary-install": "^0.2.1"
},
"devDependencies": {
"ncp": "^2.0.0",
"vuepress": "^1.9.7"
},
"keywords": [

@@ -24,0 +21,0 @@ "proto",

#!/usr/bin/env node
const getBinary = require('./getBinary');
import { getBinary } from './getBinary.js';
const binary = getBinary();
binary.run();
getBinary().run();

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

function getBinary({ fatal }) {
try {
return require('./getBinary')();
} catch (err) {
if (fatal) throw err;
}
}
import { getBinary } from './getBinary.js';
if (process.argv.includes('install')) {
const binary = getBinary({ fatal: true });
if (binary) binary.install();
getBinary().install();
}

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