Comparing version 0.0.2 to 0.0.3
@@ -145,2 +145,7 @@ 'use strict'; | ||
} | ||
if (firstByte === Delimeters.d) { | ||
({value, rest} = decodeDict(rest)); | ||
result.push(value); | ||
continue; | ||
} | ||
if (firstByte === Delimeters.e) { // end of the list | ||
@@ -147,0 +152,0 @@ rest = rest.slice(1); |
@@ -123,2 +123,7 @@ 'use strict'; | ||
} | ||
if (firstByte === Delimeters.d) { | ||
(_d = decodeDict(rest), value = _d.value, rest = _d.rest, _d); | ||
result.push(value); | ||
continue; | ||
} | ||
if (firstByte === Delimeters.e) { | ||
@@ -131,3 +136,3 @@ rest = rest.slice(1); | ||
return { value: result, rest: rest }; | ||
var _a, _b, _c; | ||
var _a, _b, _c, _d; | ||
} | ||
@@ -134,0 +139,0 @@ function decodeDict(data) { |
{ | ||
"name": "bencoder", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "bencode encoder/decoder written in TypeScript", | ||
@@ -23,3 +23,6 @@ "main": "./out/bencoder.js", | ||
"typescript": "^1.8.10" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/avli/bencoder/issues" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
1
415995
20
3200