🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

leac

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leac - npm Package Compare versions

Comparing version
0.7.0-preview.1
to
0.7.0
+3
-2
lib/leac.d.cts

@@ -120,3 +120,3 @@ /** Options for a {@link Lexer} (not many so far). */

* Replacement string can include patterns,
* the same as [String.prototype.replace()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#specifying_a_string_as_a_parameter).
* the same as [String.prototype.replace()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#specifying_a_string_as_the_replacement).
*

@@ -173,2 +173,3 @@ * This will only affect the text property of the output {@link Token}, not it's offset or length.

export { type Lexer, type LexerResult, type Options, type RegexRule, type ReplacementRule, type Rule, type Rules, type StringRule, type Token, createLexer };
export { createLexer };
export type { Lexer, LexerResult, Options, RegexRule, ReplacementRule, Rule, Rules, StringRule, Token };

@@ -120,3 +120,3 @@ /** Options for a {@link Lexer} (not many so far). */

* Replacement string can include patterns,
* the same as [String.prototype.replace()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#specifying_a_string_as_a_parameter).
* the same as [String.prototype.replace()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#specifying_a_string_as_the_replacement).
*

@@ -173,2 +173,3 @@ * This will only affect the text property of the output {@link Token}, not it's offset or length.

export { type Lexer, type LexerResult, type Options, type RegexRule, type ReplacementRule, type Rule, type Rules, type StringRule, type Token, createLexer };
export { createLexer };
export type { Lexer, LexerResult, Options, RegexRule, ReplacementRule, Rule, Rules, StringRule, Token };
+25
-26
{
"name": "leac",
"version": "0.7.0-preview.1",
"version": "0.7.0",
"description": "Lexer / tokenizer",

@@ -44,6 +44,6 @@ "keywords": [

"benchmark:js": "node ./benchmarks/benchmark.js",
"benchmark:ts": "tsimp ./benchmarks/benchmark.ts",
"benchmark:ts": "node --import ts-blank-space/register ./benchmarks/benchmark.ts",
"benchmark": "npm run benchmark:ts && npm run benchmark:js",
"build:docs": "typedoc",
"build:deno": "denoify && replace-in-file \"/\\.ts\\/index.ts/g\" \".ts\" deno/**/*.ts",
"build:deno": "denoify",
"build:rollup": "rollup -c",

@@ -54,4 +54,4 @@ "build": "npm run clean && npm run build:rollup && npm run build:docs && npm run build:deno",

"clean": "rimraf lib && rimraf docs && rimraf deno",
"example:calc": "tsimp ./examples/calc.ts",
"example:json": "tsimp ./examples/json.ts",
"example:calc": "node --import ts-blank-space/register ./examples/calc.ts",
"example:json": "node --import ts-blank-space/register ./examples/json.ts",
"lint:eslint": "eslint .",

@@ -66,26 +66,25 @@ "lint:md": "markdownlint-cli2",

"devDependencies": {
"@rollup/plugin-typescript": "^12.1.2",
"@stylistic/eslint-plugin": "^4.0.1",
"@tsconfig/node18": "^18.2.4",
"@types/node": "18.19.76",
"@typescript-eslint/eslint-plugin": "^8.25.0",
"ava": "^6.2.0",
"@rollup/plugin-typescript": "^12.1.4",
"@stylistic/eslint-plugin": "^5.3.1",
"@tsconfig/node20": "^20.1.6",
"@types/node": "20.19.13",
"@typescript-eslint/eslint-plugin": "^8.38.0",
"ava": "^6.4.1",
"c8": "^10.1.3",
"denoify": "^1.6.16",
"eslint": "^9.21.0",
"eslint-plugin-jsonc": "^2.19.1",
"denoify": "^1.6.17",
"eslint": "^9.34.0",
"eslint-plugin-jsonc": "^2.20.1",
"eslint-plugin-tsdoc": "^0.4.0",
"iso-bench": "^2.4.7",
"markdownlint-cli2": "^0.17.2",
"replace-in-file": "^8.3.0",
"iso-bench": "^3.0.0",
"markdownlint-cli2": "^0.18.1",
"rimraf": "^6.0.1",
"rollup": "^4.34.8",
"rollup-plugin-delete": "^3.0.0",
"rollup-plugin-dts": "^6.1.1",
"ts-blank-space": "^0.6.0",
"tsimp": "^2.0.12",
"typedoc": "~0.27.9",
"typedoc-plugin-markdown": "~4.4.2",
"typescript": "~5.7.3",
"typescript-eslint": "^8.25.0"
"rollup": "^4.50.0",
"rollup-plugin-delete": "^3.0.1",
"rollup-plugin-dts": "^6.2.3",
"ts-blank-space": "^0.6.2",
"tslib": "^2.8.1",
"typedoc": "~0.28.12",
"typedoc-plugin-markdown": "~4.8.1",
"typescript": "~5.8.3",
"typescript-eslint": "^8.38.0"
},

@@ -92,0 +91,0 @@ "ava": {

@@ -50,3 +50,3 @@ # leac

```ts
import { createLexer, Token } from 'leac';
import { createLexer, type Token } from 'leac';
```

@@ -57,3 +57,3 @@

```ts
import { createLexer, Token } from 'https://deno.land/x/leac@.../leac.ts';
import { createLexer, type Token } from 'https://deno.land/x/leac@.../leac.ts';
```

@@ -87,3 +87,3 @@

- [v0.7.0-preview.1](https://github.com/mxxii/leac/blob/main/docs/index.md)
- [v0.7.0](https://github.com/mxxii/leac/blob/main/docs/index.md)
- [v0.6.0](https://github.com/mxxii/leac/blob/v0.6.0/docs/index.md)

@@ -90,0 +90,0 @@