@askviraj/linter 1.1.2 → 1.1.4
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/node_modules/{synckit → @astrojs/compiler-binding}/LICENSE +1 -1
- package/node_modules/@astrojs/compiler-binding/browser.js +1 -0
- package/node_modules/@astrojs/compiler-binding/index.d.ts +337 -0
- package/node_modules/@astrojs/compiler-binding/index.js +599 -0
- package/node_modules/@astrojs/compiler-binding/package.json +83 -0
- package/node_modules/@astrojs/compiler-binding/webcontainer-fallback.cjs +23 -0
- package/node_modules/@astrojs/compiler-binding-linux-x64-gnu/README.md +3 -0
- package/node_modules/@astrojs/compiler-binding-linux-x64-gnu/astro.linux-x64-gnu.node +0 -0
- package/node_modules/@astrojs/compiler-binding-linux-x64-gnu/package.json +40 -0
- package/node_modules/{parse5 → @astrojs/compiler-rs}/LICENSE +7 -5
- package/node_modules/@astrojs/compiler-rs/README.md +62 -0
- package/node_modules/@astrojs/compiler-rs/async.d.ts +1 -0
- package/node_modules/@astrojs/compiler-rs/dist/async.d.mts +9 -0
- package/node_modules/@astrojs/compiler-rs/dist/async.mjs +1 -0
- package/node_modules/@astrojs/compiler-rs/dist/index.d.mts +9 -0
- package/node_modules/@astrojs/compiler-rs/dist/index.mjs +1 -0
- package/node_modules/@astrojs/compiler-rs/dist/shared.d.mts +45 -0
- package/node_modules/@astrojs/compiler-rs/dist/shared.mjs +1 -0
- package/node_modules/@astrojs/compiler-rs/dist/types.d.mts +94 -0
- package/node_modules/@astrojs/compiler-rs/dist/types.mjs +1 -0
- package/node_modules/@astrojs/compiler-rs/dist/utils.d.mts +4 -0
- package/node_modules/@astrojs/compiler-rs/dist/utils.mjs +1 -0
- package/node_modules/@astrojs/compiler-rs/package.json +55 -0
- package/node_modules/@astrojs/compiler-rs/types.d.ts +1 -0
- package/node_modules/@eslint/config-helpers/README.md +2 -2
- package/node_modules/@eslint/config-helpers/dist/cjs/index.cjs +27 -26
- package/node_modules/@eslint/config-helpers/dist/cjs/index.d.cts +13 -12
- package/node_modules/@eslint/config-helpers/dist/cjs/types.cts +4 -2
- package/node_modules/@eslint/config-helpers/dist/esm/index.d.ts +13 -12
- package/node_modules/@eslint/config-helpers/dist/esm/index.js +27 -26
- package/node_modules/@eslint/config-helpers/dist/esm/types.d.ts +2 -0
- package/node_modules/@eslint/config-helpers/dist/esm/types.ts +4 -2
- package/node_modules/@eslint/config-helpers/package.json +1 -1
- package/node_modules/@eslint/css/README.md +2 -2
- package/node_modules/@eslint/css/dist/build/rules.d.ts +75 -21
- package/node_modules/@eslint/css/dist/build/rules.js +15 -15
- package/node_modules/@eslint/css/dist/data/baseline-data.js +256 -32
- package/node_modules/@eslint/css/dist/index.js +1 -1
- package/node_modules/@eslint/css/dist/rules/font-family-fallbacks.d.ts +15 -15
- package/node_modules/@eslint/css/dist/rules/font-family-fallbacks.js +2 -5
- package/node_modules/@eslint/css/dist/rules/no-duplicate-imports.d.ts +18 -18
- package/node_modules/@eslint/css/dist/rules/no-duplicate-imports.js +9 -12
- package/node_modules/@eslint/css/dist/rules/no-duplicate-keyframe-selectors.d.ts +14 -14
- package/node_modules/@eslint/css/dist/rules/no-duplicate-keyframe-selectors.js +2 -3
- package/node_modules/@eslint/css/dist/rules/no-empty-blocks.d.ts +14 -14
- package/node_modules/@eslint/css/dist/rules/no-empty-blocks.js +2 -3
- package/node_modules/@eslint/css/dist/rules/no-important.d.ts +16 -16
- package/node_modules/@eslint/css/dist/rules/no-important.js +2 -3
- package/node_modules/@eslint/css/dist/rules/no-invalid-at-rule-placement.d.ts +16 -16
- package/node_modules/@eslint/css/dist/rules/no-invalid-at-rule-placement.js +2 -3
- package/node_modules/@eslint/css/dist/rules/no-invalid-at-rules.d.ts +21 -21
- package/node_modules/@eslint/css/dist/rules/no-invalid-at-rules.js +2 -3
- package/node_modules/@eslint/css/dist/rules/no-invalid-named-grid-areas.d.ts +16 -16
- package/node_modules/@eslint/css/dist/rules/no-invalid-named-grid-areas.js +2 -3
- package/node_modules/@eslint/css/dist/rules/no-invalid-properties.d.ts +18 -18
- package/node_modules/@eslint/css/dist/rules/no-invalid-properties.js +2 -3
- package/node_modules/@eslint/css/dist/rules/no-unmatchable-selectors.d.ts +14 -14
- package/node_modules/@eslint/css/dist/rules/no-unmatchable-selectors.js +2 -3
- package/node_modules/@eslint/css/dist/rules/prefer-logical-properties.d.ts +22 -19
- package/node_modules/@eslint/css/dist/rules/prefer-logical-properties.js +66 -23
- package/node_modules/@eslint/css/dist/rules/relative-font-units.d.ts +16 -16
- package/node_modules/@eslint/css/dist/rules/relative-font-units.js +13 -7
- package/node_modules/@eslint/css/dist/rules/selector-complexity.d.ts +17 -17
- package/node_modules/@eslint/css/dist/rules/selector-complexity.js +2 -3
- package/node_modules/@eslint/css/dist/rules/use-baseline.d.ts +22 -22
- package/node_modules/@eslint/css/dist/rules/use-baseline.js +2 -3
- package/node_modules/@eslint/css/dist/rules/use-layers.d.ts +18 -18
- package/node_modules/@eslint/css/dist/rules/use-layers.js +3 -4
- package/node_modules/@eslint/css/package.json +7 -12
- package/node_modules/@eslint/css-tree/README.md +2 -2
- package/node_modules/@eslint/css-tree/dist/csstree.esm.js +1 -1
- package/node_modules/@eslint/css-tree/dist/csstree.js +1 -1
- package/node_modules/@eslint/css-tree/dist/data.cjs +4 -1
- package/node_modules/@eslint/css-tree/dist/data.js +4 -1
- package/node_modules/@eslint/css-tree/dist/version.cjs +1 -1
- package/node_modules/@eslint/css-tree/dist/version.js +1 -1
- package/node_modules/@eslint/css-tree/package.json +3 -3
- package/node_modules/@eslint/json/README.md +2 -2
- package/node_modules/@eslint/json/dist/index.js +1 -1
- package/node_modules/@eslint/json/package.json +4 -9
- package/node_modules/@eslint/markdown/README.md +3 -3
- package/node_modules/@eslint/markdown/dist/build/rules.d.ts +105 -27
- package/node_modules/@eslint/markdown/dist/build/rules.js +21 -21
- package/node_modules/@eslint/markdown/dist/index.d.ts +2 -2
- package/node_modules/@eslint/markdown/dist/index.js +4 -4
- package/node_modules/@eslint/markdown/dist/processor.d.ts +4 -9
- package/node_modules/@eslint/markdown/dist/processor.js +12 -15
- package/node_modules/@eslint/markdown/dist/rules/fenced-code-language.d.ts +17 -17
- package/node_modules/@eslint/markdown/dist/rules/fenced-code-language.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/fenced-code-meta.d.ts +17 -17
- package/node_modules/@eslint/markdown/dist/rules/fenced-code-meta.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/heading-increment.d.ts +16 -16
- package/node_modules/@eslint/markdown/dist/rules/heading-increment.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/no-bare-urls.d.ts +14 -14
- package/node_modules/@eslint/markdown/dist/rules/no-bare-urls.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/no-duplicate-definitions.d.ts +17 -17
- package/node_modules/@eslint/markdown/dist/rules/no-duplicate-definitions.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/no-duplicate-headings.d.ts +15 -15
- package/node_modules/@eslint/markdown/dist/rules/no-duplicate-headings.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/no-empty-definitions.d.ts +17 -17
- package/node_modules/@eslint/markdown/dist/rules/no-empty-definitions.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/no-empty-images.d.ts +14 -14
- package/node_modules/@eslint/markdown/dist/rules/no-empty-images.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/no-empty-links.d.ts +14 -14
- package/node_modules/@eslint/markdown/dist/rules/no-empty-links.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/no-html.d.ts +15 -15
- package/node_modules/@eslint/markdown/dist/rules/no-html.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/no-invalid-label-refs.d.ts +14 -14
- package/node_modules/@eslint/markdown/dist/rules/no-invalid-label-refs.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/no-missing-atx-heading-space.d.ts +17 -17
- package/node_modules/@eslint/markdown/dist/rules/no-missing-atx-heading-space.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/no-missing-label-refs.d.ts +16 -16
- package/node_modules/@eslint/markdown/dist/rules/no-missing-label-refs.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/no-missing-link-fragments.d.ts +16 -16
- package/node_modules/@eslint/markdown/dist/rules/no-missing-link-fragments.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/no-multiple-h1.d.ts +16 -16
- package/node_modules/@eslint/markdown/dist/rules/no-multiple-h1.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/no-reference-like-urls.d.ts +15 -15
- package/node_modules/@eslint/markdown/dist/rules/no-reference-like-urls.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/no-reversed-media-syntax.d.ts +15 -15
- package/node_modules/@eslint/markdown/dist/rules/no-reversed-media-syntax.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/no-space-in-emphasis.d.ts +17 -17
- package/node_modules/@eslint/markdown/dist/rules/no-space-in-emphasis.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/no-unused-definitions.d.ts +17 -17
- package/node_modules/@eslint/markdown/dist/rules/no-unused-definitions.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/require-alt-text.d.ts +14 -14
- package/node_modules/@eslint/markdown/dist/rules/require-alt-text.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/table-column-count.d.ts +17 -17
- package/node_modules/@eslint/markdown/dist/rules/table-column-count.js +2 -3
- package/node_modules/@eslint/markdown/package.json +5 -10
- package/node_modules/@eslint-community/eslint-utils/index.js +1 -1
- package/node_modules/@eslint-community/eslint-utils/index.js.map +1 -1
- package/node_modules/@eslint-community/eslint-utils/index.mjs +1 -1
- package/node_modules/@eslint-community/eslint-utils/index.mjs.map +1 -1
- package/node_modules/@eslint-community/eslint-utils/package.json +12 -7
- package/node_modules/@html-eslint/core/dist/index.js +1 -0
- package/node_modules/@html-eslint/core/dist/index.js.map +1 -1
- package/node_modules/@html-eslint/core/dist/index.mjs +1 -0
- package/node_modules/@html-eslint/core/dist/index.mjs.map +1 -1
- package/node_modules/@html-eslint/core/package.json +3 -3
- package/node_modules/@html-eslint/eslint-plugin/lib/rules/require-content.js +20 -1
- package/node_modules/@html-eslint/eslint-plugin/lib/rules/require-input-label.js +110 -8
- package/node_modules/@html-eslint/eslint-plugin/lib/rules/utils/node.js +13 -0
- package/node_modules/@html-eslint/eslint-plugin/package.json +7 -7
- package/node_modules/@html-eslint/eslint-plugin/types/rules/require-content.d.ts.map +1 -1
- package/node_modules/@html-eslint/eslint-plugin/types/rules/require-input-label.d.ts.map +1 -1
- package/node_modules/@html-eslint/eslint-plugin/types/rules/utils/node.d.ts +7 -0
- package/node_modules/@html-eslint/eslint-plugin/types/rules/utils/node.d.ts.map +1 -1
- package/node_modules/@html-eslint/parser/lib/parser.js +0 -1
- package/node_modules/@html-eslint/parser/package.json +4 -4
- package/node_modules/@html-eslint/parser/types/parser.d.ts.map +1 -1
- package/node_modules/@html-eslint/template-parser/package.json +3 -3
- package/node_modules/@html-eslint/template-syntax-parser/package.json +3 -3
- package/node_modules/@html-eslint/types/package.json +2 -2
- package/node_modules/@rviscomi/capo.js/README.md +4 -4
- package/node_modules/@rviscomi/capo.js/dist/adapters/adapter.cjs +7 -2
- package/node_modules/@rviscomi/capo.js/dist/adapters/browser.cjs +31 -3
- package/node_modules/@rviscomi/capo.js/dist/adapters/index.cjs +36 -4
- package/node_modules/@rviscomi/capo.js/dist/adapters/test-suite.cjs +6 -1
- package/node_modules/@rviscomi/capo.js/dist/analyzer.cjs +53 -24
- package/node_modules/@rviscomi/capo.js/dist/chrome/README.md +53 -0
- package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/capo.html +1 -1
- package/node_modules/@rviscomi/capo.js/dist/chrome/capo.js +3 -0
- package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/chrome.js +56 -18
- package/node_modules/@rviscomi/capo.js/dist/chrome/manifest.json +26 -0
- package/node_modules/@rviscomi/capo.js/dist/chrome/options/options.js +1 -0
- package/node_modules/@rviscomi/capo.js/dist/chrome.zip +0 -0
- package/node_modules/@rviscomi/capo.js/dist/firefox/README.md +53 -0
- package/node_modules/@rviscomi/capo.js/dist/firefox/background.js +7 -0
- package/node_modules/@rviscomi/capo.js/dist/firefox/capo.css +59 -0
- package/node_modules/@rviscomi/capo.js/dist/firefox/capo.html +12 -0
- package/node_modules/@rviscomi/capo.js/dist/firefox/capo.js +3 -0
- package/node_modules/@rviscomi/capo.js/dist/firefox/chrome.js +120 -0
- package/node_modules/@rviscomi/capo.js/dist/firefox/images/icon128.png +0 -0
- package/node_modules/@rviscomi/capo.js/dist/firefox/manifest.json +39 -0
- package/node_modules/@rviscomi/capo.js/dist/firefox/options/options.css +81 -0
- package/node_modules/@rviscomi/capo.js/dist/firefox/options/options.html +43 -0
- package/node_modules/@rviscomi/capo.js/dist/firefox/options/options.js +1 -0
- package/node_modules/@rviscomi/capo.js/dist/firefox/styles/open-props.css +291 -0
- package/node_modules/@rviscomi/capo.js/dist/firefox.zip +0 -0
- package/node_modules/@rviscomi/capo.js/dist/index.cjs +93 -33
- package/node_modules/@rviscomi/capo.js/dist/lib/colors.cjs +1 -0
- package/node_modules/@rviscomi/capo.js/dist/lib/io.cjs +137 -28
- package/node_modules/@rviscomi/capo.js/dist/lib/options.cjs +61 -0
- package/node_modules/@rviscomi/capo.js/dist/lib/rules.cjs +28 -13
- package/node_modules/@rviscomi/capo.js/dist/lib/validation.cjs +31 -16
- package/node_modules/@rviscomi/capo.js/dist/source.zip +0 -0
- package/node_modules/@rviscomi/capo.js/dist/types/adapters/adapter.d.ts +105 -0
- package/node_modules/@rviscomi/capo.js/dist/types/adapters/browser.d.ts +107 -0
- package/node_modules/@rviscomi/capo.js/dist/types/adapters/index.d.ts +7 -0
- package/node_modules/@rviscomi/capo.js/dist/types/adapters/test-suite.d.ts +52 -0
- package/node_modules/@rviscomi/capo.js/dist/types/analyzer.d.ts +195 -0
- package/node_modules/@rviscomi/capo.js/dist/types/index.d.ts +29 -0
- package/node_modules/@rviscomi/capo.js/dist/types/lib/colors.d.ts +20 -0
- package/node_modules/@rviscomi/capo.js/dist/types/lib/io.d.ts +166 -0
- package/node_modules/@rviscomi/capo.js/dist/types/lib/options.d.ts +114 -0
- package/node_modules/@rviscomi/capo.js/dist/types/lib/rules.d.ts +111 -0
- package/node_modules/@rviscomi/capo.js/dist/types/lib/validation.d.ts +61 -0
- package/node_modules/@rviscomi/capo.js/dist/types/src/adapters/adapter.d.ts +105 -0
- package/node_modules/@rviscomi/capo.js/dist/types/src/adapters/browser.d.ts +107 -0
- package/node_modules/@rviscomi/capo.js/dist/types/src/adapters/index.d.ts +7 -0
- package/node_modules/@rviscomi/capo.js/dist/types/src/adapters/test-suite.d.ts +52 -0
- package/node_modules/@rviscomi/capo.js/dist/types/src/analyzer.d.ts +195 -0
- package/node_modules/@rviscomi/capo.js/dist/types/src/index.d.ts +13 -0
- package/node_modules/@rviscomi/capo.js/dist/types/src/lib/colors.d.ts +20 -0
- package/node_modules/@rviscomi/capo.js/dist/types/src/lib/io.d.ts +166 -0
- package/node_modules/@rviscomi/capo.js/dist/types/src/lib/options.d.ts +114 -0
- package/node_modules/@rviscomi/capo.js/dist/types/src/lib/rules.d.ts +111 -0
- package/node_modules/@rviscomi/capo.js/dist/types/src/lib/validation.d.ts +61 -0
- package/node_modules/@rviscomi/capo.js/package.json +34 -16
- package/node_modules/@rviscomi/capo.js/src/adapters/adapter.js +16 -5
- package/node_modules/@rviscomi/capo.js/src/adapters/browser.js +30 -4
- package/node_modules/@rviscomi/capo.js/src/adapters/test-suite.js +11 -10
- package/node_modules/@rviscomi/capo.js/src/analyzer.js +47 -25
- package/node_modules/@rviscomi/capo.js/src/extension/README.md +53 -0
- package/node_modules/@rviscomi/capo.js/src/extension/background.js +7 -0
- package/node_modules/@rviscomi/capo.js/src/extension/capo.css +59 -0
- package/node_modules/@rviscomi/capo.js/src/extension/capo.html +12 -0
- package/node_modules/@rviscomi/capo.js/src/extension/capo.js +93 -0
- package/node_modules/@rviscomi/capo.js/src/extension/chrome.js +120 -0
- package/node_modules/@rviscomi/capo.js/src/extension/images/icon128.png +0 -0
- package/node_modules/@rviscomi/capo.js/src/extension/images/icon256.png +0 -0
- package/node_modules/@rviscomi/capo.js/{crx → src/extension}/manifest.json +1 -1
- package/node_modules/@rviscomi/capo.js/src/extension/options/options.css +81 -0
- package/node_modules/@rviscomi/capo.js/src/extension/options/options.html +43 -0
- package/node_modules/@rviscomi/capo.js/src/extension/options.js +87 -0
- package/node_modules/@rviscomi/capo.js/src/extension/styles/open-props.css +291 -0
- package/node_modules/@rviscomi/capo.js/src/index.js +10 -0
- package/node_modules/@rviscomi/capo.js/src/lib/colors.js +14 -0
- package/node_modules/@rviscomi/capo.js/src/lib/io.js +171 -32
- package/node_modules/@rviscomi/capo.js/src/lib/options.js +82 -1
- package/node_modules/@rviscomi/capo.js/src/lib/rules.js +120 -43
- package/node_modules/@rviscomi/capo.js/src/lib/validation.js +211 -86
- package/node_modules/@rviscomi/capo.js/src/web/capo.js +5 -8
- package/node_modules/@types/hast/README.md +2 -2
- package/node_modules/@types/hast/index.d.ts +642 -0
- package/node_modules/@types/hast/package.json +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/all.d.ts +0 -4
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/all.js +0 -4
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/all.js +0 -4
- package/node_modules/@typescript-eslint/eslint-plugin/dist/index.d.ts +0 -4
- package/node_modules/@typescript-eslint/eslint-plugin/dist/index.js +47 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/raw-plugin.d.ts +0 -4
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js +4 -4
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.d.ts +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js +23 -10
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js +16 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js +41 -3
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js +12 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.d.ts +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js +5 -4
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-parameter-property-assignment.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-template-expression.js +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js +5 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js +2 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js +36 -9
- package/node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore/index.js +11 -2
- package/node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore/legacy.js +11 -2
- package/node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore/package.json +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/package.json +22 -11
- package/node_modules/@typescript-eslint/parser/dist/index.js +47 -0
- package/node_modules/@typescript-eslint/parser/dist/parser.js +11 -6
- package/node_modules/@typescript-eslint/parser/package.json +9 -7
- package/node_modules/@typescript-eslint/project-service/package.json +7 -5
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js +2 -2
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/package.json +8 -6
- package/node_modules/@typescript-eslint/tsconfig-utils/package.json +5 -3
- package/node_modules/@typescript-eslint/type-utils/package.json +9 -7
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts +10 -0
- package/node_modules/@typescript-eslint/types/dist/parser-options.d.ts +13 -0
- package/node_modules/@typescript-eslint/types/package.json +5 -3
- package/node_modules/@typescript-eslint/typescript-estree/dist/check-syntax-errors.js +22 -6
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js +5 -4
- package/node_modules/@typescript-eslint/typescript-estree/dist/getImportClausePhaseModifier.d.ts +4 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/getImportClausePhaseModifier.js +56 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js +27 -18
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts +8 -0
- package/node_modules/@typescript-eslint/typescript-estree/package.json +9 -7
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/package.json +8 -6
- package/node_modules/@typescript-eslint/visitor-keys/package.json +6 -4
- package/node_modules/acorn/CHANGELOG.md +12 -0
- package/node_modules/acorn/README.md +5 -0
- package/node_modules/acorn/dist/acorn.d.mts +8 -0
- package/node_modules/acorn/dist/acorn.d.ts +8 -0
- package/node_modules/acorn/dist/acorn.js +16 -7
- package/node_modules/acorn/dist/acorn.mjs +16 -7
- package/node_modules/acorn/package.json +1 -1
- package/node_modules/astro-eslint-parser/lib/index.d.mts +113 -18
- package/node_modules/astro-eslint-parser/lib/index.mjs +871 -1172
- package/node_modules/astro-eslint-parser/package.json +7 -9
- package/node_modules/brace-expansion/README.md +11 -0
- package/node_modules/brace-expansion/dist/commonjs/index.d.ts +2 -0
- package/node_modules/brace-expansion/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/brace-expansion/dist/commonjs/index.js +162 -84
- package/node_modules/brace-expansion/dist/commonjs/index.js.map +1 -1
- package/node_modules/brace-expansion/dist/esm/index.d.ts +2 -0
- package/node_modules/brace-expansion/dist/esm/index.d.ts.map +1 -1
- package/node_modules/brace-expansion/dist/esm/index.js +161 -83
- package/node_modules/brace-expansion/dist/esm/index.js.map +1 -1
- package/node_modules/brace-expansion/package.json +2 -2
- package/node_modules/eslint/README.md +2 -2
- package/node_modules/eslint/lib/cli-engine/formatters/html.js +1 -1
- package/node_modules/eslint/lib/languages/js/index.js +1 -1
- package/node_modules/eslint/lib/linter/code-path-analysis/debug-helpers.js +1 -1
- package/node_modules/eslint/lib/linter/vfile.js +1 -1
- package/node_modules/eslint/lib/rules/class-methods-use-this.js +6 -5
- package/node_modules/eslint/lib/rules/complexity.js +1 -1
- package/node_modules/eslint/lib/rules/eqeqeq.js +26 -6
- package/node_modules/eslint/lib/rules/func-name-matching.js +3 -3
- package/node_modules/eslint/lib/rules/generator-star-spacing.js +4 -6
- package/node_modules/eslint/lib/rules/indent.js +4 -6
- package/node_modules/eslint/lib/rules/key-spacing.js +5 -7
- package/node_modules/eslint/lib/rules/max-len.js +1 -1
- package/node_modules/eslint/lib/rules/max-nested-callbacks.js +11 -1
- package/node_modules/eslint/lib/rules/no-compare-neg-zero.js +91 -8
- package/node_modules/eslint/lib/rules/no-control-regex.js +3 -0
- package/node_modules/eslint/lib/rules/no-implicit-coercion.js +22 -8
- package/node_modules/eslint/lib/rules/no-invalid-regexp.js +3 -1
- package/node_modules/eslint/lib/rules/no-mixed-spaces-and-tabs.js +5 -7
- package/node_modules/eslint/lib/rules/no-promise-executor-return.js +5 -7
- package/node_modules/eslint/lib/rules/no-script-url.js +4 -6
- package/node_modules/eslint/lib/rules/no-shadow.js +14 -20
- package/node_modules/eslint/lib/rules/no-unreachable-loop.js +8 -4
- package/node_modules/eslint/lib/rules/prefer-numeric-literals.js +14 -6
- package/node_modules/eslint/lib/rules/prefer-object-has-own.js +4 -6
- package/node_modules/eslint/lib/rules/prefer-object-spread.js +9 -1
- package/node_modules/eslint/lib/rules/prefer-template.js +1 -1
- package/node_modules/eslint/lib/rules/preserve-caught-error.js +268 -116
- package/node_modules/eslint/lib/rules/quotes.js +1 -1
- package/node_modules/eslint/lib/rules/radix.js +58 -57
- package/node_modules/eslint/lib/rules/use-isnan.js +20 -12
- package/node_modules/eslint/lib/rules/utils/ast-utils.js +1 -1
- package/node_modules/eslint/lib/shared/serialization.js +1 -1
- package/node_modules/eslint/lib/shared/translate-cli-options.js +3 -3
- package/node_modules/eslint/lib/types/config-api.d.ts +8 -1
- package/node_modules/eslint/lib/types/index.d.ts +3 -6
- package/node_modules/eslint/lib/types/rules.d.ts +17 -9
- package/node_modules/eslint/package.json +7 -7
- package/node_modules/eslint-plugin-astro/README.md +10 -2
- package/node_modules/eslint-plugin-astro/lib/index.d.mts +0 -1
- package/node_modules/eslint-plugin-astro/lib/index.mjs +76 -637
- package/node_modules/eslint-plugin-astro/package.json +11 -11
- package/node_modules/eslint-plugin-toml/README.md +2 -0
- package/node_modules/eslint-plugin-toml/lib/index.d.mts +6 -5
- package/node_modules/eslint-plugin-toml/lib/index.mjs +32 -3
- package/node_modules/eslint-plugin-toml/package.json +7 -7
- package/node_modules/eslint-plugin-yml/README.md +1 -0
- package/node_modules/eslint-plugin-yml/lib/index.mjs +125 -21
- package/node_modules/eslint-plugin-yml/package.json +7 -7
- package/node_modules/flatted/golang/pkg/flatted/flatted.go +16 -14
- package/node_modules/flatted/package.json +10 -5
- package/node_modules/flatted/types/index.d.ts +1 -1
- package/node_modules/globals/globals.json +105 -33
- package/node_modules/globals/index.d.ts +105 -33
- package/node_modules/globals/package.json +2 -2
- package/node_modules/mdn-data/css/properties.json +64 -16
- package/node_modules/mdn-data/css/properties.schema.json +1 -7
- package/node_modules/mdn-data/css/syntaxes.json +1 -1
- package/node_modules/mdn-data/l10n/css.json +3 -62
- package/node_modules/mdn-data/package.json +1 -1
- package/node_modules/minimatch/package.json +9 -9
- package/node_modules/nanoid/non-secure/index.cjs +2 -2
- package/node_modules/nanoid/non-secure/index.js +2 -2
- package/node_modules/nanoid/package.json +1 -1
- package/node_modules/picomatch/README.md +15 -21
- package/node_modules/picomatch/lib/parse.js +39 -9
- package/node_modules/picomatch/lib/picomatch.js +14 -2
- package/node_modules/picomatch/package.json +3 -2
- package/node_modules/postcss/README.md +1 -2
- package/node_modules/postcss/lib/container.js +81 -34
- package/node_modules/postcss/lib/fromJSON.js +65 -26
- package/node_modules/postcss/lib/input.js +7 -1
- package/node_modules/postcss/lib/lazy-result.js +77 -14
- package/node_modules/postcss/lib/list.js +1 -0
- package/node_modules/postcss/lib/node.d.ts +2 -2
- package/node_modules/postcss/lib/node.js +90 -52
- package/node_modules/postcss/lib/postcss.d.ts +4 -1
- package/node_modules/postcss/lib/previous-map.js +6 -3
- package/node_modules/postcss/lib/processor.js +1 -1
- package/node_modules/postcss/lib/root.js +16 -1
- package/node_modules/postcss/lib/stringifier.js +112 -25
- package/node_modules/postcss/lib/warning.js +10 -0
- package/node_modules/postcss/package.json +2 -2
- package/node_modules/typescript-eslint/dist/index.js +47 -0
- package/node_modules/typescript-eslint/package.json +14 -6
- package/node_modules/yaml-eslint-parser/lib/chunk-CfYAbeIz.mjs +13 -0
- package/node_modules/yaml-eslint-parser/lib/index.d.mts +2 -2
- package/node_modules/yaml-eslint-parser/lib/index.mjs +164 -157
- package/node_modules/yaml-eslint-parser/package.json +17 -18
- package/package.json +23 -23
- package/node_modules/@astrojs/compiler/LICENSE +0 -53
- package/node_modules/@astrojs/compiler/README.md +0 -72
- package/node_modules/@astrojs/compiler/dist/astro.wasm +0 -0
- package/node_modules/@astrojs/compiler/dist/browser/index.cjs +0 -2
- package/node_modules/@astrojs/compiler/dist/browser/index.d.ts +0 -11
- package/node_modules/@astrojs/compiler/dist/browser/index.js +0 -1
- package/node_modules/@astrojs/compiler/dist/browser/utils.cjs +0 -3
- package/node_modules/@astrojs/compiler/dist/browser/utils.d.ts +0 -29
- package/node_modules/@astrojs/compiler/dist/browser/utils.js +0 -3
- package/node_modules/@astrojs/compiler/dist/browser/wasm_exec.cjs +0 -2
- package/node_modules/@astrojs/compiler/dist/browser/wasm_exec.d.ts +0 -37
- package/node_modules/@astrojs/compiler/dist/browser/wasm_exec.js +0 -1
- package/node_modules/@astrojs/compiler/dist/chunk-QR6QDSEV.js +0 -2
- package/node_modules/@astrojs/compiler/dist/chunk-W5DTLHV4.js +0 -1
- package/node_modules/@astrojs/compiler/dist/node/index.cjs +0 -1
- package/node_modules/@astrojs/compiler/dist/node/index.d.ts +0 -12
- package/node_modules/@astrojs/compiler/dist/node/index.js +0 -1
- package/node_modules/@astrojs/compiler/dist/node/sync.cjs +0 -1
- package/node_modules/@astrojs/compiler/dist/node/sync.d.ts +0 -16
- package/node_modules/@astrojs/compiler/dist/node/sync.js +0 -1
- package/node_modules/@astrojs/compiler/dist/node/utils.cjs +0 -3
- package/node_modules/@astrojs/compiler/dist/node/utils.d.ts +0 -29
- package/node_modules/@astrojs/compiler/dist/node/utils.js +0 -3
- package/node_modules/@astrojs/compiler/dist/node/wasm_exec.cjs +0 -1
- package/node_modules/@astrojs/compiler/dist/node/wasm_exec.d.ts +0 -37
- package/node_modules/@astrojs/compiler/dist/node/wasm_exec.js +0 -1
- package/node_modules/@astrojs/compiler/dist/shared/ast.cjs +0 -1
- package/node_modules/@astrojs/compiler/dist/shared/ast.d.ts +0 -74
- package/node_modules/@astrojs/compiler/dist/shared/ast.js +0 -0
- package/node_modules/@astrojs/compiler/dist/shared/diagnostics.cjs +0 -1
- package/node_modules/@astrojs/compiler/dist/shared/diagnostics.d.ts +0 -18
- package/node_modules/@astrojs/compiler/dist/shared/diagnostics.js +0 -1
- package/node_modules/@astrojs/compiler/dist/shared/types.cjs +0 -1
- package/node_modules/@astrojs/compiler/dist/shared/types.d.ts +0 -153
- package/node_modules/@astrojs/compiler/dist/shared/types.js +0 -1
- package/node_modules/@astrojs/compiler/package.json +0 -58
- package/node_modules/@astrojs/compiler/sync.d.ts +0 -1
- package/node_modules/@astrojs/compiler/types.d.ts +0 -1
- package/node_modules/@astrojs/compiler/utils.d.ts +0 -1
- package/node_modules/@pkgr/core/index.d.cts +0 -3
- package/node_modules/@pkgr/core/lib/constants.d.ts +0 -6
- package/node_modules/@pkgr/core/lib/constants.js +0 -9
- package/node_modules/@pkgr/core/lib/constants.js.map +0 -1
- package/node_modules/@pkgr/core/lib/helpers.d.ts +0 -19
- package/node_modules/@pkgr/core/lib/helpers.js +0 -67
- package/node_modules/@pkgr/core/lib/helpers.js.map +0 -1
- package/node_modules/@pkgr/core/lib/index.cjs +0 -91
- package/node_modules/@pkgr/core/lib/index.d.ts +0 -2
- package/node_modules/@pkgr/core/lib/index.js +0 -3
- package/node_modules/@pkgr/core/lib/index.js.map +0 -1
- package/node_modules/@pkgr/core/package.json +0 -38
- package/node_modules/@rviscomi/capo.js/crx/README.md +0 -10
- package/node_modules/@rviscomi/capo.js/crx/capo.js +0 -3
- package/node_modules/@rviscomi/capo.js/crx/options/options.js +0 -1
- package/node_modules/@rviscomi/capo.js/docs/.vscode/extensions.json +0 -4
- package/node_modules/@rviscomi/capo.js/docs/.vscode/launch.json +0 -11
- package/node_modules/@rviscomi/capo.js/docs/README.md +0 -51
- package/node_modules/@rviscomi/capo.js/docs/astro.config.mjs +0 -82
- package/node_modules/@rviscomi/capo.js/docs/package-lock.json +0 -7439
- package/node_modules/@rviscomi/capo.js/docs/package.json +0 -21
- package/node_modules/@rviscomi/capo.js/docs/public/capo-social-alt.webp +0 -0
- package/node_modules/@rviscomi/capo.js/docs/public/capo-social.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/public/capo-social.webp +0 -0
- package/node_modules/@rviscomi/capo.js/docs/public/favicon.svg +0 -13
- package/node_modules/@rviscomi/capo.js/docs/src/assets/bookmarklet-setup.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/bookmarklet.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/capo-chrome.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/capo-extension.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/capo800.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/crx-console-expanded.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/crx-console-interactive.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/crx-console.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/crx-hover-validation.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/crx-menu.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/crx-options-dark.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/crx-options-light.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/crx-store.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/custom-palette.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/developer-mode.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/devtools-console.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/devtools-snippet.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/devtools-sources.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/houston.webp +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/load-unpacked.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/validation-areas.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/validation-base.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/validation-crx-stripes.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/validation-csp.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/validation-invalid-element.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/validation-origin-trial.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/validation-title.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/components/CapoClient.astro +0 -165
- package/node_modules/@rviscomi/capo.js/docs/src/components/CapoOptions.astro +0 -10
- package/node_modules/@rviscomi/capo.js/docs/src/components/CapoPalette.astro +0 -26
- package/node_modules/@rviscomi/capo.js/docs/src/components/InlineCapoIcon.astro +0 -15
- package/node_modules/@rviscomi/capo.js/docs/src/components/InlineCapoWeightBars.astro +0 -39
- package/node_modules/@rviscomi/capo.js/docs/src/components/VirtualConsole.astro +0 -11
- package/node_modules/@rviscomi/capo.js/docs/src/content/config.ts +0 -7
- package/node_modules/@rviscomi/capo.js/docs/src/content/docs/developer/contributing.mdx +0 -8
- package/node_modules/@rviscomi/capo.js/docs/src/content/docs/developer/crx-local.mdx +0 -28
- package/node_modules/@rviscomi/capo.js/docs/src/content/docs/developer/custom-adapters.mdx +0 -273
- package/node_modules/@rviscomi/capo.js/docs/src/content/docs/index.mdx +0 -108
- package/node_modules/@rviscomi/capo.js/docs/src/content/docs/migration-v2.mdx +0 -62
- package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/actionability.mdx +0 -6
- package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/assessment-mode.mdx +0 -29
- package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/config.mdx +0 -195
- package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/demo.mdx +0 -9
- package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/extension.mdx +0 -116
- package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/performance.mdx +0 -6
- package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/quick-start.mdx +0 -26
- package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/rules.mdx +0 -202
- package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/validation.mdx +0 -197
- package/node_modules/@rviscomi/capo.js/docs/src/env.d.ts +0 -2
- package/node_modules/@rviscomi/capo.js/docs/src/lib/VirtualConsole.js +0 -190
- package/node_modules/@rviscomi/capo.js/docs/src/lib/capo.js +0 -1533
- package/node_modules/@rviscomi/capo.js/docs/src/styles/custom.css +0 -7
- package/node_modules/@rviscomi/capo.js/docs/src/styles/virtual-console.css +0 -131
- package/node_modules/@rviscomi/capo.js/docs/tests/VirtualConsole.test.js +0 -108
- package/node_modules/@rviscomi/capo.js/docs/tsconfig.json +0 -3
- package/node_modules/@rviscomi/capo.js/src/crx/capo.js +0 -62
- package/node_modules/@rviscomi/capo.js/src/crx/options.js +0 -69
- package/node_modules/astrojs-compiler-sync/LICENSE +0 -53
- package/node_modules/astrojs-compiler-sync/README.md +0 -3
- package/node_modules/astrojs-compiler-sync/browser/index.d.ts +0 -6
- package/node_modules/astrojs-compiler-sync/browser/index.js +0 -76
- package/node_modules/astrojs-compiler-sync/browser/wasm_exec.js +0 -665
- package/node_modules/astrojs-compiler-sync/lib/astrojs-compiler-worker.js +0 -5
- package/node_modules/astrojs-compiler-sync/lib/compiler-sync.cjs +0 -31
- package/node_modules/astrojs-compiler-sync/lib/index.cjs +0 -30
- package/node_modules/astrojs-compiler-sync/lib/index.d.cts +0 -3
- package/node_modules/astrojs-compiler-sync/lib/index.d.ts +0 -14
- package/node_modules/astrojs-compiler-sync/lib/index.js +0 -18
- package/node_modules/astrojs-compiler-sync/package.json +0 -100
- package/node_modules/entities/LICENSE +0 -11
- package/node_modules/entities/dist/decode-codepoint.d.ts +0 -8
- package/node_modules/entities/dist/decode-codepoint.d.ts.map +0 -1
- package/node_modules/entities/dist/decode-codepoint.js +0 -46
- package/node_modules/entities/dist/decode-codepoint.js.map +0 -1
- package/node_modules/entities/dist/decode.d.ts +0 -194
- package/node_modules/entities/dist/decode.d.ts.map +0 -1
- package/node_modules/entities/dist/decode.js +0 -544
- package/node_modules/entities/dist/decode.js.map +0 -1
- package/node_modules/entities/dist/encode.d.ts +0 -24
- package/node_modules/entities/dist/encode.d.ts.map +0 -1
- package/node_modules/entities/dist/encode.js +0 -90
- package/node_modules/entities/dist/encode.js.map +0 -1
- package/node_modules/entities/dist/escape.d.ts +0 -48
- package/node_modules/entities/dist/escape.d.ts.map +0 -1
- package/node_modules/entities/dist/escape.js +0 -132
- package/node_modules/entities/dist/escape.js.map +0 -1
- package/node_modules/entities/dist/generated/decode-data-html.d.ts +0 -3
- package/node_modules/entities/dist/generated/decode-data-html.d.ts.map +0 -1
- package/node_modules/entities/dist/generated/decode-data-html.js +0 -5
- package/node_modules/entities/dist/generated/decode-data-html.js.map +0 -1
- package/node_modules/entities/dist/generated/decode-data-xml.d.ts +0 -3
- package/node_modules/entities/dist/generated/decode-data-xml.d.ts.map +0 -1
- package/node_modules/entities/dist/generated/decode-data-xml.js +0 -5
- package/node_modules/entities/dist/generated/decode-data-xml.js.map +0 -1
- package/node_modules/entities/dist/generated/encode-html.d.ts +0 -5
- package/node_modules/entities/dist/generated/encode-html.d.ts.map +0 -1
- package/node_modules/entities/dist/generated/encode-html.js +0 -12
- package/node_modules/entities/dist/generated/encode-html.js.map +0 -1
- package/node_modules/entities/dist/index.d.ts +0 -89
- package/node_modules/entities/dist/index.d.ts.map +0 -1
- package/node_modules/entities/dist/index.js +0 -91
- package/node_modules/entities/dist/index.js.map +0 -1
- package/node_modules/entities/dist/internal/bin-trie-flags.d.ts +0 -17
- package/node_modules/entities/dist/internal/bin-trie-flags.d.ts.map +0 -1
- package/node_modules/entities/dist/internal/bin-trie-flags.js +0 -18
- package/node_modules/entities/dist/internal/bin-trie-flags.js.map +0 -1
- package/node_modules/entities/dist/internal/decode-shared.d.ts +0 -7
- package/node_modules/entities/dist/internal/decode-shared.d.ts.map +0 -1
- package/node_modules/entities/dist/internal/decode-shared.js +0 -17
- package/node_modules/entities/dist/internal/decode-shared.js.map +0 -1
- package/node_modules/entities/dist/internal/encode-shared.d.ts +0 -33
- package/node_modules/entities/dist/internal/encode-shared.d.ts.map +0 -1
- package/node_modules/entities/dist/internal/encode-shared.js +0 -93
- package/node_modules/entities/dist/internal/encode-shared.js.map +0 -1
- package/node_modules/entities/package.json +0 -83
- package/node_modules/entities/readme.md +0 -131
- package/node_modules/entities/src/decode-codepoint.ts +0 -50
- package/node_modules/entities/src/decode.ts +0 -671
- package/node_modules/entities/src/encode.ts +0 -95
- package/node_modules/entities/src/escape.ts +0 -160
- package/node_modules/entities/src/generated/decode-data-html.ts +0 -7
- package/node_modules/entities/src/generated/decode-data-xml.ts +0 -7
- package/node_modules/entities/src/generated/encode-html.ts +0 -18
- package/node_modules/entities/src/index.ts +0 -162
- package/node_modules/entities/src/internal/bin-trie-flags.ts +0 -16
- package/node_modules/entities/src/internal/decode-shared.ts +0 -18
- package/node_modules/entities/src/internal/encode-shared.ts +0 -123
- package/node_modules/parse5/README.md +0 -38
- package/node_modules/parse5/dist/common/doctype.d.ts +0 -4
- package/node_modules/parse5/dist/common/doctype.js +0 -114
- package/node_modules/parse5/dist/common/error-codes.d.ts +0 -67
- package/node_modules/parse5/dist/common/error-codes.js +0 -63
- package/node_modules/parse5/dist/common/foreign-content.d.ts +0 -9
- package/node_modules/parse5/dist/common/foreign-content.js +0 -228
- package/node_modules/parse5/dist/common/html.d.ts +0 -289
- package/node_modules/parse5/dist/common/html.js +0 -523
- package/node_modules/parse5/dist/common/token.d.ts +0 -84
- package/node_modules/parse5/dist/common/token.js +0 -20
- package/node_modules/parse5/dist/common/unicode.d.ts +0 -42
- package/node_modules/parse5/dist/common/unicode.js +0 -62
- package/node_modules/parse5/dist/index.d.ts +0 -71
- package/node_modules/parse5/dist/index.js +0 -42
- package/node_modules/parse5/dist/parser/formatting-element-list.d.ts +0 -36
- package/node_modules/parse5/dist/parser/formatting-element-list.js +0 -110
- package/node_modules/parse5/dist/parser/index.d.ts +0 -221
- package/node_modules/parse5/dist/parser/index.js +0 -3245
- package/node_modules/parse5/dist/parser/open-element-stack.d.ts +0 -53
- package/node_modules/parse5/dist/parser/open-element-stack.js +0 -324
- package/node_modules/parse5/dist/serializer/index.d.ts +0 -60
- package/node_modules/parse5/dist/serializer/index.js +0 -168
- package/node_modules/parse5/dist/tokenizer/index.d.ts +0 -247
- package/node_modules/parse5/dist/tokenizer/index.js +0 -2712
- package/node_modules/parse5/dist/tokenizer/preprocessor.d.ts +0 -36
- package/node_modules/parse5/dist/tokenizer/preprocessor.js +0 -196
- package/node_modules/parse5/dist/tree-adapters/default.d.ts +0 -84
- package/node_modules/parse5/dist/tree-adapters/default.js +0 -173
- package/node_modules/parse5/dist/tree-adapters/interface.d.ts +0 -255
- package/node_modules/parse5/dist/tree-adapters/interface.js +0 -1
- package/node_modules/parse5/package.json +0 -53
- package/node_modules/synckit/README.md +0 -256
- package/node_modules/synckit/lib/common.d.ts +0 -5
- package/node_modules/synckit/lib/common.js +0 -22
- package/node_modules/synckit/lib/common.js.map +0 -1
- package/node_modules/synckit/lib/constants.d.ts +0 -38
- package/node_modules/synckit/lib/constants.js +0 -54
- package/node_modules/synckit/lib/constants.js.map +0 -1
- package/node_modules/synckit/lib/helpers.d.ts +0 -27
- package/node_modules/synckit/lib/helpers.js +0 -411
- package/node_modules/synckit/lib/helpers.js.map +0 -1
- package/node_modules/synckit/lib/index.cjs +0 -588
- package/node_modules/synckit/lib/index.d.cts +0 -138
- package/node_modules/synckit/lib/index.d.ts +0 -7
- package/node_modules/synckit/lib/index.js +0 -68
- package/node_modules/synckit/lib/index.js.map +0 -1
- package/node_modules/synckit/lib/types.d.ts +0 -48
- package/node_modules/synckit/lib/types.js +0 -2
- package/node_modules/synckit/lib/types.js.map +0 -1
- package/node_modules/synckit/package.json +0 -45
- package/node_modules/yaml-eslint-parser/lib/chunk-15K8U1wQ.mjs +0 -18
- /package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/background.js +0 -0
- /package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/capo.css +0 -0
- /package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/images/icon128.png +0 -0
- /package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/images/icon256.png +0 -0
- /package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/options/options.css +0 -0
- /package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/options/options.html +0 -0
- /package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/styles/open-props.css +0 -0
- /package/node_modules/@rviscomi/capo.js/{docs/src/assets/capo256.png → dist/firefox/images/icon256.png} +0 -0
- /package/node_modules/eslint-plugin-toml/lib/{chunk-CfYAbeIz.mjs → rolldown-runtime-D7D4PA-g.mjs} +0 -0
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
import type { DOCUMENT_MODE, NS } from '../common/html.js';
|
|
2
|
-
import type { Attribute, ElementLocation } from '../common/token.js';
|
|
3
|
-
export interface TreeAdapterTypeMap<Node = unknown, ParentNode = unknown, ChildNode = unknown, Document = unknown, DocumentFragment = unknown, Element = unknown, CommentNode = unknown, TextNode = unknown, Template = unknown, DocumentType = unknown> {
|
|
4
|
-
node: Node;
|
|
5
|
-
parentNode: ParentNode;
|
|
6
|
-
childNode: ChildNode;
|
|
7
|
-
document: Document;
|
|
8
|
-
documentFragment: DocumentFragment;
|
|
9
|
-
element: Element;
|
|
10
|
-
commentNode: CommentNode;
|
|
11
|
-
textNode: TextNode;
|
|
12
|
-
template: Template;
|
|
13
|
-
documentType: DocumentType;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Tree adapter is a set of utility functions that provides minimal required abstraction layer beetween parser and a specific AST format.
|
|
17
|
-
* Note that `TreeAdapter` is not designed to be a general purpose AST manipulation library. You can build such library
|
|
18
|
-
* on top of existing `TreeAdapter` or use one of the existing libraries from npm.
|
|
19
|
-
*
|
|
20
|
-
* @see Have a look at the default tree adapter for reference.
|
|
21
|
-
*/
|
|
22
|
-
export interface TreeAdapter<T extends TreeAdapterTypeMap = TreeAdapterTypeMap> {
|
|
23
|
-
/**
|
|
24
|
-
* Copies attributes to the given element. Only attributes that are not yet present in the element are copied.
|
|
25
|
-
*
|
|
26
|
-
* @param recipient - Element to copy attributes into.
|
|
27
|
-
* @param attrs - Attributes to copy.
|
|
28
|
-
*/
|
|
29
|
-
adoptAttributes(recipient: T['element'], attrs: Attribute[]): void;
|
|
30
|
-
/**
|
|
31
|
-
* Appends a child node to the given parent node.
|
|
32
|
-
*
|
|
33
|
-
* @param parentNode - Parent node.
|
|
34
|
-
* @param newNode - Child node.
|
|
35
|
-
*/
|
|
36
|
-
appendChild(parentNode: T['parentNode'], newNode: T['childNode']): void;
|
|
37
|
-
/**
|
|
38
|
-
* Creates a comment node.
|
|
39
|
-
*
|
|
40
|
-
* @param data - Comment text.
|
|
41
|
-
*/
|
|
42
|
-
createCommentNode(data: string): T['commentNode'];
|
|
43
|
-
/**
|
|
44
|
-
* Creates a text node.
|
|
45
|
-
*
|
|
46
|
-
* @param value - Text.
|
|
47
|
-
*/
|
|
48
|
-
createTextNode(value: string): T['textNode'];
|
|
49
|
-
/**
|
|
50
|
-
* Creates a document node.
|
|
51
|
-
*/
|
|
52
|
-
createDocument(): T['document'];
|
|
53
|
-
/**
|
|
54
|
-
* Creates a document fragment node.
|
|
55
|
-
*/
|
|
56
|
-
createDocumentFragment(): T['documentFragment'];
|
|
57
|
-
/**
|
|
58
|
-
* Creates an element node.
|
|
59
|
-
*
|
|
60
|
-
* @param tagName - Tag name of the element.
|
|
61
|
-
* @param namespaceURI - Namespace of the element.
|
|
62
|
-
* @param attrs - Attribute name-value pair array. Foreign attributes may contain `namespace` and `prefix` fields as well.
|
|
63
|
-
*/
|
|
64
|
-
createElement(tagName: string, namespaceURI: NS, attrs: Attribute[]): T['element'];
|
|
65
|
-
/**
|
|
66
|
-
* Removes a node from its parent.
|
|
67
|
-
*
|
|
68
|
-
* @param node - Node to remove.
|
|
69
|
-
*/
|
|
70
|
-
detachNode(node: T['childNode']): void;
|
|
71
|
-
/**
|
|
72
|
-
* Returns the given element's attributes in an array, in the form of name-value pairs.
|
|
73
|
-
* Foreign attributes may contain `namespace` and `prefix` fields as well.
|
|
74
|
-
*
|
|
75
|
-
* @param element - Element.
|
|
76
|
-
*/
|
|
77
|
-
getAttrList(element: T['element']): Attribute[];
|
|
78
|
-
/**
|
|
79
|
-
* Returns the given node's children in an array.
|
|
80
|
-
*
|
|
81
|
-
* @param node - Node.
|
|
82
|
-
*/
|
|
83
|
-
getChildNodes(node: T['parentNode']): T['childNode'][];
|
|
84
|
-
/**
|
|
85
|
-
* Returns the given comment node's content.
|
|
86
|
-
*
|
|
87
|
-
* @param commentNode - Comment node.
|
|
88
|
-
*/
|
|
89
|
-
getCommentNodeContent(commentNode: T['commentNode']): string;
|
|
90
|
-
/**
|
|
91
|
-
* Returns [document mode](https://dom.spec.whatwg.org/#concept-document-limited-quirks).
|
|
92
|
-
*
|
|
93
|
-
* @param document - Document node.
|
|
94
|
-
*/
|
|
95
|
-
getDocumentMode(document: T['document']): DOCUMENT_MODE;
|
|
96
|
-
/**
|
|
97
|
-
* Returns the given document type node's name.
|
|
98
|
-
*
|
|
99
|
-
* @param doctypeNode - Document type node.
|
|
100
|
-
*/
|
|
101
|
-
getDocumentTypeNodeName(doctypeNode: T['documentType']): string;
|
|
102
|
-
/**
|
|
103
|
-
* Returns the given document type node's public identifier.
|
|
104
|
-
*
|
|
105
|
-
* @param doctypeNode - Document type node.
|
|
106
|
-
*/
|
|
107
|
-
getDocumentTypeNodePublicId(doctypeNode: T['documentType']): string;
|
|
108
|
-
/**
|
|
109
|
-
* Returns the given document type node's system identifier.
|
|
110
|
-
*
|
|
111
|
-
* @param doctypeNode - Document type node.
|
|
112
|
-
*/
|
|
113
|
-
getDocumentTypeNodeSystemId(doctypeNode: T['documentType']): string;
|
|
114
|
-
/**
|
|
115
|
-
* Returns the first child of the given node.
|
|
116
|
-
*
|
|
117
|
-
* @param node - Node.
|
|
118
|
-
*/
|
|
119
|
-
getFirstChild(node: T['parentNode']): T['childNode'] | null;
|
|
120
|
-
/**
|
|
121
|
-
* Returns the given element's namespace.
|
|
122
|
-
*
|
|
123
|
-
* @param element - Element.
|
|
124
|
-
*/
|
|
125
|
-
getNamespaceURI(element: T['element']): NS;
|
|
126
|
-
/**
|
|
127
|
-
* Returns the given node's source code location information.
|
|
128
|
-
*
|
|
129
|
-
* @param node - Node.
|
|
130
|
-
*/
|
|
131
|
-
getNodeSourceCodeLocation(node: T['node']): ElementLocation | undefined | null;
|
|
132
|
-
/**
|
|
133
|
-
* Returns the given node's parent.
|
|
134
|
-
*
|
|
135
|
-
* @param node - Node.
|
|
136
|
-
*/
|
|
137
|
-
getParentNode(node: T['node']): T['parentNode'] | null;
|
|
138
|
-
/**
|
|
139
|
-
* Returns the given element's tag name.
|
|
140
|
-
*
|
|
141
|
-
* @param element - Element.
|
|
142
|
-
*/
|
|
143
|
-
getTagName(element: T['element']): string;
|
|
144
|
-
/**
|
|
145
|
-
* Returns the given text node's content.
|
|
146
|
-
*
|
|
147
|
-
* @param textNode - Text node.
|
|
148
|
-
*/
|
|
149
|
-
getTextNodeContent(textNode: T['textNode']): string;
|
|
150
|
-
/**
|
|
151
|
-
* Returns the `<template>` element content element.
|
|
152
|
-
*
|
|
153
|
-
* @param templateElement - `<template>` element.
|
|
154
|
-
*/
|
|
155
|
-
getTemplateContent(templateElement: T['template']): T['documentFragment'];
|
|
156
|
-
/**
|
|
157
|
-
* Inserts a child node to the given parent node before the given reference node.
|
|
158
|
-
*
|
|
159
|
-
* @param parentNode - Parent node.
|
|
160
|
-
* @param newNode - Child node.
|
|
161
|
-
* @param referenceNode - Reference node.
|
|
162
|
-
*/
|
|
163
|
-
insertBefore(parentNode: T['parentNode'], newNode: T['childNode'], referenceNode: T['childNode']): void;
|
|
164
|
-
/**
|
|
165
|
-
* Inserts text into a node. If the last child of the node is a text node, the provided text will be appended to the
|
|
166
|
-
* text node content. Otherwise, inserts a new text node with the given text.
|
|
167
|
-
*
|
|
168
|
-
* @param parentNode - Node to insert text into.
|
|
169
|
-
* @param text - Text to insert.
|
|
170
|
-
*/
|
|
171
|
-
insertText(parentNode: T['parentNode'], text: string): void;
|
|
172
|
-
/**
|
|
173
|
-
* Inserts text into a sibling node that goes before the reference node. If this sibling node is the text node,
|
|
174
|
-
* the provided text will be appended to the text node content. Otherwise, inserts a new sibling text node with
|
|
175
|
-
* the given text before the reference node.
|
|
176
|
-
*
|
|
177
|
-
* @param parentNode - Node to insert text into.
|
|
178
|
-
* @param text - Text to insert.
|
|
179
|
-
* @param referenceNode - Node to insert text before.
|
|
180
|
-
*/
|
|
181
|
-
insertTextBefore(parentNode: T['parentNode'], text: string, referenceNode: T['childNode']): void;
|
|
182
|
-
/**
|
|
183
|
-
* Determines if the given node is a comment node.
|
|
184
|
-
*
|
|
185
|
-
* @param node - Node.
|
|
186
|
-
*/
|
|
187
|
-
isCommentNode(node: T['node']): node is T['commentNode'];
|
|
188
|
-
/**
|
|
189
|
-
* Determines if the given node is a document type node.
|
|
190
|
-
*
|
|
191
|
-
* @param node - Node.
|
|
192
|
-
*/
|
|
193
|
-
isDocumentTypeNode(node: T['node']): node is T['documentType'];
|
|
194
|
-
/**
|
|
195
|
-
* Determines if the given node is an element.
|
|
196
|
-
*
|
|
197
|
-
* @param node - Node.
|
|
198
|
-
*/
|
|
199
|
-
isElementNode(node: T['node']): node is T['element'];
|
|
200
|
-
/**
|
|
201
|
-
* Determines if the given node is a text node.
|
|
202
|
-
*
|
|
203
|
-
* @param node - Node.
|
|
204
|
-
*/
|
|
205
|
-
isTextNode(node: T['node']): node is T['textNode'];
|
|
206
|
-
/**
|
|
207
|
-
* Sets the [document mode](https://dom.spec.whatwg.org/#concept-document-limited-quirks).
|
|
208
|
-
*
|
|
209
|
-
* @param document - Document node.
|
|
210
|
-
* @param mode - Document mode.
|
|
211
|
-
*/
|
|
212
|
-
setDocumentMode(document: T['document'], mode: DOCUMENT_MODE): void;
|
|
213
|
-
/**
|
|
214
|
-
* Sets the document type. If the `document` already contains a document type node, the `name`, `publicId` and `systemId`
|
|
215
|
-
* properties of this node will be updated with the provided values. Otherwise, creates a new document type node
|
|
216
|
-
* with the given properties and inserts it into the `document`.
|
|
217
|
-
*
|
|
218
|
-
* @param document - Document node.
|
|
219
|
-
* @param name - Document type name.
|
|
220
|
-
* @param publicId - Document type public identifier.
|
|
221
|
-
* @param systemId - Document type system identifier.
|
|
222
|
-
*/
|
|
223
|
-
setDocumentType(document: T['document'], name: string, publicId: string, systemId: string): void;
|
|
224
|
-
/**
|
|
225
|
-
* Attaches source code location information to the node.
|
|
226
|
-
*
|
|
227
|
-
* @param node - Node.
|
|
228
|
-
*/
|
|
229
|
-
setNodeSourceCodeLocation(node: T['node'], location: ElementLocation | null): void;
|
|
230
|
-
/**
|
|
231
|
-
* Updates the source code location information of the node.
|
|
232
|
-
*
|
|
233
|
-
* @param node - Node.
|
|
234
|
-
*/
|
|
235
|
-
updateNodeSourceCodeLocation(node: T['node'], location: Partial<ElementLocation>): void;
|
|
236
|
-
/**
|
|
237
|
-
* Sets the `<template>` element content element.
|
|
238
|
-
*
|
|
239
|
-
* @param templateElement - `<template>` element.
|
|
240
|
-
* @param contentElement - Content element.
|
|
241
|
-
*/
|
|
242
|
-
setTemplateContent(templateElement: T['template'], contentElement: T['documentFragment']): void;
|
|
243
|
-
/**
|
|
244
|
-
* Optional callback for elements being pushed to the stack of open elements.
|
|
245
|
-
*
|
|
246
|
-
* @param element The element being pushed to the stack of open elements.
|
|
247
|
-
*/
|
|
248
|
-
onItemPush?: (item: T['element']) => void;
|
|
249
|
-
/**
|
|
250
|
-
* Optional callback for elements being popped from the stack of open elements.
|
|
251
|
-
*
|
|
252
|
-
* @param item The element being popped.
|
|
253
|
-
*/
|
|
254
|
-
onItemPop?: (item: T['element'], newTop: T['parentNode']) => void;
|
|
255
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "parse5",
|
|
3
|
-
"type": "module",
|
|
4
|
-
"description": "HTML parser and serializer.",
|
|
5
|
-
"version": "8.0.1",
|
|
6
|
-
"author": "Ivan Nikulin <ifaaan@gmail.com> (https://github.com/inikulin)",
|
|
7
|
-
"contributors": [
|
|
8
|
-
"James Garbutt (https://github.com/43081j)",
|
|
9
|
-
"Felix Boehm (https://github.com/fb55)",
|
|
10
|
-
"Ivan Nikulin (https://github.com/inikulin)",
|
|
11
|
-
"Titus (https://github.com/wooorm)"
|
|
12
|
-
],
|
|
13
|
-
"homepage": "https://parse5.js.org",
|
|
14
|
-
"funding": "https://github.com/inikulin/parse5?sponsor=1",
|
|
15
|
-
"dependencies": {
|
|
16
|
-
"entities": "^8.0.0"
|
|
17
|
-
},
|
|
18
|
-
"keywords": [
|
|
19
|
-
"html",
|
|
20
|
-
"parser",
|
|
21
|
-
"html5",
|
|
22
|
-
"WHATWG",
|
|
23
|
-
"specification",
|
|
24
|
-
"fast",
|
|
25
|
-
"html parser",
|
|
26
|
-
"html5 parser",
|
|
27
|
-
"htmlparser",
|
|
28
|
-
"parse5",
|
|
29
|
-
"serializer",
|
|
30
|
-
"html serializer",
|
|
31
|
-
"htmlserializer",
|
|
32
|
-
"parse",
|
|
33
|
-
"serialize"
|
|
34
|
-
],
|
|
35
|
-
"license": "MIT",
|
|
36
|
-
"main": "dist/index.js",
|
|
37
|
-
"module": "dist/index.js",
|
|
38
|
-
"types": "dist/index.d.ts",
|
|
39
|
-
"exports": {
|
|
40
|
-
".": {
|
|
41
|
-
"default": "./dist/index.js"
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"scripts": {},
|
|
45
|
-
"repository": {
|
|
46
|
-
"type": "git",
|
|
47
|
-
"url": "git://github.com/inikulin/parse5.git"
|
|
48
|
-
},
|
|
49
|
-
"files": [
|
|
50
|
-
"dist/**/*.js",
|
|
51
|
-
"dist/**/*.d.ts"
|
|
52
|
-
]
|
|
53
|
-
}
|
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
# synckit
|
|
2
|
-
|
|
3
|
-
[](https://github.com/un-ts/synckit/actions/workflows/ci.yml?query=branch%3Amain)
|
|
4
|
-
[](https://codecov.io/gh/un-ts/synckit)
|
|
5
|
-
[](https://github.com/plantain-00/type-coverage)
|
|
6
|
-
[](https://coderabbit.ai)
|
|
7
|
-
[](https://www.npmjs.com/package/synckit)
|
|
8
|
-
[](https://github.com/un-ts/synckit/releases)
|
|
9
|
-
|
|
10
|
-
[](https://conventionalcommits.org)
|
|
11
|
-
[](https://renovatebot.com)
|
|
12
|
-
[](https://standardjs.com)
|
|
13
|
-
[](https://github.com/prettier/prettier)
|
|
14
|
-
[](https://github.com/changesets/changesets)
|
|
15
|
-
|
|
16
|
-
Perform async work synchronously in Node.js/Bun using `worker_threads` with first-class TypeScript and Yarn P'n'P support.
|
|
17
|
-
|
|
18
|
-
## TOC <!-- omit in toc -->
|
|
19
|
-
|
|
20
|
-
- [Usage](#usage)
|
|
21
|
-
- [Install](#install)
|
|
22
|
-
- [API](#api)
|
|
23
|
-
- [Types](#types)
|
|
24
|
-
- [Options](#options)
|
|
25
|
-
- [Envs](#envs)
|
|
26
|
-
- [TypeScript](#typescript)
|
|
27
|
-
- [`node` (Default, Node 22.6+)](#node-default-node-226)
|
|
28
|
-
- [`bun` (Default, Bun)](#bun-default-bun)
|
|
29
|
-
- [`ts-node` (Default)](#ts-node-default)
|
|
30
|
-
- [`esbuild-register`](#esbuild-register)
|
|
31
|
-
- [`esbuild-runner`](#esbuild-runner)
|
|
32
|
-
- [`oxc`](#oxc)
|
|
33
|
-
- [`swc`](#swc)
|
|
34
|
-
- [`tsx`](#tsx)
|
|
35
|
-
- [Benchmark](#benchmark)
|
|
36
|
-
- [Sponsors](#sponsors)
|
|
37
|
-
- [Backers](#backers)
|
|
38
|
-
- [Who are using `synckit`](#who-are-using-synckit)
|
|
39
|
-
- [Acknowledgements](#acknowledgements)
|
|
40
|
-
- [Changelog](#changelog)
|
|
41
|
-
- [License](#license)
|
|
42
|
-
|
|
43
|
-
## Usage
|
|
44
|
-
|
|
45
|
-
### Install
|
|
46
|
-
|
|
47
|
-
```sh
|
|
48
|
-
# yarn
|
|
49
|
-
yarn add synckit
|
|
50
|
-
|
|
51
|
-
# npm
|
|
52
|
-
npm i synckit
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
### API
|
|
56
|
-
|
|
57
|
-
```js
|
|
58
|
-
// runner.js
|
|
59
|
-
import { createSyncFn } from 'synckit'
|
|
60
|
-
|
|
61
|
-
// the worker path must be absolute
|
|
62
|
-
const syncFn = createSyncFn(require.resolve('./worker'), {
|
|
63
|
-
tsRunner: 'tsx', // optional, can be `'node' | 'ts-node' | 'esbuild-register' | 'esbuild-runner' | 'tsx'`
|
|
64
|
-
})
|
|
65
|
-
|
|
66
|
-
// do whatever you want, you will get the result synchronously!
|
|
67
|
-
const result = syncFn(...args)
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
```js
|
|
71
|
-
// worker.js
|
|
72
|
-
import { runAsWorker } from 'synckit'
|
|
73
|
-
|
|
74
|
-
runAsWorker(async (...args) => {
|
|
75
|
-
// do expensive work
|
|
76
|
-
return result
|
|
77
|
-
})
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
You must make sure, the `result` is serializable by [`Structured Clone Algorithm`](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm)
|
|
81
|
-
|
|
82
|
-
### Types
|
|
83
|
-
|
|
84
|
-
````ts
|
|
85
|
-
export interface GlobalShim {
|
|
86
|
-
moduleName: string
|
|
87
|
-
/** `undefined` means side effect only */
|
|
88
|
-
globalName?: string
|
|
89
|
-
/**
|
|
90
|
-
* 1. `undefined` or empty string means `default`, for example:
|
|
91
|
-
*
|
|
92
|
-
* ```js
|
|
93
|
-
* import globalName from 'module-name'
|
|
94
|
-
* ```
|
|
95
|
-
*
|
|
96
|
-
* 2. `null` means namespaced, for example:
|
|
97
|
-
*
|
|
98
|
-
* ```js
|
|
99
|
-
* import * as globalName from 'module-name'
|
|
100
|
-
* ```
|
|
101
|
-
*/
|
|
102
|
-
named?: string | null
|
|
103
|
-
/**
|
|
104
|
-
* If not `false`, the shim will only be applied when the original
|
|
105
|
-
* `globalName` unavailable, for example you may only want polyfill
|
|
106
|
-
* `globalThis.fetch` when it's unavailable natively:
|
|
107
|
-
*
|
|
108
|
-
* ```js
|
|
109
|
-
* import fetch from 'node-fetch'
|
|
110
|
-
*
|
|
111
|
-
* if (!globalThis.fetch) {
|
|
112
|
-
* globalThis.fetch = fetch
|
|
113
|
-
* }
|
|
114
|
-
* ```
|
|
115
|
-
*/
|
|
116
|
-
conditional?: boolean
|
|
117
|
-
}
|
|
118
|
-
````
|
|
119
|
-
|
|
120
|
-
### Options
|
|
121
|
-
|
|
122
|
-
1. `execArgv` same as env `SYNCKIT_EXEC_ARGV`
|
|
123
|
-
2. `globalShims`: Similar like env `SYNCKIT_GLOBAL_SHIMS` but much more flexible which can be a `GlobalShim` `Array`, see `GlobalShim`'s [definition](#types) for more details
|
|
124
|
-
3. `timeout` same as env `SYNCKIT_TIMEOUT`
|
|
125
|
-
4. `transferList`: Please refer Node.js [`worker_threads`](https://nodejs.org/api/worker_threads.html#:~:text=Default%3A%20true.-,transferList,-%3CObject%5B%5D%3E%20If) documentation
|
|
126
|
-
5. `tsRunner` same as env `SYNCKIT_TS_RUNNER`
|
|
127
|
-
|
|
128
|
-
### Envs
|
|
129
|
-
|
|
130
|
-
1. `SYNCKIT_EXEC_ARGV`: List of node CLI options passed to the worker, split with comma `,`. (default as `[]`), see also [`node` docs](https://nodejs.org/api/worker_threads.html)
|
|
131
|
-
2. `SYNCKIT_GLOBAL_SHIMS`: Whether to enable the default `DEFAULT_GLOBAL_SHIMS_PRESET` as `globalShims`
|
|
132
|
-
3. `SYNCKIT_TIMEOUT`: `timeout` for performing the async job (no default)
|
|
133
|
-
4. `SYNCKIT_TS_RUNNER`: Which TypeScript runner to be used, it could be very useful for development, could be `'node' | 'ts-node' | 'esbuild-register' | 'esbuild-runner' | 'oxc' | 'swc' | 'tsx'`, `node` or `ts-node` will be used by default accordingly, make sure you have installed them already
|
|
134
|
-
|
|
135
|
-
### TypeScript
|
|
136
|
-
|
|
137
|
-
#### `node` (Default, Node 22.6+)
|
|
138
|
-
|
|
139
|
-
On recent `Node` versions, you may select this runner to execute your worker file (a `.ts` file) in the native runtime.
|
|
140
|
-
|
|
141
|
-
As of `Node` v23.6, this feature is supported out of the box. For `Node` `>=22.6 <23.6`, this feature is supported via `--experimental-strip-types` flag. Visit the [documentation](https://nodejs.org/docs/latest/api/typescript.html#type-stripping) to learn more.
|
|
142
|
-
|
|
143
|
-
When `synckit` detects the process to be running with supported `Node` versions (>=22.6), it will execute the worker file with the `node` runner by default, you can disable this behavior by setting `--no-experimental-strip-types` flag via `NODE_OPTIONS` env or cli arg.
|
|
144
|
-
|
|
145
|
-
#### `bun` (Default, Bun)
|
|
146
|
-
|
|
147
|
-
[`Bun`](https://bun.sh/docs/typescript) supports `TypeScript` natively.
|
|
148
|
-
|
|
149
|
-
When `synckit` detects the process to be running with `Bun`, it will execute the worker file with the `bun` runner by default.
|
|
150
|
-
|
|
151
|
-
In this case, `synckit` doesn't do anything to the worker itself, it just passes through the worker directly.
|
|
152
|
-
|
|
153
|
-
#### `ts-node` (Default)
|
|
154
|
-
|
|
155
|
-
Prior to Node v22.6, you may want to use `ts-node` to execute your worker file (a `.ts` file).
|
|
156
|
-
|
|
157
|
-
If you want to use a custom tsconfig as project instead of default `tsconfig.json`, use `TS_NODE_PROJECT` env. Please view [ts-node](https://github.com/TypeStrong/ts-node#tsconfig) for more details.
|
|
158
|
-
|
|
159
|
-
If you want to integrate with [tsconfig-paths](https://www.npmjs.com/package/tsconfig-paths), please view [ts-node](https://github.com/TypeStrong/ts-node#paths-and-baseurl) for more details.
|
|
160
|
-
|
|
161
|
-
#### `esbuild-register`
|
|
162
|
-
|
|
163
|
-
Please view [`esbuild-register`][] for its document
|
|
164
|
-
|
|
165
|
-
#### `esbuild-runner`
|
|
166
|
-
|
|
167
|
-
Please view [`esbuild-runner`][] for its document
|
|
168
|
-
|
|
169
|
-
#### `oxc`
|
|
170
|
-
|
|
171
|
-
Please view [`@oxc-node/core`][] for its document
|
|
172
|
-
|
|
173
|
-
#### `swc`
|
|
174
|
-
|
|
175
|
-
Please view [`@swc-node/register`][] for its document
|
|
176
|
-
|
|
177
|
-
#### `tsx`
|
|
178
|
-
|
|
179
|
-
Please view [`tsx`][] for its document
|
|
180
|
-
|
|
181
|
-
## Benchmark
|
|
182
|
-
|
|
183
|
-
The following are the benchmark results of `synckit` against other libraries with Node.js v20.19.0 on my personal MacBook Pro with 64G M1 Max:
|
|
184
|
-
|
|
185
|
-
```sh
|
|
186
|
-
# cjs
|
|
187
|
-
┌───────────┬────────────┬──────────────┬───────────────────┬─────────────┬────────────────┬───────────────────┬────────────────────────┬───────────┬─────────────────┐
|
|
188
|
-
│ (index) │ synckit │ sync-threads │ perf sync-threads │ deasync │ perf deasync │ make-synchronized │ perf make-synchronized │ native │ perf native │
|
|
189
|
-
├───────────┼────────────┼──────────────┼───────────────────┼─────────────┼────────────────┼───────────────────┼────────────────────────┼───────────┼─────────────────┤
|
|
190
|
-
│ loadTime │ '17.26ms' │ '1.49ms' │ '11.57x slower' │ '146.55ms' │ '8.49x faster' │ '1025.77ms' │ '59.42x faster' │ '0.29ms' │ '59.71x slower' │
|
|
191
|
-
│ runTime │ '143.12ms' │ '3689.15ms' │ '25.78x faster' │ '1221.11ms' │ '8.53x faster' │ '2842.50ms' │ '19.86x faster' │ '12.64ms' │ '11.33x slower' │
|
|
192
|
-
│ totalTime │ '160.38ms' │ '3690.64ms' │ '23.01x faster' │ '1367.66ms' │ '8.53x faster' │ '3868.27ms' │ '24.12x faster' │ '12.93ms' │ '12.41x slower' │
|
|
193
|
-
└───────────┴────────────┴──────────────┴───────────────────┴─────────────┴────────────────┴───────────────────┴────────────────────────┴───────────┴─────────────────┘
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
```sh
|
|
197
|
-
# esm
|
|
198
|
-
┌───────────┬────────────┬──────────────┬───────────────────┬─────────────┬────────────────┬───────────────────┬────────────────────────┬───────────┬─────────────────┐
|
|
199
|
-
│ (index) │ synckit │ sync-threads │ perf sync-threads │ deasync │ perf deasync │ make-synchronized │ perf make-synchronized │ native │ perf native │
|
|
200
|
-
├───────────┼────────────┼──────────────┼───────────────────┼─────────────┼────────────────┼───────────────────┼────────────────────────┼───────────┼─────────────────┤
|
|
201
|
-
│ loadTime │ '23.88ms' │ '2.03ms' │ '11.75x slower' │ '70.95ms' │ '2.97x faster' │ '400.24ms' │ '16.76x faster' │ '0.44ms' │ '54.70x slower' │
|
|
202
|
-
│ runTime │ '139.56ms' │ '3570.12ms' │ '25.58x faster' │ '1150.99ms' │ '8.25x faster' │ '3484.04ms' │ '24.96x faster' │ '12.98ms' │ '10.75x slower' │
|
|
203
|
-
│ totalTime │ '163.44ms' │ '3572.15ms' │ '21.86x faster' │ '1221.93ms' │ '7.48x faster' │ '3884.28ms' │ '23.77x faster' │ '13.42ms' │ '12.18x slower' │
|
|
204
|
-
└───────────┴────────────┴──────────────┴───────────────────┴─────────────┴────────────────┴───────────────────┴────────────────────────┴───────────┴─────────────────┘
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
See [benchmark.cjs](./benchmarks/benchmark.cjs.txt) and [benchmark.esm](./benchmarks/benchmark.esm.txt) for more details.
|
|
208
|
-
|
|
209
|
-
You can try it with running `yarn benchmark` by yourself. [Here](./benchmarks/benchmark.js) is the benchmark source code.
|
|
210
|
-
|
|
211
|
-
## Sponsors and Backers
|
|
212
|
-
|
|
213
|
-
[](https://github.com/sponsors/JounQin)
|
|
214
|
-
|
|
215
|
-
### Sponsors
|
|
216
|
-
|
|
217
|
-
| 1stG | RxTS | UnTS |
|
|
218
|
-
| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
|
|
219
|
-
| [](https://opencollective.com/1stG) | [](https://opencollective.com/rxts) | [](https://opencollective.com/unts) |
|
|
220
|
-
|
|
221
|
-
### Backers
|
|
222
|
-
|
|
223
|
-
| 1stG | RxTS | UnTS |
|
|
224
|
-
| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
|
|
225
|
-
| [](https://opencollective.com/1stG) | [](https://opencollective.com/rxts) | [](https://opencollective.com/unts) |
|
|
226
|
-
|
|
227
|
-
## Who are using `synckit`
|
|
228
|
-
|
|
229
|
-
- [`@cspell/eslint-plugin`](https://github.com/streetsidesoftware/cspell/blob/ec04bcee0c90ff4e2a9fb5ef4421714796fb58ba/packages/cspell-eslint-plugin/package.json#L80)
|
|
230
|
-
- [`astrojs-compiler-sync`](https://github.com/ota-meshi/astrojs-compiler-sync/blob/da4e86fd601755e40599d7f5121bc83d08255c42/package.json#L52)
|
|
231
|
-
- [`eslint-plugin-prettier`](https://github.com/prettier/eslint-plugin-prettier/blob/ca5eb3ec11c4ae511e1da22736c73b253210b73b/package.json#L67)
|
|
232
|
-
- [`eslint-plugin-prettier-vue`](https://github.com/meteorlxy/eslint-plugin-prettier-vue/blob/d3f6722303d66a2b223df2f750982e33c1143d5d/package.json#L40)
|
|
233
|
-
- [`eslint-mdx`](https://github.com/mdx-js/eslint-mdx/blob/4623359cc9784d3e38bd917ed001c5d7d826f990/packages/eslint-mdx/package.json#L40)
|
|
234
|
-
- [`prettier-plugin-packagejson`](https://github.com/matzkoh/prettier-plugin-packagejson/blob/eb7ade2a048d6d163cf8ef37e098ee273f72c585/package.json#L31)
|
|
235
|
-
- [`jest-snapshot`](https://github.com/jestjs/jest/blob/4e7d916ec6a16de5548273c17b5d2c5761b0aebb/packages/jest-snapshot/package.json#L42)
|
|
236
|
-
|
|
237
|
-
## Acknowledgements
|
|
238
|
-
|
|
239
|
-
This package is original inspired by [`esbuild`](https://github.com/evanw/esbuild) and [`sync-threads`](https://github.com/lambci/sync-threads).
|
|
240
|
-
|
|
241
|
-
## Changelog
|
|
242
|
-
|
|
243
|
-
Detailed changes for each release are documented in [CHANGELOG.md](./CHANGELOG.md).
|
|
244
|
-
|
|
245
|
-
## License
|
|
246
|
-
|
|
247
|
-
[MIT][] © [JounQin][]@[1stG.me][]
|
|
248
|
-
|
|
249
|
-
[`esbuild-register`]: https://github.com/egoist/esbuild-register
|
|
250
|
-
[`esbuild-runner`]: https://github.com/folke/esbuild-runner
|
|
251
|
-
[`@oxc-node/core`]: https://github.com/oxc-project/oxc-node
|
|
252
|
-
[`@swc-node/register`]: https://github.com/swc-project/swc-node/tree/master/packages/register
|
|
253
|
-
[`tsx`]: https://github.com/esbuild-kit/tsx
|
|
254
|
-
[1stG.me]: https://www.1stG.me
|
|
255
|
-
[JounQin]: https://github.com/JounQin
|
|
256
|
-
[MIT]: http://opensource.org/licenses/MIT
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const hasFlag: (flag: string) => boolean;
|
|
2
|
-
export declare const parseVersion: (version: string) => number[];
|
|
3
|
-
export declare const compareVersion: (version1: string, version2: string) => 1 | -1 | 0;
|
|
4
|
-
export declare const NODE_VERSION: string;
|
|
5
|
-
export declare const compareNodeVersion: (version: string) => 1 | -1 | 0;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
const NODE_OPTIONS = process.env.NODE_OPTIONS?.split(/\s+/);
|
|
2
|
-
export const hasFlag = (flag) => NODE_OPTIONS?.includes(flag) || process.argv.includes(flag);
|
|
3
|
-
export const parseVersion = (version) => version.split('.').map(Number.parseFloat);
|
|
4
|
-
export const compareVersion = (version1, version2) => {
|
|
5
|
-
const versions1 = parseVersion(version1);
|
|
6
|
-
const versions2 = parseVersion(version2);
|
|
7
|
-
const length = Math.max(versions1.length, versions2.length);
|
|
8
|
-
for (let i = 0; i < length; i++) {
|
|
9
|
-
const v1 = versions1[i] || 0;
|
|
10
|
-
const v2 = versions2[i] || 0;
|
|
11
|
-
if (v1 > v2) {
|
|
12
|
-
return 1;
|
|
13
|
-
}
|
|
14
|
-
if (v1 < v2) {
|
|
15
|
-
return -1;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
return 0;
|
|
19
|
-
};
|
|
20
|
-
export const NODE_VERSION = process.versions.node;
|
|
21
|
-
export const compareNodeVersion = (version) => compareVersion(NODE_VERSION, version);
|
|
22
|
-
//# sourceMappingURL=common.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":"AAAA,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,KAAK,CAAC,KAAK,CAAC,CAAA;AAE3D,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,IAAY,EAAE,EAAE,CACtC,YAAY,EAAE,QAAQ,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;AAE7D,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,OAAe,EAAE,EAAE,CAC9C,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,CAAA;AAG3C,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,QAAgB,EAAE,QAAgB,EAAE,EAAE;IACnE,MAAM,SAAS,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAA;IACxC,MAAM,SAAS,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAA;IACxC,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,CAAA;IAC3D,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAChC,MAAM,EAAE,GAAG,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;QAC5B,MAAM,EAAE,GAAG,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;QAC5B,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC;YACZ,OAAO,CAAC,CAAA;QACV,CAAC;QACD,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC;YACZ,OAAO,CAAC,CAAC,CAAA;QACX,CAAC;IACH,CAAC;IACD,OAAO,CAAC,CAAA;AACV,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAA;AAEjD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,OAAe,EAAE,EAAE,CACpD,cAAc,CAAC,YAAY,EAAE,OAAO,CAAC,CAAA"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { GlobalShim, ValueOf } from './types.js';
|
|
2
|
-
export declare const TsRunner: {
|
|
3
|
-
readonly Node: "node";
|
|
4
|
-
readonly Bun: "bun";
|
|
5
|
-
readonly TsNode: "ts-node";
|
|
6
|
-
readonly EsbuildRegister: "esbuild-register";
|
|
7
|
-
readonly EsbuildRunner: "esbuild-runner";
|
|
8
|
-
readonly OXC: "oxc";
|
|
9
|
-
readonly SWC: "swc";
|
|
10
|
-
readonly TSX: "tsx";
|
|
11
|
-
};
|
|
12
|
-
export type TsRunner = ValueOf<typeof TsRunner>;
|
|
13
|
-
export declare const TS_ESM_PARTIAL_SUPPORTED: boolean;
|
|
14
|
-
export declare const MTS_SUPPORTED: boolean;
|
|
15
|
-
export declare const MODULE_REGISTER_SUPPORTED: boolean;
|
|
16
|
-
export declare const STRIP_TYPES_NODE_VERSION = "22.6";
|
|
17
|
-
export declare const TRANSFORM_TYPES_NODE_VERSION = "22.7";
|
|
18
|
-
export declare const FEATURE_TYPESCRIPT_NODE_VERSION = "22.10";
|
|
19
|
-
export declare const DEFAULT_TYPES_NODE_VERSION = "23.6";
|
|
20
|
-
export declare const STRIP_TYPES_FLAG = "--experimental-strip-types";
|
|
21
|
-
export declare const TRANSFORM_TYPES_FLAG = "--experimental-transform-types";
|
|
22
|
-
export declare const NO_STRIP_TYPES_FLAG = "--no-experimental-strip-types";
|
|
23
|
-
export declare const NODE_OPTIONS: string[];
|
|
24
|
-
export declare const NO_STRIP_TYPES: boolean;
|
|
25
|
-
export declare const DEFAULT_TIMEOUT: number | undefined;
|
|
26
|
-
export declare const DEFAULT_EXEC_ARGV: string[];
|
|
27
|
-
export declare const DEFAULT_TS_RUNNER: TsRunner | undefined;
|
|
28
|
-
export declare const DEFAULT_GLOBAL_SHIMS: boolean;
|
|
29
|
-
export declare const DEFAULT_GLOBAL_SHIMS_PRESET: GlobalShim[];
|
|
30
|
-
export declare const IMPORT_FLAG = "--import";
|
|
31
|
-
export declare const REQUIRE_FLAG = "--require";
|
|
32
|
-
export declare const REQUIRE_ABBR_FLAG = "-r";
|
|
33
|
-
export declare const REQUIRE_FLAGS: Set<string>;
|
|
34
|
-
export declare const LOADER_FLAG = "--loader";
|
|
35
|
-
export declare const EXPERIMENTAL_LOADER_FLAG = "--experimental-loader";
|
|
36
|
-
export declare const LOADER_FLAGS: Set<string>;
|
|
37
|
-
export declare const IMPORT_FLAG_SUPPORTED: boolean;
|
|
38
|
-
export declare const INT32_BYTES = 4;
|