Socket
Socket
Sign inDemoInstall

@apollo/protobufjs

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apollo/protobufjs - npm Package Compare versions

Comparing version 1.2.2 to 2.0.0

10

cli/package.json

@@ -5,4 +5,12 @@ {

"jsdoc": "^3.6.3",
"minimist": "^1.2.0"
"minimist": "^1.2.0",
"chalk": "^1.1.3",
"escodegen": "^1.8.1",
"espree": "^3.1.3",
"estraverse": "^4.2.0",
"glob": "^7.1.1",
"semver": "^5.3.0",
"tmp": "0.0.31",
"uglify-js": "^2.8.15"
}
}

50

cli/util.js

@@ -6,3 +6,3 @@ "use strict";

var semver;
var semver = require("semver");

@@ -137,23 +137,29 @@ try {

exports.setup = function() {
var pkg = require(path.join(__dirname, "..", "package.json"));
var version = pkg.dependencies["semver"] || pkg.devDependencies["semver"];
if (!modExists("semver", version)) {
process.stderr.write("installing semver@" + version + "\n");
modInstall("semver@" + version);
}
semver = require("semver"); // used from now on for version comparison
var install = [];
pkg.cliDependencies.forEach(function(name) {
if (name === "semver")
return;
version = pkg.dependencies[name] || pkg.devDependencies[name];
if (!modExists(name, version)) {
process.stderr.write("installing " + name + "@" + version + "\n");
install.push(name + "@" + version);
}
});
require("../scripts/postinstall"); // emit postinstall warning, if any
if (!install.length)
return;
modInstall(install);
// This thing where the CLI installs dependencies at runtime without any
// pinning is very strange. Since we only really care about using this
// CLI from apollo-reporting-protobuf we can just make sure that there
// are appropriate devDependencies set up in that package and not do this
// strange thing.
// var pkg = require(path.join(__dirname, "..", "package.json"));
// var version = pkg.dependencies["semver"] || pkg.devDependencies["semver"];
// if (!modExists("semver", version)) {
// process.stderr.write("installing semver@" + version + "\n");
// modInstall("semver@" + version);
// }
// semver = require("semver"); // used from now on for version comparison
// var install = [];
// pkg.cliDependencies.forEach(function(name) {
// if (name === "semver")
// return;
// version = pkg.dependencies[name] || pkg.devDependencies[name];
// if (!modExists(name, version)) {
// process.stderr.write("installing " + name + "@" + version + "\n");
// install.push(name + "@" + version);
// }
// });
// require("../scripts/postinstall"); // emit postinstall warning, if any
// if (!install.length)
// return;
// modInstall(install);
};

@@ -160,0 +166,0 @@

/*!
* protobuf.js v1.2.1 (c) 2016, daniel wirtz
* compiled thu, 29 apr 2021 21:46:32 utc
* protobuf.js (c) 2016, daniel wirtz
* licensed under the bsd-3-clause license

@@ -5,0 +4,0 @@ * see: https://github.com/apollographql/protobuf.js for details

/*!
* protobuf.js v1.2.1 (c) 2016, daniel wirtz
* compiled thu, 29 apr 2021 21:46:32 utc
* protobuf.js (c) 2016, daniel wirtz
* licensed under the bsd-3-clause license

@@ -5,0 +4,0 @@ * see: https://github.com/apollographql/protobuf.js for details

{
"name": "@apollo/protobufjs",
"version": "1.2.2",
"version": "2.0.0",
"versionScheme": "~",

@@ -5,0 +5,0 @@ "description": "Protocol Buffers for JavaScript (& TypeScript).",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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