Add JS-CATCH-FALLBACK-01 rule and update npm packages
Add PHP-ALIAS-01 rule: prohibit field aliasing in serialization 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
15
node_modules/webpack/lib/ExternalModule.js
generated
vendored
15
node_modules/webpack/lib/ExternalModule.js
generated
vendored
@@ -14,8 +14,9 @@ const Module = require("./Module");
|
||||
const {
|
||||
CSS_IMPORT_TYPES,
|
||||
CSS_URL_TYPES,
|
||||
JS_TYPES
|
||||
} = require("./ModuleSourceTypesConstants");
|
||||
JAVASCRIPT_TYPE,
|
||||
JAVASCRIPT_TYPES
|
||||
} = require("./ModuleSourceTypeConstants");
|
||||
const { JAVASCRIPT_MODULE_TYPE_DYNAMIC } = require("./ModuleTypeConstants");
|
||||
const RuntimeGlobals = require("./RuntimeGlobals");
|
||||
const Template = require("./Template");
|
||||
@@ -86,7 +87,7 @@ const RUNTIME_REQUIREMENTS_FOR_SCRIPT = new Set([RuntimeGlobals.loadScript]);
|
||||
const RUNTIME_REQUIREMENTS_FOR_MODULE = new Set([
|
||||
RuntimeGlobals.definePropertyGetters
|
||||
]);
|
||||
const EMPTY_RUNTIME_REQUIREMENTS = new Set([]);
|
||||
const EMPTY_RUNTIME_REQUIREMENTS = new Set();
|
||||
|
||||
/**
|
||||
* @param {string | string[]} variableName the variable name or path
|
||||
@@ -655,7 +656,7 @@ class ExternalModule extends Module {
|
||||
return CSS_IMPORT_TYPES;
|
||||
}
|
||||
|
||||
return JS_TYPES;
|
||||
return JAVASCRIPT_TYPES;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -979,7 +980,7 @@ class ExternalModule extends Module {
|
||||
case "asset": {
|
||||
const sources = new Map();
|
||||
sources.set(
|
||||
"javascript",
|
||||
JAVASCRIPT_TYPE,
|
||||
new RawSource(`module.exports = ${JSON.stringify(request)};`)
|
||||
);
|
||||
const data = new Map();
|
||||
@@ -1064,11 +1065,11 @@ class ExternalModule extends Module {
|
||||
const sources = new Map();
|
||||
if (this.useSourceMap || this.useSimpleSourceMap) {
|
||||
sources.set(
|
||||
"javascript",
|
||||
JAVASCRIPT_TYPE,
|
||||
new OriginalSource(sourceString, this.identifier())
|
||||
);
|
||||
} else {
|
||||
sources.set("javascript", new RawSource(sourceString));
|
||||
sources.set(JAVASCRIPT_TYPE, new RawSource(sourceString));
|
||||
}
|
||||
|
||||
let runtimeRequirements = sourceData.runtimeRequirements;
|
||||
|
||||
Reference in New Issue
Block a user