Files
formipay/node_modules/regjsparser/package.json
dwindown e8fbfb14c1 fix: prevent asset conflicts between React and Grid.js versions
Add coexistence checks to all enqueue methods to prevent loading
both React and Grid.js assets simultaneously.

Changes:
- ReactAdmin.php: Only enqueue React assets when ?react=1
- Init.php: Skip Grid.js when React active on admin pages
- Form.php, Coupon.php, Access.php: Restore classic assets when ?react=0
- Customer.php, Product.php, License.php: Add coexistence checks

Now the toggle between Classic and React versions works correctly.

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-18 17:02:14 +07:00

48 lines
1.2 KiB
JSON

{
"name": "regjsparser",
"version": "0.13.1",
"author": "'Julian Viereck' <julian.viereck@gmail.com>",
"license": "BSD-2-Clause",
"main": "./parser",
"types": "./parser.d.ts",
"bin": {
"regjsparser": "bin/parser"
},
"homepage": "https://github.com/jviereck/regjsparser",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/jviereck/regjsparser.git"
},
"scripts": {
"lint": "eslint --max-warnings 0 .",
"test": "run-p test:* lint",
"test:src": "node test/index.js",
"test:types": "tsc test/types.ts --noEmit",
"bench:baseline": "node ./tools/bench/index.mjs baseline",
"bench:current": "node ./tools/bench/index.mjs current",
"bench": "run-s bench:*"
},
"files": [
"bin/",
"LICENSE.BSD",
"parser.js",
"parser.d.ts",
"README.md"
],
"dependencies": {
"jsesc": "~3.1.0"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@unicode/unicode-17.0.0": "^1.6.12",
"eslint": "^10.0.2",
"eslint-plugin-regexp": "^3.0.0",
"globals": "^17.3.0",
"npm-run-all": "^4.1.5",
"regenerate": "^1.4.2",
"regjsparser": "^0.11.2",
"tinybench": "^5.0.1",
"typescript": "~5.9.2"
}
}