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>
54 lines
1.2 KiB
JSON
54 lines
1.2 KiB
JSON
{
|
|
"name": "check-node-version",
|
|
"version": "4.2.1",
|
|
"engines": {
|
|
"node": ">=8.3.0"
|
|
},
|
|
"description": "Check installed versions of node and npm",
|
|
"main": "index.js",
|
|
"bin": {
|
|
"check-node-version": "bin.js"
|
|
},
|
|
"scripts": {
|
|
"add-docs": "git add README.md",
|
|
"build-readme": "gitdown ./README_src.md --output-file ./README.md",
|
|
"test": "ava -v"
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "npx run-s test build-readme add-docs"
|
|
}
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/parshap/check-node-version.git"
|
|
},
|
|
"keywords": [
|
|
"version",
|
|
"semver"
|
|
],
|
|
"author": "Parsha Pourkhomami",
|
|
"license": "Unlicense",
|
|
"types": "./index.d.ts",
|
|
"bugs": {
|
|
"url": "https://github.com/parshap/check-node-version/issues"
|
|
},
|
|
"homepage": "https://github.com/parshap/check-node-version#readme",
|
|
"dependencies": {
|
|
"chalk": "^3.0.0",
|
|
"map-values": "^1.0.1",
|
|
"minimist": "^1.2.0",
|
|
"object-filter": "^1.0.2",
|
|
"run-parallel": "^1.1.4",
|
|
"semver": "^6.3.0"
|
|
},
|
|
"devDependencies": {
|
|
"ava": "^2.4.0",
|
|
"gitdown": "^3.1.2",
|
|
"husky": "^3.1.0",
|
|
"npm": "6.14.6",
|
|
"npm-run-all": "^4.1.5",
|
|
"proxyquire": "^2.1.3"
|
|
}
|
|
}
|