Update npm packages (73 packages including @jqhtml 2.3.36)

Update npm registry domain from privatenpm.hanson.xyz to npm.internal.hanson.xyz

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2026-02-20 11:31:28 +00:00
parent d01a6179aa
commit b5eb27a827
1690 changed files with 47348 additions and 16848 deletions

10
node_modules/acorn-walk/CHANGELOG.md generated vendored
View File

@@ -1,3 +1,13 @@
## 8.3.5 (2026-02-19)
### Bug fixes
Emit a more informative error message when trying to walk a node type that has no walker function.
Specify callbacks in types to receive `AnyNode` type, so that they can be narrowed more easily.
Support import attributes.
## 8.3.4 (2024-09-09)
### Bug fixes

12
node_modules/acorn-walk/README.md generated vendored
View File

@@ -47,8 +47,8 @@ produce a meaningful state. (An example of a use of state is to track
scope at each point in the tree.)
```js
const acorn = require("acorn")
const walk = require("acorn-walk")
import * as acorn from "acorn"
import * as walk from "acorn-walk"
walk.simple(acorn.parse("let x = 10"), {
Literal(node) {
@@ -62,8 +62,8 @@ a tree, building up an array of ancestor nodes (including the current node)
and passing the array to the callbacks as a third parameter.
```js
const acorn = require("acorn")
const walk = require("acorn-walk")
import * as acorn from "acorn"
import * as walk from "acorn-walk"
walk.ancestor(acorn.parse("foo('hi')"), {
Literal(_node, _state, ancestors) {
@@ -97,8 +97,8 @@ current node) and passing the array to the callbacks as a third
parameter.
```js
const acorn = require("acorn")
const walk = require("acorn-walk")
import * as acorn from "acorn"
import * as walk from "acorn-walk"
walk.full(acorn.parse("1 + 1"), node => {
console.log(`There's a ${node.type} node at ${node.ch}`)

View File

@@ -1,15 +1,15 @@
import * as acorn from "acorn"
export type FullWalkerCallback<TState> = (
node: acorn.Node,
node: acorn.AnyNode,
state: TState,
type: string
) => void
export type FullAncestorWalkerCallback<TState> = (
node: acorn.Node,
node: acorn.AnyNode,
state: TState,
ancestors: acorn.Node[],
ancestors: acorn.AnyNode[],
type: string
) => void
@@ -29,13 +29,13 @@ export type SimpleVisitors<TState> = {
}
export type AncestorVisitors<TState> = {
[type in acorn.AnyNode["type"]]?: ( node: Extract<acorn.AnyNode, { type: type }>, state: TState, ancestors: acorn.Node[]
[type in acorn.AnyNode["type"]]?: ( node: Extract<acorn.AnyNode, { type: type }>, state: TState, ancestors: acorn.AnyNode[]
) => void
} & {
[type in keyof AggregateType]?: (node: AggregateType[type], state: TState, ancestors: acorn.Node[]) => void
[type in keyof AggregateType]?: (node: AggregateType[type], state: TState, ancestors: acorn.AnyNode[]) => void
}
export type WalkerCallback<TState> = (node: acorn.Node, state: TState) => void
export type WalkerCallback<TState> = (node: acorn.AnyNode, state: TState) => void
export type RecursiveVisitors<TState> = {
[type in acorn.AnyNode["type"]]?: ( node: Extract<acorn.AnyNode, { type: type }>, state: TState, callback: WalkerCallback<TState>) => void
@@ -43,10 +43,10 @@ export type RecursiveVisitors<TState> = {
[type in keyof AggregateType]?: (node: AggregateType[type], state: TState, callback: WalkerCallback<TState>) => void
}
export type FindPredicate = (type: string, node: acorn.Node) => boolean
export type FindPredicate = (type: string, node: acorn.AnyNode) => boolean
export interface Found<TState> {
node: acorn.Node,
node: acorn.AnyNode,
state: TState
}
@@ -66,10 +66,6 @@ export function simple<TState>(
/**
* does a 'simple' walk over a tree, building up an array of ancestor nodes (including the current node) and passing the array to the callbacks as a third parameter.
* @param node
* @param visitors
* @param base
* @param state
*/
export function ancestor<TState>(
node: acorn.Node,
@@ -94,10 +90,6 @@ export function recursive<TState>(
/**
* does a 'full' walk over a tree, calling the {@link callback} with the arguments (node, state, type) for each node
* @param node
* @param callback
* @param base
* @param state
*/
export function full<TState>(
node: acorn.Node,
@@ -108,10 +100,6 @@ export function full<TState>(
/**
* does a 'full' walk over a tree, building up an array of ancestor nodes (including the current node) and passing the array to the callbacks as a third parameter.
* @param node
* @param callback
* @param base
* @param state
*/
export function fullAncestor<TState>(
node: acorn.Node,
@@ -122,8 +110,6 @@ export function fullAncestor<TState>(
/**
* builds a new walker object by using the walker functions in {@link functions} and filling in the missing ones by taking defaults from {@link base}.
* @param functions
* @param base
*/
export function make<TState>(
functions: RecursiveVisitors<TState>,
@@ -132,17 +118,11 @@ export function make<TState>(
/**
* tries to locate a node in a tree at the given start and/or end offsets, which satisfies the predicate test. {@link start} and {@link end} can be either `null` (as wildcard) or a `number`. {@link test} may be a string (indicating a node type) or a function that takes (nodeType, node) arguments and returns a boolean indicating whether this node is interesting. {@link base} and {@link state} are optional, and can be used to specify a custom walker. Nodes are tested from inner to outer, so if two nodes match the boundaries, the inner one will be preferred.
* @param node
* @param start
* @param end
* @param type
* @param base
* @param state
*/
export function findNodeAt<TState>(
node: acorn.Node,
start: number | undefined,
end?: number | undefined,
start: number | undefined | null,
end?: number | undefined | null,
type?: FindPredicate | string,
base?: RecursiveVisitors<TState>,
state?: TState
@@ -150,15 +130,10 @@ export function findNodeAt<TState>(
/**
* like {@link findNodeAt}, but will match any node that exists 'around' (spanning) the given position.
* @param node
* @param start
* @param type
* @param base
* @param state
*/
export function findNodeAround<TState>(
node: acorn.Node,
start: number | undefined,
start: number | undefined | null,
type?: FindPredicate | string,
base?: RecursiveVisitors<TState>,
state?: TState

View File

@@ -1,15 +1,15 @@
import * as acorn from "acorn"
export type FullWalkerCallback<TState> = (
node: acorn.Node,
node: acorn.AnyNode,
state: TState,
type: string
) => void
export type FullAncestorWalkerCallback<TState> = (
node: acorn.Node,
node: acorn.AnyNode,
state: TState,
ancestors: acorn.Node[],
ancestors: acorn.AnyNode[],
type: string
) => void
@@ -29,13 +29,13 @@ export type SimpleVisitors<TState> = {
}
export type AncestorVisitors<TState> = {
[type in acorn.AnyNode["type"]]?: ( node: Extract<acorn.AnyNode, { type: type }>, state: TState, ancestors: acorn.Node[]
[type in acorn.AnyNode["type"]]?: ( node: Extract<acorn.AnyNode, { type: type }>, state: TState, ancestors: acorn.AnyNode[]
) => void
} & {
[type in keyof AggregateType]?: (node: AggregateType[type], state: TState, ancestors: acorn.Node[]) => void
[type in keyof AggregateType]?: (node: AggregateType[type], state: TState, ancestors: acorn.AnyNode[]) => void
}
export type WalkerCallback<TState> = (node: acorn.Node, state: TState) => void
export type WalkerCallback<TState> = (node: acorn.AnyNode, state: TState) => void
export type RecursiveVisitors<TState> = {
[type in acorn.AnyNode["type"]]?: ( node: Extract<acorn.AnyNode, { type: type }>, state: TState, callback: WalkerCallback<TState>) => void
@@ -43,10 +43,10 @@ export type RecursiveVisitors<TState> = {
[type in keyof AggregateType]?: (node: AggregateType[type], state: TState, callback: WalkerCallback<TState>) => void
}
export type FindPredicate = (type: string, node: acorn.Node) => boolean
export type FindPredicate = (type: string, node: acorn.AnyNode) => boolean
export interface Found<TState> {
node: acorn.Node,
node: acorn.AnyNode,
state: TState
}
@@ -66,10 +66,6 @@ export function simple<TState>(
/**
* does a 'simple' walk over a tree, building up an array of ancestor nodes (including the current node) and passing the array to the callbacks as a third parameter.
* @param node
* @param visitors
* @param base
* @param state
*/
export function ancestor<TState>(
node: acorn.Node,
@@ -94,10 +90,6 @@ export function recursive<TState>(
/**
* does a 'full' walk over a tree, calling the {@link callback} with the arguments (node, state, type) for each node
* @param node
* @param callback
* @param base
* @param state
*/
export function full<TState>(
node: acorn.Node,
@@ -108,10 +100,6 @@ export function full<TState>(
/**
* does a 'full' walk over a tree, building up an array of ancestor nodes (including the current node) and passing the array to the callbacks as a third parameter.
* @param node
* @param callback
* @param base
* @param state
*/
export function fullAncestor<TState>(
node: acorn.Node,
@@ -122,8 +110,6 @@ export function fullAncestor<TState>(
/**
* builds a new walker object by using the walker functions in {@link functions} and filling in the missing ones by taking defaults from {@link base}.
* @param functions
* @param base
*/
export function make<TState>(
functions: RecursiveVisitors<TState>,
@@ -132,17 +118,11 @@ export function make<TState>(
/**
* tries to locate a node in a tree at the given start and/or end offsets, which satisfies the predicate test. {@link start} and {@link end} can be either `null` (as wildcard) or a `number`. {@link test} may be a string (indicating a node type) or a function that takes (nodeType, node) arguments and returns a boolean indicating whether this node is interesting. {@link base} and {@link state} are optional, and can be used to specify a custom walker. Nodes are tested from inner to outer, so if two nodes match the boundaries, the inner one will be preferred.
* @param node
* @param start
* @param end
* @param type
* @param base
* @param state
*/
export function findNodeAt<TState>(
node: acorn.Node,
start: number | undefined,
end?: number | undefined,
start: number | undefined | null,
end?: number | undefined | null,
type?: FindPredicate | string,
base?: RecursiveVisitors<TState>,
state?: TState
@@ -150,15 +130,10 @@ export function findNodeAt<TState>(
/**
* like {@link findNodeAt}, but will match any node that exists 'around' (spanning) the given position.
* @param node
* @param start
* @param type
* @param base
* @param state
*/
export function findNodeAround<TState>(
node: acorn.Node,
start: number | undefined,
start: number | undefined | null,
type?: FindPredicate | string,
base?: RecursiveVisitors<TState>,
state?: TState

46
node_modules/acorn-walk/dist/walk.js generated vendored
View File

@@ -26,7 +26,7 @@
if (!baseVisitor) { baseVisitor = base
; }(function c(node, st, override) {
var type = override || node.type;
baseVisitor[type](node, st, c);
visitNode(baseVisitor, type, node, st, c);
if (visitors[type]) { visitors[type](node, st); }
})(node, state, override);
}
@@ -41,7 +41,7 @@
var type = override || node.type;
var isNew = node !== ancestors[ancestors.length - 1];
if (isNew) { ancestors.push(node); }
baseVisitor[type](node, st, c);
visitNode(baseVisitor, type, node, st, c);
if (visitors[type]) { visitors[type](node, st || ancestors, ancestors); }
if (isNew) { ancestors.pop(); }
})(node, state, override);
@@ -76,7 +76,7 @@
var last
;(function c(node, st, override) {
var type = override || node.type;
baseVisitor[type](node, st, c);
visitNode(baseVisitor, type, node, st, c);
if (last !== node) {
callback(node, st, type);
last = node;
@@ -93,7 +93,7 @@
var type = override || node.type;
var isNew = node !== ancestors[ancestors.length - 1];
if (isNew) { ancestors.push(node); }
baseVisitor[type](node, st, c);
visitNode(baseVisitor, type, node, st, c);
if (last !== node) {
callback(node, st || ancestors, ancestors, type);
last = node;
@@ -113,7 +113,7 @@
var type = override || node.type;
if ((start == null || node.start <= start) &&
(end == null || node.end >= end))
{ baseVisitor[type](node, st, c); }
{ visitNode(baseVisitor, type, node, st, c); }
if ((start == null || node.start === start) &&
(end == null || node.end === end) &&
test(type, node))
@@ -134,7 +134,7 @@
(function c(node, st, override) {
var type = override || node.type;
if (node.start > pos || node.end < pos) { return }
baseVisitor[type](node, st, c);
visitNode(baseVisitor, type, node, st, c);
if (test(type, node)) { throw new Found(node, st) }
})(node, state);
} catch (e) {
@@ -152,7 +152,7 @@
if (node.end < pos) { return }
var type = override || node.type;
if (node.start >= pos && test(type, node)) { throw new Found(node, st) }
baseVisitor[type](node, st, c);
visitNode(baseVisitor, type, node, st, c);
})(node, state);
} catch (e) {
if (e instanceof Found) { return e }
@@ -170,7 +170,7 @@
var type = override || node.type;
if (node.end <= pos && (!max || max.node.end < node.end) && test(type, node))
{ max = new Found(node, st); }
baseVisitor[type](node, st, c);
visitNode(baseVisitor, type, node, st, c);
})(node, state);
return max
}
@@ -186,6 +186,11 @@
function skipThrough(node, st, c) { c(node, st); }
function ignore(_node, _st, _c) {}
function visitNode(baseVisitor, type, node, st, c) {
if (baseVisitor[type] == null) { throw new Error(("No walker function defined for node type " + type)) }
baseVisitor[type](node, st, c);
}
// Node walkers.
var base = {};
@@ -397,11 +402,28 @@
if (node.declaration)
{ c(node.declaration, st, node.type === "ExportNamedDeclaration" || node.declaration.id ? "Statement" : "Expression"); }
if (node.source) { c(node.source, st, "Expression"); }
if (node.attributes)
{ for (var i = 0, list = node.attributes; i < list.length; i += 1)
{
var attr = list[i];
c(attr, st);
} }
};
base.ExportAllDeclaration = function (node, st, c) {
if (node.exported)
{ c(node.exported, st); }
c(node.source, st, "Expression");
if (node.attributes)
{ for (var i = 0, list = node.attributes; i < list.length; i += 1)
{
var attr = list[i];
c(attr, st);
} }
};
base.ImportAttribute = function (node, st, c) {
c(node.value, st, "Expression");
};
base.ImportDeclaration = function (node, st, c) {
for (var i = 0, list = node.specifiers; i < list.length; i += 1)
@@ -411,9 +433,17 @@
c(spec, st);
}
c(node.source, st, "Expression");
if (node.attributes)
{ for (var i$1 = 0, list$1 = node.attributes; i$1 < list$1.length; i$1 += 1)
{
var attr = list$1[i$1];
c(attr, st);
} }
};
base.ImportExpression = function (node, st, c) {
c(node.source, st, "Expression");
if (node.options) { c(node.options, st, "Expression"); }
};
base.ImportSpecifier = base.ImportDefaultSpecifier = base.ImportNamespaceSpecifier = base.Identifier = base.PrivateIdentifier = base.Literal = ignore;

View File

@@ -20,7 +20,7 @@ function simple(node, visitors, baseVisitor, state, override) {
if (!baseVisitor) { baseVisitor = base
; }(function c(node, st, override) {
var type = override || node.type;
baseVisitor[type](node, st, c);
visitNode(baseVisitor, type, node, st, c);
if (visitors[type]) { visitors[type](node, st); }
})(node, state, override);
}
@@ -35,7 +35,7 @@ function ancestor(node, visitors, baseVisitor, state, override) {
var type = override || node.type;
var isNew = node !== ancestors[ancestors.length - 1];
if (isNew) { ancestors.push(node); }
baseVisitor[type](node, st, c);
visitNode(baseVisitor, type, node, st, c);
if (visitors[type]) { visitors[type](node, st || ancestors, ancestors); }
if (isNew) { ancestors.pop(); }
})(node, state, override);
@@ -70,7 +70,7 @@ function full(node, callback, baseVisitor, state, override) {
var last
;(function c(node, st, override) {
var type = override || node.type;
baseVisitor[type](node, st, c);
visitNode(baseVisitor, type, node, st, c);
if (last !== node) {
callback(node, st, type);
last = node;
@@ -87,7 +87,7 @@ function fullAncestor(node, callback, baseVisitor, state) {
var type = override || node.type;
var isNew = node !== ancestors[ancestors.length - 1];
if (isNew) { ancestors.push(node); }
baseVisitor[type](node, st, c);
visitNode(baseVisitor, type, node, st, c);
if (last !== node) {
callback(node, st || ancestors, ancestors, type);
last = node;
@@ -107,7 +107,7 @@ function findNodeAt(node, start, end, test, baseVisitor, state) {
var type = override || node.type;
if ((start == null || node.start <= start) &&
(end == null || node.end >= end))
{ baseVisitor[type](node, st, c); }
{ visitNode(baseVisitor, type, node, st, c); }
if ((start == null || node.start === start) &&
(end == null || node.end === end) &&
test(type, node))
@@ -128,7 +128,7 @@ function findNodeAround(node, pos, test, baseVisitor, state) {
(function c(node, st, override) {
var type = override || node.type;
if (node.start > pos || node.end < pos) { return }
baseVisitor[type](node, st, c);
visitNode(baseVisitor, type, node, st, c);
if (test(type, node)) { throw new Found(node, st) }
})(node, state);
} catch (e) {
@@ -146,7 +146,7 @@ function findNodeAfter(node, pos, test, baseVisitor, state) {
if (node.end < pos) { return }
var type = override || node.type;
if (node.start >= pos && test(type, node)) { throw new Found(node, st) }
baseVisitor[type](node, st, c);
visitNode(baseVisitor, type, node, st, c);
})(node, state);
} catch (e) {
if (e instanceof Found) { return e }
@@ -164,7 +164,7 @@ function findNodeBefore(node, pos, test, baseVisitor, state) {
var type = override || node.type;
if (node.end <= pos && (!max || max.node.end < node.end) && test(type, node))
{ max = new Found(node, st); }
baseVisitor[type](node, st, c);
visitNode(baseVisitor, type, node, st, c);
})(node, state);
return max
}
@@ -180,6 +180,11 @@ function make(funcs, baseVisitor) {
function skipThrough(node, st, c) { c(node, st); }
function ignore(_node, _st, _c) {}
function visitNode(baseVisitor, type, node, st, c) {
if (baseVisitor[type] == null) { throw new Error(("No walker function defined for node type " + type)) }
baseVisitor[type](node, st, c);
}
// Node walkers.
var base = {};
@@ -391,11 +396,28 @@ base.ExportNamedDeclaration = base.ExportDefaultDeclaration = function (node, st
if (node.declaration)
{ c(node.declaration, st, node.type === "ExportNamedDeclaration" || node.declaration.id ? "Statement" : "Expression"); }
if (node.source) { c(node.source, st, "Expression"); }
if (node.attributes)
{ for (var i = 0, list = node.attributes; i < list.length; i += 1)
{
var attr = list[i];
c(attr, st);
} }
};
base.ExportAllDeclaration = function (node, st, c) {
if (node.exported)
{ c(node.exported, st); }
c(node.source, st, "Expression");
if (node.attributes)
{ for (var i = 0, list = node.attributes; i < list.length; i += 1)
{
var attr = list[i];
c(attr, st);
} }
};
base.ImportAttribute = function (node, st, c) {
c(node.value, st, "Expression");
};
base.ImportDeclaration = function (node, st, c) {
for (var i = 0, list = node.specifiers; i < list.length; i += 1)
@@ -405,9 +427,17 @@ base.ImportDeclaration = function (node, st, c) {
c(spec, st);
}
c(node.source, st, "Expression");
if (node.attributes)
{ for (var i$1 = 0, list$1 = node.attributes; i$1 < list$1.length; i$1 += 1)
{
var attr = list$1[i$1];
c(attr, st);
} }
};
base.ImportExpression = function (node, st, c) {
c(node.source, st, "Expression");
if (node.options) { c(node.options, st, "Expression"); }
};
base.ImportSpecifier = base.ImportDefaultSpecifier = base.ImportNamespaceSpecifier = base.Identifier = base.PrivateIdentifier = base.Literal = ignore;

View File

@@ -16,7 +16,7 @@
],
"./package.json": "./package.json"
},
"version": "8.3.4",
"version": "8.3.5",
"engines": {
"node": ">=0.4.0"
},