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

protocol-buffers-schema

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

protocol-buffers-schema - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

test/fixtures/no-tags.proto

2

package.json
{
"name": "protocol-buffers-schema",
"version": "3.1.0",
"version": "3.1.1",
"description": "No nonsense protocol buffers schema parser written in Javascript",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -38,3 +38,3 @@ var tokenize = require('./tokenize')

type: null,
tag: 0,
tag: -1,
map: null,

@@ -84,2 +84,5 @@ oneof: null,

case ';':
if (field.name === null) throw new Error('Missing field name')
if (field.type === null) throw new Error('Missing type in message field: ' + field.name)
if (field.tag === -1) throw new Error('Missing tag number in message field: ' + field.name)
tokens.shift()

@@ -86,0 +89,0 @@ return field

@@ -116,1 +116,8 @@ var tape = require('tape')

})
tape('fail on no tags', function (t) {
t.throws(function () {
schema.parse(fixture('no-tags.proto'))
})
t.end()
})
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