Comparing version 0.11.0 to 0.12.0
Change Log | ||
========== | ||
Version 0.11.1 *(2017-01-25)* | ||
---------------------------- | ||
* Add service options | ||
Version 0.8.0 *(2016-05-19)* | ||
@@ -5,0 +10,0 @@ ---------------------------- |
@@ -21,2 +21,3 @@ | ||
this._methods = {} // by name | ||
this._options = {} | ||
this._methodSequence = [] // note(djm): preserves method sequence w/in the service | ||
@@ -40,2 +41,3 @@ } | ||
fullName: helper.joinPackage(this._package, this._name), | ||
options: this._options, | ||
get methods() { | ||
@@ -81,1 +83,16 @@ if (methods) return methods | ||
} | ||
ServiceDescriptor.prototype.addOption = function (name, value) { | ||
this._options[name] = value | ||
return this | ||
} | ||
ServiceDescriptor.prototype.getOption = function (name) { | ||
return this._options[name] | ||
} | ||
ServiceDescriptor.prototype.getOptionKeys = function () { | ||
return Object.keys(this._options) | ||
} |
@@ -163,2 +163,5 @@ | ||
break | ||
case 'option': | ||
parseOption(service) | ||
break | ||
default: | ||
@@ -165,0 +168,0 @@ throw new ParseError(identifier, token) |
{ | ||
"name": "pbnj", | ||
"version": "0.11.0", | ||
"keywords": ["protocol", "buffer", "proto", "protobuf", "parser", "codegen"], | ||
"version": "0.12.0", | ||
"keywords": [ | ||
"protocol", | ||
"buffer", | ||
"proto", | ||
"protobuf", | ||
"parser", | ||
"codegen" | ||
], | ||
"description": "JavaScript protocol buffer schema parser and template based code generator", | ||
@@ -17,7 +24,9 @@ "homepage": "https://github.com/Medium/pbnj", | ||
}, | ||
"maintainers": [ { | ||
"name": "Dan Pupius", | ||
"email": "dan@pupi.us", | ||
"web": "http://pupius.co.uk/" | ||
} ], | ||
"maintainers": [ | ||
{ | ||
"name": "Dan Pupius", | ||
"email": "dan@pupi.us", | ||
"web": "http://pupius.co.uk/" | ||
} | ||
], | ||
"main": "lib/pbnj.js", | ||
@@ -24,0 +33,0 @@ "scripts": { |
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
107548
2064
1