@jvittechs/jai1-cli 0.1.95 → 0.1.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +684 -122
- package/dist/cli.js.map +1 -1
- package/dist/web-chat/README.md +418 -0
- package/dist/web-chat/app.js +1527 -0
- package/dist/web-chat/index.html +324 -0
- package/dist/web-chat/node_modules/.bin/0ecdsa-generate-keypair +15 -0
- package/dist/web-chat/node_modules/.bin/0gentesthtml +89 -0
- package/dist/web-chat/node_modules/.bin/0serve +97 -0
- package/dist/web-chat/node_modules/.bin/acorn +4 -0
- package/dist/web-chat/node_modules/.bin/autoprefixer +22 -0
- package/dist/web-chat/node_modules/.bin/baseline-browser-mapping +2 -0
- package/dist/web-chat/node_modules/.bin/browserslist +156 -0
- package/dist/web-chat/node_modules/.bin/esbuild +0 -0
- package/dist/web-chat/node_modules/.bin/jiti +34 -0
- package/dist/web-chat/node_modules/.bin/js-yaml +126 -0
- package/dist/web-chat/node_modules/.bin/jsesc +148 -0
- package/dist/web-chat/node_modules/.bin/json5 +152 -0
- package/dist/web-chat/node_modules/.bin/katex +112 -0
- package/dist/web-chat/node_modules/.bin/loose-envify +16 -0
- package/dist/web-chat/node_modules/.bin/lz-string +13 -0
- package/dist/web-chat/node_modules/.bin/nanoid +55 -0
- package/dist/web-chat/node_modules/.bin/parser +15 -0
- package/dist/web-chat/node_modules/.bin/prebuild-install +78 -0
- package/dist/web-chat/node_modules/.bin/rc +4 -0
- package/dist/web-chat/node_modules/.bin/rollup +1912 -0
- package/dist/web-chat/node_modules/.bin/semver +174 -0
- package/dist/web-chat/node_modules/.bin/tsc +2 -0
- package/dist/web-chat/node_modules/.bin/tsserver +2 -0
- package/dist/web-chat/node_modules/.bin/update-browserslist-db +42 -0
- package/dist/web-chat/node_modules/.bin/uuid +2 -0
- package/dist/web-chat/node_modules/.bin/uvu +35 -0
- package/dist/web-chat/node_modules/.bin/vite +61 -0
- package/dist/web-chat/node_modules/.package-lock.json +15371 -0
- package/dist/web-chat/node_modules/.vite/deps/_metadata.json +67 -0
- package/dist/web-chat/node_modules/.vite/deps/chunk-DC5AMYBS.js +39 -0
- package/dist/web-chat/node_modules/.vite/deps/chunk-DC5AMYBS.js.map +7 -0
- package/dist/web-chat/node_modules/.vite/deps/chunk-NUMECXU6.js +21628 -0
- package/dist/web-chat/node_modules/.vite/deps/chunk-NUMECXU6.js.map +7 -0
- package/dist/web-chat/node_modules/.vite/deps/chunk-RLJ2RCJQ.js +1906 -0
- package/dist/web-chat/node_modules/.vite/deps/chunk-RLJ2RCJQ.js.map +7 -0
- package/dist/web-chat/node_modules/.vite/deps/chunk-S725DACQ.js +928 -0
- package/dist/web-chat/node_modules/.vite/deps/chunk-S725DACQ.js.map +7 -0
- package/dist/web-chat/node_modules/.vite/deps/chunk-XJVUMEYI.js +8578 -0
- package/dist/web-chat/node_modules/.vite/deps/chunk-XJVUMEYI.js.map +7 -0
- package/dist/web-chat/node_modules/.vite/deps/package.json +3 -0
- package/dist/web-chat/node_modules/.vite/deps/react-dom.js +7 -0
- package/dist/web-chat/node_modules/.vite/deps/react-dom.js.map +7 -0
- package/dist/web-chat/node_modules/.vite/deps/react-dom_client.js +39 -0
- package/dist/web-chat/node_modules/.vite/deps/react-dom_client.js.map +7 -0
- package/dist/web-chat/node_modules/.vite/deps/react-markdown.js +8931 -0
- package/dist/web-chat/node_modules/.vite/deps/react-markdown.js.map +7 -0
- package/dist/web-chat/node_modules/.vite/deps/react.js +6 -0
- package/dist/web-chat/node_modules/.vite/deps/react.js.map +7 -0
- package/dist/web-chat/node_modules/.vite/deps/react_jsx-dev-runtime.js +913 -0
- package/dist/web-chat/node_modules/.vite/deps/react_jsx-dev-runtime.js.map +7 -0
- package/dist/web-chat/node_modules/.vite/deps/react_jsx-runtime.js +7 -0
- package/dist/web-chat/node_modules/.vite/deps/react_jsx-runtime.js.map +7 -0
- package/dist/web-chat/node_modules/.vite/deps/remark-gfm.js +7403 -0
- package/dist/web-chat/node_modules/.vite/deps/remark-gfm.js.map +7 -0
- package/dist/web-chat/node_modules/@codemirror/autocomplete/.github/workflows/dispatch.yml +16 -0
- package/dist/web-chat/node_modules/@codemirror/commands/.github/workflows/dispatch.yml +16 -0
- package/dist/web-chat/node_modules/@codemirror/lang-cpp/.github/workflows/dispatch.yml +16 -0
- package/dist/web-chat/node_modules/@codemirror/lang-css/.github/workflows/dispatch.yml +16 -0
- package/dist/web-chat/node_modules/@codemirror/lang-go/.github/workflows/dispatch.yml +16 -0
- package/dist/web-chat/node_modules/@codemirror/lang-html/.github/workflows/dispatch.yml +16 -0
- package/dist/web-chat/node_modules/@codemirror/lang-java/.github/workflows/dispatch.yml +16 -0
- package/dist/web-chat/node_modules/@codemirror/lang-javascript/.github/workflows/dispatch.yml +16 -0
- package/dist/web-chat/node_modules/@codemirror/lang-json/.github/workflows/dispatch.yml +16 -0
- package/dist/web-chat/node_modules/@codemirror/lang-less/.github/workflows/dispatch.yml +16 -0
- package/dist/web-chat/node_modules/@codemirror/lang-markdown/.github/workflows/dispatch.yml +16 -0
- package/dist/web-chat/node_modules/@codemirror/lang-python/.github/workflows/dispatch.yml +16 -0
- package/dist/web-chat/node_modules/@codemirror/lang-rust/.github/workflows/dispatch.yml +16 -0
- package/dist/web-chat/node_modules/@codemirror/lang-sass/.github/workflows/dispatch.yml +16 -0
- package/dist/web-chat/node_modules/@codemirror/lang-sql/.github/workflows/dispatch.yml +16 -0
- package/dist/web-chat/node_modules/@codemirror/lang-wast/.github/workflows/dispatch.yml +16 -0
- package/dist/web-chat/node_modules/@codemirror/lang-xml/.github/workflows/dispatch.yml +16 -0
- package/dist/web-chat/node_modules/@codemirror/lang-yaml/.github/workflows/dispatch.yml +16 -0
- package/dist/web-chat/node_modules/@codemirror/language/.github/workflows/dispatch.yml +16 -0
- package/dist/web-chat/node_modules/@codemirror/language-data/.github/workflows/dispatch.yml +16 -0
- package/dist/web-chat/node_modules/@codemirror/legacy-modes/.github/workflows/dispatch.yml +16 -0
- package/dist/web-chat/node_modules/@codemirror/lint/.github/workflows/dispatch.yml +16 -0
- package/dist/web-chat/node_modules/@codemirror/search/.github/workflows/dispatch.yml +16 -0
- package/dist/web-chat/node_modules/@codemirror/state/.github/workflows/dispatch.yml +16 -0
- package/dist/web-chat/node_modules/@codemirror/theme-one-dark/.github/workflows/dispatch.yml +16 -0
- package/dist/web-chat/node_modules/@codemirror/view/.github/workflows/dispatch.yml +16 -0
- package/dist/web-chat/node_modules/@lezer/html/src/.tern-port +1 -0
- package/dist/web-chat/node_modules/@lezer/php/.tern-port +1 -0
- package/dist/web-chat/node_modules/@lezer/php/test/.tern-port +1 -0
- package/dist/web-chat/node_modules/@lezer/sass/src/.tern-port +1 -0
- package/dist/web-chat/node_modules/@lezer/yaml/.tern-port +1 -0
- package/dist/web-chat/node_modules/@ungap/structured-clone/.github/workflows/node.js.yml +31 -0
- package/dist/web-chat/node_modules/bl/.travis.yml +17 -0
- package/dist/web-chat/node_modules/clean-set/.prettierrc +4 -0
- package/dist/web-chat/node_modules/clean-set/.travis.yml +7 -0
- package/dist/web-chat/node_modules/codemirror/.github/workflows/dispatch.yml +16 -0
- package/dist/web-chat/node_modules/entities/src/generated/.eslintrc.json +10 -0
- package/dist/web-chat/node_modules/es5-ext/promise/.eslintrc.json +1 -0
- package/dist/web-chat/node_modules/es6-iterator/.editorconfig +14 -0
- package/dist/web-chat/node_modules/es6-iterator/test/.eslintrc.json +5 -0
- package/dist/web-chat/node_modules/es6-symbol/.testignore +1 -0
- package/dist/web-chat/node_modules/escape-carriage/.github/workflows/node.js.yml +19 -0
- package/dist/web-chat/node_modules/esniff/.prettierignore +2 -0
- package/dist/web-chat/node_modules/esniff/.testignore +3 -0
- package/dist/web-chat/node_modules/event-emitter/.lint +15 -0
- package/dist/web-chat/node_modules/event-emitter/.testignore +1 -0
- package/dist/web-chat/node_modules/event-emitter/.travis.yml +16 -0
- package/dist/web-chat/node_modules/expand-template/.travis.yml +6 -0
- package/dist/web-chat/node_modules/extend/.editorconfig +20 -0
- package/dist/web-chat/node_modules/extend/.eslintrc +17 -0
- package/dist/web-chat/node_modules/extend/.jscs.json +175 -0
- package/dist/web-chat/node_modules/extend/.travis.yml +230 -0
- package/dist/web-chat/node_modules/gensync/test/.babelrc +5 -0
- package/dist/web-chat/node_modules/github-from-package/.travis.yml +4 -0
- package/dist/web-chat/node_modules/intersection-observer/.eslintrc +45 -0
- package/dist/web-chat/node_modules/lib0/.github/workflows/node.js.yml +24 -0
- package/dist/web-chat/node_modules/lib0/.jsdoc.json +18 -0
- package/dist/web-chat/node_modules/lib0/.vscode/launch.json +17 -0
- package/dist/web-chat/node_modules/minimist/.eslintrc +29 -0
- package/dist/web-chat/node_modules/minimist/.github/FUNDING.yml +12 -0
- package/dist/web-chat/node_modules/minimist/.nycrc +14 -0
- package/dist/web-chat/node_modules/napi-build-utils/.github/workflows/run-npm-tests.yml +31 -0
- package/dist/web-chat/node_modules/next-tick/.editorconfig +16 -0
- package/dist/web-chat/node_modules/next-tick/.github/FUNDING.yml +1 -0
- package/dist/web-chat/node_modules/next-tick/.lint +16 -0
- package/dist/web-chat/node_modules/node-abi/node_modules/.bin/semver +191 -0
- package/dist/web-chat/node_modules/pump/.github/FUNDING.yml +2 -0
- package/dist/web-chat/node_modules/pump/.travis.yml +5 -0
- package/dist/web-chat/node_modules/simple-concat/.travis.yml +3 -0
- package/dist/web-chat/node_modules/simple-get/.github/dependabot.yml +15 -0
- package/dist/web-chat/node_modules/simple-get/.github/workflows/ci.yml +23 -0
- package/dist/web-chat/node_modules/tar-fs/.travis.yml +6 -0
- package/dist/web-chat/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
- package/dist/web-chat/node_modules/w3c-keyname/.tern-port +1 -0
- package/dist/web-chat/style.css +1882 -0
- package/package.json +4 -2
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
root = true
|
|
2
|
+
|
|
3
|
+
[*]
|
|
4
|
+
indent_style = tab
|
|
5
|
+
indent_size = 4
|
|
6
|
+
end_of_line = lf
|
|
7
|
+
charset = utf-8
|
|
8
|
+
trim_trailing_whitespace = true
|
|
9
|
+
insert_final_newline = true
|
|
10
|
+
max_line_length = 150
|
|
11
|
+
|
|
12
|
+
[CHANGELOG.md]
|
|
13
|
+
indent_style = space
|
|
14
|
+
indent_size = 2
|
|
15
|
+
|
|
16
|
+
[*.json]
|
|
17
|
+
max_line_length = off
|
|
18
|
+
|
|
19
|
+
[Makefile]
|
|
20
|
+
max_line_length = off
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"root": true,
|
|
3
|
+
|
|
4
|
+
"extends": "@ljharb",
|
|
5
|
+
|
|
6
|
+
"rules": {
|
|
7
|
+
"complexity": [2, 20],
|
|
8
|
+
"eqeqeq": [2, "allow-null"],
|
|
9
|
+
"func-name-matching": [1],
|
|
10
|
+
"max-depth": [1, 4],
|
|
11
|
+
"max-statements": [2, 26],
|
|
12
|
+
"no-extra-parens": [1],
|
|
13
|
+
"no-magic-numbers": [0],
|
|
14
|
+
"no-restricted-syntax": [2, "BreakStatement", "ContinueStatement", "DebuggerStatement", "LabeledStatement", "WithStatement"],
|
|
15
|
+
"sort-keys": [0],
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
{
|
|
2
|
+
"es3": true,
|
|
3
|
+
|
|
4
|
+
"additionalRules": [],
|
|
5
|
+
|
|
6
|
+
"requireSemicolons": true,
|
|
7
|
+
|
|
8
|
+
"disallowMultipleSpaces": true,
|
|
9
|
+
|
|
10
|
+
"disallowIdentifierNames": [],
|
|
11
|
+
|
|
12
|
+
"requireCurlyBraces": {
|
|
13
|
+
"allExcept": [],
|
|
14
|
+
"keywords": ["if", "else", "for", "while", "do", "try", "catch"]
|
|
15
|
+
},
|
|
16
|
+
|
|
17
|
+
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch", "function"],
|
|
18
|
+
|
|
19
|
+
"disallowSpaceAfterKeywords": [],
|
|
20
|
+
|
|
21
|
+
"disallowSpaceBeforeComma": true,
|
|
22
|
+
"disallowSpaceAfterComma": false,
|
|
23
|
+
"disallowSpaceBeforeSemicolon": true,
|
|
24
|
+
|
|
25
|
+
"disallowNodeTypes": [
|
|
26
|
+
"DebuggerStatement",
|
|
27
|
+
"LabeledStatement",
|
|
28
|
+
"SwitchCase",
|
|
29
|
+
"SwitchStatement",
|
|
30
|
+
"WithStatement"
|
|
31
|
+
],
|
|
32
|
+
|
|
33
|
+
"requireObjectKeysOnNewLine": { "allExcept": ["sameLine"] },
|
|
34
|
+
|
|
35
|
+
"requireSpacesInAnonymousFunctionExpression": { "beforeOpeningRoundBrace": true, "beforeOpeningCurlyBrace": true },
|
|
36
|
+
"requireSpacesInNamedFunctionExpression": { "beforeOpeningCurlyBrace": true },
|
|
37
|
+
"disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true },
|
|
38
|
+
"requireSpacesInFunctionDeclaration": { "beforeOpeningCurlyBrace": true },
|
|
39
|
+
"disallowSpacesInFunctionDeclaration": { "beforeOpeningRoundBrace": true },
|
|
40
|
+
|
|
41
|
+
"requireSpaceBetweenArguments": true,
|
|
42
|
+
|
|
43
|
+
"disallowSpacesInsideParentheses": true,
|
|
44
|
+
|
|
45
|
+
"disallowSpacesInsideArrayBrackets": true,
|
|
46
|
+
|
|
47
|
+
"disallowQuotedKeysInObjects": { "allExcept": ["reserved"] },
|
|
48
|
+
|
|
49
|
+
"disallowSpaceAfterObjectKeys": true,
|
|
50
|
+
|
|
51
|
+
"requireCommaBeforeLineBreak": true,
|
|
52
|
+
|
|
53
|
+
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
|
|
54
|
+
"requireSpaceAfterPrefixUnaryOperators": [],
|
|
55
|
+
|
|
56
|
+
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
|
|
57
|
+
"requireSpaceBeforePostfixUnaryOperators": [],
|
|
58
|
+
|
|
59
|
+
"disallowSpaceBeforeBinaryOperators": [],
|
|
60
|
+
"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
|
|
61
|
+
|
|
62
|
+
"requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
|
|
63
|
+
"disallowSpaceAfterBinaryOperators": [],
|
|
64
|
+
|
|
65
|
+
"disallowImplicitTypeConversion": ["binary", "string"],
|
|
66
|
+
|
|
67
|
+
"disallowKeywords": ["with", "eval"],
|
|
68
|
+
|
|
69
|
+
"requireKeywordsOnNewLine": [],
|
|
70
|
+
"disallowKeywordsOnNewLine": ["else"],
|
|
71
|
+
|
|
72
|
+
"requireLineFeedAtFileEnd": true,
|
|
73
|
+
|
|
74
|
+
"disallowTrailingWhitespace": true,
|
|
75
|
+
|
|
76
|
+
"disallowTrailingComma": true,
|
|
77
|
+
|
|
78
|
+
"excludeFiles": ["node_modules/**", "vendor/**"],
|
|
79
|
+
|
|
80
|
+
"disallowMultipleLineStrings": true,
|
|
81
|
+
|
|
82
|
+
"requireDotNotation": { "allExcept": ["keywords"] },
|
|
83
|
+
|
|
84
|
+
"requireParenthesesAroundIIFE": true,
|
|
85
|
+
|
|
86
|
+
"validateLineBreaks": "LF",
|
|
87
|
+
|
|
88
|
+
"validateQuoteMarks": {
|
|
89
|
+
"escape": true,
|
|
90
|
+
"mark": "'"
|
|
91
|
+
},
|
|
92
|
+
|
|
93
|
+
"disallowOperatorBeforeLineBreak": [],
|
|
94
|
+
|
|
95
|
+
"requireSpaceBeforeKeywords": [
|
|
96
|
+
"do",
|
|
97
|
+
"for",
|
|
98
|
+
"if",
|
|
99
|
+
"else",
|
|
100
|
+
"switch",
|
|
101
|
+
"case",
|
|
102
|
+
"try",
|
|
103
|
+
"catch",
|
|
104
|
+
"finally",
|
|
105
|
+
"while",
|
|
106
|
+
"with",
|
|
107
|
+
"return"
|
|
108
|
+
],
|
|
109
|
+
|
|
110
|
+
"validateAlignedFunctionParameters": {
|
|
111
|
+
"lineBreakAfterOpeningBraces": true,
|
|
112
|
+
"lineBreakBeforeClosingBraces": true
|
|
113
|
+
},
|
|
114
|
+
|
|
115
|
+
"requirePaddingNewLinesBeforeExport": true,
|
|
116
|
+
|
|
117
|
+
"validateNewlineAfterArrayElements": {
|
|
118
|
+
"maximum": 6
|
|
119
|
+
},
|
|
120
|
+
|
|
121
|
+
"requirePaddingNewLinesAfterUseStrict": true,
|
|
122
|
+
|
|
123
|
+
"disallowArrowFunctions": true,
|
|
124
|
+
|
|
125
|
+
"disallowMultiLineTernary": true,
|
|
126
|
+
|
|
127
|
+
"validateOrderInObjectKeys": false,
|
|
128
|
+
|
|
129
|
+
"disallowIdenticalDestructuringNames": true,
|
|
130
|
+
|
|
131
|
+
"disallowNestedTernaries": { "maxLevel": 1 },
|
|
132
|
+
|
|
133
|
+
"requireSpaceAfterComma": { "allExcept": ["trailing"] },
|
|
134
|
+
"requireAlignedMultilineParams": false,
|
|
135
|
+
|
|
136
|
+
"requireSpacesInGenerator": {
|
|
137
|
+
"afterStar": true
|
|
138
|
+
},
|
|
139
|
+
|
|
140
|
+
"disallowSpacesInGenerator": {
|
|
141
|
+
"beforeStar": true
|
|
142
|
+
},
|
|
143
|
+
|
|
144
|
+
"disallowVar": false,
|
|
145
|
+
|
|
146
|
+
"requireArrayDestructuring": false,
|
|
147
|
+
|
|
148
|
+
"requireEnhancedObjectLiterals": false,
|
|
149
|
+
|
|
150
|
+
"requireObjectDestructuring": false,
|
|
151
|
+
|
|
152
|
+
"requireEarlyReturn": false,
|
|
153
|
+
|
|
154
|
+
"requireCapitalizedConstructorsNew": {
|
|
155
|
+
"allExcept": ["Function", "String", "Object", "Symbol", "Number", "Date", "RegExp", "Error", "Boolean", "Array"]
|
|
156
|
+
},
|
|
157
|
+
|
|
158
|
+
"requireImportAlphabetized": false,
|
|
159
|
+
|
|
160
|
+
"requireSpaceBeforeObjectValues": true,
|
|
161
|
+
"requireSpaceBeforeDestructuredValues": true,
|
|
162
|
+
|
|
163
|
+
"disallowSpacesInsideTemplateStringPlaceholders": true,
|
|
164
|
+
|
|
165
|
+
"disallowArrayDestructuringReturn": false,
|
|
166
|
+
|
|
167
|
+
"requireNewlineBeforeSingleStatementsInIf": false,
|
|
168
|
+
|
|
169
|
+
"disallowUnusedVariables": true,
|
|
170
|
+
|
|
171
|
+
"requireSpacesInsideImportedObjectBraces": true,
|
|
172
|
+
|
|
173
|
+
"requireUseStrict": true
|
|
174
|
+
}
|
|
175
|
+
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
language: node_js
|
|
2
|
+
os:
|
|
3
|
+
- linux
|
|
4
|
+
node_js:
|
|
5
|
+
- "10.7"
|
|
6
|
+
- "9.11"
|
|
7
|
+
- "8.11"
|
|
8
|
+
- "7.10"
|
|
9
|
+
- "6.14"
|
|
10
|
+
- "5.12"
|
|
11
|
+
- "4.9"
|
|
12
|
+
- "iojs-v3.3"
|
|
13
|
+
- "iojs-v2.5"
|
|
14
|
+
- "iojs-v1.8"
|
|
15
|
+
- "0.12"
|
|
16
|
+
- "0.10"
|
|
17
|
+
- "0.8"
|
|
18
|
+
before_install:
|
|
19
|
+
- 'case "${TRAVIS_NODE_VERSION}" in 0.*) export NPM_CONFIG_STRICT_SSL=false ;; esac'
|
|
20
|
+
- 'nvm install-latest-npm'
|
|
21
|
+
install:
|
|
22
|
+
- 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ] || [ "${TRAVIS_NODE_VERSION}" = "0.9" ]; then nvm install --latest-npm 0.8 && npm install && nvm use "${TRAVIS_NODE_VERSION}"; else npm install; fi;'
|
|
23
|
+
script:
|
|
24
|
+
- 'if [ -n "${PRETEST-}" ]; then npm run pretest ; fi'
|
|
25
|
+
- 'if [ -n "${POSTTEST-}" ]; then npm run posttest ; fi'
|
|
26
|
+
- 'if [ -n "${COVERAGE-}" ]; then npm run coverage ; fi'
|
|
27
|
+
- 'if [ -n "${TEST-}" ]; then npm run tests-only ; fi'
|
|
28
|
+
sudo: false
|
|
29
|
+
env:
|
|
30
|
+
- TEST=true
|
|
31
|
+
matrix:
|
|
32
|
+
fast_finish: true
|
|
33
|
+
include:
|
|
34
|
+
- node_js: "lts/*"
|
|
35
|
+
env: PRETEST=true
|
|
36
|
+
- node_js: "lts/*"
|
|
37
|
+
env: POSTTEST=true
|
|
38
|
+
- node_js: "4"
|
|
39
|
+
env: COVERAGE=true
|
|
40
|
+
- node_js: "10.6"
|
|
41
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
42
|
+
- node_js: "10.5"
|
|
43
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
44
|
+
- node_js: "10.4"
|
|
45
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
46
|
+
- node_js: "10.3"
|
|
47
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
48
|
+
- node_js: "10.2"
|
|
49
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
50
|
+
- node_js: "10.1"
|
|
51
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
52
|
+
- node_js: "10.0"
|
|
53
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
54
|
+
- node_js: "9.10"
|
|
55
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
56
|
+
- node_js: "9.9"
|
|
57
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
58
|
+
- node_js: "9.8"
|
|
59
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
60
|
+
- node_js: "9.7"
|
|
61
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
62
|
+
- node_js: "9.6"
|
|
63
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
64
|
+
- node_js: "9.5"
|
|
65
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
66
|
+
- node_js: "9.4"
|
|
67
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
68
|
+
- node_js: "9.3"
|
|
69
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
70
|
+
- node_js: "9.2"
|
|
71
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
72
|
+
- node_js: "9.1"
|
|
73
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
74
|
+
- node_js: "9.0"
|
|
75
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
76
|
+
- node_js: "8.10"
|
|
77
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
78
|
+
- node_js: "8.9"
|
|
79
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
80
|
+
- node_js: "8.8"
|
|
81
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
82
|
+
- node_js: "8.7"
|
|
83
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
84
|
+
- node_js: "8.6"
|
|
85
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
86
|
+
- node_js: "8.5"
|
|
87
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
88
|
+
- node_js: "8.4"
|
|
89
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
90
|
+
- node_js: "8.3"
|
|
91
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
92
|
+
- node_js: "8.2"
|
|
93
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
94
|
+
- node_js: "8.1"
|
|
95
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
96
|
+
- node_js: "8.0"
|
|
97
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
98
|
+
- node_js: "7.9"
|
|
99
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
100
|
+
- node_js: "7.8"
|
|
101
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
102
|
+
- node_js: "7.7"
|
|
103
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
104
|
+
- node_js: "7.6"
|
|
105
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
106
|
+
- node_js: "7.5"
|
|
107
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
108
|
+
- node_js: "7.4"
|
|
109
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
110
|
+
- node_js: "7.3"
|
|
111
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
112
|
+
- node_js: "7.2"
|
|
113
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
114
|
+
- node_js: "7.1"
|
|
115
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
116
|
+
- node_js: "7.0"
|
|
117
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
118
|
+
- node_js: "6.13"
|
|
119
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
120
|
+
- node_js: "6.12"
|
|
121
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
122
|
+
- node_js: "6.11"
|
|
123
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
124
|
+
- node_js: "6.10"
|
|
125
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
126
|
+
- node_js: "6.9"
|
|
127
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
128
|
+
- node_js: "6.8"
|
|
129
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
130
|
+
- node_js: "6.7"
|
|
131
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
132
|
+
- node_js: "6.6"
|
|
133
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
134
|
+
- node_js: "6.5"
|
|
135
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
136
|
+
- node_js: "6.4"
|
|
137
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
138
|
+
- node_js: "6.3"
|
|
139
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
140
|
+
- node_js: "6.2"
|
|
141
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
142
|
+
- node_js: "6.1"
|
|
143
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
144
|
+
- node_js: "6.0"
|
|
145
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
146
|
+
- node_js: "5.11"
|
|
147
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
148
|
+
- node_js: "5.10"
|
|
149
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
150
|
+
- node_js: "5.9"
|
|
151
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
152
|
+
- node_js: "5.8"
|
|
153
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
154
|
+
- node_js: "5.7"
|
|
155
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
156
|
+
- node_js: "5.6"
|
|
157
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
158
|
+
- node_js: "5.5"
|
|
159
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
160
|
+
- node_js: "5.4"
|
|
161
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
162
|
+
- node_js: "5.3"
|
|
163
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
164
|
+
- node_js: "5.2"
|
|
165
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
166
|
+
- node_js: "5.1"
|
|
167
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
168
|
+
- node_js: "5.0"
|
|
169
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
170
|
+
- node_js: "4.8"
|
|
171
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
172
|
+
- node_js: "4.7"
|
|
173
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
174
|
+
- node_js: "4.6"
|
|
175
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
176
|
+
- node_js: "4.5"
|
|
177
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
178
|
+
- node_js: "4.4"
|
|
179
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
180
|
+
- node_js: "4.3"
|
|
181
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
182
|
+
- node_js: "4.2"
|
|
183
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
184
|
+
- node_js: "4.1"
|
|
185
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
186
|
+
- node_js: "4.0"
|
|
187
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
188
|
+
- node_js: "iojs-v3.2"
|
|
189
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
190
|
+
- node_js: "iojs-v3.1"
|
|
191
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
192
|
+
- node_js: "iojs-v3.0"
|
|
193
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
194
|
+
- node_js: "iojs-v2.4"
|
|
195
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
196
|
+
- node_js: "iojs-v2.3"
|
|
197
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
198
|
+
- node_js: "iojs-v2.2"
|
|
199
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
200
|
+
- node_js: "iojs-v2.1"
|
|
201
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
202
|
+
- node_js: "iojs-v2.0"
|
|
203
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
204
|
+
- node_js: "iojs-v1.7"
|
|
205
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
206
|
+
- node_js: "iojs-v1.6"
|
|
207
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
208
|
+
- node_js: "iojs-v1.5"
|
|
209
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
210
|
+
- node_js: "iojs-v1.4"
|
|
211
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
212
|
+
- node_js: "iojs-v1.3"
|
|
213
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
214
|
+
- node_js: "iojs-v1.2"
|
|
215
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
216
|
+
- node_js: "iojs-v1.1"
|
|
217
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
218
|
+
- node_js: "iojs-v1.0"
|
|
219
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
220
|
+
- node_js: "0.11"
|
|
221
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
222
|
+
- node_js: "0.9"
|
|
223
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
224
|
+
- node_js: "0.6"
|
|
225
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
226
|
+
- node_js: "0.4"
|
|
227
|
+
env: TEST=true ALLOW_FAILURE=true
|
|
228
|
+
allow_failures:
|
|
229
|
+
- os: osx
|
|
230
|
+
- env: TEST=true ALLOW_FAILURE=true
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"env": {
|
|
3
|
+
"browser": true,
|
|
4
|
+
"node": true,
|
|
5
|
+
"mocha": true
|
|
6
|
+
},
|
|
7
|
+
"globals": {
|
|
8
|
+
"expect": false,
|
|
9
|
+
"sinon": false
|
|
10
|
+
},
|
|
11
|
+
"extends": [
|
|
12
|
+
"eslint:recommended"
|
|
13
|
+
],
|
|
14
|
+
"rules": {
|
|
15
|
+
// possible errors
|
|
16
|
+
"no-cond-assign": 0,
|
|
17
|
+
"no-empty": 0,
|
|
18
|
+
"valid-jsdoc": [2, {
|
|
19
|
+
"prefer": {"return": "return"},
|
|
20
|
+
"requireReturn": false
|
|
21
|
+
}],
|
|
22
|
+
// best practices
|
|
23
|
+
"no-extra-bind": 2,
|
|
24
|
+
// style
|
|
25
|
+
"comma-spacing": [2, {"before": false, "after": true}],
|
|
26
|
+
"eol-last": [0],
|
|
27
|
+
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
|
|
28
|
+
"linebreak-style": [2, "unix"],
|
|
29
|
+
"max-len": [2, 80, {"ignoreUrls": true}],
|
|
30
|
+
"no-multiple-empty-lines": [2, {"max": 2}],
|
|
31
|
+
"no-unused-vars": ["error", {"vars": "all"}],
|
|
32
|
+
"no-trailing-spaces": 2,
|
|
33
|
+
"object-curly-spacing": [2, "never"],
|
|
34
|
+
"quotes": [2, "single"],
|
|
35
|
+
"require-jsdoc": [2, {
|
|
36
|
+
"require": {
|
|
37
|
+
"FunctionDeclaration": true,
|
|
38
|
+
"MethodDefinition": true,
|
|
39
|
+
"ClassDeclaration": true
|
|
40
|
+
}
|
|
41
|
+
}],
|
|
42
|
+
"semi": [2, "always"],
|
|
43
|
+
"semi-spacing": [2, {"before": false, "after": true}],
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
|
|
2
|
+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
|
3
|
+
|
|
4
|
+
name: Testing Lib0
|
|
5
|
+
on:
|
|
6
|
+
push:
|
|
7
|
+
branches: [ main ]
|
|
8
|
+
pull_request:
|
|
9
|
+
branches: [ main ]
|
|
10
|
+
jobs:
|
|
11
|
+
build:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
strategy:
|
|
14
|
+
matrix:
|
|
15
|
+
node-version: [16.x, 18.x]
|
|
16
|
+
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v3
|
|
19
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
20
|
+
uses: actions/setup-node@v3
|
|
21
|
+
with:
|
|
22
|
+
node-version: ${{ matrix.node-version }}
|
|
23
|
+
- run: npm ci
|
|
24
|
+
- run: npm test
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"plugins": [
|
|
3
|
+
"plugins/markdown",
|
|
4
|
+
"jsdoc-plugin-typescript"
|
|
5
|
+
],
|
|
6
|
+
"recurseDepth": 10,
|
|
7
|
+
"source": {
|
|
8
|
+
"excludePattern": "/\\.test\\.js/"
|
|
9
|
+
},
|
|
10
|
+
"sourceType": "module",
|
|
11
|
+
"tags": {
|
|
12
|
+
"allowUnknownTags": true,
|
|
13
|
+
"dictionaries": ["jsdoc", "closure"]
|
|
14
|
+
},
|
|
15
|
+
"typescript": {
|
|
16
|
+
"moduleRoot": "./"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
// Use IntelliSense to learn about possible attributes.
|
|
3
|
+
// Hover to view descriptions of existing attributes.
|
|
4
|
+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
+
"version": "0.2.0",
|
|
6
|
+
"configurations": [
|
|
7
|
+
{
|
|
8
|
+
"type": "node",
|
|
9
|
+
"request": "launch",
|
|
10
|
+
"name": "Gen Docs",
|
|
11
|
+
"program": "${workspaceFolder}/bin/gendocs.js",
|
|
12
|
+
"skipFiles": [
|
|
13
|
+
"<node_internals>/**"
|
|
14
|
+
],
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"root": true,
|
|
3
|
+
|
|
4
|
+
"extends": "@ljharb/eslint-config/node/0.4",
|
|
5
|
+
|
|
6
|
+
"rules": {
|
|
7
|
+
"array-element-newline": 0,
|
|
8
|
+
"complexity": 0,
|
|
9
|
+
"func-style": [2, "declaration"],
|
|
10
|
+
"max-lines-per-function": 0,
|
|
11
|
+
"max-nested-callbacks": 1,
|
|
12
|
+
"max-statements-per-line": 1,
|
|
13
|
+
"max-statements": 0,
|
|
14
|
+
"multiline-comment-style": 0,
|
|
15
|
+
"no-continue": 1,
|
|
16
|
+
"no-param-reassign": 1,
|
|
17
|
+
"no-restricted-syntax": 1,
|
|
18
|
+
"object-curly-newline": 0,
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
"overrides": [
|
|
22
|
+
{
|
|
23
|
+
"files": "test/**",
|
|
24
|
+
"rules": {
|
|
25
|
+
"camelcase": 0,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
]
|
|
29
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# These are supported funding model platforms
|
|
2
|
+
|
|
3
|
+
github: [ljharb]
|
|
4
|
+
patreon: # Replace with a single Patreon username
|
|
5
|
+
open_collective: # Replace with a single Open Collective username
|
|
6
|
+
ko_fi: # Replace with a single Ko-fi username
|
|
7
|
+
tidelift: npm/minimist
|
|
8
|
+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
|
9
|
+
liberapay: # Replace with a single Liberapay username
|
|
10
|
+
issuehunt: # Replace with a single IssueHunt username
|
|
11
|
+
otechie: # Replace with a single Otechie username
|
|
12
|
+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
name: Run npm Tests
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
push:
|
|
6
|
+
branches: [ "main" ]
|
|
7
|
+
pull_request:
|
|
8
|
+
branches: [ "main" ]
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
test:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
|
|
14
|
+
strategy:
|
|
15
|
+
matrix:
|
|
16
|
+
node-version: [22, 23]
|
|
17
|
+
|
|
18
|
+
steps:
|
|
19
|
+
- name: Checkout repository
|
|
20
|
+
uses: actions/checkout@v2
|
|
21
|
+
|
|
22
|
+
- name: Set up Node.js ${{ matrix.node-version }}
|
|
23
|
+
uses: actions/setup-node@v3
|
|
24
|
+
with:
|
|
25
|
+
node-version: ${{ matrix.node-version }}
|
|
26
|
+
|
|
27
|
+
- name: Install dependencies
|
|
28
|
+
run: npm install
|
|
29
|
+
|
|
30
|
+
- name: Run tests
|
|
31
|
+
run: npm test
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# EditorConfig is awesome: http://EditorConfig.org
|
|
2
|
+
|
|
3
|
+
# top-most EditorConfig file
|
|
4
|
+
root = true
|
|
5
|
+
|
|
6
|
+
[*]
|
|
7
|
+
charset = utf-8
|
|
8
|
+
end_of_line = lf
|
|
9
|
+
insert_final_newline = true
|
|
10
|
+
indent_style = tab
|
|
11
|
+
trim_trailing_whitespace = true
|
|
12
|
+
|
|
13
|
+
[*.md]
|
|
14
|
+
indent_size = 2
|
|
15
|
+
indent_style = space
|
|
16
|
+
trim_trailing_whitespace = false
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tidelift: "npm/next-tick"
|