update
This commit is contained in:
@@ -0,0 +1 @@
|
||||
{"version":3,"names":["_OverloadYield","require","_asyncGeneratorDelegate","inner","iter","waiting","pump","key","value","Promise","resolve","done","OverloadYield","Symbol","iterator","next","throw","return"],"sources":["../../src/helpers/asyncGeneratorDelegate.ts"],"sourcesContent":["/* @minVersion 7.0.0-beta.0 */\n\nimport OverloadYield from \"./OverloadYield.ts\";\n\nexport default function _asyncGeneratorDelegate<T>(inner: Generator<T>) {\n var iter = {} as Generator<T>,\n // See the comment in AsyncGenerator to understand what this is.\n waiting = false;\n\n function pump(\n key: \"next\" | \"throw\" | \"return\",\n value: any,\n ): IteratorYieldResult<any> {\n waiting = true;\n value = new Promise(function (resolve) {\n resolve(inner[key](value));\n });\n return {\n done: false,\n value: new OverloadYield(value, /* kind: delegate */ 1),\n };\n }\n\n iter[\n ((typeof Symbol !== \"undefined\" && Symbol.iterator) ||\n \"@@iterator\") as typeof Symbol.iterator\n ] = function () {\n return this;\n };\n\n iter.next = function (value: any) {\n if (waiting) {\n waiting = false;\n return value;\n }\n return pump(\"next\", value);\n };\n\n if (typeof inner.throw === \"function\") {\n iter.throw = function (value: any) {\n if (waiting) {\n waiting = false;\n throw value;\n }\n return pump(\"throw\", value);\n };\n }\n\n if (typeof inner.return === \"function\") {\n iter.return = function (value: any) {\n if (waiting) {\n waiting = false;\n return value;\n }\n return pump(\"return\", value);\n };\n }\n\n return iter;\n}\n"],"mappings":";;;;;;AAEA,IAAAA,cAAA,GAAAC,OAAA;AAEe,SAASC,uBAAuBA,CAAIC,KAAmB,EAAE;EACtE,IAAIC,IAAI,GAAG,CAAC,CAAiB;IAE3BC,OAAO,GAAG,KAAK;EAEjB,SAASC,IAAIA,CACXC,GAAgC,EAChCC,KAAU,EACgB;IAC1BH,OAAO,GAAG,IAAI;IACdG,KAAK,GAAG,IAAIC,OAAO,CAAC,UAAUC,OAAO,EAAE;MACrCA,OAAO,CAACP,KAAK,CAACI,GAAG,CAAC,CAACC,KAAK,CAAC,CAAC;IAC5B,CAAC,CAAC;IACF,OAAO;MACLG,IAAI,EAAE,KAAK;MACXH,KAAK,EAAE,IAAII,sBAAa,CAACJ,KAAK,EAAuB,CAAC;IACxD,CAAC;EACH;EAEAJ,IAAI,CACA,OAAOS,MAAM,KAAK,WAAW,IAAIA,MAAM,CAACC,QAAQ,IAChD,YAAY,CACf,GAAG,YAAY;IACd,OAAO,IAAI;EACb,CAAC;EAEDV,IAAI,CAACW,IAAI,GAAG,UAAUP,KAAU,EAAE;IAChC,IAAIH,OAAO,EAAE;MACXA,OAAO,GAAG,KAAK;MACf,OAAOG,KAAK;IACd;IACA,OAAOF,IAAI,CAAC,MAAM,EAAEE,KAAK,CAAC;EAC5B,CAAC;EAED,IAAI,OAAOL,KAAK,CAACa,KAAK,KAAK,UAAU,EAAE;IACrCZ,IAAI,CAACY,KAAK,GAAG,UAAUR,KAAU,EAAE;MACjC,IAAIH,OAAO,EAAE;QACXA,OAAO,GAAG,KAAK;QACf,MAAMG,KAAK;MACb;MACA,OAAOF,IAAI,CAAC,OAAO,EAAEE,KAAK,CAAC;IAC7B,CAAC;EACH;EAEA,IAAI,OAAOL,KAAK,CAACc,MAAM,KAAK,UAAU,EAAE;IACtCb,IAAI,CAACa,MAAM,GAAG,UAAUT,KAAU,EAAE;MAClC,IAAIH,OAAO,EAAE;QACXA,OAAO,GAAG,KAAK;QACf,OAAOG,KAAK;MACd;MACA,OAAOF,IAAI,CAAC,QAAQ,EAAEE,KAAK,CAAC;IAC9B,CAAC;EACH;EAEA,OAAOJ,IAAI;AACb","ignoreList":[]}
|
||||
@@ -0,0 +1,120 @@
|
||||
import * as React from 'react'
|
||||
import type { ErrorRouteComponent } from './route'
|
||||
import type { ErrorInfo } from 'react'
|
||||
|
||||
export function CatchBoundary(props: {
|
||||
getResetKey: () => number | string
|
||||
children: React.ReactNode
|
||||
errorComponent?: ErrorRouteComponent
|
||||
onCatch?: (error: Error, errorInfo: ErrorInfo) => void
|
||||
}) {
|
||||
const errorComponent = props.errorComponent ?? ErrorComponent
|
||||
|
||||
return (
|
||||
<CatchBoundaryImpl
|
||||
getResetKey={props.getResetKey}
|
||||
onCatch={props.onCatch}
|
||||
children={({ error, reset }) => {
|
||||
if (error) {
|
||||
return React.createElement(errorComponent, {
|
||||
error,
|
||||
reset,
|
||||
})
|
||||
}
|
||||
|
||||
return props.children
|
||||
}}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
class CatchBoundaryImpl extends React.Component<{
|
||||
getResetKey: () => number | string
|
||||
children: (props: {
|
||||
error: Error | null
|
||||
reset: () => void
|
||||
}) => React.ReactNode
|
||||
onCatch?: (error: Error, errorInfo: ErrorInfo) => void
|
||||
}> {
|
||||
state = { error: null } as { error: Error | null; resetKey: string }
|
||||
static getDerivedStateFromProps(props: any) {
|
||||
return { resetKey: props.getResetKey() }
|
||||
}
|
||||
static getDerivedStateFromError(error: Error) {
|
||||
return { error }
|
||||
}
|
||||
reset() {
|
||||
this.setState({ error: null })
|
||||
}
|
||||
componentDidUpdate(
|
||||
prevProps: Readonly<{
|
||||
getResetKey: () => string
|
||||
children: (props: { error: any; reset: () => void }) => any
|
||||
onCatch?: ((error: any, info: any) => void) | undefined
|
||||
}>,
|
||||
prevState: any,
|
||||
): void {
|
||||
if (prevState.error && prevState.resetKey !== this.state.resetKey) {
|
||||
this.reset()
|
||||
}
|
||||
}
|
||||
componentDidCatch(error: Error, errorInfo: ErrorInfo) {
|
||||
if (this.props.onCatch) {
|
||||
this.props.onCatch(error, errorInfo)
|
||||
}
|
||||
}
|
||||
render() {
|
||||
// If the resetKey has changed, don't render the error
|
||||
return this.props.children({
|
||||
error:
|
||||
this.state.resetKey !== this.props.getResetKey()
|
||||
? null
|
||||
: this.state.error,
|
||||
reset: () => {
|
||||
this.reset()
|
||||
},
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
export function ErrorComponent({ error }: { error: any }) {
|
||||
const [show, setShow] = React.useState(process.env.NODE_ENV !== 'production')
|
||||
|
||||
return (
|
||||
<div style={{ padding: '.5rem', maxWidth: '100%' }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: '.5rem' }}>
|
||||
<strong style={{ fontSize: '1rem' }}>Something went wrong!</strong>
|
||||
<button
|
||||
style={{
|
||||
appearance: 'none',
|
||||
fontSize: '.6em',
|
||||
border: '1px solid currentColor',
|
||||
padding: '.1rem .2rem',
|
||||
fontWeight: 'bold',
|
||||
borderRadius: '.25rem',
|
||||
}}
|
||||
onClick={() => setShow((d) => !d)}
|
||||
>
|
||||
{show ? 'Hide Error' : 'Show Error'}
|
||||
</button>
|
||||
</div>
|
||||
<div style={{ height: '.25rem' }} />
|
||||
{show ? (
|
||||
<div>
|
||||
<pre
|
||||
style={{
|
||||
fontSize: '.7em',
|
||||
border: '1px solid red',
|
||||
borderRadius: '.25rem',
|
||||
padding: '.3rem',
|
||||
color: 'red',
|
||||
overflow: 'auto',
|
||||
}}
|
||||
>
|
||||
{error.message ? <code>{error.message}</code> : null}
|
||||
</pre>
|
||||
</div>
|
||||
) : null}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"name": "@babel/helper-module-imports",
|
||||
"version": "7.25.9",
|
||||
"description": "Babel helper functions for inserting module loads",
|
||||
"author": "The Babel Team (https://babel.dev/team)",
|
||||
"homepage": "https://babel.dev/docs/en/next/babel-helper-module-imports",
|
||||
"license": "MIT",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/babel/babel.git",
|
||||
"directory": "packages/babel-helper-module-imports"
|
||||
},
|
||||
"main": "./lib/index.js",
|
||||
"dependencies": {
|
||||
"@babel/traverse": "^7.25.9",
|
||||
"@babel/types": "^7.25.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.25.9"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6.9.0"
|
||||
},
|
||||
"type": "commonjs"
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
/**
|
||||
* @fileoverview An object that creates fix commands for rules.
|
||||
* @author Nicholas C. Zakas
|
||||
*/
|
||||
"use strict";
|
||||
|
||||
/* eslint class-methods-use-this: off -- Methods desired on instance */
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Requirements
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
// none!
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Helpers
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Creates a fix command that inserts text at the specified index in the source text.
|
||||
* @param {int} index The 0-based index at which to insert the new text.
|
||||
* @param {string} text The text to insert.
|
||||
* @returns {Object} The fix command.
|
||||
* @private
|
||||
*/
|
||||
function insertTextAt(index, text) {
|
||||
return {
|
||||
range: [index, index],
|
||||
text,
|
||||
};
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Public Interface
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Creates code fixing commands for rules.
|
||||
*/
|
||||
class RuleFixer {
|
||||
/**
|
||||
* The source code object representing the text to be fixed.
|
||||
* @type {SourceCode}
|
||||
*/
|
||||
#sourceCode;
|
||||
|
||||
/**
|
||||
* Creates a new instance.
|
||||
* @param {Object} options The options for the fixer.
|
||||
* @param {SourceCode} options.sourceCode The source code object representing the text to be fixed.
|
||||
*/
|
||||
constructor({ sourceCode }) {
|
||||
this.#sourceCode = sourceCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a fix command that inserts text after the given node or token.
|
||||
* The fix is not applied until applyFixes() is called.
|
||||
* @param {ASTNode|Token} nodeOrToken The node or token to insert after.
|
||||
* @param {string} text The text to insert.
|
||||
* @returns {Object} The fix command.
|
||||
*/
|
||||
insertTextAfter(nodeOrToken, text) {
|
||||
const range = this.#sourceCode.getRange(nodeOrToken);
|
||||
|
||||
return this.insertTextAfterRange(range, text);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a fix command that inserts text after the specified range in the source text.
|
||||
* The fix is not applied until applyFixes() is called.
|
||||
* @param {int[]} range The range to replace, first item is start of range, second
|
||||
* is end of range.
|
||||
* @param {string} text The text to insert.
|
||||
* @returns {Object} The fix command.
|
||||
*/
|
||||
insertTextAfterRange(range, text) {
|
||||
return insertTextAt(range[1], text);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a fix command that inserts text before the given node or token.
|
||||
* The fix is not applied until applyFixes() is called.
|
||||
* @param {ASTNode|Token} nodeOrToken The node or token to insert before.
|
||||
* @param {string} text The text to insert.
|
||||
* @returns {Object} The fix command.
|
||||
*/
|
||||
insertTextBefore(nodeOrToken, text) {
|
||||
const range = this.#sourceCode.getRange(nodeOrToken);
|
||||
|
||||
return this.insertTextBeforeRange(range, text);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a fix command that inserts text before the specified range in the source text.
|
||||
* The fix is not applied until applyFixes() is called.
|
||||
* @param {int[]} range The range to replace, first item is start of range, second
|
||||
* is end of range.
|
||||
* @param {string} text The text to insert.
|
||||
* @returns {Object} The fix command.
|
||||
*/
|
||||
insertTextBeforeRange(range, text) {
|
||||
return insertTextAt(range[0], text);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a fix command that replaces text at the node or token.
|
||||
* The fix is not applied until applyFixes() is called.
|
||||
* @param {ASTNode|Token} nodeOrToken The node or token to remove.
|
||||
* @param {string} text The text to insert.
|
||||
* @returns {Object} The fix command.
|
||||
*/
|
||||
replaceText(nodeOrToken, text) {
|
||||
const range = this.#sourceCode.getRange(nodeOrToken);
|
||||
|
||||
return this.replaceTextRange(range, text);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a fix command that replaces text at the specified range in the source text.
|
||||
* The fix is not applied until applyFixes() is called.
|
||||
* @param {int[]} range The range to replace, first item is start of range, second
|
||||
* is end of range.
|
||||
* @param {string} text The text to insert.
|
||||
* @returns {Object} The fix command.
|
||||
*/
|
||||
replaceTextRange(range, text) {
|
||||
return {
|
||||
range,
|
||||
text,
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a fix command that removes the node or token from the source.
|
||||
* The fix is not applied until applyFixes() is called.
|
||||
* @param {ASTNode|Token} nodeOrToken The node or token to remove.
|
||||
* @returns {Object} The fix command.
|
||||
*/
|
||||
remove(nodeOrToken) {
|
||||
const range = this.#sourceCode.getRange(nodeOrToken);
|
||||
|
||||
return this.removeRange(range);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a fix command that removes the specified range of text from the source.
|
||||
* The fix is not applied until applyFixes() is called.
|
||||
* @param {int[]} range The range to remove, first item is start of range, second
|
||||
* is end of range.
|
||||
* @returns {Object} The fix command.
|
||||
*/
|
||||
removeRange(range) {
|
||||
return {
|
||||
range,
|
||||
text: "",
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = { RuleFixer };
|
||||
@@ -0,0 +1,301 @@
|
||||
/**
|
||||
* @fileoverview Disallows or enforces spaces inside of array brackets.
|
||||
* @author Jamund Ferguson
|
||||
* @deprecated in ESLint v8.53.0
|
||||
*/
|
||||
"use strict";
|
||||
|
||||
const astUtils = require("./utils/ast-utils");
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Rule Definition
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/** @type {import('../shared/types').Rule} */
|
||||
module.exports = {
|
||||
meta: {
|
||||
deprecated: {
|
||||
message: "Formatting rules are being moved out of ESLint core.",
|
||||
url: "https://eslint.org/blog/2023/10/deprecating-formatting-rules/",
|
||||
deprecatedSince: "8.53.0",
|
||||
availableUntil: "10.0.0",
|
||||
replacedBy: [
|
||||
{
|
||||
message:
|
||||
"ESLint Stylistic now maintains deprecated stylistic core rules.",
|
||||
url: "https://eslint.style/guide/migration",
|
||||
plugin: {
|
||||
name: "@stylistic/eslint-plugin-js",
|
||||
url: "https://eslint.style/packages/js",
|
||||
},
|
||||
rule: {
|
||||
name: "array-bracket-spacing",
|
||||
url: "https://eslint.style/rules/js/array-bracket-spacing",
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "Enforce consistent spacing inside array brackets",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/latest/rules/array-bracket-spacing",
|
||||
},
|
||||
|
||||
fixable: "whitespace",
|
||||
|
||||
schema: [
|
||||
{
|
||||
enum: ["always", "never"],
|
||||
},
|
||||
{
|
||||
type: "object",
|
||||
properties: {
|
||||
singleValue: {
|
||||
type: "boolean",
|
||||
},
|
||||
objectsInArrays: {
|
||||
type: "boolean",
|
||||
},
|
||||
arraysInArrays: {
|
||||
type: "boolean",
|
||||
},
|
||||
},
|
||||
additionalProperties: false,
|
||||
},
|
||||
],
|
||||
|
||||
messages: {
|
||||
unexpectedSpaceAfter:
|
||||
"There should be no space after '{{tokenValue}}'.",
|
||||
unexpectedSpaceBefore:
|
||||
"There should be no space before '{{tokenValue}}'.",
|
||||
missingSpaceAfter: "A space is required after '{{tokenValue}}'.",
|
||||
missingSpaceBefore: "A space is required before '{{tokenValue}}'.",
|
||||
},
|
||||
},
|
||||
create(context) {
|
||||
const spaced = context.options[0] === "always",
|
||||
sourceCode = context.sourceCode;
|
||||
|
||||
/**
|
||||
* Determines whether an option is set, relative to the spacing option.
|
||||
* If spaced is "always", then check whether option is set to false.
|
||||
* If spaced is "never", then check whether option is set to true.
|
||||
* @param {Object} option The option to exclude.
|
||||
* @returns {boolean} Whether or not the property is excluded.
|
||||
*/
|
||||
function isOptionSet(option) {
|
||||
return context.options[1]
|
||||
? context.options[1][option] === !spaced
|
||||
: false;
|
||||
}
|
||||
|
||||
const options = {
|
||||
spaced,
|
||||
singleElementException: isOptionSet("singleValue"),
|
||||
objectsInArraysException: isOptionSet("objectsInArrays"),
|
||||
arraysInArraysException: isOptionSet("arraysInArrays"),
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// Helpers
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Reports that there shouldn't be a space after the first token
|
||||
* @param {ASTNode} node The node to report in the event of an error.
|
||||
* @param {Token} token The token to use for the report.
|
||||
* @returns {void}
|
||||
*/
|
||||
function reportNoBeginningSpace(node, token) {
|
||||
const nextToken = sourceCode.getTokenAfter(token);
|
||||
|
||||
context.report({
|
||||
node,
|
||||
loc: { start: token.loc.end, end: nextToken.loc.start },
|
||||
messageId: "unexpectedSpaceAfter",
|
||||
data: {
|
||||
tokenValue: token.value,
|
||||
},
|
||||
fix(fixer) {
|
||||
return fixer.removeRange([
|
||||
token.range[1],
|
||||
nextToken.range[0],
|
||||
]);
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reports that there shouldn't be a space before the last token
|
||||
* @param {ASTNode} node The node to report in the event of an error.
|
||||
* @param {Token} token The token to use for the report.
|
||||
* @returns {void}
|
||||
*/
|
||||
function reportNoEndingSpace(node, token) {
|
||||
const previousToken = sourceCode.getTokenBefore(token);
|
||||
|
||||
context.report({
|
||||
node,
|
||||
loc: { start: previousToken.loc.end, end: token.loc.start },
|
||||
messageId: "unexpectedSpaceBefore",
|
||||
data: {
|
||||
tokenValue: token.value,
|
||||
},
|
||||
fix(fixer) {
|
||||
return fixer.removeRange([
|
||||
previousToken.range[1],
|
||||
token.range[0],
|
||||
]);
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reports that there should be a space after the first token
|
||||
* @param {ASTNode} node The node to report in the event of an error.
|
||||
* @param {Token} token The token to use for the report.
|
||||
* @returns {void}
|
||||
*/
|
||||
function reportRequiredBeginningSpace(node, token) {
|
||||
context.report({
|
||||
node,
|
||||
loc: token.loc,
|
||||
messageId: "missingSpaceAfter",
|
||||
data: {
|
||||
tokenValue: token.value,
|
||||
},
|
||||
fix(fixer) {
|
||||
return fixer.insertTextAfter(token, " ");
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reports that there should be a space before the last token
|
||||
* @param {ASTNode} node The node to report in the event of an error.
|
||||
* @param {Token} token The token to use for the report.
|
||||
* @returns {void}
|
||||
*/
|
||||
function reportRequiredEndingSpace(node, token) {
|
||||
context.report({
|
||||
node,
|
||||
loc: token.loc,
|
||||
messageId: "missingSpaceBefore",
|
||||
data: {
|
||||
tokenValue: token.value,
|
||||
},
|
||||
fix(fixer) {
|
||||
return fixer.insertTextBefore(token, " ");
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines if a node is an object type
|
||||
* @param {ASTNode} node The node to check.
|
||||
* @returns {boolean} Whether or not the node is an object type.
|
||||
*/
|
||||
function isObjectType(node) {
|
||||
return (
|
||||
node &&
|
||||
(node.type === "ObjectExpression" ||
|
||||
node.type === "ObjectPattern")
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines if a node is an array type
|
||||
* @param {ASTNode} node The node to check.
|
||||
* @returns {boolean} Whether or not the node is an array type.
|
||||
*/
|
||||
function isArrayType(node) {
|
||||
return (
|
||||
node &&
|
||||
(node.type === "ArrayExpression" ||
|
||||
node.type === "ArrayPattern")
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Validates the spacing around array brackets
|
||||
* @param {ASTNode} node The node we're checking for spacing
|
||||
* @returns {void}
|
||||
*/
|
||||
function validateArraySpacing(node) {
|
||||
if (options.spaced && node.elements.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
const first = sourceCode.getFirstToken(node),
|
||||
second = sourceCode.getFirstToken(node, 1),
|
||||
last = node.typeAnnotation
|
||||
? sourceCode.getTokenBefore(node.typeAnnotation)
|
||||
: sourceCode.getLastToken(node),
|
||||
penultimate = sourceCode.getTokenBefore(last),
|
||||
firstElement = node.elements[0],
|
||||
lastElement = node.elements.at(-1);
|
||||
|
||||
const openingBracketMustBeSpaced =
|
||||
(options.objectsInArraysException &&
|
||||
isObjectType(firstElement)) ||
|
||||
(options.arraysInArraysException &&
|
||||
isArrayType(firstElement)) ||
|
||||
(options.singleElementException && node.elements.length === 1)
|
||||
? !options.spaced
|
||||
: options.spaced;
|
||||
|
||||
const closingBracketMustBeSpaced =
|
||||
(options.objectsInArraysException &&
|
||||
isObjectType(lastElement)) ||
|
||||
(options.arraysInArraysException && isArrayType(lastElement)) ||
|
||||
(options.singleElementException && node.elements.length === 1)
|
||||
? !options.spaced
|
||||
: options.spaced;
|
||||
|
||||
if (astUtils.isTokenOnSameLine(first, second)) {
|
||||
if (
|
||||
openingBracketMustBeSpaced &&
|
||||
!sourceCode.isSpaceBetweenTokens(first, second)
|
||||
) {
|
||||
reportRequiredBeginningSpace(node, first);
|
||||
}
|
||||
if (
|
||||
!openingBracketMustBeSpaced &&
|
||||
sourceCode.isSpaceBetweenTokens(first, second)
|
||||
) {
|
||||
reportNoBeginningSpace(node, first);
|
||||
}
|
||||
}
|
||||
|
||||
if (
|
||||
first !== penultimate &&
|
||||
astUtils.isTokenOnSameLine(penultimate, last)
|
||||
) {
|
||||
if (
|
||||
closingBracketMustBeSpaced &&
|
||||
!sourceCode.isSpaceBetweenTokens(penultimate, last)
|
||||
) {
|
||||
reportRequiredEndingSpace(node, last);
|
||||
}
|
||||
if (
|
||||
!closingBracketMustBeSpaced &&
|
||||
sourceCode.isSpaceBetweenTokens(penultimate, last)
|
||||
) {
|
||||
reportNoEndingSpace(node, last);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// Public
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
return {
|
||||
ArrayPattern: validateArraySpacing,
|
||||
ArrayExpression: validateArraySpacing,
|
||||
};
|
||||
},
|
||||
};
|
||||
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"name": "natural-compare",
|
||||
"version": "1.4.0",
|
||||
"stability": 3,
|
||||
"author": "Lauri Rooden (https://github.com/litejs/natural-compare-lite)",
|
||||
"license": "MIT",
|
||||
"description": "Compare strings containing a mix of letters and numbers in the way a human being would in sort order.",
|
||||
"keywords": [
|
||||
"string",
|
||||
"natural",
|
||||
"order",
|
||||
"sort",
|
||||
"natsort",
|
||||
"natcmp",
|
||||
"compare",
|
||||
"alphanum",
|
||||
"litejs"
|
||||
],
|
||||
"main": "index.js",
|
||||
"readmeFilename": "README.md",
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "node node_modules/buildman/index.js --all",
|
||||
"test": "node tests/index.js"
|
||||
},
|
||||
"repository": "git://github.com/litejs/natural-compare-lite.git",
|
||||
"bugs": {
|
||||
"url": "https://github.com/litejs/natural-compare-lite/issues"
|
||||
},
|
||||
"devDependencies": {
|
||||
"buildman": "*",
|
||||
"testman": "*"
|
||||
},
|
||||
"buildman": {
|
||||
"dist/index-min.js": {
|
||||
"banner": "/*! litejs.com/MIT-LICENSE.txt */",
|
||||
"input": "index.js"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = toComputedKey;
|
||||
var _index = require("../validators/generated/index.js");
|
||||
var _index2 = require("../builders/generated/index.js");
|
||||
function toComputedKey(node, key = node.key || node.property) {
|
||||
if (!node.computed && (0, _index.isIdentifier)(key)) key = (0, _index2.stringLiteral)(key.name);
|
||||
return key;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=toComputedKey.js.map
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,129 @@
|
||||
import { Candidate, Variant } from './candidate';
|
||||
import { compileAstNodes } from './compile';
|
||||
import { ClassEntry, VariantEntry } from './intellisense';
|
||||
import { Theme } from './theme';
|
||||
import { Utilities } from './utilities';
|
||||
import { Variants } from './variants';
|
||||
import { Polyfills, Features } from 'tailwindcss';
|
||||
export { Features, Polyfills } from 'tailwindcss';
|
||||
|
||||
declare const DEBUG: boolean;
|
||||
|
||||
declare const env_DEBUG: typeof DEBUG;
|
||||
declare namespace env {
|
||||
export { env_DEBUG as DEBUG };
|
||||
}
|
||||
|
||||
type DesignSystem = {
|
||||
theme: Theme;
|
||||
utilities: Utilities;
|
||||
variants: Variants;
|
||||
invalidCandidates: Set<string>;
|
||||
important: boolean;
|
||||
getClassOrder(classes: string[]): [string, bigint | null][];
|
||||
getClassList(): ClassEntry[];
|
||||
getVariants(): VariantEntry[];
|
||||
parseCandidate(candidate: string): Readonly<Candidate>[];
|
||||
parseVariant(variant: string): Readonly<Variant> | null;
|
||||
compileAstNodes(candidate: Candidate): ReturnType<typeof compileAstNodes>;
|
||||
getVariantOrder(): Map<Variant, number>;
|
||||
resolveThemeValue(path: string, forceInline?: boolean): string | undefined;
|
||||
trackUsedVariables(raw: string): void;
|
||||
candidatesToCss(classes: string[]): (string | null)[];
|
||||
};
|
||||
|
||||
type StyleRule = {
|
||||
kind: 'rule';
|
||||
selector: string;
|
||||
nodes: AstNode[];
|
||||
};
|
||||
type AtRule = {
|
||||
kind: 'at-rule';
|
||||
name: string;
|
||||
params: string;
|
||||
nodes: AstNode[];
|
||||
};
|
||||
type Declaration = {
|
||||
kind: 'declaration';
|
||||
property: string;
|
||||
value: string | undefined;
|
||||
important: boolean;
|
||||
};
|
||||
type Comment = {
|
||||
kind: 'comment';
|
||||
value: string;
|
||||
};
|
||||
type Context = {
|
||||
kind: 'context';
|
||||
context: Record<string, string | boolean>;
|
||||
nodes: AstNode[];
|
||||
};
|
||||
type AtRoot = {
|
||||
kind: 'at-root';
|
||||
nodes: AstNode[];
|
||||
};
|
||||
type AstNode = StyleRule | AtRule | Declaration | Comment | Context | AtRoot;
|
||||
|
||||
type Resolver = (id: string, base: string) => Promise<string | false | undefined>;
|
||||
interface CompileOptions {
|
||||
base: string;
|
||||
onDependency: (path: string) => void;
|
||||
shouldRewriteUrls?: boolean;
|
||||
polyfills?: Polyfills;
|
||||
customCssResolver?: Resolver;
|
||||
customJsResolver?: Resolver;
|
||||
}
|
||||
declare function compileAst(ast: AstNode[], options: CompileOptions): Promise<{
|
||||
sources: {
|
||||
base: string;
|
||||
pattern: string;
|
||||
negated: boolean;
|
||||
}[];
|
||||
root: "none" | {
|
||||
base: string;
|
||||
pattern: string;
|
||||
} | null;
|
||||
features: Features;
|
||||
build(candidates: string[]): AstNode[];
|
||||
}>;
|
||||
declare function compile(css: string, options: CompileOptions): Promise<{
|
||||
sources: {
|
||||
base: string;
|
||||
pattern: string;
|
||||
negated: boolean;
|
||||
}[];
|
||||
root: "none" | {
|
||||
base: string;
|
||||
pattern: string;
|
||||
} | null;
|
||||
features: Features;
|
||||
build(candidates: string[]): string;
|
||||
}>;
|
||||
declare function __unstable__loadDesignSystem(css: string, { base }: {
|
||||
base: string;
|
||||
}): Promise<DesignSystem>;
|
||||
declare function loadModule(id: string, base: string, onDependency: (path: string) => void, customJsResolver?: Resolver): Promise<{
|
||||
base: string;
|
||||
module: any;
|
||||
}>;
|
||||
|
||||
declare class Instrumentation implements Disposable {
|
||||
#private;
|
||||
private defaultFlush;
|
||||
constructor(defaultFlush?: (message: string) => undefined);
|
||||
hit(label: string): void;
|
||||
start(label: string): void;
|
||||
end(label: string): void;
|
||||
reset(): void;
|
||||
report(flush?: (message: string) => undefined): void;
|
||||
[Symbol.dispose](): void;
|
||||
}
|
||||
|
||||
declare function normalizePath(originalPath: string): string;
|
||||
|
||||
declare function optimize(input: string, { file, minify }?: {
|
||||
file?: string;
|
||||
minify?: boolean;
|
||||
}): string;
|
||||
|
||||
export { type CompileOptions, Instrumentation, type Resolver, __unstable__loadDesignSystem, compile, compileAst, env, loadModule, normalizePath, optimize };
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={C:{"52":0.01376,"78":0.11693,"112":0.08941,"115":0.24073,"125":0.52273,"128":0.23385,"132":0.0619,"133":0.41268,"134":0.2201,"135":2.875,"136":4.93153,"137":0.00688,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 113 114 116 117 118 119 120 121 122 123 124 126 127 129 130 131 138 139 140 3.5 3.6"},D:{"38":0.00688,"40":0.00688,"41":0.00688,"43":0.00688,"44":0.00688,"45":0.00688,"47":0.01376,"51":0.00688,"54":0.00688,"55":0.00688,"57":0.00688,"58":0.00688,"61":0.00688,"79":0.02063,"87":0.00688,"99":0.00688,"103":0.05502,"105":0.02751,"108":0.00688,"109":3.10886,"115":0.03439,"116":0.23385,"117":0.04127,"118":0.02063,"119":0.00688,"120":0.02063,"121":0.00688,"122":0.07566,"123":0.02063,"124":1.14863,"125":0.01376,"126":0.02751,"127":0.07566,"128":0.20634,"129":0.04815,"130":0.29575,"131":0.17195,"132":0.29575,"133":12.61425,"134":22.42916,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 42 46 48 49 50 52 53 56 59 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 88 89 90 91 92 93 94 95 96 97 98 100 101 102 104 106 107 110 111 112 113 114 135 136 137 138"},F:{"46":0.00688,"82":0.00688,"89":0.14444,"114":0.06878,"115":0.02063,"116":0.17195,"117":0.57087,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00688,"109":0.01376,"125":0.25449,"130":0.01376,"131":0.00688,"132":0.04127,"133":1.33433,"134":3.10198,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 126 127 128 129"},E:{"14":0.02063,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.2-15.3","12.1":0.04127,"13.1":0.03439,"14.1":0.25449,"15.1":0.00688,"15.4":0.00688,"15.5":0.02063,"15.6":0.41956,"16.0":0.02063,"16.1":0.05502,"16.2":0.04127,"16.3":0.00688,"16.4":0.02751,"16.5":0.00688,"16.6":0.20634,"17.0":0.00688,"17.1":0.10317,"17.2":0.00688,"17.3":0.02063,"17.4":6.46532,"17.5":0.0619,"17.6":0.50209,"18.0":0.02063,"18.1":0.06878,"18.2":0.25449,"18.3":1.92584,"18.4":0.27512},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00218,"5.0-5.1":0,"6.0-6.1":0.00654,"7.0-7.1":0.00436,"8.1-8.4":0,"9.0-9.2":0.00327,"9.3":0.01526,"10.0-10.2":0.00109,"10.3":0.02508,"11.0-11.2":0.11557,"11.3-11.4":0.00763,"12.0-12.1":0.00436,"12.2-12.5":0.10793,"13.0-13.1":0.00218,"13.2":0.00327,"13.3":0.00436,"13.4-13.7":0.01526,"14.0-14.4":0.03816,"14.5-14.8":0.04579,"15.0-15.1":0.02508,"15.2-15.3":0.02508,"15.4":0.03053,"15.5":0.03489,"15.6-15.8":0.42955,"16.0":0.06105,"16.1":0.12538,"16.2":0.06541,"16.3":0.11338,"16.4":0.02508,"16.5":0.04688,"16.6-16.7":0.50914,"17.0":0.03053,"17.1":0.05451,"17.2":0.04143,"17.3":0.05778,"17.4":0.11557,"17.5":0.2573,"17.6-17.7":0.74681,"18.0":0.20933,"18.1":0.68467,"18.2":0.30636,"18.3":6.40298,"18.4":0.09485},P:{"4":0.01048,"26":0.01048,"27":2.25259,_:"20 21 22 23 24 25 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.00623,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.01874,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.26824,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.31855},Q:{_:"14.9"},O:{_:"0"},H:{"0":0},L:{"0":18.05964}};
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
|
||||
import type { OutlineContextType } from '../types.js';
|
||||
export default function useOutlineContext(): OutlineContextType;
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={C:{"115":0.5499,"128":0.0078,"135":0.3042,"136":0.312,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 134 137 138 139 140 3.5 3.6"},D:{"39":0.0078,"40":0.0039,"41":0.0039,"42":0.0117,"43":0.0039,"44":0.0156,"45":0.0078,"46":0.0039,"47":0.0078,"48":0.0117,"49":0.0039,"50":0.0039,"51":0.0117,"52":0.0117,"53":0.0117,"54":0.0078,"55":0.0039,"56":0.0078,"57":0.0117,"58":0.0039,"59":0.0117,"60":0.0117,"63":0.0039,"71":0.0117,"74":0.0039,"79":0.0351,"83":0.0117,"87":0.1638,"91":0.0156,"95":0.0039,"97":0.3198,"103":1.1895,"109":0.2418,"111":0.0507,"112":0.0702,"116":0.0819,"118":0.0039,"119":0.0117,"121":0.0156,"122":0.0468,"123":0.0468,"124":0.0156,"125":0.0078,"126":0.0078,"127":0.1053,"128":0.9126,"129":0.0039,"130":0.0585,"131":0.3744,"132":0.4563,"133":5.9124,"134":12.4566,"135":0.0117,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 64 65 66 67 68 69 70 72 73 75 76 77 78 80 81 84 85 86 88 89 90 92 93 94 96 98 99 100 101 102 104 105 106 107 108 110 113 114 115 117 120 136 137 138"},F:{"87":0.0078,"116":0.0507,"117":0.3159,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.0039,"114":0.0039,"119":0.0078,"127":0.0156,"128":0.0273,"131":0.0156,"132":0.6942,"133":2.067,"134":3.4398,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 120 121 122 123 124 125 126 129 130"},E:{"14":0.0273,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 12.1 14.1 15.1 15.2-15.3 16.2 17.0","11.1":0.1326,"13.1":0.0039,"15.4":0.0195,"15.5":0.0117,"15.6":0.2574,"16.0":0.0351,"16.1":0.0078,"16.3":0.1014,"16.4":0.0117,"16.5":0.0429,"16.6":0.1482,"17.1":0.039,"17.2":0.0039,"17.3":0.0312,"17.4":0.4329,"17.5":0.0312,"17.6":0.4641,"18.0":0.0078,"18.1":0.5109,"18.2":0.2652,"18.3":2.0631,"18.4":0.0117},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00354,"5.0-5.1":0,"6.0-6.1":0.01062,"7.0-7.1":0.00708,"8.1-8.4":0,"9.0-9.2":0.00531,"9.3":0.02477,"10.0-10.2":0.00177,"10.3":0.04069,"11.0-11.2":0.18754,"11.3-11.4":0.01239,"12.0-12.1":0.00708,"12.2-12.5":0.17516,"13.0-13.1":0.00354,"13.2":0.00531,"13.3":0.00708,"13.4-13.7":0.02477,"14.0-14.4":0.06193,"14.5-14.8":0.07431,"15.0-15.1":0.04069,"15.2-15.3":0.04069,"15.4":0.04954,"15.5":0.05662,"15.6-15.8":0.6971,"16.0":0.09908,"16.1":0.20347,"16.2":0.10616,"16.3":0.18401,"16.4":0.04069,"16.5":0.07608,"16.6-16.7":0.82626,"17.0":0.04954,"17.1":0.08846,"17.2":0.06723,"17.3":0.09377,"17.4":0.18754,"17.5":0.41755,"17.6-17.7":1.21196,"18.0":0.3397,"18.1":1.11111,"18.2":0.49717,"18.3":10.39104,"18.4":0.15393},P:{"4":0.07651,"20":0.01093,"21":0.01093,"23":0.02186,"24":0.13116,"25":0.01093,"26":0.04372,"27":3.89097,_:"22 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","5.0-5.4":0.01093,"7.2-7.4":0.13116,"19.0":0.01093},I:{"0":0.04871,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00005},K:{"0":0.37826,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.33556},Q:{_:"14.9"},O:{"0":0.15253},H:{"0":0},L:{"0":39.2916}};
|
||||
@@ -0,0 +1,99 @@
|
||||
import warning from "tiny-warning";
|
||||
import { createRoute } from "./route.js";
|
||||
import { useMatch } from "./useMatch.js";
|
||||
import { useLoaderDeps } from "./useLoaderDeps.js";
|
||||
import { useLoaderData } from "./useLoaderData.js";
|
||||
import { useSearch } from "./useSearch.js";
|
||||
import { useParams } from "./useParams.js";
|
||||
import { useNavigate } from "./useNavigate.js";
|
||||
import { useRouter } from "./useRouter.js";
|
||||
function createFileRoute(path) {
|
||||
return new FileRoute(path, {
|
||||
silent: true
|
||||
}).createRoute;
|
||||
}
|
||||
class FileRoute {
|
||||
constructor(path, _opts) {
|
||||
this.path = path;
|
||||
this.createRoute = (options) => {
|
||||
warning(
|
||||
this.silent,
|
||||
"FileRoute is deprecated and will be removed in the next major version. Use the createFileRoute(path)(options) function instead."
|
||||
);
|
||||
const route = createRoute(options);
|
||||
route.isRoot = false;
|
||||
return route;
|
||||
};
|
||||
this.silent = _opts == null ? void 0 : _opts.silent;
|
||||
}
|
||||
}
|
||||
function FileRouteLoader(_path) {
|
||||
warning(
|
||||
false,
|
||||
`FileRouteLoader is deprecated and will be removed in the next major version. Please place the loader function in the the main route file, inside the \`createFileRoute('/path/to/file')(options)\` options`
|
||||
);
|
||||
return (loaderFn) => loaderFn;
|
||||
}
|
||||
class LazyRoute {
|
||||
constructor(opts) {
|
||||
this.useMatch = (opts2) => {
|
||||
return useMatch({
|
||||
select: opts2 == null ? void 0 : opts2.select,
|
||||
from: this.options.id,
|
||||
structuralSharing: opts2 == null ? void 0 : opts2.structuralSharing
|
||||
});
|
||||
};
|
||||
this.useRouteContext = (opts2) => {
|
||||
return useMatch({
|
||||
from: this.options.id,
|
||||
select: (d) => (opts2 == null ? void 0 : opts2.select) ? opts2.select(d.context) : d.context
|
||||
});
|
||||
};
|
||||
this.useSearch = (opts2) => {
|
||||
return useSearch({
|
||||
select: opts2 == null ? void 0 : opts2.select,
|
||||
structuralSharing: opts2 == null ? void 0 : opts2.structuralSharing,
|
||||
from: this.options.id
|
||||
});
|
||||
};
|
||||
this.useParams = (opts2) => {
|
||||
return useParams({
|
||||
select: opts2 == null ? void 0 : opts2.select,
|
||||
structuralSharing: opts2 == null ? void 0 : opts2.structuralSharing,
|
||||
from: this.options.id
|
||||
});
|
||||
};
|
||||
this.useLoaderDeps = (opts2) => {
|
||||
return useLoaderDeps({ ...opts2, from: this.options.id });
|
||||
};
|
||||
this.useLoaderData = (opts2) => {
|
||||
return useLoaderData({ ...opts2, from: this.options.id });
|
||||
};
|
||||
this.useNavigate = () => {
|
||||
const router = useRouter();
|
||||
return useNavigate({ from: router.routesById[this.options.id].fullPath });
|
||||
};
|
||||
this.options = opts;
|
||||
this.$$typeof = Symbol.for("react.memo");
|
||||
}
|
||||
}
|
||||
function createLazyRoute(id) {
|
||||
return (opts) => {
|
||||
return new LazyRoute({
|
||||
id,
|
||||
...opts
|
||||
});
|
||||
};
|
||||
}
|
||||
function createLazyFileRoute(id) {
|
||||
return (opts) => new LazyRoute({ id, ...opts });
|
||||
}
|
||||
export {
|
||||
FileRoute,
|
||||
FileRouteLoader,
|
||||
LazyRoute,
|
||||
createFileRoute,
|
||||
createLazyFileRoute,
|
||||
createLazyRoute
|
||||
};
|
||||
//# sourceMappingURL=fileRoute.js.map
|
||||
@@ -0,0 +1,3 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M14.8748 12.037L9.37782 2.037C8.99682 1.346 8.31082 1 7.62482 1C6.93882 1 6.25282 1.346 5.87282 2.037L0.375823 12.037C-0.358177 13.37 0.606823 15 2.12782 15H13.1228C14.6428 15 15.6078 13.37 14.8748 12.037ZM8.24982 11.75L7.99982 12H7.24982L6.99982 11.75V11L7.24982 10.75H7.99982L8.24982 11V11.75ZM8.24982 9.062C8.24982 9.22776 8.18398 9.38673 8.06677 9.50394C7.94955 9.62115 7.79058 9.687 7.62482 9.687C7.45906 9.687 7.30009 9.62115 7.18288 9.50394C7.06567 9.38673 6.99982 9.22776 6.99982 9.062V5.625C6.99982 5.45924 7.06567 5.30027 7.18288 5.18306C7.30009 5.06585 7.45906 5 7.62482 5C7.79058 5 7.94955 5.06585 8.06677 5.18306C8.18398 5.30027 8.24982 5.45924 8.24982 5.625V9.062Z" fill="black"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 811 B |
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"16":"mC","132":"E F","388":"K D A B"},B:{"1":"0 9 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J PB K D E F A B C L M G N O P QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB MC wB NC xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC Q H R OC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I PC EC QC RC oC pC","2":"nC LC qC rC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB MC wB NC xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I PC EC QC RC","2":"J PB K D E F A B C L M G","16":"N O P QB"},E:{"1":"K D E F A B C L M G uC vC wC TC FC GC xC yC zC UC VC HC 0C IC WC XC YC ZC aC 1C JC bC cC dC eC fC 2C KC gC hC iC jC 3C","2":"J PB sC SC tC"},F:{"1":"0 1 2 3 4 5 6 7 8 B C G N O P QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC Q H R OC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 5C 6C 7C FC kC 8C GC","16":"F 4C"},G:{"1":"E BD CD DD ED FD GD HD ID JD KD LD MD ND OD PD QD RD SD UC VC HC TD IC WC XC YC ZC aC UD JC bC cC dC eC fC VD KC gC hC iC jC","2":"SC 9C lC AD"},H:{"388":"WD"},I:{"1":"I bD cD","2":"LC J XD YD ZD aD lC"},J:{"1":"A","2":"D"},K:{"1":"A B C H FC kC GC"},L:{"1":"I"},M:{"1":"EC"},N:{"1":"A","260":"B"},O:{"1":"HC"},P:{"1":"1 2 3 4 5 6 7 8 J dD eD fD gD hD TC iD jD kD lD mD IC JC KC nD"},Q:{"1":"oD"},R:{"1":"pD"},S:{"1":"qD rD"}},B:1,C:"disabled attribute of the fieldset element",D:true};
|
||||
@@ -0,0 +1,18 @@
|
||||
import { Parser } from "../index.js";
|
||||
|
||||
export declare const parsers: {
|
||||
babel: Parser;
|
||||
"babel-flow": Parser;
|
||||
"babel-ts": Parser;
|
||||
__js_expression: Parser;
|
||||
__ts_expression: Parser;
|
||||
__vue_expression: Parser;
|
||||
__vue_ts_expression: Parser;
|
||||
__vue_event_binding: Parser;
|
||||
__vue_ts_event_binding: Parser;
|
||||
__babel_estree: Parser;
|
||||
json: Parser;
|
||||
json5: Parser;
|
||||
jsonc: Parser;
|
||||
"json-stringify": Parser;
|
||||
};
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"K D E F A B mC"},B:{"1":"0 9 o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n"},C:{"1":"0 9 t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I PC EC QC RC oC pC","2":"1 2 3 4 5 6 7 8 nC LC J PB K D E F A B C L M G N O P QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB MC wB NC xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC Q H R OC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s qC rC"},D:{"1":"0 9 o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I PC EC QC RC","2":"1 2 3 4 5 6 7 8 J PB K D E F A B C L M G N O P QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB MC wB NC xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC Q H R S T U V W X Y Z a b","194":"k l m n","450":"c d e f g h i j"},E:{"1":"IC WC XC YC ZC aC 1C JC bC cC dC eC fC 2C KC gC hC iC jC 3C","2":"J PB K D E F A B C L M G sC SC tC uC vC wC TC FC GC xC yC zC UC VC HC 0C"},F:{"1":"0 a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"1 2 3 4 5 6 7 8 F B C G N O P QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC 4C 5C 6C 7C FC kC 8C GC","194":"Q H R OC S T U V W X Y Z"},G:{"1":"IC WC XC YC ZC aC UD JC bC cC dC eC fC VD KC gC hC iC jC","2":"E SC 9C lC AD BD CD DD ED FD GD HD ID JD KD LD MD ND OD PD QD RD SD UC VC HC TD"},H:{"2":"WD"},I:{"1":"I","2":"LC J XD YD ZD aD lC bD cD"},J:{"2":"D A"},K:{"1":"H","2":"A B C FC kC GC"},L:{"1":"I"},M:{"1":"EC"},N:{"2":"A B"},O:{"2":"HC"},P:{"1":"1 2 3 4 5 6 7 8","2":"J dD eD fD gD hD TC iD jD kD lD mD IC JC KC nD"},Q:{"2":"oD"},R:{"2":"pD"},S:{"2":"qD rD"}},B:5,C:"CSS Container Query Units",D:true};
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,56 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = _default;
|
||||
const circleSet = new Set();
|
||||
let depth = 0;
|
||||
function deepClone(value, cache, allowCircle) {
|
||||
if (value !== null) {
|
||||
if (allowCircle) {
|
||||
if (cache.has(value)) return cache.get(value);
|
||||
} else if (++depth > 250) {
|
||||
if (circleSet.has(value)) {
|
||||
depth = 0;
|
||||
circleSet.clear();
|
||||
throw new Error("Babel-deepClone: Cycles are not allowed in AST");
|
||||
}
|
||||
circleSet.add(value);
|
||||
}
|
||||
let cloned;
|
||||
if (Array.isArray(value)) {
|
||||
cloned = new Array(value.length);
|
||||
if (allowCircle) cache.set(value, cloned);
|
||||
for (let i = 0; i < value.length; i++) {
|
||||
cloned[i] = typeof value[i] !== "object" ? value[i] : deepClone(value[i], cache, allowCircle);
|
||||
}
|
||||
} else {
|
||||
cloned = {};
|
||||
if (allowCircle) cache.set(value, cloned);
|
||||
const keys = Object.keys(value);
|
||||
for (let i = 0; i < keys.length; i++) {
|
||||
const key = keys[i];
|
||||
cloned[key] = typeof value[key] !== "object" ? value[key] : deepClone(value[key], cache, allowCircle || key === "leadingComments" || key === "innerComments" || key === "trailingComments" || key === "extra");
|
||||
}
|
||||
}
|
||||
if (!allowCircle) {
|
||||
if (depth-- > 250) circleSet.delete(value);
|
||||
}
|
||||
return cloned;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
function _default(value) {
|
||||
if (typeof value !== "object") return value;
|
||||
{
|
||||
try {
|
||||
return deepClone(value, new Map(), true);
|
||||
} catch (_) {
|
||||
return structuredClone(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
0 && 0;
|
||||
|
||||
//# sourceMappingURL=clone-deep.js.map
|
||||
@@ -0,0 +1,4 @@
|
||||
tunnel-agent
|
||||
============
|
||||
|
||||
HTTP proxy tunneling agent. Formerly part of mikeal/request, now a standalone module.
|
||||
Reference in New Issue
Block a user