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>
55 lines
1.6 KiB
JSON
55 lines
1.6 KiB
JSON
{
|
|
"name": "equivalent-key-map",
|
|
"version": "0.2.2",
|
|
"description": "A Map variant which allows for equivalent (deeply equal) object and array keys",
|
|
"main": "equivalent-key-map.js",
|
|
"files": [
|
|
"equivalent-key-map.js",
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"test:lint": "eslint .",
|
|
"pretest:unit": "rollup -c",
|
|
"test:unit": "mocha",
|
|
"test-watch": "chokidar 'src/*.js' 'test/*.js' --initial -c 'npm run test:unit'",
|
|
"test": "npm-run-all --parallel test:*",
|
|
"build": "NODE_ENV=production rollup -c",
|
|
"build-watch": "npm run build -- --watch",
|
|
"postbuild": "npm run minify",
|
|
"minify": "uglifyjs dist/equivalent-key-map.js -c -m > dist/equivalent-key-map.min.js",
|
|
"prepublishOnly": "npm run build",
|
|
"prebenchmark": "npm run build",
|
|
"benchmark": "node benchmark"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/aduth/equivalent-key-map.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/aduth/equivalent-key-map/issues"
|
|
},
|
|
"author": {
|
|
"name": "Andrew Duthie",
|
|
"email": "andrew@andrewduthie.com",
|
|
"url": "http://andrewduthie.com"
|
|
},
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"@aduth/eslint-config": "^2.0.0",
|
|
"@babel/core": "^7.0.0-beta.54",
|
|
"@babel/preset-env": "^7.0.0-beta.54",
|
|
"benchmark": "^2.1.4",
|
|
"chai": "^4.1.2",
|
|
"chokidar": "^2.0.4",
|
|
"eslint": "^5.2.0",
|
|
"eslint-plugin-jsdoc": "^3.7.1",
|
|
"faster-stable-stringify": "^1.0.0",
|
|
"json-stable-stringify": "^1.0.1",
|
|
"mocha": "^5.2.0",
|
|
"npm-run-all": "^4.1.3",
|
|
"rollup": "^0.63.4",
|
|
"rollup-plugin-babel": "^4.0.0-beta.4",
|
|
"uglify-js": "^3.4.5"
|
|
}
|
|
}
|