New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@types/bbob__parser

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/bbob__parser - npm Package Compare versions

Comparing version
3.0.2
to
4.0.0
+5
-20
bbob__parser/package.json
{
"name": "@types/bbob__parser",
"version": "3.0.2",
"description": "TypeScript definitions for @bbob/parser",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bbob__parser",
"license": "MIT",
"contributors": [
{
"name": "shme-e",
"githubUsername": "shme-e",
"url": "https://github.com/shme-e"
}
],
"version": "4.0.0",
"description": "Stub TypeScript definitions entry for @bbob/parser, which provides its own types definitions",
"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/bbob__parser"
},
"scripts": {},
"license": "MIT",
"dependencies": {
"@types/bbob__plugin-helper": "*"
"@bbob/parser": "*"
},
"typesPublisherContentHash": "38460084e287244b2d5fba42c5d64cc430e67355480e617184423ad3495e1a69",
"typeScriptVersion": "4.5"
"deprecated": "This is a stub types definition. @bbob/parser provides its own type definitions, so you do not need this installed."
}
+2
-14

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

# Installation
> `npm install --save @types/bbob__parser`
This is a stub types definition for @types/bbob__parser (https://github.com/JiLiZART/bbob).
# Summary
This package contains type definitions for @bbob/parser (https://github.com/JiLiZART/bbob).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bbob__parser.
### Additional Details
* Last updated: Mon, 20 Nov 2023 23:36:23 GMT
* Dependencies: [@types/bbob__plugin-helper](https://npmjs.com/package/@types/bbob__plugin-helper)
# Credits
These definitions were written by [shme-e](https://github.com/shme-e).
@bbob/parser provides its own type definitions, so you don't need @types/bbob__parser installed!
export { TagNode } from "@bbob/plugin-helper";
export { default, parse } from "./parse";
import { Token, TOKEN_TYPE } from "./Token";
export function createToken(type: TOKEN_TYPE, value: string, line?: number, row?: number): Token;
export class Lexer {
tokenize(): readonly Token[];
isTokenNested(token: Token): boolean;
}
export function createLexer(buffer: string, options?: {
onToken?(token: Token): void;
openTag?: string;
closeTag?: string;
enableEscapeTags?: boolean;
contextFreeTags?: readonly string[];
}): Lexer;
import { Node } from "@bbob/plugin-helper";
import { createLexer } from "./lexer";
export function parse(input: string, opts?: {
createTokenizer?(): typeof createLexer;
onlyAllowTags?: readonly string[];
contextFreeTags?: readonly string[];
enableEscapeTags?: boolean;
openTag?: string;
closeTag?: string;
}): Node[];
export default parse;
export class Token {
constructor(type?: TOKEN_TYPE, value?: string, line?: number, row?: number);
[TYPE_ID]?: TOKEN_TYPE;
[VALUE_ID]?: string;
[LINE_ID]?: number;
[COLUMN_ID]?: number;
isEmpty(): boolean;
isText(): boolean;
isTag(): boolean;
isAttrName(): boolean;
isAttrValue(): boolean;
isStart(): boolean;
isEnd(): boolean;
getName(): string;
getValue(): string;
getLine(): number;
getColumn(): number;
toString(): string;
}
export const TYPE_ID = "type";
export const VALUE_ID = "value";
export const LINE_ID = "line";
export const COLUMN_ID = "row";
export const TYPE_WORD = 1;
export const TYPE_TAG = 2;
export const TYPE_ATTR_NAME = 3;
export const TYPE_ATTR_VALUE = 4;
export const TYPE_SPACE = 5;
export const TYPE_NEW_LINE = 6;
export type TOKEN_TYPE =
| typeof TYPE_WORD
| typeof TYPE_TAG
| typeof TYPE_ATTR_NAME
| typeof TYPE_ATTR_VALUE
| typeof TYPE_SPACE
| typeof TYPE_NEW_LINE;
export default Token;
import { Node } from "@bbob/plugin-helper";
export interface Options {
onSkip: boolean;
}
export interface CharGrabber {
skip(num: number, silent: boolean): void;
hasNext(): boolean;
getCurr(): string;
getRest(): string;
getNext(): string | null;
getPrev(): string | null;
isLast(): boolean;
includes(val: string): boolean;
grabWhile(cond: (curr: string) => boolean, silent: boolean): string;
grabN(num?: number): string;
substrUntilChar(char: string): string;
}
/**
* Creates a grabber wrapper for source string, that helps to iterate over string char by char
*/
export function createCharGrabber(source: string, options?: Options): CharGrabber;
export function trimChar(str: string, charToRemove: string): string;
export function unquote(str: string): string;
export type NodeListValue = Node;
export interface NodeList {
push(value: NodeListValue): void;
toArray(): NodeListValue[];
getLast(): NodeListValue | null;
flushLast(): NodeListValue | boolean;
}
export function createList(values?: NodeListValue[]): NodeList;