Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lexing

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lexing - npm Package Compare versions

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.

2

package.json
{
"name": "lexing",
"version": "0.1.3",
"version": "0.1.4",
"description": "Regex-based lexer",

@@ -5,0 +5,0 @@ "keywords": [],

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc