Skip to content

Commit

Permalink
refactor/rename package to react-recaptcha-x
Browse files Browse the repository at this point in the history
  • Loading branch information
antokara committed Jun 23, 2019
1 parent 391ca60 commit b6184f0
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 25 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# react-recaptcha-v3-v2
# react-recaptcha-x

a React reCAPTCHA version 3 and version 2 (checkbox) component in one.

Expand All @@ -22,7 +22,7 @@ a React reCAPTCHA version 3 and version 2 (checkbox) component in one.

### installation

`$npm install react-recaptcha-v3-v2 --save`
`$npm install react-recaptcha-x --save`

### simple typescript example

Expand All @@ -35,7 +35,7 @@ import {
ReCaptchaV3,
TReCaptchaV2Callback,
TReCaptchaV3Callback
} from 'react-recaptcha-v3-v2';
} from 'react-recaptcha-x';

const v2Callback: TReCaptchaV2Callback = (
token: string | false | Error
Expand Down Expand Up @@ -89,7 +89,7 @@ import {
ReCaptchaProvider,
ReCaptchaV2,
ReCaptchaV3
} from 'react-recaptcha-v3-v2';
} from 'react-recaptcha-x';

const v2Callback = token => {
if (typeof token === 'string') {
Expand Down Expand Up @@ -180,7 +180,7 @@ It is responsible for injecting the required Javascript Script Tag, CSS Style Ta

1. `$cd examples/typescript`
1. `$npm install`
1. `$npm link react-recaptcha-v3-v2`
1. `$npm link react-recaptcha-x`
1. create `.env` file with your reCAPTCHA key(s) using `.env.example` as a template
1. `$npm start`
1. open browser to `http://locahost:9001`
Expand All @@ -189,7 +189,7 @@ It is responsible for injecting the required Javascript Script Tag, CSS Style Ta

1. `$cd examples/javascript`
1. `$npm install`
1. `$npm link react-recaptcha-v3-v2`
1. `$npm link react-recaptcha-x`
1. create `.env` file with your reCAPTCHA key(s) using `.env.example` as a template
1. `$npm start`
1. open browser to `http://locahost:9001`
Expand Down
6 changes: 3 additions & 3 deletions dev/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "react-recaptcha-v3-v2-dev-development",
"name": "react-recaptcha-x-dev-development",
"version": "1.0.0",
"description": "dev example of a React component for Google's reCAPTCHA v3 with v2 fallback",
"private": true,
Expand All @@ -13,9 +13,9 @@
"email": "[email protected]",
"url": "https://antokara.me"
},
"homepage": "https://github.com/antokara/react-recaptcha-v3-v2",
"homepage": "https://github.com/antokara/react-recaptcha-x",
"bugs": {
"url": "https://github.com/antokara/react-recaptcha-v3-v2/issues"
"url": "https://github.com/antokara/react-recaptcha-x/issues"
},
"license": "MIT",
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/javascript/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
ReCaptchaProvider,
ReCaptchaV2,
ReCaptchaV3
} from 'react-recaptcha-v3-v2';
} from 'react-recaptcha-x';

/**
* the main component of our javascript example application
Expand Down
6 changes: 3 additions & 3 deletions examples/javascript/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "react-recaptcha-v3-v2-js-example",
"name": "react-recaptcha-x-js-example",
"version": "1.0.0",
"description": "javascript example of using the React component for Google's reCAPTCHA v3 with v2 fallback",
"private": true,
Expand All @@ -12,9 +12,9 @@
"email": "[email protected]",
"url": "https://antokara.me"
},
"homepage": "https://github.com/antokara/react-recaptcha-v3-v2",
"homepage": "https://github.com/antokara/react-recaptcha-x",
"bugs": {
"url": "https://github.com/antokara/react-recaptcha-v3-v2/issues"
"url": "https://github.com/antokara/react-recaptcha-x/issues"
},
"license": "MIT",
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/typescript/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
ReCaptchaProvider,
ReCaptchaV2,
ReCaptchaV3
} from 'react-recaptcha-v3-v2';
} from 'react-recaptcha-x';

// app state
interface IState {
Expand Down
6 changes: 3 additions & 3 deletions examples/typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "react-recaptcha-v3-v2-ts-example",
"name": "react-recaptcha-x-ts-example",
"version": "1.0.0",
"description": "typescript example of using the React component for Google's reCAPTCHA v3 with v2 fallback",
"private": true,
Expand All @@ -13,9 +13,9 @@
"email": "[email protected]",
"url": "https://antokara.me"
},
"homepage": "https://github.com/antokara/react-recaptcha-v3-v2",
"homepage": "https://github.com/antokara/react-recaptcha-x",
"bugs": {
"url": "https://github.com/antokara/react-recaptcha-v3-v2/issues"
"url": "https://github.com/antokara/react-recaptcha-x/issues"
},
"license": "MIT",
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions examples/typescript/tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"quotemark": [true, "single", "jsx-double"],
// @see https://github.com/prettier/prettier/issues/1565
"newline-per-chained-call": false,
// because we perform a `$npm link react-recaptcha-v3-v2`,
// because we perform a `$npm link react-recaptcha-x`,
// this package will NOT be listed in the dependencies of package.json
"no-implicit-dependencies": [true, ["react-recaptcha-v3-v2"]],
"no-implicit-dependencies": [true, ["react-recaptcha-x"]],
// @see https://github.com/ajafff/tslint-consistent-codestyle/blob/master/docs/naming-convention.md
"naming-convention": [
true,
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "react-recaptcha-v3-v2",
"name": "react-recaptcha-x",
"version": "1.0.0-beta.0",
"description": "a React component for Google's reCAPTCHA v3 and v2 checkbox",
"main": "./dist/index.js",
Expand All @@ -24,13 +24,13 @@
"email": "[email protected]",
"url": "https://antokara.me"
},
"homepage": "https://github.com/antokara/react-recaptcha-v3-v2",
"homepage": "https://github.com/antokara/react-recaptcha-x",
"bugs": {
"url": "https://github.com/antokara/react-recaptcha-v3-v2/issues"
"url": "https://github.com/antokara/react-recaptcha-x/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/antokara/react-recaptcha-v3-v2.git"
"url": "https://github.com/antokara/react-recaptcha-x.git"
},
"license": "MIT",
"devDependencies": {
Expand Down

0 comments on commit b6184f0

Please sign in to comment.