🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

onigasm

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

onigasm - npm Package Compare versions

Comparing version

to
1.1.0

0

lib/index.js

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

6

lib/typings/index.d.ts
import { loadWASM } from './onigasmH';
import OnigScanner from './OnigScanner';
import OnigRegExp from './OnigRegExp';
import OnigScanner, { IOnigCaptureIndex } from './OnigScanner';
import OnigRegExp, { IOnigSearchResult } from './OnigRegExp';
import OnigString from './OnigString';
export { loadWASM, OnigScanner, OnigRegExp, OnigString };
export { loadWASM, OnigScanner, OnigRegExp, OnigString, IOnigCaptureIndex, IOnigSearchResult };

@@ -0,0 +0,0 @@ /**

@@ -1,3 +0,3 @@

import { OnigCaptureIndex } from './OnigScanner';
export interface OnigSearchResult extends OnigCaptureIndex {
import { IOnigCaptureIndex } from './OnigScanner';
export interface IOnigSearchResult extends IOnigCaptureIndex {
match: string;

@@ -18,3 +18,3 @@ }

*/
searchSync(string: string, startPosition?: number): OnigSearchResult[];
searchSync(string: string, startPosition?: number): IOnigSearchResult[];
/**

@@ -26,3 +26,3 @@ * Search the string for a match starting at the given position

*/
search(string: string, startPosition?: number, callback?: (error: any, match?: OnigSearchResult[]) => void): void;
search(string: string, startPosition?: number, callback?: (error: any, match?: IOnigSearchResult[]) => void): void;
/**

@@ -29,0 +29,0 @@ * Synchronously test if this regular expression matches the given string

@@ -1,2 +0,2 @@

export interface OnigCaptureIndex {
export interface IOnigCaptureIndex {
index: number;

@@ -7,5 +7,5 @@ start: number;

}
export interface OnigMatch {
export interface IOnigMatch {
index: number;
captureIndices: OnigCaptureIndex[];
captureIndices: IOnigCaptureIndex[];
scanner: OnigScanner;

@@ -27,3 +27,3 @@ }

*/
findNextMatch(string: string, startPosition: number, callback: (err, match?: OnigMatch) => void): void;
findNextMatch(string: string, startPosition: number, callback: (err, match?: IOnigMatch) => void): void;
/**

@@ -34,3 +34,3 @@ * Find the next match from a given position

*/
findNextMatchSync(string: string, startPosition: number): OnigMatch;
findNextMatchSync(string: string, startPosition: number): IOnigMatch;
convertToString(value: any): any;

@@ -37,0 +37,0 @@ convertToNumber(value: any): any;

@@ -0,0 +0,0 @@ declare class OnigString {

export declare function encode(str: string): Uint8Array;

@@ -0,0 +0,0 @@ "use strict";

{
"name": "onigasm",
"version": "1.0.1",
"version": "1.1.0",
"description": "WebAssembly port of Oniguruma regex library",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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