提交依赖与构建产物
This commit is contained in:
30
node_modules/path-expression-matcher/src/index.js
generated
vendored
Normal file
30
node_modules/path-expression-matcher/src/index.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
/**
|
||||
* fast-xml-tagger - XML/JSON path matching library
|
||||
*
|
||||
* Provides efficient path tracking and pattern matching for XML/JSON parsers.
|
||||
*
|
||||
* @example
|
||||
* import { Expression, Matcher } from 'fast-xml-tagger';
|
||||
*
|
||||
* // Create expression (parse once)
|
||||
* const expr = new Expression("root.users.user[id]");
|
||||
*
|
||||
* // Create matcher (track path)
|
||||
* const matcher = new Matcher();
|
||||
* matcher.push("root", [], {}, 0);
|
||||
* matcher.push("users", [], {}, 0);
|
||||
* matcher.push("user", ["id", "type"], { id: "123", type: "admin" }, 0);
|
||||
*
|
||||
* // Match
|
||||
* if (matcher.matches(expr)) {
|
||||
* console.log("Match found!");
|
||||
* }
|
||||
*/
|
||||
|
||||
import Expression from './Expression.js';
|
||||
import Matcher from './Matcher.js';
|
||||
import { MatcherView } from './Matcher.js';
|
||||
import ExpressionSet from './ExpressionSet.js';
|
||||
|
||||
export { Expression, Matcher, MatcherView, ExpressionSet };
|
||||
export default { Expression, Matcher, MatcherView, ExpressionSet };
|
||||
Reference in New Issue
Block a user