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>
65 lines
1.8 KiB
JSON
65 lines
1.8 KiB
JSON
{
|
|
"name": "proxy-compare",
|
|
"description": "Compare two objects using accessed properties with Proxy",
|
|
"version": "2.3.0",
|
|
"author": "Daishi Kato",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/dai-shi/proxy-compare.git"
|
|
},
|
|
"source": "./src/index.ts",
|
|
"main": "./dist/index.umd.js",
|
|
"module": "./dist/index.modern.js",
|
|
"react-native": "./dist/index.modern.js",
|
|
"types": "./dist/src/index.d.ts",
|
|
"exports": {
|
|
"./package.json": "./package.json",
|
|
".": {
|
|
"types": "./dist/src/index.d.ts",
|
|
"module": "./dist/index.modern.js",
|
|
"import": "./dist/index.modern.mjs",
|
|
"default": "./dist/index.umd.js"
|
|
}
|
|
},
|
|
"sideEffects": false,
|
|
"files": [
|
|
"src",
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"compile": "microbundle build -f modern,umd",
|
|
"postcompile": "cp dist/index.modern.mjs dist/index.modern.js && cp dist/index.modern.mjs.map dist/index.modern.js.map",
|
|
"test": "run-s eslint tsc-test jest",
|
|
"eslint": "eslint --ext .js,.ts --ignore-pattern dist .",
|
|
"jest": "jest",
|
|
"tsc-test": "tsc --project . --noEmit",
|
|
"apidoc": "documentation readme --section API --markdown-toc false --parse-extension ts src/*.ts"
|
|
},
|
|
"jest": {
|
|
"preset": "ts-jest/presets/js-with-ts"
|
|
},
|
|
"keywords": [
|
|
"proxy",
|
|
"compare",
|
|
"equal",
|
|
"shallowequal",
|
|
"deepequal"
|
|
],
|
|
"license": "MIT",
|
|
"dependencies": {},
|
|
"devDependencies": {
|
|
"@types/jest": "^28.1.6",
|
|
"@typescript-eslint/eslint-plugin": "^5.33.0",
|
|
"@typescript-eslint/parser": "^5.33.0",
|
|
"documentation": "^13.2.5",
|
|
"eslint": "^8.21.0",
|
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
"eslint-plugin-import": "^2.26.0",
|
|
"jest": "^28.1.3",
|
|
"microbundle": "^0.15.1",
|
|
"npm-run-all": "^4.1.5",
|
|
"ts-jest": "^28.0.7",
|
|
"typescript": "^4.7.4"
|
|
}
|
|
}
|