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:
8
node_modules/webpack/lib/dependencies/CssIcssSymbolDependency.js
generated
vendored
8
node_modules/webpack/lib/dependencies/CssIcssSymbolDependency.js
generated
vendored
@@ -5,6 +5,7 @@
|
||||
|
||||
"use strict";
|
||||
|
||||
const { CSS_TYPE } = require("../ModuleSourceTypeConstants");
|
||||
const makeSerializable = require("../util/makeSerializable");
|
||||
const CssIcssExportDependency = require("./CssIcssExportDependency");
|
||||
const NullDependency = require("./NullDependency");
|
||||
@@ -42,10 +43,6 @@ class CssIcssSymbolDependency extends NullDependency {
|
||||
return "css symbol identifier";
|
||||
}
|
||||
|
||||
get category() {
|
||||
return "self";
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the hash
|
||||
* @param {Hash} hash hash to be updated
|
||||
@@ -106,7 +103,7 @@ CssIcssSymbolDependency.Template = class CssIcssSymbolDependencyTemplate extends
|
||||
* @returns {void}
|
||||
*/
|
||||
apply(dependency, source, templateContext) {
|
||||
if (templateContext.type === "css") {
|
||||
if (templateContext.type === CSS_TYPE) {
|
||||
const dep = /** @type {CssIcssSymbolDependency} */ (dependency);
|
||||
/** @type {string | undefined} */
|
||||
const value = dep.isReference
|
||||
@@ -117,7 +114,6 @@ CssIcssSymbolDependency.Template = class CssIcssSymbolDependencyTemplate extends
|
||||
: dep.symbol;
|
||||
|
||||
if (!value) {
|
||||
// TODO generate warning
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user