node_modules ignore

This commit is contained in:
2025-05-08 23:43:47 +02:00
parent e19d52f172
commit 4574544c9f
65041 changed files with 10593536 additions and 0 deletions

79
server/node_modules/@lezer/json/CHANGELOG.md generated vendored Normal file
View File

@@ -0,0 +1,79 @@
## 1.0.3 (2024-12-29)
### Bug fixes
Emit tokens for colons and commas.
## 1.0.2 (2023-12-28)
### Bug fixes
Tag strings as isolating for the purpose of bidirectional text.
## 1.0.1 (2023-07-03)
### Bug fixes
Make the package work with new TS resolution styles.
## 1.0.0 (2022-06-06)
### New features
First stable version.
## 0.16.0 (2022-04-20)
### Breaking changes
Move to 0.16 serialized parser format.
### New features
The parser now includes syntax highlighting information in its node types.
## 0.15.0 (2021-08-11)
### Breaking changes
The module's name changed from `lezer-json` to `@lezer/json`.
Upgrade to the 0.15.0 lezer interfaces.
## 0.13.2 (2021-06-14)
### Bug fixes
Include nodes for brackets and braces in the tree.
## 0.13.1 (2020-12-04)
### Bug fixes
Fix versions of lezer packages depended on.
## 0.13.0 (2020-12-04)
## 0.12.0 (2020-10-23)
### Breaking changes
Adjust to changed serialized parser format.
## 0.11.1 (2020-09-26)
### Bug fixes
Fix lezer depencency versions
## 0.11.0 (2020-09-26)
### Breaking changes
Follow change in serialized parser format.
## 0.10.0 (2020-09-23)
### Breaking changes
Upgrade to current parser package format.

21
server/node_modules/@lezer/json/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (C) 2020 by Marijn Haverbeke <marijn@haverbeke.berlin>, Arun Srinivasan <rulfzid@gmail.com>, and others
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

7
server/node_modules/@lezer/json/README.md generated vendored Normal file
View File

