UNPKG

react-stripe-checkout

Version:

Easily inject checkout.js as a react component. Will load the script on demand and supports all the options from stripe docs.

133 lines (132 loc) 3.42 kB
{ "name": "react-stripe-checkout", "version": "2.6.3", "description": "Easily inject checkout.js as a react component. Will load the script on demand and supports all the options from stripe docs.", "main": "./dist/main.js", "types": "./index.d.ts", "scripts": { "test": "mocha --require babel-register --require .test-setup.js -R spec ./spec.js", "cover": "nyc -x './spec.js' -n 'StripeCheckout.js' -r text -r html -r lcov npm test", "watch": "mkdir -p dist; ./node_modules/.bin/babel StripeCheckout.js --out-file ./dist/main.js --source-maps inline --watch", "build": "mkdir -p dist; ./node_modules/.bin/babel StripeCheckout.js --out-file ./dist/main.js", "version": "npm run build" }, "babel": { "presets": [ "es2015", "react", "stage-0" ], "plugins": [ "transform-object-assign" ] }, "eslintConfig": { "parser": "babel-eslint", "extends": "airbnb", "env": { "browser": true, "node": true, "mocha": true, "es6": true }, "plugins": [ "react", "jsx-a11y" ], "parserOptions": { "ecmaVersion": 6, "sourceType": "module", "ecmaFeatures": { "jsx": true } }, "globals": { "StripeCheckout": true }, "rules": { "import/no-unresolved": 2, "comma-dangle": [ 2, "always-multiline" ], "indent": [ 2, 2, { "SwitchCase": 1 } ], "no-console": 1, "max-len": 0, "prefer-template": 2, "no-use-before-define": 0, "newline-per-chained-call": 0, "arrow-body-style": [ 2, "as-needed" ], "jsx-a11y/href-no-hash": 2, "jsx-a11y/label-has-for": 2, "jsx-a11y/mouse-events-have-key-events": 2, "jsx-a11y/role-has-required-aria-props": 2, "jsx-a11y/role-supports-aria-props": 2, "jsx-a11y/aria-props": 2, "react/prop-types": [ 2, { "ignore": [ "dispatch", "children", "className", "style" ] } ] } }, "repository": { "type": "git", "url": "https://github.com/azmenak/react-stripe-checkout.git" }, "keywords": [ "react", "stripe", "checkout", "inject", "loaded", "easy" ], "author": "Adam Zmenak <adam.zmenak@gmail.com> (http://azmenak.com)", "license": "MIT", "bugs": { "url": "https://github.com/azmenak/react-stripe-checkout/issues" }, "homepage": "https://github.com/azmenak/react-stripe-checkout", "devDependencies": { "babel-cli": "^6.11.4", "babel-core": "^6.11.4", "babel-eslint": "^6.1.2", "babel-helpers": "^6.24.1", "babel-plugin-transform-object-assign": "^6.8.0", "babel-preset-es2015": "^6.13.2", "babel-preset-react": "^6.11.1", "babel-preset-react-hmre": "^1.1.1", "babel-preset-stage-0": "^6.5.0", "babel-register": "^6.11.6", "enzyme": "^2.4.1", "eslint": "^2.10.1", "eslint-config-airbnb": "^9.0.1", "eslint-plugin-import": "^1.12.0", "eslint-plugin-jsx-a11y": "^1.2.0", "eslint-plugin-react": "^5.1.1", "expect": "^1.20.2", "jsdom": "^9.4.1", "mocha": "^3.0.1", "nyc": "^7.1.0", "prop-types": "^15.5.8", "react": "^15.5.4", "react-addons-test-utils": "^15.5.0", "react-dom": "15.5.4" } }