Comparing version 0.6.1 to 0.6.2
@@ -8,2 +8,3 @@ | ||
var Descriptor = require('./Descriptor') | ||
var FieldDescriptor = require('./FieldDescriptor') | ||
var OneofDescriptor = require('./OneofDescriptor') | ||
@@ -101,2 +102,14 @@ var helper = require('../helper') | ||
/** | ||
* Adds a synthetic field to this message | ||
* e.g. for use by a post-processor to add another field to a message after parsing before compiling | ||
* | ||
* @param {string|FieldType} type The synthetic field type, e.g. string or int32 | ||
* @param {string} name The field name | ||
* @param {number} tag The tag number for this field | ||
* @return {MessageDescriptor} | ||
*/ | ||
MessageDescriptor.prototype.addSyntheticField = function (type, name, tag) { | ||
return this.addField(new FieldDescriptor(type, name, tag)) | ||
} | ||
@@ -103,0 +116,0 @@ /** |
{ | ||
"name": "pbnj", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"keywords": ["protocol", "buffer", "proto", "protobuf", "parser", "codegen"], | ||
@@ -5,0 +5,0 @@ "description": "JavaScript protocol buffer schema parser and template based code generator", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
97363
30
1856
0