Skip to content

Commit

Permalink
feat: change password
Browse files Browse the repository at this point in the history
  • Loading branch information
@jotadeveloper authored and sergiohgz committed Jul 31, 2019
1 parent b0e68c3 commit de0a341
Show file tree
Hide file tree
Showing 16 changed files with 2,384 additions and 723 deletions.
18 changes: 6 additions & 12 deletions plugins/auth-memory/.babelrc
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
{
"presets": [
[
"env",
{
"targets": {
"node": "6"
}
}
],
"flow"
]
}
"presets": [["env", {
"targets": {
"node": "6"
}
}], "flow"]
}
11 changes: 8 additions & 3 deletions plugins/auth-memory/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
node_modules
coverage/
lib/
.nyc_output
tests-report/
flow-typed/
fixtures/
fixtures/
.flowconfig
.prettierrc
.yarnrc
jest*
.vscode/
.circleci/
.eslintrc
46 changes: 46 additions & 0 deletions plugins/auth-memory/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"plugins": [
"flowtype",
"jest"
],
"extends": [
"eslint:recommended",
"google",
"plugin:flowtype/recommended",
"plugin:jest/recommended",
"plugin:prettier/recommended"
],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 7,
"ecmaFeatures": {
"impliedStrict": true,
"jsx": true
}
},
"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true
},
"globals": {
"__APP_VERSION__": true
},
"rules": {
"prettier/prettier": ["error", null, "@prettier"],
"no-useless-escape": 2,
"handle-callback-err": 2,
"no-fallthrough": 2,
"no-new-require": 2,
"max-len": [2, 160],
"camelcase": 0,
"require-jsdoc": 0,
"valid-jsdoc": 0,
"prefer-spread": 1,
"prefer-rest-params": 1,
"linebreak-style": 0,
"quote-props":["error", "as-needed"]
}
}
83 changes: 0 additions & 83 deletions plugins/auth-memory/.eslintrc.yml

This file was deleted.

2 changes: 1 addition & 1 deletion plugins/auth-memory/.flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ node_modules/@verdaccio/types/lib/
[lints]

[options]
suppress_comment= \\(.\\|\n\\)*\\$FlowFixMe
suppress_comment= \\(.\\|\n\\)*\\$FlowFixMe
7 changes: 1 addition & 6 deletions plugins/auth-memory/.gitignore
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
npm-debug.log
.DS_Store
package-lock.json

_storage/
lib/
node_modules/
coverage/

# Istanbul
.nyc*
tests-report

# IDE
.vscode/*
.idea/
*.log
*.tar
*.gz
*.tmp-*
coverage/
12 changes: 12 additions & 0 deletions plugins/auth-memory/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"useTabs": false,
"printWidth": 160,
"tabWidth": 2,
"singleQuote": true,
"requirePragma": true,
"bracketSpacing": true,
"jsxBracketSameLine": false,
"trailingComma": "es5",
"semi": true,
"parser": "flow"
}
59 changes: 59 additions & 0 deletions plugins/auth-memory/flow-typed/npm/http-errors_v1.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
// flow-typed signature: 573c576fe34eb3c3c65dd7a9c90a46d2
// flow-typed version: b43dff3e0e/http-errors_v1.x.x/flow_>=v0.25.x

declare module 'http-errors' {
declare class SpecialHttpError extends HttpError {
constructor(): SpecialHttpError;
}
declare class HttpError extends Error {
expose: bool;
message: string;
status: number;
statusCode: number;
}
declare module.exports: {
(status?: number, message?: string, props?: Object): HttpError;
HttpError: typeof HttpError;
BadRequest: typeof SpecialHttpError;
Unauthorized: typeof SpecialHttpError;
PaymentRequired: typeof SpecialHttpError;
Forbidden: typeof SpecialHttpError;
NotFound: typeof SpecialHttpError;
MethodNotAllowed: typeof SpecialHttpError;
NotAcceptable: typeof SpecialHttpError;
ProxyAuthenticationRequired: typeof SpecialHttpError;
RequestTimeout: typeof SpecialHttpError;
Conflict: typeof SpecialHttpError;
Gone: typeof SpecialHttpError;
LengthRequired: typeof SpecialHttpError;
PreconditionFailed: typeof SpecialHttpError;
PayloadTooLarge: typeof SpecialHttpError;
URITooLong: typeof SpecialHttpError;
UnsupportedMediaType: typeof SpecialHttpError;
RangeNotStatisfiable: typeof SpecialHttpError;
ExpectationFailed: typeof SpecialHttpError;
ImATeapot: typeof SpecialHttpError;
MisdirectedRequest: typeof SpecialHttpError;
UnprocessableEntity: typeof SpecialHttpError;
Locked: typeof SpecialHttpError;
FailedDependency: typeof SpecialHttpError;
UnorderedCollection: typeof SpecialHttpError;
UpgradeRequired: typeof SpecialHttpError;
PreconditionRequired: typeof SpecialHttpError;
TooManyRequests: typeof SpecialHttpError;
RequestHeaderFieldsTooLarge: typeof SpecialHttpError;
UnavailableForLegalReasons: typeof SpecialHttpError;
InternalServerError: typeof SpecialHttpError;
NotImplemented: typeof SpecialHttpError;
BadGateway: typeof SpecialHttpError;
ServiceUnavailable: typeof SpecialHttpError;
GatewayTimeout: typeof SpecialHttpError;
HTTPVersionNotSupported: typeof SpecialHttpError;
VariantAlsoNegotiates: typeof SpecialHttpError;
InsufficientStorage: typeof SpecialHttpError;
LoopDetected: typeof SpecialHttpError;
BandwidthLimitExceeded: typeof SpecialHttpError;
NotExtended: typeof SpecialHttpError;
NetworkAuthenticationRequired: typeof SpecialHttpError;
}
}
Loading

0 comments on commit de0a341

Please sign in to comment.