{"_id":"@amoapps/react-client-split","_rev":"10-ac71b1995d3fb4e4e59e2b3b47050ee6","name":"@amoapps/react-client-split","dist-tags":{"latest":"4.0.8"},"versions":{"4.0.0":{"name":"@amoapps/react-client-split","version":"4.0.0","keywords":["react","reactjs","abTests","splitTests","typescript"],"author":{"name":"AMO Apps web frontend team"},"license":"MIT","_id":"@amoapps/react-client-split@4.0.0","maintainers":[{"name":"amo-apps-frontend","email":"unimeal-frontend@amo.tech"}],"dist":{"shasum":"ec3eb709d73b1920b0fab601a95b71b7536949bf","tarball":"https://registry.npmjs.org/@amoapps/react-client-split/-/react-client-split-4.0.0.tgz","fileCount":8,"integrity":"sha512-ikQGXxW3cqFcYCvili+rLZt7lgD1somQGpVmrKIEEHeDpaOm60Z8B7vVWKPWTsgKoR3DnUqpXJuEjjR+IM8yEA==","signatures":[{"sig":"MEUCIQCvvZzDneEKEPV8IrMPotMWs7kw/UexcpiRhG/gc1llWgIgGwvy9UoDht68Hc/tQNwU+6Byixi0SMvOKN9GAq6vtdY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14763},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.esm.js","scripts":{"lint":"eslint . --ext .tsx","build":"rm -rf dist && yarn lint && rollup -c","prepare":"husky install","prepublish":"yarn build","check-types":"tsc --noEmit"},"_npmUser":{"name":"amo-apps-frontend","email":"unimeal-frontend@amo.tech"},"repository":{"url":"git@github.com:amomama/next-client-split.git","type":"git"},"description":"Utility for configuring and running ab tests in reactjs applications","directories":{},"lint-staged":{".":"prettier --write","*.{js,jsx,ts,tsx}":"eslint --cache --fix"},"sideEffects":false,"_hasShrinkwrap":false,"devDependencies":{"husky":">=8.0.3","react":"^18.2.0","tslib":"^2.6.1","eslint":"^8.46.0","rollup":"^3.27.2","prettier":"^2.8.4","react-dom":"^18.2.0","typescript":"4.8.2","lint-staged":">=13.2.3","@types/react":"^18.2.18","@types/react-dom":"^18.2.7","eslint-plugin-react":"^7.33.1","eslint-config-airbnb":"^19.0.4","eslint-plugin-import":"^2.28.0","rollup-plugin-terser":"^7.0.2","@rollup/plugin-terser":"^0.4.3","eslint-config-prettier":"^8.10.0","eslint-plugin-jsx-a11y":"^6.7.1","@rollup/plugin-commonjs":"^25.0.3","@rollup/plugin-typescript":"^11.1.2","@typescript-eslint/parser":"^5.53.0","eslint-plugin-react-hooks":"^4.5.0","@rollup/plugin-node-resolve":"^15.1.0","@typescript-eslint/eslint-plugin":"^5.53.0"},"peerDependencies":{"react":"^17 || ^18","react-dom":"^17 || ^18","@types/react":"^17 || ^18"},"peerDependenciesMeta":{"@types/react":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/react-client-split_4.0.0_1691230138212_0.5659715278902753","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"4.0.1":{"name":"@amoapps/react-client-split","version":"4.0.1","keywords":["react","reactjs","abTests","splitTests","typescript"],"author":{"name":"AMO Apps web frontend team"},"license":"MIT","_id":"@amoapps/react-client-split@4.0.1","maintainers":[{"name":"amo-apps-frontend","email":"unimeal-frontend@amo.tech"}],"dist":{"shasum":"c32df50d137c094e4d2f8a66479dfb2693ef8bf6","tarball":"https://registry.npmjs.org/@amoapps/react-client-split/-/react-client-split-4.0.1.tgz","fileCount":8,"integrity":"sha512-DnKTc6RZJObQYmgU1KRCFKfFN2lZyRw9HqrzcIZtPTQ1eby2GPaQ4FWCJ6g781qJF5HypAMQVqNwey99yc/5Pg==","signatures":[{"sig":"MEUCIQD1uUMMwLpuMFgW7kKfkJeNLk0mMZXP71p5fb8AAQ+qWwIgTs11kxFJsGlVDlMtB9YlT4eH61ruSynYeWMZ2SmBdTg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15150},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.esm.js","scripts":{"lint":"eslint . --ext .tsx","build":"rm -rf dist && yarn lint && rollup -c","prepare":"husky install","prepublish":"yarn build","check-types":"tsc --noEmit"},"_npmUser":{"name":"amo-apps-frontend","email":"unimeal-frontend@amo.tech"},"repository":{"url":"git@github.com:amomama/next-client-split.git","type":"git"},"description":"Utility for configuring and running ab tests in reactjs applications","directories":{},"lint-staged":{".":"prettier --write","*.{js,jsx,ts,tsx}":"eslint --cache --fix"},"sideEffects":false,"_hasShrinkwrap":false,"devDependencies":{"husky":">=8.0.3","react":"^18.2.0","tslib":"^2.6.1","eslint":"^8.46.0","rollup":"^3.27.2","prettier":"^3.0.2","react-dom":"^18.2.0","typescript":"4.8.2","lint-staged":">=13.2.3","@types/react":"^18.2.18","@types/react-dom":"^18.2.7","eslint-plugin-react":"^7.33.1","eslint-config-airbnb":"^19.0.4","eslint-plugin-import":"^2.28.0","rollup-plugin-terser":"^7.0.2","@rollup/plugin-terser":"^0.4.3","eslint-config-prettier":"^9.0.0","eslint-plugin-jsx-a11y":"^6.7.1","@rollup/plugin-commonjs":"^25.0.3","@rollup/plugin-typescript":"^11.1.2","@typescript-eslint/parser":"^5.53.0","eslint-plugin-react-hooks":"^4.5.0","@rollup/plugin-node-resolve":"^15.1.0","@typescript-eslint/eslint-plugin":"^5.53.0"},"peerDependencies":{"react":"^17 || ^18","react-dom":"^17 || ^18","@types/react":"^17 || ^18"},"peerDependenciesMeta":{"@types/react":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/react-client-split_4.0.1_1693508717572_0.274202761689357","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"4.0.2":{"name":"@amoapps/react-client-split","version":"4.0.2","keywords":["react","reactjs","abTests","splitTests","typescript"],"author":{"name":"AMO Apps web frontend team"},"license":"MIT","_id":"@amoapps/react-client-split@4.0.2","maintainers":[{"name":"amo-apps-frontend","email":"unimeal-frontend@amo.tech"}],"dist":{"shasum":"631f0356f671a23486db41e6b59b7f07870b43d0","tarball":"https://registry.npmjs.org/@amoapps/react-client-split/-/react-client-split-4.0.2.tgz","fileCount":8,"integrity":"sha512-FLDF+Y09dfOZpvPcd8U9yecvFvRfJqLFlXAles2VZU8JkjW/NtL/VXoFJu/sRVDVY4gzPOJDQqdknrhd+CZ9hw==","signatures":[{"sig":"MEUCIQDKAf42R43sTIWTxXJSNLABYNXdK4cEdj0Uj1oSoDtjtgIgcW/JVl2RnW5aodVj8RxWWVMcCoP2kgYVbo8pqTyjijw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15272},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.esm.js","scripts":{"lint":"eslint . --ext .tsx","build":"rm -rf dist && yarn lint && rollup -c","prepare":"husky install","prepublish":"yarn build","check-types":"tsc --noEmit"},"_npmUser":{"name":"amo-apps-frontend","email":"unimeal-frontend@amo.tech"},"repository":{"url":"git@github.com:amomama/next-client-split.git","type":"git"},"description":"Utility for configuring and running ab tests in reactjs applications","directories":{},"lint-staged":{".":"prettier --write","*.{js,jsx,ts,tsx}":"eslint --cache --fix"},"sideEffects":false,"_hasShrinkwrap":false,"devDependencies":{"husky":">=8.0.3","react":"^18.2.0","tslib":"^2.6.1","eslint":"^8.46.0","rollup":"^3.27.2","prettier":"^3.0.2","react-dom":"^18.2.0","typescript":"4.8.2","lint-staged":">=13.2.3","@types/react":"^18.2.18","@types/react-dom":"^18.2.7","eslint-plugin-react":"^7.33.1","eslint-config-airbnb":"^19.0.4","eslint-plugin-import":"^2.28.0","rollup-plugin-terser":"^7.0.2","@rollup/plugin-terser":"^0.4.3","eslint-config-prettier":"^9.0.0","eslint-plugin-jsx-a11y":"^6.7.1","@rollup/plugin-commonjs":"^25.0.3","@rollup/plugin-typescript":"^11.1.2","@typescript-eslint/parser":"^5.53.0","eslint-plugin-react-hooks":"^4.5.0","@rollup/plugin-node-resolve":"^15.1.0","@typescript-eslint/eslint-plugin":"^5.53.0"},"peerDependencies":{"react":"^17 || ^18","react-dom":"^17 || ^18","@types/react":"^17 || ^18"},"peerDependenciesMeta":{"@types/react":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/react-client-split_4.0.2_1695481451323_0.22263973850705887","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"4.0.3":{"name":"@amoapps/react-client-split","version":"4.0.3","keywords":["react","reactjs","abTests","splitTests","typescript"],"author":{"name":"AMO Apps web frontend team"},"license":"MIT","_id":"@amoapps/react-client-split@4.0.3","maintainers":[{"name":"amo-apps-frontend","email":"unimeal-frontend@amo.tech"}],"dist":{"shasum":"dc5765159b5ddfd64d6415ce633fda8c59743d84","tarball":"https://registry.npmjs.org/@amoapps/react-client-split/-/react-client-split-4.0.3.tgz","fileCount":8,"integrity":"sha512-3aO+0ELxwF0unPYpXnsK6cFazQYGjoqkdb34wUWJt3hCkY/8CNdOOejGfXZJVCGelZMZ/7zLvjCNnTV5Q3BCrQ==","signatures":[{"sig":"MEUCIQCMAi/N4Zx0EqTuq07WQjrjC53WZfiEeg+/myi3/rxCWQIgRi1lR9lvNd80K9qAlZrpEUx06Wo88Ht7aTDHN8ZC688=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15531},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.esm.js","scripts":{"lint":"eslint . --ext .tsx","build":"rm -rf dist && yarn lint && rollup -c","prepare":"husky install","prepublish":"yarn build","check-types":"tsc --noEmit"},"_npmUser":{"name":"amo-apps-frontend","email":"unimeal-frontend@amo.tech"},"repository":{"url":"git@github.com:amomama/next-client-split.git","type":"git"},"description":"Utility for configuring and running ab tests in reactjs applications","directories":{},"lint-staged":{".":"prettier --write","*.{js,jsx,ts,tsx}":"eslint --cache --fix"},"sideEffects":false,"_hasShrinkwrap":false,"devDependencies":{"husky":">=8.0.3","react":"^18.2.0","tslib":"^2.6.1","eslint":"^8.46.0","rollup":"^4.6.0","prettier":"^3.0.2","react-dom":"^18.2.0","typescript":"4.8.2","lint-staged":">=13.2.3","@types/react":"^18.2.18","@types/react-dom":"^18.2.7","eslint-plugin-react":"^7.33.1","eslint-config-airbnb":"^19.0.4","eslint-plugin-import":"^2.28.0","rollup-plugin-terser":"^7.0.2","@rollup/plugin-terser":"^0.4.3","eslint-config-prettier":"^9.0.0","eslint-plugin-jsx-a11y":"^6.7.1","@rollup/plugin-commonjs":"^25.0.3","@rollup/plugin-typescript":"^11.1.2","@typescript-eslint/parser":"^5.53.0","eslint-plugin-react-hooks":"^4.5.0","@rollup/plugin-node-resolve":"^15.1.0","@typescript-eslint/eslint-plugin":"^5.53.0"},"peerDependencies":{"react":"^17 || ^18","react-dom":"^17 || ^18","@types/react":"^17 || ^18"},"peerDependenciesMeta":{"@types/react":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/react-client-split_4.0.3_1701378979862_0.9084940031424067","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"4.0.4":{"name":"@amoapps/react-client-split","version":"4.0.4","keywords":["react","reactjs","abTests","splitTests","typescript"],"author":{"name":"AMO Apps web frontend team"},"license":"MIT","_id":"@amoapps/react-client-split@4.0.4","maintainers":[{"name":"amo-apps-frontend","email":"unimeal-frontend@amo.tech"}],"dist":{"shasum":"4f3514ec22a85a1d2353fc52c1f65c9cde9c84c1","tarball":"https://registry.npmjs.org/@amoapps/react-client-split/-/react-client-split-4.0.4.tgz","fileCount":8,"integrity":"sha512-rRftvlIcVbv5Q8kxr6WjZFkzS9KoUThgKLCnJ5hvKLmlxn3ehg21KkuSn7ngqhEKT+Q1X1e6jyulHKolb82t5A==","signatures":[{"sig":"MEQCIF0nc9VRU0jcQodH+FqBxivV3RzBxqM6mNmarBWlbd4nAiA7rfGAtLdE7e78FxOhjkrIWEhRPlMDdFtpZbOxlw+z6g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15535},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.esm.js","scripts":{"lint":"eslint . --ext .tsx","build":"rm -rf dist && yarn lint && rollup -c","prepare":"husky install","prepublish":"yarn build","check-types":"tsc --noEmit"},"_npmUser":{"name":"amo-apps-frontend","email":"unimeal-frontend@amo.tech"},"repository":{"url":"git@github.com:amomama/next-client-split.git","type":"git"},"description":"Utility for configuring and running ab tests in reactjs applications","directories":{},"lint-staged":{".":"prettier --write","*.{js,jsx,ts,tsx}":"eslint --cache --fix"},"sideEffects":false,"_hasShrinkwrap":false,"devDependencies":{"husky":">=8.0.3","react":"^18.2.0","tslib":"^2.6.1","eslint":"^8.46.0","rollup":"^4.6.0","prettier":"^3.0.2","react-dom":"^18.2.0","typescript":"4.8.2","lint-staged":">=13.2.3","@types/react":"^18.2.18","@types/react-dom":"^18.2.7","eslint-plugin-react":"^7.33.1","eslint-config-airbnb":"^19.0.4","eslint-plugin-import":"^2.28.0","rollup-plugin-terser":"^7.0.2","@rollup/plugin-terser":"^0.4.3","eslint-config-prettier":"^9.0.0","eslint-plugin-jsx-a11y":"^6.7.1","@rollup/plugin-commonjs":"^25.0.3","@rollup/plugin-typescript":"^11.1.2","@typescript-eslint/parser":"^5.53.0","eslint-plugin-react-hooks":"^4.5.0","@rollup/plugin-node-resolve":"^15.1.0","@typescript-eslint/eslint-plugin":"^5.53.0"},"peerDependencies":{"react":"^17 || ^18","react-dom":"^17 || ^18","@types/react":"^17 || ^18"},"peerDependenciesMeta":{"@types/react":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/react-client-split_4.0.4_1701519627699_0.8509765595721823","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"4.0.5":{"name":"@amoapps/react-client-split","version":"4.0.5","keywords":["react","reactjs","abTests","splitTests","typescript"],"author":{"name":"AMO Apps web frontend team"},"license":"MIT","_id":"@amoapps/react-client-split@4.0.5","maintainers":[{"name":"amo-apps-frontend","email":"unimeal-frontend@amo.tech"}],"dist":{"shasum":"04c90f68d2f7b52fe596a10ab0c49380f9222186","tarball":"https://registry.npmjs.org/@amoapps/react-client-split/-/react-client-split-4.0.5.tgz","fileCount":8,"integrity":"sha512-C3xjpDpUh+4y2g5U4jB+9WF8Mj6rsLKoorIlbRov20q06WBgOg6Eq9BepzS6dnry+fiLWmwtk7tKPFjLAKfdoA==","signatures":[{"sig":"MEQCIBo02W2F0s+dcPbnfL1lrZlSEXiaTsPQpNQtmCpkD06EAiAUh2iJnJouWFu4wWGCdQNu4y8OnqSUiN08+4/I59r0OA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16507},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.esm.js","scripts":{"lint":"eslint . --ext .tsx","build":"rm -rf dist && yarn lint && rollup -c","prepare":"husky install","prepublish":"yarn build","check-types":"tsc --noEmit"},"_npmUser":{"name":"amo-apps-frontend","email":"unimeal-frontend@amo.tech"},"repository":{"url":"git@github.com:amomama/next-client-split.git","type":"git"},"description":"Utility for configuring and running ab tests in reactjs applications","directories":{},"lint-staged":{".":"prettier --write","*.{js,jsx,ts,tsx}":"eslint --cache --fix"},"sideEffects":false,"_hasShrinkwrap":false,"devDependencies":{"husky":">=8.0.3","react":"^18.2.0","tslib":"^2.6.1","eslint":"^8.46.0","rollup":"^4.6.0","prettier":"^3.0.2","react-dom":"^18.2.0","typescript":"4.8.2","lint-staged":">=13.2.3","@types/react":"^18.2.18","@types/react-dom":"^18.2.7","eslint-plugin-react":"^7.33.1","eslint-config-airbnb":"^19.0.4","eslint-plugin-import":"^2.28.0","rollup-plugin-terser":"^7.0.2","@rollup/plugin-terser":"^0.4.3","eslint-config-prettier":"^9.0.0","eslint-plugin-jsx-a11y":"^6.7.1","@rollup/plugin-commonjs":"^25.0.3","@rollup/plugin-typescript":"^11.1.2","@typescript-eslint/parser":"^5.53.0","eslint-plugin-react-hooks":"^4.5.0","@rollup/plugin-node-resolve":"^15.1.0","@typescript-eslint/eslint-plugin":"^5.53.0"},"peerDependencies":{"react":"^17 || ^18","react-dom":"^17 || ^18","@types/react":"^17 || ^18"},"peerDependenciesMeta":{"@types/react":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/react-client-split_4.0.5_1702581676347_0.36202031077008456","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"4.0.6":{"name":"@amoapps/react-client-split","version":"4.0.6","keywords":["react","reactjs","abTests","splitTests","typescript"],"author":{"name":"AMO Apps web frontend team"},"license":"MIT","_id":"@amoapps/react-client-split@4.0.6","maintainers":[{"name":"amo-apps-frontend","email":"unimeal-frontend@amo.tech"}],"dist":{"shasum":"fb995d1d74b427d7eb868f59e047933deb683ce8","tarball":"https://registry.npmjs.org/@amoapps/react-client-split/-/react-client-split-4.0.6.tgz","fileCount":8,"integrity":"sha512-Jstq96dUnrcG9iEtcneP+7AqCvXSqVWAnVLaCSgitmh2W24ZDqxk+i+WRbO5h8Qe3vs/OQfhcEO6EZ6gaBu4Ow==","signatures":[{"sig":"MEYCIQDNq3bBMoEWbLRpfQS40r0Pj7R1vrS1ZdrvQIF5/Ac2RQIhAIxCMtOnitaa3NEQ2odKGuBzy65Uvr04LSiVJ0W3DxjG","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16864},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.esm.js","scripts":{"lint":"eslint . --ext .tsx","build":"rm -rf dist && yarn lint && rollup -c","prepare":"husky install","prepublish":"yarn build","check-types":"tsc --noEmit"},"_npmUser":{"name":"amo-apps-frontend","email":"unimeal-frontend@amo.tech"},"repository":{"url":"git@github.com:amomama/next-client-split.git","type":"git"},"description":"Utility for configuring and running ab tests in reactjs applications","directories":{},"lint-staged":{".":"prettier --write","*.{js,jsx,ts,tsx}":"eslint --cache --fix"},"sideEffects":false,"_hasShrinkwrap":false,"devDependencies":{"husky":">=8.0.3","react":"^18.2.0","tslib":"^2.6.1","eslint":"^8.46.0","rollup":"^4.6.0","prettier":"^3.0.2","react-dom":"^18.2.0","typescript":"5.3.3","lint-staged":">=13.2.3","@types/react":"^18.2.18","@types/react-dom":"^18.2.7","eslint-plugin-react":"^7.33.1","eslint-config-airbnb":"^19.0.4","eslint-plugin-import":"^2.28.0","rollup-plugin-terser":"^7.0.2","@rollup/plugin-terser":"^0.4.3","eslint-config-prettier":"^9.0.0","eslint-plugin-jsx-a11y":"^6.7.1","@rollup/plugin-commonjs":"^25.0.3","@rollup/plugin-typescript":"^11.1.2","@typescript-eslint/parser":"^5.53.0","eslint-plugin-react-hooks":"^4.5.0","@rollup/plugin-node-resolve":"^15.1.0","@typescript-eslint/eslint-plugin":"^5.53.0"},"peerDependencies":{"react":"^17 || ^18","react-dom":"^17 || ^18","@types/react":"^17 || ^18"},"peerDependenciesMeta":{"@types/react":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/react-client-split_4.0.6_1709554619693_0.5217290576869975","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"4.0.7":{"name":"@amoapps/react-client-split","version":"4.0.7","keywords":["react","reactjs","abTests","splitTests","typescript"],"author":{"name":"AMO Apps web frontend team"},"license":"MIT","_id":"@amoapps/react-client-split@4.0.7","maintainers":[{"name":"amo-apps-frontend","email":"unimeal-frontend@amo.tech"}],"dist":{"shasum":"50a03a0e97e1c1c691e69badc22bcbb67d368c6f","tarball":"https://registry.npmjs.org/@amoapps/react-client-split/-/react-client-split-4.0.7.tgz","fileCount":8,"integrity":"sha512-q5ffSTMHYEQvz4Lq1jTXxxNb0g6akFuCoHYwMOqnhVdaxdXEcRDRVz198I+5cF78rSTzXw4ffQVzk751gLjVSw==","signatures":[{"sig":"MEQCIGtKcqBJmQHrpOcVDdKyVACUjl0TlW+HOOUE6XO3bkHkAiAvCUDOG2OIR2DuSWKOVGxGMcT5BYCG9uL+02eqSvph8g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16926},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.esm.js","scripts":{"lint":"eslint . --ext .tsx","build":"rm -rf dist && yarn lint && rollup -c","prepare":"husky install","prepublish":"yarn build","check-types":"tsc --noEmit"},"_npmUser":{"name":"amo-apps-frontend","email":"unimeal-frontend@amo.tech"},"repository":{"url":"git@github.com:amomama/next-client-split.git","type":"git"},"description":"Utility for configuring and running ab tests in reactjs applications","directories":{},"lint-staged":{".":"prettier --write","*.{js,jsx,ts,tsx}":"eslint --cache --fix"},"sideEffects":false,"_hasShrinkwrap":false,"devDependencies":{"husky":">=8.0.3","react":"^18.2.0","tslib":"^2.6.1","eslint":"^8.46.0","rollup":"^4.6.0","prettier":"^3.0.2","react-dom":"^18.2.0","typescript":"5.3.3","lint-staged":">=13.2.3","@types/react":"^18.2.18","@types/react-dom":"^18.2.7","eslint-plugin-react":"^7.33.1","eslint-config-airbnb":"^19.0.4","eslint-plugin-import":"^2.28.0","rollup-plugin-terser":"^7.0.2","@rollup/plugin-terser":"^0.4.3","eslint-config-prettier":"^9.0.0","eslint-plugin-jsx-a11y":"^6.7.1","@rollup/plugin-commonjs":"^25.0.3","@rollup/plugin-typescript":"^11.1.2","@typescript-eslint/parser":"^5.53.0","eslint-plugin-react-hooks":"^4.5.0","@rollup/plugin-node-resolve":"^15.1.0","@typescript-eslint/eslint-plugin":"^5.53.0"},"peerDependencies":{"react":"^17 || ^18","react-dom":"^17 || ^18","@types/react":"^17 || ^18"},"peerDependenciesMeta":{"@types/react":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/react-client-split_4.0.7_1710841555940_0.631491366658234","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"4.0.8":{"name":"@amoapps/react-client-split","version":"4.0.8","keywords":["react","reactjs","abTests","splitTests","typescript"],"author":{"name":"AMO Apps web frontend team"},"license":"MIT","_id":"@amoapps/react-client-split@4.0.8","maintainers":[{"name":"amo-apps-frontend","email":"unimeal-frontend@amo.tech"}],"dist":{"shasum":"9e6a1f95b628d7ac76b76806af943a7a78abd3bc","tarball":"https://registry.npmjs.org/@amoapps/react-client-split/-/react-client-split-4.0.8.tgz","fileCount":8,"integrity":"sha512-Qqn/7hKcCIu4rPUZ0avcMOsL3WDvq5BbmleT/FfkvcXcbTdUQLyoz9ASEHvb1uqa/TrEOAdblcxQpLL+ZiM0sA==","signatures":[{"sig":"MEUCIAdvXbTJFnxqy88L+PSlCNphPjxs6YliPPPuMk4Df44OAiEAkjPS6JjR0JvNR4NeM+KkpEbteIc299f18tJJ+r3lrw8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16720},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.esm.js","scripts":{"lint":"eslint . --ext .tsx","build":"rm -rf dist && yarn lint && rollup -c","prepare":"husky install","prepublish":"yarn build","check-types":"tsc --noEmit"},"_npmUser":{"name":"amo-apps-frontend","email":"unimeal-frontend@amo.tech"},"repository":{"url":"git@github.com:amomama/next-client-split.git","type":"git"},"description":"Utility for configuring and running ab tests in reactjs applications","directories":{},"lint-staged":{".":"prettier --write","*.{js,jsx,ts,tsx}":"eslint --cache --fix"},"sideEffects":false,"_hasShrinkwrap":false,"devDependencies":{"husky":">=8.0.3","react":"^18.2.0","tslib":"^2.6.1","eslint":"^8.46.0","rollup":"^4.6.0","prettier":"^3.0.2","react-dom":"^18.2.0","typescript":"5.4.5","lint-staged":">=13.2.3","@types/react":"^18.2.18","@types/react-dom":"^18.2.7","eslint-plugin-react":"^7.33.1","eslint-config-airbnb":"^19.0.4","eslint-plugin-import":"^2.28.0","rollup-plugin-terser":"^7.0.2","@rollup/plugin-terser":"^0.4.3","eslint-config-prettier":"^9.0.0","eslint-plugin-jsx-a11y":"^6.7.1","@rollup/plugin-commonjs":"^25.0.3","@rollup/plugin-typescript":"^11.1.2","@typescript-eslint/parser":"^5.53.0","eslint-plugin-react-hooks":"^4.5.0","@rollup/plugin-node-resolve":"^15.1.0","@typescript-eslint/eslint-plugin":"^5.53.0"},"peerDependencies":{"react":"^17 || ^18","react-dom":"^17 || ^18","@types/react":"^17 || ^18"},"peerDependenciesMeta":{"@types/react":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/react-client-split_4.0.8_1718616172202_0.20269047161540032","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"time":{"created":"2023-08-05T10:08:58.150Z","modified":"2025-10-16T14:39:21.943Z","4.0.0":"2023-08-05T10:08:58.399Z","4.0.1":"2023-08-31T19:05:17.807Z","4.0.2":"2023-09-23T15:04:11.602Z","4.0.3":"2023-11-30T21:16:20.052Z","4.0.4":"2023-12-02T12:20:27.906Z","4.0.5":"2023-12-14T19:21:16.552Z","4.0.6":"2024-03-04T12:16:59.828Z","4.0.7":"2024-03-19T09:45:56.099Z","4.0.8":"2024-06-17T09:22:52.437Z"},"author":{"name":"AMO Apps web frontend team"},"license":"MIT","keywords":["react","reactjs","abTests","splitTests","typescript"],"repository":{"url":"git@github.com:amomama/next-client-split.git","type":"git"},"description":"Utility for configuring and running ab tests in reactjs applications","maintainers":[{"name":"amo-apps-frontend","email":"unimeal-frontend@amo.tech"}],"readme":"# react-client-split\n\n[![npm version](https://img.shields.io/npm/v/@amoapps/react-client-split)](https://www.npmjs.com/package/@amoapps/react-client-split)\n[![minified + gzip](https://img.shields.io/bundlephobia/minzip/@amoapps/react-client-split/latest)](https://bundlephobia.com/package/@amoapps/react-client-split)\n[![typescript](https://badgen.net/npm/types/@amoapps/react-client-split)](https://unpkg.com/@amoapps/react-client-split/dist/index.d.ts)\n\nUtility for configuring and running ab tests in reactjs applications\n\n## Table of contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Props](#props)\n\n## Installation\n\n**npm**\n\n```bash\nnpm install @amoapps/react-client-split --save\n```\n\n**yarn**\n\n```bash\nyarn add @amoapps/react-client-split\n```\n\n## Usage\n\n```js\nimport { useCallback } from 'react';\nimport ReactClientSplit from '@amoapps/react-client-split';\nimport { useRouter } from 'next/router';\n\nconst splitGroups = {\n  splitTestName: {\n    // test name\n    coverage: 0.5, // what proportion of users should get into the test (0 - 0%, 1 - 100%, 0.5 - 50%...)\n    path: ['/start-path/url'], // split test start url\n    options: [\n      // distribution options\n      {\n        id: 'option_1_id',\n        url: '/option_1/url',\n        weight: 50, // what proportion of users should get into this option\n        // (if option1.weight = 60 && option2.weight = 20 -> option1.weight = 75% of users && option1.weight = 25%)\n        // (if option1.weight = 1 && option2.weight = 3 && option3.weight = 1 -> option1.weight = 20% of users && option1.weight = 60% && option3.weight = 20%)\n      },\n      {\n        id: 'option_2_id',\n        url: '/option_2/url',\n        weight: 50,\n      },\n    ],\n    condition: { urlQuery: [], cookie: [], common: [] },\n  },\n};\n\nfunction ReactClientSplitExample() {\n  const router = useRouter();\n\n  const currentPath = router.asPath;\n\n  const handleSplitGroupHit = useCallback((splitResult) => {\n    console.log({\n      name: splitResult.name,\n      option: splitResult.option,\n    });\n\n    return true;\n  }, []);\n\n  const handleSplitRedirect = useCallback((splitResult) => {\n    // redirect to `splitResult`\n  }, []);\n\n  return (\n    <>\n      <ReactClientSplit\n        groups={splitGroups}\n        onHit={handleSplitGroupHit}\n        onRedirect={handleSplitRedirect}\n        contentElement=\".content\"\n        currentPath={currentPath}\n      />\n\n      <div className=\"content\">Some content here</div>\n    </>\n  );\n}\n\nexport default ReactClientSplitExample;\n```\n\n## Props\n\n| Name               | Type       | Default Value | Description                                                                                                       |\n| ------------------ | ---------- | ------------- | ----------------------------------------------------------------------------------------------------------------- |\n| **splitGroups**    | {}         |               | config                                                                                                            |\n| **contentElement** | `string`   |               | CSS selector of the element that contains the content that will be changed based on the results of the split test |\n| **onHit**          | `function` |               | function that will be called in case of getting into a split group                                                |\n| **onRedirect**     | `function` |               |                                                                                                                   |\n| **getIsEnabled**   | `function` |               |                                                                                                                   |\n| **currentPath**    | `string`   |               | Current page URL                                                                                                  |\n","readmeFilename":"README.md"}