@readme/syntax-highlighter 15.0.1 → 15.0.3
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/index.js +3 -2
- package/knip.ts +1 -1
- package/package.json +4 -4
- package/src/utils/modes/solidity.js +4 -3
- package/.vscode/extensions.json +0 -3
- package/.vscode/settings.json +0 -23
package/dist/index.js
CHANGED
|
@@ -37139,9 +37139,9 @@ function getVariablesJSONSchema_createClass(e, r, t) { return r && getVariablesJ
|
|
|
37139
37139
|
function getVariablesJSONSchema_toPropertyKey(t) { var i = getVariablesJSONSchema_toPrimitive(t, "string"); return "symbol" == getVariablesJSONSchema_typeof(i) ? i : i + ""; }
|
|
37140
37140
|
function getVariablesJSONSchema_toPrimitive(t, r) { if ("object" != getVariablesJSONSchema_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != getVariablesJSONSchema_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
37141
37141
|
|
|
37142
|
-
var defaultJSONSchemaOptions = {
|
|
37142
|
+
var defaultJSONSchemaOptions = (/* unused pure expression or super */ null && ({
|
|
37143
37143
|
useMarkdownDescription: false
|
|
37144
|
-
};
|
|
37144
|
+
}));
|
|
37145
37145
|
function getVariablesJSONSchema_text(into, newText) {
|
|
37146
37146
|
into.push(newText);
|
|
37147
37147
|
}
|
|
@@ -46143,6 +46143,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
46143
46143
|
// oxlint-disable typescript/no-require-imports
|
|
46144
46144
|
// oxlint-disable func-names
|
|
46145
46145
|
// oxlint-disable operator-assignment
|
|
46146
|
+
// oxlint-disable prefer-arrow-callback
|
|
46146
46147
|
// oxlint-disable prefer-template
|
|
46147
46148
|
// oxlint-disable no-return-assign
|
|
46148
46149
|
// oxlint-disable no-unused-expressions
|
package/knip.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { KnipConfig } from 'knip';
|
|
2
2
|
|
|
3
3
|
const config: KnipConfig = {
|
|
4
|
-
entry: ['
|
|
4
|
+
entry: ['public/index.js', 'public/index.legacy.js'],
|
|
5
5
|
ignore: ['test/__fixtures__/**'],
|
|
6
6
|
ignoreDependencies: [
|
|
7
7
|
'@csstools/css-parser-algorithms', // required in order to get vitest/jsdom running in CI
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@readme/syntax-highlighter",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.3",
|
|
4
4
|
"description": "ReadMe's React-based syntax highlighter",
|
|
5
5
|
"homepage": "https://readmeio.github.io/syntax-highlighter/",
|
|
6
6
|
"license": "ISC",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"default": "./dist/index.js"
|
|
22
22
|
},
|
|
23
23
|
"./utils": {
|
|
24
|
-
"require": "./dist-utils/index.js",
|
|
25
|
-
"default": "./dist-utils/index.js"
|
|
24
|
+
"require": "./dist-utils/utils/index.js",
|
|
25
|
+
"default": "./dist-utils/utils/index.js"
|
|
26
26
|
},
|
|
27
27
|
"./package.json": "./package.json"
|
|
28
28
|
},
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"html-webpack-plugin": "^5.6.0",
|
|
58
58
|
"jsdom": "^29.1.1",
|
|
59
59
|
"knip": "^6.10.0",
|
|
60
|
-
"oxfmt": "^0.
|
|
60
|
+
"oxfmt": "^0.53.0",
|
|
61
61
|
"oxlint": "^1.62.0",
|
|
62
62
|
"sass": "^1.89.2",
|
|
63
63
|
"sass-loader": "^13.3.2",
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
// oxlint-disable typescript/no-require-imports
|
|
6
6
|
// oxlint-disable func-names
|
|
7
7
|
// oxlint-disable operator-assignment
|
|
8
|
+
// oxlint-disable prefer-arrow-callback
|
|
8
9
|
// oxlint-disable prefer-template
|
|
9
10
|
// oxlint-disable no-return-assign
|
|
10
11
|
// oxlint-disable no-unused-expressions
|
|
@@ -543,7 +544,7 @@
|
|
|
543
544
|
|
|
544
545
|
// Interface
|
|
545
546
|
return {
|
|
546
|
-
startState
|
|
547
|
+
startState(basecolumn) {
|
|
547
548
|
return {
|
|
548
549
|
tokenize: null,
|
|
549
550
|
context: new Context((basecolumn || 0) - indentUnit, 0, 'top', false),
|
|
@@ -552,7 +553,7 @@
|
|
|
552
553
|
};
|
|
553
554
|
},
|
|
554
555
|
|
|
555
|
-
token
|
|
556
|
+
token(stream, state) {
|
|
556
557
|
const ctx = state.context;
|
|
557
558
|
if (stream.sol()) {
|
|
558
559
|
if (ctx.align == null) ctx.align = false;
|
|
@@ -578,7 +579,7 @@
|
|
|
578
579
|
return style;
|
|
579
580
|
},
|
|
580
581
|
|
|
581
|
-
indent
|
|
582
|
+
indent(state, textAfter) {
|
|
582
583
|
if (state.tokenize != tokenBase && state.tokenize != null) return CodeMirror.Pass;
|
|
583
584
|
const ctx = state.context;
|
|
584
585
|
const firstChar = textAfter && textAfter.charAt(0);
|
package/.vscode/extensions.json
DELETED
package/.vscode/settings.json
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"editor.defaultFormatter": "oxc.oxc-vscode",
|
|
3
|
-
"editor.codeActionsOnSave": {
|
|
4
|
-
"source.fixAll": "explicit"
|
|
5
|
-
},
|
|
6
|
-
"editor.formatOnSave": true,
|
|
7
|
-
|
|
8
|
-
// Explicitly disable non-Oxc extensions to avoid conflicts.
|
|
9
|
-
"biome.enabled": false,
|
|
10
|
-
"eslint.enable": false,
|
|
11
|
-
"oxc.enable.oxfmt": true,
|
|
12
|
-
"oxc.enable.oxlint": true,
|
|
13
|
-
"prettier.enable": false,
|
|
14
|
-
|
|
15
|
-
// Forcefully set the default formatter for all JS and TS files in this repository to Oxlint
|
|
16
|
-
// just in case somebody has it set to another formatter in their personal settings.
|
|
17
|
-
"[javascript]": {
|
|
18
|
-
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
19
|
-
},
|
|
20
|
-
"[typescript]": {
|
|
21
|
-
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
22
|
-
}
|
|
23
|
-
}
|