@stanlemon/react-couchdb-authentication
Advanced tools
Comparing version 0.4.1 to 0.5.0
# Changelog | ||
## 4.0.1 (July 12, 2020) | ||
## 0.5.0 (December 29, 2020) | ||
* Dependency updates and cleanup. | ||
## 0.4.1 (July 12, 2020) | ||
* `<Login />` and `<SignUp />` no longer require properties other than `component`, making them easier to use in contexts where `scaffold` is set to `false`. | ||
@@ -6,0 +10,0 @@ |
@@ -17,3 +17,3 @@ "use strict"; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -20,0 +20,0 @@ return result; |
@@ -17,3 +17,3 @@ "use strict"; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -48,2 +48,3 @@ return result; | ||
const SignUpView_1 = require("./SignUpView"); | ||
const buffer_1 = require("buffer"); | ||
const ROUTE_LOGIN = "login"; | ||
@@ -164,3 +165,3 @@ const ROUTE_SIGNUP = "signup"; | ||
getUserDb(username) { | ||
const buffer = Buffer.from(username); | ||
const buffer = buffer_1.Buffer.from(username); | ||
const hexUsername = buffer.toString("hex"); | ||
@@ -167,0 +168,0 @@ return "userdb-" + hexUsername; |
@@ -17,3 +17,3 @@ "use strict"; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -20,0 +20,0 @@ return result; |
@@ -17,3 +17,3 @@ "use strict"; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -46,5 +46,5 @@ return result; | ||
React.createElement("p", null, | ||
React.createElement("a", { href: "#", id: "navigate-to-sign-up", onClick: clickToSignUp }, "Or sign up for a new account.")))); | ||
React.createElement("a", { href: "#", "data-testid": "navigate-to-sign-up", onClick: clickToSignUp }, "Or sign up for a new account.")))); | ||
} | ||
exports.LoginView = LoginView; | ||
//# sourceMappingURL=LoginView.js.map |
@@ -17,3 +17,3 @@ "use strict"; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -20,0 +20,0 @@ return result; |
@@ -17,3 +17,3 @@ "use strict"; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -20,0 +20,0 @@ return result; |
@@ -17,3 +17,3 @@ "use strict"; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -20,0 +20,0 @@ return result; |
@@ -10,3 +10,3 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
@@ -13,0 +13,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -17,3 +17,3 @@ "use strict"; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -20,0 +20,0 @@ return result; |
{ | ||
"name": "@stanlemon/react-couchdb-authentication", | ||
"version": "0.4.1", | ||
"version": "0.5.0", | ||
"description": "React component for authenticating against a CouchDB user db and syncing it locally with PouchDB.", | ||
@@ -21,3 +21,3 @@ "keywords": [ | ||
"lint": "eslint --ext js,jsx,ts,tsx ./src/ ./example/", | ||
"example": "parcel --out-dir ./example/out/ ./example/index.html" | ||
"example": "webpack serve" | ||
}, | ||
@@ -45,9 +45,2 @@ "author": "Stan Lemon <stanlemon@users.noreply.github.com>", | ||
], | ||
"setupFilesAfterEnv": [ | ||
"jest-enzyme" | ||
], | ||
"testEnvironment": "enzyme", | ||
"testEnvironmentOptions": { | ||
"enzymeAdapter": "react16" | ||
}, | ||
"testPathIgnorePatterns": [ | ||
@@ -62,44 +55,44 @@ "/node_modules/", | ||
"peerDependencies": { | ||
"pouchdb": "^7.2.1", | ||
"react": "^16.13.1" | ||
"pouchdb": "^7.2.2", | ||
"react": "^17.0.1" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.10.4", | ||
"@babel/preset-env": "^7.10.4", | ||
"@babel/preset-react": "^7.10.4", | ||
"@babel/preset-typescript": "^7.10.4", | ||
"@babel/core": "^7.12.10", | ||
"@babel/preset-env": "^7.12.11", | ||
"@babel/preset-react": "^7.12.10", | ||
"@babel/preset-typescript": "^7.12.7", | ||
"@testing-library/jest-dom": "^5.11.6", | ||
"@testing-library/react": "^11.2.2", | ||
"@types/async-retry": "^1.4.2", | ||
"@types/enzyme": "^3.10.5", | ||
"@types/jest": "^26.0.4", | ||
"@types/jest": "^26.0.19", | ||
"@types/pouchdb": "^6.4.0", | ||
"@types/react": "^16.9.42", | ||
"@types/webpack-env": "^1.15.2", | ||
"@typescript-eslint/eslint-plugin": "^3.6.0", | ||
"@typescript-eslint/parser": "^3.6.0", | ||
"babel-eslint": "^10.1.0", | ||
"babel-jest": "^26.1.0", | ||
"enzyme": "^3.11.0", | ||
"enzyme-adapter-react-16": "^1.15.2", | ||
"eslint": "^7.4.0", | ||
"eslint-config-prettier": "^6.11.0", | ||
"eslint-plugin-jest": "^23.18.0", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"eslint-plugin-react": "^7.20.3", | ||
"isomorphic-fetch": "^2.2.1", | ||
"jest": "^26.1.0", | ||
"jest-environment-enzyme": "^7.1.2", | ||
"jest-enzyme": "^7.1.2", | ||
"parcel": "^1.12.4", | ||
"pouchdb": "^7.2.1", | ||
"pouchdb-adapter-memory": "^7.2.1", | ||
"prettier": "^2.0.5", | ||
"react": "^16.13.1", | ||
"react-dom": "^16.13.1", | ||
"react-test-renderer": "^16.13.1", | ||
"typescript": "^3.9.6", | ||
"wait-for-expect": "^3.0.2" | ||
"@types/react": "^17.0.0", | ||
"@types/webpack-env": "^1.16.0", | ||
"@typescript-eslint/eslint-plugin": "^4.11.1", | ||
"@typescript-eslint/parser": "^4.11.1", | ||
"babel-jest": "^26.6.3", | ||
"babel-loader": "^8.2.2", | ||
"eslint": "^7.16.0", | ||
"eslint-config-prettier": "^7.1.0", | ||
"eslint-plugin-jest": "^24.1.3", | ||
"eslint-plugin-prettier": "^3.3.0", | ||
"eslint-plugin-react": "^7.21.5", | ||
"html-webpack-plugin": "^4.5.0", | ||
"isomorphic-fetch": "^3.0.0", | ||
"jest": "^26.6.3", | ||
"pouchdb": "^7.2.2", | ||
"pouchdb-adapter-memory": "^7.2.2", | ||
"prettier": "^2.2.1", | ||
"react": "^17.0.1", | ||
"react-dom": "^17.0.1", | ||
"react-test-renderer": "^17.0.1", | ||
"typescript": "^4.1.3", | ||
"webpack": "^5.11.1", | ||
"webpack-cli": "^4.3.0", | ||
"webpack-dev-server": "^3.11.1" | ||
}, | ||
"dependencies": { | ||
"async-retry": "^1.3.1" | ||
"async-retry": "^1.3.1", | ||
"buffer": "^6.0.3" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
69329
33
41
874
4
+ Addedbuffer@^6.0.3
+ Addedbuffer@6.0.3(transitive)
+ Addedreact@17.0.2(transitive)
- Removedprop-types@15.8.1(transitive)
- Removedreact@16.14.0(transitive)
- Removedreact-is@16.13.1(transitive)