Add <%br= %> jqhtml syntax docs, class override detection, npm update
Document event handler placement and model fetch clarification 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
9
node_modules/@babel/plugin-transform-regenerator/lib/regenerator/hoist.js
generated
vendored
9
node_modules/@babel/plugin-transform-regenerator/lib/regenerator/hoist.js
generated
vendored
@@ -11,14 +11,12 @@ function hoist(funPath) {
|
||||
__proto__: null
|
||||
};
|
||||
function varDeclToExpr({
|
||||
node: vdec,
|
||||
scope
|
||||
node: vdec
|
||||
}, includeIdentifiers) {
|
||||
_core.types.assertVariableDeclaration(vdec);
|
||||
const exprs = [];
|
||||
vdec.declarations.forEach(function (dec) {
|
||||
vars[dec.id.name] = _core.types.identifier(dec.id.name);
|
||||
scope.removeBinding(dec.id.name);
|
||||
if (dec.init) {
|
||||
exprs.push(_core.types.assignmentExpression("=", dec.id, dec.init));
|
||||
} else if (includeIdentifiers) {
|
||||
@@ -36,6 +34,9 @@ function hoist(funPath) {
|
||||
if (expr === null) {
|
||||
path.remove();
|
||||
} else {
|
||||
for (const name of Object.keys(vars)) {
|
||||
path.scope.removeBinding(name);
|
||||
}
|
||||
path.replaceWith(_core.types.expressionStatement(expr));
|
||||
}
|
||||
path.skip();
|
||||
@@ -67,8 +68,8 @@ function hoist(funPath) {
|
||||
path.remove();
|
||||
} else {
|
||||
path.replaceWith(assignment);
|
||||
path.scope.removeBinding(node.id.name);
|
||||
}
|
||||
path.scope.removeBinding(node.id.name);
|
||||
path.skip();
|
||||
},
|
||||
FunctionExpression: function (path) {
|
||||
|
||||
2
node_modules/@babel/plugin-transform-regenerator/lib/regenerator/hoist.js.map
generated
vendored
2
node_modules/@babel/plugin-transform-regenerator/lib/regenerator/hoist.js.map
generated
vendored
File diff suppressed because one or more lines are too long
23
node_modules/@babel/plugin-transform-regenerator/lib/regenerator/util.js
generated
vendored
23
node_modules/@babel/plugin-transform-regenerator/lib/regenerator/util.js
generated
vendored
@@ -7,21 +7,16 @@ exports.isReference = isReference;
|
||||
exports.runtimeProperty = exports.newHelpersAvailable = void 0;
|
||||
var _core = require("@babel/core");
|
||||
let newHelpersAvailable = exports.newHelpersAvailable = void 0;
|
||||
{
|
||||
exports.newHelpersAvailable = newHelpersAvailable = file => {
|
||||
;
|
||||
return file.availableHelper("regenerator") && !_core.types.isIdentifier(file.addHelper("regenerator"), {
|
||||
name: "__interal_marker_fallback_regenerator__"
|
||||
});
|
||||
};
|
||||
}
|
||||
exports.newHelpersAvailable = newHelpersAvailable = file => {
|
||||
return file.availableHelper("regenerator") && !_core.types.isIdentifier(file.addHelper("regenerator"), {
|
||||
name: "__interal_marker_fallback_regenerator__"
|
||||
});
|
||||
};
|
||||
let runtimeProperty = exports.runtimeProperty = void 0;
|
||||
{
|
||||
exports.runtimeProperty = runtimeProperty = function (file, name) {
|
||||
const helper = file.addHelper("regeneratorRuntime");
|
||||
return _core.types.memberExpression(_core.types.isArrowFunctionExpression(helper) && _core.types.isIdentifier(helper.body) ? helper.body : _core.types.callExpression(helper, []), _core.types.identifier(name), false);
|
||||
};
|
||||
}
|
||||
exports.runtimeProperty = runtimeProperty = function (file, name) {
|
||||
const helper = file.addHelper("regeneratorRuntime");
|
||||
return _core.types.memberExpression(_core.types.isArrowFunctionExpression(helper) && _core.types.isIdentifier(helper.body) ? helper.body : _core.types.callExpression(helper, []), _core.types.identifier(name), false);
|
||||
};
|
||||
function isReference(path) {
|
||||
return path.isReferenced() || path.parentPath.isAssignmentExpression({
|
||||
left: path.node
|
||||
|
||||
2
node_modules/@babel/plugin-transform-regenerator/lib/regenerator/util.js.map
generated
vendored
2
node_modules/@babel/plugin-transform-regenerator/lib/regenerator/util.js.map
generated
vendored
@@ -1 +1 @@
|
||||
{"version":3,"names":["_core","require","newHelpersAvailable","exports","file","availableHelper","t","isIdentifier","addHelper","name","runtimeProperty","helper","memberExpression","isArrowFunctionExpression","body","callExpression","identifier","isReference","path","isReferenced","parentPath","isAssignmentExpression","left","node"],"sources":["../../src/regenerator/util.ts"],"sourcesContent":["import type { PluginPass } from \"@babel/core\";\nimport { types as t } from \"@babel/core\";\n\nexport let newHelpersAvailable: (file: PluginPass) => boolean;\nif (!process.env.BABEL_8_BREAKING) {\n newHelpersAvailable = (file: PluginPass) => {\n if (!process.env.IS_PUBLISH && process.env.FORCE_OLD_REGENERATOR) {\n // Only for testing purposes.\n return false;\n }\n return (\n file.availableHelper(\"regenerator\") &&\n // At this point, we can safely try to inject the `regenerator` helper.\n // If this plugin tries to inject any helper, than we are sure that\n // `regenerator` is one of them.\n !t.isIdentifier(file.addHelper(\"regenerator\"), {\n // This is a special marker returned by transform-runtime, which means\n // \"the version of `@babel/runtime` does not have the helper\".\n // Normally transform-runtime will fallback to just injecting the\n // helper inline, but we special handle this case to instead be able\n // to fallback to the old `regeneratorRuntime` helper\n name: \"__interal_marker_fallback_regenerator__\",\n })\n );\n };\n}\n\nexport let runtimeProperty: (file: PluginPass, name: any) => any;\nif (!process.env.BABEL_8_BREAKING) {\n runtimeProperty = function (file, name) {\n const helper = file.addHelper(\"regeneratorRuntime\");\n return t.memberExpression(\n // In some cases, `helper` will be (() => regeneratorRuntime).\n // Se the implementation in transform-runtime for more details.\n t.isArrowFunctionExpression(helper) &&\n t.isIdentifier((helper as any).body)\n ? (helper as any).body\n : t.callExpression(helper, []),\n t.identifier(name),\n false,\n );\n };\n}\n\nexport function isReference(path: any) {\n return (\n path.isReferenced() ||\n path.parentPath.isAssignmentExpression({ left: path.node })\n );\n}\n"],"mappings":";;;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AAEO,IAAIC,mBAAkD,GAAAC,OAAA,CAAAD,mBAAA;AAC1B;EACjCC,OAAA,CAAAD,mBAAA,GAAAA,mBAAmB,GAAIE,IAAgB,IAAK;IAAA;IAK1C,OACEA,IAAI,CAACC,eAAe,CAAC,aAAa,CAAC,IAInC,CAACC,WAAC,CAACC,YAAY,CAACH,IAAI,CAACI,SAAS,CAAC,aAAa,CAAC,EAAE;MAM7CC,IAAI,EAAE;IACR,CAAC,CAAC;EAEN,CAAC;AACH;AAEO,IAAIC,eAAqD,GAAAP,OAAA,CAAAO,eAAA;AAC7B;EACjCP,OAAA,CAAAO,eAAA,GAAAA,eAAe,GAAG,SAAAA,CAAUN,IAAI,EAAEK,IAAI,EAAE;IACtC,MAAME,MAAM,GAAGP,IAAI,CAACI,SAAS,CAAC,oBAAoB,CAAC;IACnD,OAAOF,WAAC,CAACM,gBAAgB,CAGvBN,WAAC,CAACO,yBAAyB,CAACF,MAAM,CAAC,IACjCL,WAAC,CAACC,YAAY,CAAEI,MAAM,CAASG,IAAI,CAAC,GACjCH,MAAM,CAASG,IAAI,GACpBR,WAAC,CAACS,cAAc,CAACJ,MAAM,EAAE,EAAE,CAAC,EAChCL,WAAC,CAACU,UAAU,CAACP,IAAI,CAAC,EAClB,KACF,CAAC;EACH,CAAC;AACH;AAEO,SAASQ,WAAWA,CAACC,IAAS,EAAE;EACrC,OACEA,IAAI,CAACC,YAAY,CAAC,CAAC,IACnBD,IAAI,CAACE,UAAU,CAACC,sBAAsB,CAAC;IAAEC,IAAI,EAAEJ,IAAI,CAACK;EAAK,CAAC,CAAC;AAE/D","ignoreList":[]}
|
||||
{"version":3,"names":["_core","require","newHelpersAvailable","exports","file","availableHelper","t","isIdentifier","addHelper","name","runtimeProperty","helper","memberExpression","isArrowFunctionExpression","body","callExpression","identifier","isReference","path","isReferenced","parentPath","isAssignmentExpression","left","node"],"sources":["../../src/regenerator/util.ts"],"sourcesContent":["import type { PluginPass } from \"@babel/core\";\nimport { types as t } from \"@babel/core\";\n\nexport let newHelpersAvailable: (file: PluginPass) => boolean;\nif (!process.env.BABEL_8_BREAKING) {\n newHelpersAvailable = (file: PluginPass) => {\n if (!process.env.IS_PUBLISH && process.env.FORCE_OLD_REGENERATOR) {\n // Only for testing purposes.\n return false;\n }\n return (\n file.availableHelper(\"regenerator\") &&\n // At this point, we can safely try to inject the `regenerator` helper.\n // If this plugin tries to inject any helper, than we are sure that\n // `regenerator` is one of them.\n !t.isIdentifier(file.addHelper(\"regenerator\"), {\n // This is a special marker returned by transform-runtime, which means\n // \"the version of `@babel/runtime` does not have the helper\".\n // Normally transform-runtime will fallback to just injecting the\n // helper inline, but we special handle this case to instead be able\n // to fallback to the old `regeneratorRuntime` helper\n name: \"__interal_marker_fallback_regenerator__\",\n })\n );\n };\n}\n\nexport let runtimeProperty: (file: PluginPass, name: any) => any;\nif (!process.env.BABEL_8_BREAKING) {\n runtimeProperty = function (file, name) {\n const helper = file.addHelper(\"regeneratorRuntime\");\n return t.memberExpression(\n // In some cases, `helper` will be (() => regeneratorRuntime).\n // Se the implementation in transform-runtime for more details.\n t.isArrowFunctionExpression(helper) &&\n t.isIdentifier((helper as any).body)\n ? (helper as any).body\n : t.callExpression(helper, []),\n t.identifier(name),\n false,\n );\n };\n}\n\nexport function isReference(path: any) {\n return (\n path.isReferenced() ||\n path.parentPath.isAssignmentExpression({ left: path.node })\n );\n}\n"],"mappings":";;;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AAEO,IAAIC,mBAAkD,GAAAC,OAAA,CAAAD,mBAAA;AAE3DC,OAAA,CAAAD,mBAAA,GAAAA,mBAAmB,GAAIE,IAAgB,IAAK;EAK1C,OACEA,IAAI,CAACC,eAAe,CAAC,aAAa,CAAC,IAInC,CAACC,WAAC,CAACC,YAAY,CAACH,IAAI,CAACI,SAAS,CAAC,aAAa,CAAC,EAAE;IAM7CC,IAAI,EAAE;EACR,CAAC,CAAC;AAEN,CAAC;AAGI,IAAIC,eAAqD,GAAAP,OAAA,CAAAO,eAAA;AAE9DP,OAAA,CAAAO,eAAA,GAAAA,eAAe,GAAG,SAAAA,CAAUN,IAAI,EAAEK,IAAI,EAAE;EACtC,MAAME,MAAM,GAAGP,IAAI,CAACI,SAAS,CAAC,oBAAoB,CAAC;EACnD,OAAOF,WAAC,CAACM,gBAAgB,CAGvBN,WAAC,CAACO,yBAAyB,CAACF,MAAM,CAAC,IACjCL,WAAC,CAACC,YAAY,CAAEI,MAAM,CAASG,IAAI,CAAC,GACjCH,MAAM,CAASG,IAAI,GACpBR,WAAC,CAACS,cAAc,CAACJ,MAAM,EAAE,EAAE,CAAC,EAChCL,WAAC,CAACU,UAAU,CAACP,IAAI,CAAC,EAClB,KACF,CAAC;AACH,CAAC;AAGI,SAASQ,WAAWA,CAACC,IAAS,EAAE;EACrC,OACEA,IAAI,CAACC,YAAY,CAAC,CAAC,IACnBD,IAAI,CAACE,UAAU,CAACC,sBAAsB,CAAC;IAAEC,IAAI,EAAEJ,IAAI,CAACK;EAAK,CAAC,CAAC;AAE/D","ignoreList":[]}
|
||||
Reference in New Issue
Block a user