protocol-buffers-schema
Advanced tools
Comparing version 3.1.0 to 3.1.1
{ | ||
"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() | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49122
35
1670