Skip to content
This repository was archived by the owner on Mar 27, 2021. It is now read-only.

Commit 58ccf98

Browse files
committed
v0.0.5
1 parent 82dd561 commit 58ccf98

File tree

2 files changed

+155
-1
lines changed

2 files changed

+155
-1
lines changed

npm-debug.log

Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
0 info it worked if it ends with ok
2+
1 verbose cli [ '/Users/jenan/.nvm/versions/node/v6.11.1/bin/node',
3+
1 verbose cli '/Users/jenan/.nvm/versions/node/v6.11.1/bin/npm',
4+
1 verbose cli 'publish' ]
5+
2 info using [email protected]
6+
3 info using [email protected]
7+
4 verbose publish [ '.' ]
8+
5 silly cache add args [ '.', null ]
9+
6 verbose cache add spec .
10+
7 silly cache add parsed spec Result {
11+
7 silly cache add raw: '.',
12+
7 silly cache add scope: null,
13+
7 silly cache add escapedName: null,
14+
7 silly cache add name: null,
15+
7 silly cache add rawSpec: '.',
16+
7 silly cache add spec: '/Users/jenan/stripe/react-stripe-elements',
17+
7 silly cache add type: 'directory' }
18+
8 verbose addLocalDirectory /Users/jenan/.npm/react-stripe-elements/0.0.4/package.tgz not in flight; packing
19+
9 verbose correctMkdir /Users/jenan/.npm correctMkdir not in flight; initializing
20+
10 info lifecycle [email protected]~prepublish: [email protected]
21+
11 verbose lifecycle [email protected]~prepublish: unsafe-perm in lifecycle true
22+
12 verbose lifecycle [email protected]~prepublish: PATH: /Users/jenan/.nvm/versions/node/v6.11.1/lib/node_modules/npm/bin/node-gyp-bin:/Users/jenan/stripe/react-stripe-elements/node_modules/.bin:/Users/jenan/.nvm/versions/node/v6.11.1/bin:/Users/jenan/stripe/henson/bin:/Users/jenan/stripe/bin:/Users/jenan/.bin_local:/Users/jenan/.rbenv/shims:/Users/jenan/src/go/bin:./node_modules/.bin:/Users/jenan/bin:/Users/jenan/.local/bin:/Users/jenan/node_modules/.bin:/opt/google-cloud-sdk/bin:/share/npm/bin:/usr/local/Cellar/emacs/25.2/bin:/opt/coreutils/libexec/gnubin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/go/bin:/usr/local/MacGPG2/bin:/usr/local/munki:/Users/jenan/stripe/henson/bin:/Users/jenan/stripe/password-vault/bin:/Users/jenan/stripe/space-commander/bin
23+
13 verbose lifecycle [email protected]~prepublish: CWD: /Users/jenan/stripe/react-stripe-elements
24+
14 silly lifecycle [email protected]~prepublish: Args: [ '-c', 'yarn run clean && yarn run build' ]
25+
15 silly lifecycle [email protected]~prepublish: Returned: code: 0 signal: null
26+
16 verbose tar pack [ '/Users/jenan/.npm/react-stripe-elements/0.0.4/package.tgz',
27+
16 verbose tar pack '/Users/jenan/stripe/react-stripe-elements' ]
28+
17 verbose tarball /Users/jenan/.npm/react-stripe-elements/0.0.4/package.tgz
29+
18 verbose folder /Users/jenan/stripe/react-stripe-elements
30+
19 verbose addLocalTarball adding from inside cache /Users/jenan/.npm/react-stripe-elements/0.0.4/package.tgz
31+
20 verbose correctMkdir /Users/jenan/.npm correctMkdir not in flight; initializing
32+
21 silly cache afterAdd [email protected]
33+
22 verbose afterAdd /Users/jenan/.npm/react-stripe-elements/0.0.4/package/package.json not in flight; writing
34+
23 verbose correctMkdir /Users/jenan/.npm correctMkdir not in flight; initializing
35+
24 verbose afterAdd /Users/jenan/.npm/react-stripe-elements/0.0.4/package/package.json written
36+
25 silly publish { name: 'react-stripe-elements',
37+
25 silly publish version: '0.0.4',
38+
25 silly publish description: 'React components that help you quickly add Stripe Elements to your React app.',
39+
25 silly publish main: './lib/index.js',
40+
25 silly publish module: 'es/index.js',
41+
25 silly publish 'jsnext:main': 'es/index.js',
42+
25 silly publish scripts:
43+
25 silly publish { test: 'jest',
44+
25 silly publish 'build:commonjs': 'cross-env BABEL_ENV=commonjs babel src --out-dir lib',
45+
25 silly publish 'build:es': 'cross-env BABEL_ENV=es babel src --out-dir es',
46+
25 silly publish 'build:umd': 'cross-env BABEL_ENV=commonjs NODE_ENV=development webpack src/index.js dist/react-stripe-elements.js --config webpack.config.prod.js',
47+
25 silly publish 'build:umd:min': 'cross-env BABEL_ENV=commonjs NODE_ENV=production webpack src/index.js dist/react-stripe-elements.min.js --config webpack.config.prod.js',
48+
25 silly publish lint: 'eslint src demo',
49+
25 silly publish flow: 'flow',
50+
25 silly publish build: 'yarn run lint && yarn run flow && yarn run build:commonjs && yarn run build:es && yarn run build:umd && yarn run build:umd:min',
51+
25 silly publish clean: 'rimraf lib dist es',
52+
25 silly publish prepublish: 'yarn run clean && yarn run build',
53+
25 silly publish demo: 'webpack-dev-server --content-base dist' },
54+
25 silly publish keywords: [],
55+
25 silly publish author: { name: 'Stripe', url: 'https://www.stripe.com' },
56+
25 silly publish license: 'MIT',
57+
25 silly publish dependencies: { 'prop-types': '^15.5.8' },
58+
25 silly publish repository:
59+
25 silly publish { type: 'git',
60+
25 silly publish url: 'git+https://github.com/stripe/react-stripe-elements.git' },
61+
25 silly publish files: [ 'dist', 'lib', 'src', 'es' ],
62+
25 silly publish devDependencies:
63+
25 silly publish { 'babel-cli': '^6.24.1',
64+
25 silly publish 'babel-core': '^6.24.1',
65+
25 silly publish 'babel-eslint': '^7.2.2',
66+
25 silly publish 'babel-jest': '^19.0.0',
67+
25 silly publish 'babel-loader': '^6.4.1',
68+
25 silly publish 'babel-plugin-transform-class-properties': '^6.24.1',
69+
25 silly publish 'babel-plugin-transform-object-rest-spread': '^6.23.0',
70+
25 silly publish 'babel-preset-es2015': '^6.24.1',
71+
25 silly publish 'babel-preset-react': '^6.24.1',
72+
25 silly publish 'cross-env': '^4.0.0',
73+
25 silly publish enzyme: '^2.8.2',
74+
25 silly publish eslint: '^3.19.0',
75+
25 silly publish 'eslint-config-stripe': '^1.0.10',
76+
25 silly publish 'eslint-plugin-flowtype': '^2.32.1',
77+
25 silly publish 'eslint-plugin-jest': '^19.0.1',
78+
25 silly publish 'flow-bin': '^0.44.0',
79+
25 silly publish 'html-webpack-plugin': '^2.28.0',
80+
25 silly publish jest: '^19.0.2',
81+
25 silly publish react: '^15.5.4',
82+
25 silly publish 'react-dom': '^15.5.4',
83+
25 silly publish 'react-test-renderer': '^15.5.4',
84+
25 silly publish rimraf: '^2.6.1',
85+
25 silly publish webpack: '^2.4.1',
86+
25 silly publish 'webpack-dev-server': '^2.4.5' },
87+
25 silly publish peerDependencies: { react: '^15.5.4', 'react-dom': '^15.5.4' },
88+
25 silly publish readme: '# Stripe Elements for React\n\nReact components that help you quickly add Stripe Elements to your React app.\n\n[![build status](https://img.shields.io/travis/stripe/react-stripe-elements/master.svg?style=flat-square)](https://travis-ci.org/stripe/react-stripe-elements)\n[![npm version](https://img.shields.io/npm/v/react-stripe-elements.svg?style=flat-square)](https://www.npmjs.com/package/react-stripe-elements)\n\nThis project is a thin React wrapper around [Stripe.js](https://stripe.com/docs/stripe.js)\nand [Stripe Elements](https://stripe.com/docs/elements). It allows you to add Elements\nto any React app, and manages the state and lifecycle of Elements for you.\n\nThe [Stripe.js / Stripe Elements API reference](https://stripe.com/docs/elements/reference)\ngoes into more detail on the various customization options for Elements (e.g. styles, fonts).\n\n> This project is currently in beta. The API presented below may undergo significant changes until we hit a stable release.\n\n## Getting started\n\n### Installation\n\n#### First, install `react-stripe-elements`.\n\nUsing yarn:\n\n yarn add react-stripe-elements\n\nUsing npm:\n\n npm install --save react-stripe-elements\n\nUsing UMD build (exports a global `ReactStripeElements` object):\n\n```html\n<script src="https://unpkg.com/react-stripe-elements@latest/dist/react-stripe-elements.min.js"></script>\n```\n\n#### Then, load Stripe.js in your application:\n\n```html\n<script src="https://js.stripe.com/v3/"></script>\n```\n\nYou\'re good to go!\n\n### The Stripe context (`StripeProvider`)\n\nIn order for your application to have access to [the Stripe object](https://stripe.com/docs/elements/reference#the-stripe-object),\nlet\'s add `StripeProvider` to our root React App component:\n\n```js\n// index.js\nimport React from \'react\';\nimport {StripeProvider} from \'react-stripe-elements\';\n\nimport MyStoreCheckout from \'./MyStoreCheckout\';\n\nconst App = () => {\n return (\n <StripeProvider apiKey="pk_test_12345">\n <MyStoreCheckout />\n </StripeProvider>\n );\n};\n\nReactDOM.render(<App />, document.getElementById(\'root\'));\n```\n\n### Element groups (`Elements`)\n\nNext, when you\'re building components for your checkout form, you\'ll want to wrap the `Elements` component around your `form`.\nThis groups the set of Stripe Elements you\'re using together, so that we\'re able to pull data from groups of Elements when\nyou\'re tokenizing.\n\n```js\n// MyStoreCheckout.js\nimport React from \'react\';\nimport {Elements} from \'react-stripe-elements\';\n\nimport CheckoutForm from \'./CheckoutForm\';\n\nclass MyStoreCheckout extends React.Component {\n render() {\n return (\n <Elements>\n <CheckoutForm />\n </Elements>\n );\n }\n}\n\nexport default MyStoreCheckout;\n```\n\n### Setting up your payment form (`injectStripe`)\n\nUse the `injectStripe` Higher-Order Component (HOC) to build your payment form components in the `Elements` tree. This HOC injects the `stripe`\ninstance that manages your `Elements` groups. You can call `createToken` on the injected `stripe` instance to submit\npayment data to Stripe.\n\n```js\n// CheckoutForm.js\nimport React from \'react\';\nimport {injectStripe} from \'react-stripe-elements\';\n\nimport AddressSection from \'./AddressSection\';\nimport CardSection from \'./CardSection\';\n\nclass CheckoutForm extends React.Component {\n handleSubmit = (ev) => {\n // We don\'t want to let default form submission happen here, which would refresh the page.\n ev.preventDefault();\n\n // Within the context of `Elements`, this call to createToken knows which Element to\n // tokenize, since there\'s only one in this group.\n this.props.stripe.createToken({name: \'Jenny Rosen\'}).then(({token}) => {\n console.log(\'Received Stripe token:\', token);\n });\n\n // However, this line of code will do the same thing:\n // this.props.stripe.createToken({type: \'card\', name: \'Jenny Rosen\'});\n }\n\n render() {\n return (\n <form onSubmit={this.handleSubmit}>\n <AddressSection />\n <CardSection />\n <button>Confirm order</button>\n </form>\n );\n }\n}\n\nexport default injectStripe(CheckoutForm);\n```\n\n### Using individual `*Element` components\n\nNow, you can use individual `*Element` components, such as `CardElement`, to build your form.\n\n```js\n// CardSection.js\nimport React from \'react\';\nimport {CardElement} from \'react-stripe-elements\';\n\nclass CardSection extends React.Component {\n render() {\n return (\n <label>\n Card details\n <CardElement style={{base: {fontSize: \'18px\'}}} />\n </label>\n );\n }\n};\n\nexport default CardSection;\n```\n\n## Component reference\n\n### `<StripeProvider>`\n\nAll applications using `react-stripe-elements` must use the `<StripeProvider>` component, which sets up the Stripe context for a component tree.\n`react-stripe-elements` uses the provider pattern (which is also adopted by tools like [`react-redux`](https://github.com/reactjs/react-redux) and [`react-intl`](https://github.com/yahoo/react-intl)) to scope a Stripe context to a tree of components. This allows configuration like your API key to be provided at the root of a component tree. This context is then made available to the `<Elements>` component and individual `<*Element>` components that we provide.\n\nAn integration usually wraps the `<StripeProvider>` around the application’s root component. This way, your entire application has the configured Stripe context.\n\n#### Props shape\n\nThis component accepts all `options` that can be passed into `Stripe(apiKey, options)` as props.\n\n```js\ntype StripeProviderProps = {\n apiKey: string,\n};\n```\n\n\n### `<Elements>`\n\nThe `Elements` component wraps groups of Elements that belong together. In most cases, you want to wrap this around your checkout form.\n\n#### Props shape\n\nThis component accepts all `options` that can be passed into `stripe.elements(options)` as props.\n\n```js\ntype ElementsProps = {\n locale?: string,\n fonts?: Array<Object>,\n // The full specification for `elements()` options is here: https://stripe.com/docs/elements/reference#elements-options\n};\n```\n\n### `<*Element>` components\n\nThese components display the UI for Elements, and must be used within `StripeProvider` and `Elements`.\n\n#### Available components\n\n(More to come!)\n\n- `CardElement`\n- `CardNumberElement`\n- `CardExpiryElement`\n- `CardCVCElement`\n- `PostalCodeElement`\n\n#### Props shape\n\nThese components accept all `options` that can be passed into `elements.create(type, options)` as props.\n\n```js\ntype ElementProps = {\n elementRef?: (StripeElement) => void,\n\n // For full documentation on the events and payloads below, see:\n // https://stripe.com/docs/elements/reference#element-on\n onChange?: (changeObject: Object) => void,\n onReady?: () => void,\n onFocus?: () => void,\n onBlur?: () => void,\n};\n```\n\n### `injectStripe` HOC\n\nComponents that need to initiate Source or Token creations (e.g. a checkout form component) can access `stripe.createToken` via props of any component returned by the `injectStripe` HOC factory.\n\n#### Example\n\n```js\nconst StripeCheckoutForm = injectStripe(CheckoutForm);\n```\n\nThe following props will be available to this component:\n\n```js\ntype FactoryProps = {\n stripe: {\n createToken: (tokenParameters: {type?: string}) => Promise<{token?: Object, error?: Object}>,\n // and other functions available on the `stripe` object,\n // as officially documented here: https://stripe.com/docs/elements/reference#the-stripe-object\n },\n};\n```\n\n\n## Development\n\nInstall dependencies:\n\n yarn install\n\nRun the demo:\n\n yarn run demo\n\nRun the tests:\n\n yarn run test\n\nBuild:\n\n yarn run build\n\nChecks:\n\n yarn run lint\n yarn run flow\n',
89+
25 silly publish readmeFilename: 'README.md',
90+
25 silly publish gitHead: '82dd561e9d98100759fdb40e81e7c524239febdf',
91+
25 silly publish bugs: { url: 'https://github.com/stripe/react-stripe-elements/issues' },
92+
25 silly publish homepage: 'https://github.com/stripe/react-stripe-elements#readme',
93+
25 silly publish _id: '[email protected]',
94+
25 silly publish _shasum: '6225da383862daea9f16b937f9200437885ddb21',
95+
25 silly publish _from: '.' }
96+
26 verbose getPublishConfig undefined
97+
27 silly mapToRegistry name react-stripe-elements
98+
28 silly mapToRegistry using default registry
99+
29 silly mapToRegistry registry https://registry.npmjs.org/
100+
30 silly mapToRegistry data Result {
101+
30 silly mapToRegistry raw: 'react-stripe-elements',
102+
30 silly mapToRegistry scope: null,
103+
30 silly mapToRegistry escapedName: 'react-stripe-elements',
104+
30 silly mapToRegistry name: 'react-stripe-elements',
105+
30 silly mapToRegistry rawSpec: '',
106+
30 silly mapToRegistry spec: 'latest',
107+
30 silly mapToRegistry type: 'tag' }
108+
31 silly mapToRegistry uri https://registry.npmjs.org/react-stripe-elements
109+
32 verbose publish registryBase https://registry.npmjs.org/
110+
33 silly publish uploading /Users/jenan/.npm/react-stripe-elements/0.0.4/package.tgz
111+
34 verbose request uri https://registry.npmjs.org/react-stripe-elements
112+
35 verbose request sending authorization for write operation
113+
36 info attempt registry request try #1 at 2:55:52 PM
114+
37 verbose request using bearer token for auth
115+
38 verbose request id a9b18a125c1adee9
116+
39 http request PUT https://registry.npmjs.org/react-stripe-elements
117+
40 http 403 https://registry.npmjs.org/react-stripe-elements
118+
41 verbose headers { 'content-type': 'application/json',
119+
41 verbose headers 'cache-control': 'max-age=300',
120+
41 verbose headers 'content-length': '95',
121+
41 verbose headers 'accept-ranges': 'bytes',
122+
41 verbose headers date: 'Thu, 20 Jul 2017 21:55:52 GMT',
123+
41 verbose headers via: '1.1 varnish',
124+
41 verbose headers connection: 'keep-alive',
125+
41 verbose headers 'x-served-by': 'cache-sjc3135-SJC',
126+
41 verbose headers 'x-cache': 'MISS',
127+
41 verbose headers 'x-cache-hits': '0',
128+
41 verbose headers 'x-timer': 'S1500587752.324936,VS0,VE202',
129+
41 verbose headers vary: 'Accept-Encoding, Accept' }
130+
42 verbose request invalidating /Users/jenan/.npm/registry.npmjs.org/react-stripe-elements on PUT
131+
43 error publish Failed PUT 403
132+
44 verbose stack Error: "You cannot publish over the previously published version 0.0.4." : react-stripe-elements
133+
44 verbose stack at makeError (/Users/jenan/.nvm/versions/node/v6.11.1/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:302:12)
134+
44 verbose stack at CachingRegistryClient.<anonymous> (/Users/jenan/.nvm/versions/node/v6.11.1/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:290:14)
135+
44 verbose stack at Request._callback (/Users/jenan/.nvm/versions/node/v6.11.1/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:210:14)
136+
44 verbose stack at Request.self.callback (/Users/jenan/.nvm/versions/node/v6.11.1/lib/node_modules/npm/node_modules/request/request.js:187:22)
137+
44 verbose stack at emitTwo (events.js:106:13)
138+
44 verbose stack at Request.emit (events.js:191:7)
139+
44 verbose stack at Request.<anonymous> (/Users/jenan/.nvm/versions/node/v6.11.1/lib/node_modules/npm/node_modules/request/request.js:1048:10)
140+
44 verbose stack at emitOne (events.js:96:13)
141+
44 verbose stack at Request.emit (events.js:188:7)
142+
44 verbose stack at IncomingMessage.<anonymous> (/Users/jenan/.nvm/versions/node/v6.11.1/lib/node_modules/npm/node_modules/request/request.js:969:12)
143+
45 verbose statusCode 403
144+
46 verbose pkgid react-stripe-elements
145+
47 verbose cwd /Users/jenan/stripe/react-stripe-elements
146+
48 error Darwin 16.7.0
147+
49 error argv "/Users/jenan/.nvm/versions/node/v6.11.1/bin/node" "/Users/jenan/.nvm/versions/node/v6.11.1/bin/npm" "publish"
148+
50 error node v6.11.1
149+
51 error npm v3.10.10
150+
52 error code E403
151+
53 error "You cannot publish over the previously published version 0.0.4." : react-stripe-elements
152+
54 error If you need help, you may report this error at:
153+
54 error <https://github.com/npm/npm/issues>
154+
55 verbose exit [ 1, true ]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-stripe-elements",
3-
"version": "0.0.4",
3+
"version": "0.0.5",
44
"description": "",
55
"main": "./lib/index.js",
66
"module": "es/index.js",

0 commit comments

Comments
 (0)