reaction-cli
Advanced tools
Comparing version 0.19.1 to 0.20.0
@@ -7,2 +7,14 @@ 'use strict'; | ||
var _account = require('./account'); | ||
Object.keys(_account).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function get() { | ||
return _account[key]; | ||
} | ||
}); | ||
}); | ||
var _apps = require('./apps'); | ||
@@ -9,0 +21,0 @@ |
@@ -137,2 +137,4 @@ #!/usr/bin/env node | ||
}); | ||
}).command('account', 'Manage your Reaction Platform account', function (options) { | ||
return (0, _commands.account)(options); | ||
}).command('keys', 'Manage your SSH keys', function (options) { | ||
@@ -139,0 +141,0 @@ (0, _utils.checkDeps)(['platform'], function () { |
@@ -130,2 +130,32 @@ 'use strict'; | ||
}, { | ||
key: 'forgotPassword', | ||
value: function forgotPassword(_ref3) { | ||
var email = _ref3.email; | ||
if (!email) { | ||
_logger2.default.error('\Old password and new password required'); | ||
process.exit(1); | ||
} | ||
return this.fetch('\n mutation userForgotPassword($email: String!, $cli: Boolean) {\n userForgotPassword(email: $email, cli: $cli) {\n success\n }\n }\n ', { email: email, cli: true }); | ||
} | ||
}, { | ||
key: 'resetPassword', | ||
value: function resetPassword(_ref4) { | ||
var token = _ref4.token, | ||
password = _ref4.password; | ||
if (!token) { | ||
_logger2.default.error('\Must provide a reset token to change a password. Did you mean "forgot-password"?'); | ||
process.exit(1); | ||
} | ||
if (!password) { | ||
_logger2.default.error('\Old password and new password required'); | ||
process.exit(1); | ||
} | ||
return this.fetch('\n mutation resetPassword($newPassword: HashedPassword!, $token: String!) {\n resetPassword(newPassword: $newPassword, token: $token) {\n id\n token\n tokenExpires\n }\n }\n ', { token: token, newPassword: (0, _hash_password2.default)(password) }); | ||
} | ||
}, { | ||
key: 'whoami', | ||
@@ -132,0 +162,0 @@ value: function whoami() { |
{ | ||
"name": "reaction-cli", | ||
"version": "0.19.1", | ||
"version": "0.20.0", | ||
"description": "A command line tool for Reaction Commerce", | ||
@@ -45,3 +45,3 @@ "main": "./dist/main.js", | ||
"babel-root-slash-import": "^3.1.0", | ||
"eslint": "^4.9.0", | ||
"eslint": "^4.10.0", | ||
"eslint-plugin-babel": "^4.1.2", | ||
@@ -48,0 +48,0 @@ "rimraf": "^2.6.2", |
@@ -44,2 +44,3 @@ # reaction-cli | ||
logout * Logout of Reaction | ||
account * Manage your Reaction Platform account | ||
apps * Manage your app deployments | ||
@@ -46,0 +47,0 @@ deploy * Deploy an app |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
189703
67
4203
85