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:
11
node_modules/webpack/lib/json/JsonParser.js
generated
vendored
11
node_modules/webpack/lib/json/JsonParser.js
generated
vendored
@@ -17,17 +17,24 @@ const JsonData = require("./JsonData");
|
||||
/** @typedef {import("../Parser").PreparsedAst} PreparsedAst */
|
||||
/** @typedef {import("../util/fs").JsonValue} JsonValue */
|
||||
|
||||
/**
|
||||
* @template T
|
||||
* @typedef {import("../util/memoize").FunctionReturning<T>} FunctionReturning
|
||||
*/
|
||||
|
||||
/** @typedef {(input: string) => Buffer | JsonValue} ParseFn */
|
||||
|
||||
/** @type {FunctionReturning<ParseFn>} */
|
||||
const getParseJson = memoize(() => require("json-parse-even-better-errors"));
|
||||
|
||||
class JsonParser extends Parser {
|
||||
/**
|
||||
* @param {JsonModulesPluginParserOptions} options parser options
|
||||
*/
|
||||
constructor(options) {
|
||||
constructor(options = {}) {
|
||||
super();
|
||||
this.options = options || {};
|
||||
/** @type {JsonModulesPluginParserOptions} */
|
||||
this.options = options;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user