Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

reaction-cli

Package Overview
Dependencies
Maintainers
1
Versions
161
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reaction-cli - npm Package Compare versions

Comparing version 0.19.1 to 0.20.0

dist/commands/account/forgot-password.js

12

dist/commands/index.js

@@ -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 @@

2

dist/main.js

@@ -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() {

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc