Socket
Socket
Sign inDemoInstall

google-protobuf

Package Overview
Dependencies
210
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0-alpha.6 to 3.0.0-alpha.6.1

google/protobuf/any_pb.js

37

gulpfile.js

@@ -11,2 +11,17 @@ var gulp = require('gulp');

var wellKnownTypes = [
'../src/google/protobuf/any.proto',
'../src/google/protobuf/api.proto',
'../src/google/protobuf/compiler/plugin.proto',
'../src/google/protobuf/descriptor.proto',
'../src/google/protobuf/duration.proto',
'../src/google/protobuf/empty.proto',
'../src/google/protobuf/field_mask.proto',
'../src/google/protobuf/source_context.proto',
'../src/google/protobuf/struct.proto',
'../src/google/protobuf/timestamp.proto',
'../src/google/protobuf/type.proto',
'../src/google/protobuf/wrappers.proto',
];
gulp.task('genproto_closure', function (cb) {

@@ -30,3 +45,21 @@ exec(protoc + ' --js_out=library=testproto_libs,binary:. -I ../src -I . *.proto ../src/google/protobuf/descriptor.proto',

gulp.task('dist', function (cb) {
gulp.task('genproto_commonjs_wellknowntypes', function (cb) {
exec('mkdir -p commonjs_out/node_modules/google-protobuf && ' + protoc + ' --js_out=import_style=commonjs,binary:commonjs_out/node_modules/google-protobuf -I ../src ../src/google/protobuf/descriptor.proto',
function (err, stdout, stderr) {
console.log(stdout);
console.log(stderr);
cb(err);
});
});
gulp.task('genproto_wellknowntypes', function (cb) {
exec(protoc + ' --js_out=import_style=commonjs,binary:. -I ../src ' + wellKnownTypes.join(' '),
function (err, stdout, stderr) {
console.log(stdout);
console.log(stderr);
cb(err);
});
});
gulp.task('dist', ['genproto_wellknowntypes'], function (cb) {
// TODO(haberman): minify this more aggressively.

@@ -60,3 +93,3 @@ // Will require proper externs/exports.

gulp.task('make_commonjs_out', ['dist', 'genproto_commonjs', 'commonjs_asserts', 'commonjs_testdeps'], function (cb) {
gulp.task('make_commonjs_out', ['dist', 'genproto_commonjs', 'genproto_commonjs_wellknowntypes', 'commonjs_asserts', 'commonjs_testdeps'], function (cb) {
// TODO(haberman): minify this more aggressively.

@@ -63,0 +96,0 @@ // Will require proper externs/exports.

3

package.json
{
"name": "google-protobuf",
"version": "3.0.0-alpha.6",
"version": "3.0.0-alpha.6.1",
"description": "Protocol Buffers for JavaScript",
"main": "google-protobuf.js",
"files": "google",
"dependencies": {

@@ -7,0 +8,0 @@ "google-closure-library": "~20160125.0.0",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc