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:
12
node_modules/terser/lib/utils/index.js
generated
vendored
12
node_modules/terser/lib/utils/index.js
generated
vendored
@@ -43,7 +43,7 @@
|
||||
|
||||
"use strict";
|
||||
|
||||
import { AST_Node } from "../ast.js";
|
||||
import { AST_Node, AST_Number, AST_UnaryPrefix } from "../ast.js";
|
||||
|
||||
function characters(str) {
|
||||
return str.split("");
|
||||
@@ -130,6 +130,15 @@ function make_node(ctor, orig, props) {
|
||||
return new ctor(props);
|
||||
}
|
||||
|
||||
/** Makes a `void 0` expression. Use instead of AST_Undefined which may conflict
|
||||
* with an existing variable called `undefined` */
|
||||
function make_void_0(orig) {
|
||||
return make_node(AST_UnaryPrefix, orig, {
|
||||
operator: "void",
|
||||
expression: make_node(AST_Number, orig, { value: 0 })
|
||||
});
|
||||
}
|
||||
|
||||
function push_uniq(array, el) {
|
||||
if (!array.includes(el))
|
||||
array.push(el);
|
||||
@@ -272,6 +281,7 @@ export {
|
||||
HOP,
|
||||
keep_name,
|
||||
make_node,
|
||||
make_void_0,
|
||||
makePredicate,
|
||||
map_add,
|
||||
map_from_object,
|
||||
|
||||
Reference in New Issue
Block a user