Permalink
Browse files

Initial base64 string support for bytes fields, see #535

  • Loading branch information...
dcodeIO committed Dec 10, 2016
1 parent 7def340 commit a0398f5880c434ff88fd8d420ba07cc29c5d39d3
@@ -32,7 +32,7 @@
"complexity": 0, // is sometimes necessary
"consistent-return": 1,
"curly": 0, // sometimes more braces than code
"default-case": 1,
"default-case": 0, // just forces unnecessary code
"dot-location": 0, // looks nicer for chainables
"dot-notation": 1,
"eqeqeq": 1,

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
BIN +555 Bytes (100%) dist/protobuf.min.js.gz
Binary file not shown.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -76,7 +76,7 @@ function verifyValue(field, value) {
}
function verifyKey(field, value) {
switch (field.keyType) { // eslint-disable-line default-case
switch (field.keyType) {
case "int64":
case "uint64":
case "sint64":
@@ -213,7 +213,7 @@ function genVerifyValue(gen, field, fieldIndex, ref) {
function genVerifyKey(gen, field, ref) {
/* eslint-disable no-unexpected-multiline */
switch (field.keyType) { // eslint-disable-line default-case
switch (field.keyType) {
case "int64":
case "uint64":
case "sint64":
@@ -54,7 +54,7 @@ var s_open = "{",
* @returns {ParserResult} Parser result
*/
function parse(source, root) {
/* eslint-disable default-case, callback-return */
/* eslint-disable callback-return */
if (!root)
root = new Root();
@@ -39,7 +39,7 @@ function unescape(str) {
* @returns {TokenizerHandle} Tokenizer handle
*/
function tokenize(source) {
/* eslint-disable default-case, callback-return */
/* eslint-disable callback-return */
source = source.toString();
var offset = 0,
@@ -202,5 +202,5 @@ function tokenize(source) {
push: push,
skip: skip
};
/* eslint-enable default-case, callback-return */
/* eslint-enable callback-return */
}
@@ -80,7 +80,7 @@ LongBits.fromNumber = function fromNumber(value) {
* @returns {util.LongBits} Instance
*/
LongBits.from = function from(value) {
switch (typeof value) { // eslint-disable-line default-case
switch (typeof value) {
case 'number':
return LongBits.fromNumber(value);
case 'string':
Oops, something went wrong.

0 comments on commit a0398f5

Please sign in to comment.