Skip to content

Commit

Permalink
Merge branch 'alpha' into password-reset
Browse files Browse the repository at this point in the history
  • Loading branch information
dblythy authored Jan 29, 2025
2 parents 0d8a4a2 + a68f71b commit 493fcf2
Show file tree
Hide file tree
Showing 4 changed files with 152 additions and 35 deletions.
170 changes: 139 additions & 31 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@parse/push-adapter": "6.8.0",
"bcryptjs": "2.4.3",
"body-parser": "1.20.3",
"commander": "12.1.0",
"commander": "13.0.0",
"cors": "2.8.5",
"deepcopy": "2.1.0",
"express": "4.21.2",
Expand Down Expand Up @@ -67,7 +67,7 @@
},
"devDependencies": {
"@actions/core": "1.11.1",
"@apollo/client": "3.12.7",
"@apollo/client": "3.12.8",
"@babel/cli": "7.26.4",
"@babel/core": "7.26.7",
"@babel/plugin-proposal-object-rest-spread": "7.20.7",
Expand Down
8 changes: 7 additions & 1 deletion spec/CLI.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
const commander = require('../lib/cli/utils/commander').default;
let commander;
const definitions = require('../lib/cli/definitions/parse-server').default;
const liveQueryDefinitions = require('../lib/cli/definitions/parse-live-query-server').default;
const path = require('path');
Expand Down Expand Up @@ -28,6 +28,12 @@ const testDefinitions = {
};

describe('commander additions', () => {
beforeEach(() => {
const command = require('../lib/cli/utils/commander').default;
commander = new command.constructor();
commander.storeOptionsAsProperties();
commander.allowExcessArguments();
});
afterEach(done => {
commander.options = [];
delete commander.arg0;
Expand Down
5 changes: 4 additions & 1 deletion src/cli/utils/commander.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,5 +136,8 @@ Command.prototype.getOptions = function () {
}, {});
};

export default new Command().storeOptionsAsProperties();
const commander = new Command()
commander.storeOptionsAsProperties();
commander.allowExcessArguments();
export default commander;
/* eslint-enable no-console */

0 comments on commit 493fcf2

Please sign in to comment.