@@ -0,0 +1,7 @@
# @lezer/json
This is a JSON grammar for the [lezer](https://lezer.codemirror.net/) parser system.
Reference:
- https://www.json.org/json-en.html
- https://tools.ietf.org/html/rfc8259 (The latest IETF RFC contains the latest full spec)

41
server/node_modules/@lezer/json/dist/index.cjs generated vendored Normal file
View File

@@ -0,0 +1,41 @@
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var lr = require('@lezer/lr');
var highlight = require('@lezer/highlight');
const jsonHighlighting = highlight.styleTags({
String: highlight.tags.string,
Number: highlight.tags.number,
"True False": highlight.tags.bool,
PropertyName: highlight.tags.propertyName,
Null: highlight.tags.null,
", :": highlight.tags.separator,
"[ ]": highlight.tags.squareBracket,
"{ }": highlight.tags.brace
});
// This file was generated by lezer-generator. You probably shouldn't edit it.
const parser = lr.LRParser.deserialize({
version: 14,
states: "$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",
stateData: "#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",
goto: "!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",
nodeNames: "⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",
maxTerm: 25,
nodeProps: [
["isolate", -2,6,11,""],
["openedBy", 7,"{",14,"["],
["closedBy", 8,"}",15,"]"]
],
propSources: [jsonHighlighting],
skippedNodes: [0],
repeatNodeCount: 2,
tokenData: "(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",
tokenizers: [0],
topRules: {"JsonText":[0,1]},
tokenPrec: 0
});
exports.parser = parser;

3
server/node_modules/@lezer/json/dist/index.d.cts generated vendored Normal file
View File

@@ -0,0 +1,3 @@
import {LRParser} from "@lezer/lr"
export const parser: LRParser

3
server/node_modules/@lezer/json/dist/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,3 @@
import {LRParser} from "@lezer/lr"
export const parser: LRParser

37
server/node_modules/@lezer/json/dist/index.js generated vendored Normal file
View File

@@ -0,0 +1,37 @@
import { LRParser } from '@lezer/lr';
import { styleTags, tags } from '@lezer/highlight';
const jsonHighlighting = styleTags({
String: tags.string,
Number: tags.number,
"True False": tags.bool,
PropertyName: tags.propertyName,
Null: tags.null,
", :": tags.separator,
"[ ]": tags.squareBracket,
"{ }": tags.brace
});
// This file was generated by lezer-generator. You probably shouldn't edit it.
const parser = LRParser.deserialize({
version: 14,
states: "$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",
stateData: "#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",
goto: "!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",
nodeNames: "⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",
maxTerm: 25,
nodeProps: [
["isolate", -2,6,11,""],
["openedBy", 7,"{",14,"["],
["closedBy", 8,"}",15,"]"]
],
propSources: [jsonHighlighting],
skippedNodes: [0],
repeatNodeCount: 2,
tokenData: "(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",
tokenizers: [0],
topRules: {"JsonText":[0,1]},
tokenPrec: 0
});
export { parser };

36
server/node_modules/@lezer/json/package.json generated vendored Normal file
View File

@@ -0,0 +1,36 @@
{
"name": "@lezer/json",
"version": "1.0.3",
"description": "lezer-based JSON grammar",
"main": "dist/index.cjs",
"type": "module",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"module": "dist/index.js",
"types": "dist/index.d.ts",
"author": "Arun Srinivasan <rulfzid@gmail.com>",
"license": "MIT",
"devDependencies": {
"@lezer/generator": "^1.0.0",
"mocha": "^10.2.0",
"rollup": "^2.52.2",
"@rollup/plugin-node-resolve": "^9.0.0"
},
"dependencies": {
"@lezer/common": "^1.2.0",
"@lezer/highlight": "^1.0.0",
"@lezer/lr": "^1.0.0"
},
"repository": {
"type": "git",
"url": "https://github.com/lezer-parser/json.git"
},
"scripts": {
"build": "lezer-generator src/json.grammar -o src/parser && rollup -c",
"build-debug": "lezer-generator src/json.grammar --names -o src/parser && rollup -c",
"prepare": "npm run build",
"test": "npm run build && mocha test/test-json.js"
}
}

15
server/node_modules/@lezer/json/rollup.config.js generated vendored Normal file
View File

@@ -0,0 +1,15 @@
import {nodeResolve} from "@rollup/plugin-node-resolve"
export default {
input: "./src/parser.js",
output: [
{ format: "cjs", file: "./dist/index.cjs" },
{ format: "es", file: "./dist/index.js" }
],
external(id) {
return !/^[\.\/]/.test(id)
},
plugins: [
nodeResolve()
]
}

12
server/node_modules/@lezer/json/src/highlight.js generated vendored Normal file
View File

@@ -0,0 +1,12 @@
import {styleTags, tags as t} from "@lezer/highlight"
export const jsonHighlighting = styleTags({
String: t.string,
Number: t.number,
"True False": t.bool,
PropertyName: t.propertyName,
Null: t.null,
", :": t.separator,
"[ ]": t.squareBracket,
"{ }": t.brace
})

38
server/node_modules/@lezer/json/src/json.grammar generated vendored Normal file
View File

@@ -0,0 +1,38 @@
@top JsonText { value }
value { True | False | Null | Number | String | Object | Array }
String[isolate] { string }
Object { "{" list<Property>? "}" }
Array { "[" list<value>? "]" }
Property { PropertyName ":" value }
PropertyName[isolate] { string }
@tokens {
True { "true" }
False { "false" }
Null { "null" }
Number { '-'? int frac? exp? }
int { '0' | $[1-9] @digit* }
frac { '.' @digit+ }
exp { $[eE] $[+\-]? @digit+ }
string { '"' char* '"' }
char { $[\u{20}\u{21}\u{23}-\u{5b}\u{5d}-\u{10ffff}] | "\\" esc }
esc { $["\\\/bfnrt] | "u" hex hex hex hex }
hex { $[0-9a-fA-F] }
whitespace { $[ \n\r\t] }
"{" "}" "[" "]" "," ":"
}
@skip { whitespace }
list<item> { item ("," item)* }
@external propSource jsonHighlighting from "./highlight"
@detectDelim

23
server/node_modules/@lezer/json/src/parser.js generated vendored Normal file
View File

@@ -0,0 +1,23 @@
// This file was generated by lezer-generator. You probably shouldn't edit it.
import {LRParser} from "@lezer/lr"
import {jsonHighlighting} from "./highlight"
export const parser = LRParser.deserialize({
version: 14,
states: "$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",
stateData: "#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",
goto: "!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",
nodeNames: "⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",
maxTerm: 25,
nodeProps: [
["isolate", -2,6,11,""],
["openedBy", 7,"{",14,"["],
["closedBy", 8,"}",15,"]"]
],
propSources: [jsonHighlighting],
skippedNodes: [0],
repeatNodeCount: 2,
tokenData: "(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",
tokenizers: [0],
topRules: {"JsonText":[0,1]},
tokenPrec: 0
})

12
server/node_modules/@lezer/json/src/parser.terms.js generated vendored Normal file
View File

@@ -0,0 +1,12 @@
// This file was generated by lezer-generator. You probably shouldn't edit it.
export const
JsonText = 1,
True = 2,
False = 3,
Null = 4,
Number = 5,
String = 6,
Object = 9,
Property = 10,
PropertyName = 11,
Array = 16

34
server/node_modules/@lezer/json/test/arrays.txt generated vendored Normal file
View File

@@ -0,0 +1,34 @@
# Empty Array
[ ]
==>
JsonText(Array)
# Array With One Value
["One is the loneliest number"]
==>
JsonText(Array(String))
# Array With Multiple Values
[
"The more the merrier",
1e5,
true,
{ },
["I'm", "nested"]
]
==>
JsonText(Array(
String,
Number,
True,
Object,
Array(String,String)))

23
server/node_modules/@lezer/json/test/literals.txt generated vendored Normal file
View File

@@ -0,0 +1,23 @@
# True
true
==>
JsonText(True)
# False
false
==>
JsonText(False)
# Null
null
==>
JsonText(Null)

87
server/node_modules/@lezer/json/test/numbers.txt generated vendored Normal file
View File

@@ -0,0 +1,87 @@
# Simple Integer
42
==>
JsonText(Number)
# Zero By Itself Is Ok
0
==>
JsonText(Number)
# Leading Zeros Aren't Ok
[0123]
==>
JsonText(Array(Number, ⚠(Number)))
# Optional Minus Sign
-53
==>
JsonText(Number)
# Decimal Digits
123.4
==>
JsonText(Number)
# Must Have Digits After Decimal
123.
==>
JsonText(Number, ⚠)
# Exponent: Lowercase e
1e5
==>
JsonText(Number)
# Exponent: Uppercase E
1E5
==>
JsonText(Number)
# Exponent: Optional Plus Sign
1e+5
==>
JsonText(Number)
# Exponent: Optional Minus Sign
1E-5
==>
JsonText(Number)
# Exponent Without Digit Is Not Ok
42e
==>
JsonText(Number, ⚠)

34
server/node_modules/@lezer/json/test/objects.txt generated vendored Normal file
View File

@@ -0,0 +1,34 @@
# Empty Object
{ }
==>
JsonText(Object)
# One Property
{
"foo": 123
}
==>
JsonText(Object(Property(PropertyName,Number)))
# Multiple Properties
{
"foo": 123,
"bar": "I'm a bar!",
"obj": {},
"arr": [1, 2, 3]
}
==>
JsonText(Object(
Property(PropertyName,Number),
Property(PropertyName,String),
Property(PropertyName,Object),
Property(PropertyName,Array(Number,Number,Number))))

50
server/node_modules/@lezer/json/test/strings.txt generated vendored Normal file
View File

@@ -0,0 +1,50 @@
# Empty String
""
==>
JsonText(String)
# Non-empty String
"This is a boring old string"
==>
JsonText(String)
# All The Valid One-Character Escapes
"\"\\\/\b\f\n\rt\t"
==>
JsonText(String)
# Unicode Escape
"\u005C"
==>
JsonText(String)
# XXX
{
"description": "Some description",
"keywords": [],
"author": "",
"license": "ISC",
"scripts": {
"test": "echo \"no test specified\" && exit 1"
},
"dependencies": {
"@lezer/common": "^1.2.1"
}
}
==>
JsonText

17
server/node_modules/@lezer/json/test/test-json.js generated vendored Normal file
View File

@@ -0,0 +1,17 @@
import {parser} from '../dist/index.js'
import {fileTests} from '@lezer/generator/dist/test'
import fs from 'fs'
import path from 'path'
import {fileURLToPath} from "url"
let caseDir = path.dirname(fileURLToPath(import.meta.url))
for (let file of fs.readdirSync(caseDir)) {
if (file === 'test-json.js') continue
let name = /^[^\.]*/.exec(file)[0]
describe(name, () => {
for (let { name, run } of fileTests(fs.readFileSync(path.join(caseDir, file), "utf8"), file))
it(name, () => run(parser))
})
}