Comparing version 5.7.3 to 5.7.4
@@ -584,3 +584,3 @@ /* jshint node: true */ | ||
var javadoc = this._skip(opts && opts.emitJavadoc); | ||
if (javadoc) { | ||
if (typeof javadoc == 'string') { | ||
token.id = 'javadoc'; | ||
@@ -754,6 +754,6 @@ token.val = javadoc; | ||
}); | ||
while (!lines[0]) { | ||
while (lines.length && !lines[0]) { | ||
lines.shift(); | ||
} | ||
while (!lines[lines.length - 1]) { | ||
while (lines.length && !lines[lines.length - 1]) { | ||
lines.pop(); | ||
@@ -760,0 +760,0 @@ } |
{ | ||
"name": "avsc", | ||
"version": "5.7.3", | ||
"version": "5.7.4", | ||
"description": "Avro for JavaScript", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/mtth/avsc", |
@@ -50,4 +50,8 @@ # Avsc [](https://www.npmjs.com/package/avsc) [](https://www.npmjs.com/package/avsc) [](https://travis-ci.org/mtth/avsc) [](https://coveralls.io/github/mtth/avsc?branch=master) | ||
type: 'record', | ||
name: 'Pet', | ||
fields: [ | ||
{name: 'kind', type: {type: 'enum', symbols: ['CAT', 'DOG']}}, | ||
{ | ||
name: 'kind', | ||
type: {type: 'enum', name: 'PetKind', symbols: ['CAT', 'DOG']} | ||
}, | ||
{name: 'name', type: 'string'} | ||
@@ -54,0 +58,0 @@ ] |
@@ -152,3 +152,3 @@ // Note: These typings are incomplete (https://github.com/mtth/avsc/pull/134). | ||
export function discoverProtocol(transport: Service.Transport, callback: Callback<any>): void; | ||
export function extractFileHeader(filePath: string, options?: any): void; | ||
export function extractFileHeader(filePath: string, options?: any): any; | ||
export function parse(schemaOrProtocolIdl: string, options?: any): any; // TODO protocol literal or Type | ||
@@ -155,0 +155,0 @@ export function readProtocol(protocolIdl: string, options?: Partial<DecoderOptions>): any; |
263244
136