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.3.5 to 0.3.6

3

index.js

@@ -536,5 +536,2 @@ var __extends = this.__extends || function (d, b) {

}
if (match[0].length === 0) {
throw new Error("0-width match found without termination; cannot continue");
}
// break out of the for loop while match is still defined

@@ -541,0 +538,0 @@ break;

@@ -589,5 +589,2 @@ /// <reference path="type_declarations/DefinitelyTyped/node/node.d.ts" />

}
if (match[0].length === 0) {
throw new Error(`0-width match found without termination; cannot continue`);
}
// break out of the for loop while match is still defined

@@ -594,0 +591,0 @@ break;

2

package.json
{
"name": "lexing",
"version": "0.3.5",
"version": "0.3.6",
"description": "Regex-based lexer",

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

@@ -40,6 +40,6 @@ // Type definitions for mocha 2.0.1

// bail on the first test failure
bail?: Boolean;
bail?: boolean;
// ignore global leaks
ignoreLeaks?: Boolean;
ignoreLeaks?: boolean;

@@ -46,0 +46,0 @@ // grep string or regexp to filter tests with

@@ -82,3 +82,3 @@ // Type definitions for Node.js v0.12.0

export interface ErrnoException extends Error {
errno?: any;
errno?: number;
code?: string;

@@ -102,3 +102,3 @@ path?: string;

readable: boolean;
read(size?: number): any;
read(size?: number): string|Buffer;
setEncoding(encoding: string): void;

@@ -212,2 +212,4 @@ pause(): void;

slice(start?: number, end?: number): Buffer;
readUIntLE(offset: number, byteLength: number, noAssert?: boolean): number;
readUIntBE(offset: number, byteLength: number, noAssert?: boolean): number;
readUInt8(offset: number, noAsset?: boolean): number;

@@ -282,2 +284,3 @@ readUInt16LE(offset: number, noAssert?: boolean): number;

listen(port: number, hostname?: string, backlog?: number, callback?: Function): Server;
listen(port: number, hostname?: string, callback?: Function): Server;
listen(path: string, callback?: Function): Server;

@@ -289,11 +292,6 @@ listen(handle: any, listeningListener?: Function): Server;

}
export interface ServerRequest extends events.EventEmitter, stream.Readable {
method: string;
url: string;
headers: any;
trailers: string;
httpVersion: string;
setEncoding(encoding?: string): void;
pause(): void;
resume(): void;
/**
* @deprecated Use IncomingMessage
*/
export interface ServerRequest extends IncomingMessage {
connection: net.Socket;

@@ -348,11 +346,31 @@ }

}
export interface ClientResponse extends events.EventEmitter, stream.Readable {
statusCode: number;
export interface IncomingMessage extends events.EventEmitter, stream.Readable {
httpVersion: string;
headers: any;
rawHeaders: string[];
trailers: any;
setEncoding(encoding?: string): void;
pause(): void;
resume(): void;
rawTrailers: any;
setTimeout(msecs: number, callback: Function): NodeJS.Timer;
/**
* Only valid for request obtained from http.Server.
*/
method?: string;
/**
* Only valid for request obtained from http.Server.
*/
url?: string;
/**
* Only valid for response obtained from http.ClientRequest.
*/
statusCode?: number;
/**
* Only valid for response obtained from http.ClientRequest.
*/
statusMessage?: string;
socket: net.Socket;
}
/**
* @deprecated Use IncomingMessage
*/
export interface ClientResponse extends IncomingMessage { }

@@ -399,6 +417,6 @@ export interface AgentOptions {

};
export function createServer(requestListener?: (request: ServerRequest, response: ServerResponse) =>void ): Server;
export function createServer(requestListener?: (request: IncomingMessage, response: ServerResponse) =>void ): Server;
export function createClient(port?: number, host?: string): any;
export function request(options: any, callback?: Function): ClientRequest;
export function get(options: any, callback?: Function): ClientRequest;
export function request(options: any, callback?: (res: IncomingMessage) => void): ClientRequest;
export function get(options: any, callback?: (res: IncomingMessage) => void): ClientRequest;
export var globalAgent: Agent;

@@ -475,2 +493,4 @@ }

export function inflateSync(buf: Buffer): void;
// Constants

@@ -574,4 +594,4 @@ export var Z_NO_FLUSH: number;

export function createServer(options: ServerOptions, requestListener?: Function): Server;
export function request(options: RequestOptions, callback?: (res: http.ClientResponse) =>void ): http.ClientRequest;
export function get(options: RequestOptions, callback?: (res: http.ClientResponse) =>void ): http.ClientRequest;
export function request(options: RequestOptions, callback?: (res: http.IncomingMessage) =>void ): http.ClientRequest;
export function get(options: RequestOptions, callback?: (res: http.IncomingMessage) =>void ): http.ClientRequest;
export var globalAgent: Agent;

@@ -676,4 +696,4 @@ }

killSignal?: string;
}, callback: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
export function exec(command: string, callback: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
}, callback?: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
export function exec(command: string, callback?: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
export function execFile(file: string,

@@ -710,2 +730,14 @@ callback?: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;

}): ChildProcess;
export function execFileSync(command: string, args?: string[], options?: {
cwd?: string;
input?: string|Buffer;
stdio?: any;
env?: any;
uid?: number;
gid?: number;
timeout?: number;
maxBuffer?: number;
killSignal?: string;
encoding?: string;
}): ChildProcess;
}

@@ -789,3 +821,6 @@

remoteAddress: string;
remoteFamily: string;
remotePort: number;
localAddress: string;
localPort: number;
bytesRead: number;

@@ -1036,2 +1071,32 @@ bytesWritten: number;

export function format(pP: ParsedPath): string;
export module posix {
export function normalize(p: string): string;
export function join(...paths: any[]): string;
export function resolve(...pathSegments: any[]): string;
export function isAbsolute(p: string): boolean;
export function relative(from: string, to: string): string;
export function dirname(p: string): string;
export function basename(p: string, ext?: string): string;
export function extname(p: string): string;
export var sep: string;
export var delimiter: string;
export function parse(p: string): ParsedPath;
export function format(pP: ParsedPath): string;
}
export module win32 {
export function normalize(p: string): string;
export function join(...paths: any[]): string;
export function resolve(...pathSegments: any[]): string;
export function isAbsolute(p: string): boolean;
export function relative(from: string, to: string): string;
export function dirname(p: string): string;
export function basename(p: string, ext?: string): string;
export function extname(p: string): string;
export var sep: string;
export var delimiter: string;
export function parse(p: string): ParsedPath;
export function format(pP: ParsedPath): string;
}
}

@@ -1226,3 +1291,3 @@

_read(size: number): void;
read(size?: number): any;
read(size?: number): string|Buffer;
setEncoding(encoding: string): void;

@@ -1229,0 +1294,0 @@ pause(): void;

Sorry, the diff of this file is not supported yet

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