Comparing version 0.1.3 to 0.1.4
12
index.js
@@ -72,2 +72,14 @@ var __extends = this.__extends || function (d, b) { | ||
}; | ||
Object.defineProperty(BufferedFileReader.prototype, "position", { | ||
/** | ||
Return the position in the file that would be read from if we called | ||
readBuffer(...). This is different from the internally-held position, which | ||
points to the end of the currently held buffer. | ||
*/ | ||
get: function () { | ||
return this.file_position - this.buffer.length; | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
/** | ||
@@ -74,0 +86,0 @@ Calls fs.readSync on the underlying file descriptor with pretty much the same |
@@ -94,2 +94,11 @@ /// <reference path="type_declarations/DefinitelyTyped/node/node.d.ts" /> | ||
/** | ||
Return the position in the file that would be read from if we called | ||
readBuffer(...). This is different from the internally-held position, which | ||
points to the end of the currently held buffer. | ||
*/ | ||
get position(): number { | ||
return this.file_position - this.buffer.length; | ||
} | ||
/** | ||
Calls fs.readSync on the underlying file descriptor with pretty much the same | ||
@@ -96,0 +105,0 @@ argument signature. |
@@ -47,2 +47,8 @@ /// <reference path="../../type_declarations/DefinitelyTyped/node/node.d.ts" /> | ||
/** | ||
Return the position in the file that would be read from if we called | ||
readBuffer(...). This is different from the internally-held position, which | ||
points to the end of the currently held buffer. | ||
*/ | ||
position: number; | ||
/** | ||
Calls fs.readSync on the underlying file descriptor with pretty much the same | ||
@@ -49,0 +55,0 @@ argument signature. |
{ | ||
"name": "lexing", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Regex-based lexer", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
86318
1793