Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Codeneos committed Aug 18, 2023
1 parent 9b1bc37 commit aeacbe5
Show file tree
Hide file tree
Showing 8 changed files with 297 additions and 484 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
"@types/fs-extra": "^9",
"@oclif/command": "1.8.16",
"@types/node": "^20",
"moment": ">=2.29.4",
"fs-extra": "9",
"js-force": "1.11.0",
"salesforce-alm": "^52",
Expand Down
8 changes: 4 additions & 4 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"jest": "^29.6.1",
"json-loader": "^0.5.7",
"log-symbols": "^4.0.0",
"moment": "^2.29.1",
"moment": "^2.29.4",
"shx": "^0.3.4",
"source-map-support": "^0.5.21",
"ts-jest": "^29.1.1",
Expand All @@ -78,11 +78,11 @@
"tsc-alias": "^1.6.7",
"tsconfig-paths-webpack-plugin": "^3.5.2",
"typescript": "5.1.6",
"webpack": "^5.72.1",
"webpack-cli": "^4.9.2",
"webpack": "^5.88.2",
"webpack-cli": "^5.1.4",
"webpack-env": "^0.8.0",
"webpack-glob-entry": "^2.1.1",
"webpack-merge": "^5.8.0",
"webpack-merge": "^5.9.0",
"webpack-node-externals": "^3.0.0"
},
"publisher": "curlybracket",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@
"@vlocode/util": "workspace:*",
"chalk": "^4.1.1",
"globby": "^11.0.4",
"luxon": "^3.1.0",
"luxon": "^3.4.0",
"memfs": "^3.2.2",
"minimatch": "^9.0.3",
"moment": "^2.29.1",
"moment": "^2.29.4",
"reflect-metadata": "^0.1.13",
"unique-names-generator": "^4.6.0"
},
Expand Down
4 changes: 3 additions & 1 deletion packages/omniscript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@
"@vlocode/salesforce": "workspace:*",
"@vlocode/util": "workspace:*",
"@vlocode/vlocity": "workspace:*",
"jsdom": "^20.0.0"
"jsdom": "^20.0.0",
"bufferutil": "^4.0.7",
"utf-8-validate": "^6.0.3"
},
"publisher": "curlybracket",
"gitHead": "f16fa9dcbf7ef17328047ecb07ab4a7e6a94140a"
Expand Down
4 changes: 2 additions & 2 deletions packages/vlocity-deploy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
"glob": "^7.1.7",
"js-yaml": "^4.1.0",
"jsdom": "^20.0.0",
"luxon": "^3.1.0",
"moment": "^2.29.1",
"luxon": "^3.4.0",
"moment": "^2.29.4",
"sass": "^1.59.3"
},
"publisher": "curlybracket",
Expand Down
28 changes: 22 additions & 6 deletions packages/vscode-extension/build/buildCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,18 +123,34 @@ export function mergeCommandContributions(packageJson: PackageJson, commands: Co
// Build menus
for (const menuInfo of command.menus || []) {
const menu = contributes.menus[menuInfo.menu] || (contributes.menus[menuInfo.menu] = []);
const when = menuInfo.when ?? command.when;
const commandWhen = command.when ? Array.isArray(command.when) ? command.when : [command.when] : undefined;
const menuEntryWhen = menuInfo.when ? Array.isArray(menuInfo.when) ? menuInfo.when : [menuInfo.when] : undefined;
const when: string[] = [];

if (menuEntryWhen && commandWhen) {
for (let mWhen of menuEntryWhen) {
mWhen = mWhen.includes('||') ? `(${mWhen})` : mWhen;
for (let cWhen of commandWhen) {
cWhen = cWhen.includes('||') ? `(${cWhen})` : cWhen;
if (mWhen == 'false' || cWhen == 'false') {
when.push(`false`);
}
when.push(`${cWhen} && ${mWhen}`);
}
}
} else if (menuEntryWhen) {
when.push(...menuEntryWhen)
} else if (commandWhen) {
when.push(...commandWhen)
}

const newMenuEntry = stripUndefined({
command: name,
group: command.group || menuInfo.group
});

if (when) {
if (Array.isArray(when)) {
menu.push(...when.map( when => ({ ...newMenuEntry, when: when.toString() }) ));
} else {
menu.push({ ...newMenuEntry, when: when.toString() });
}
menu.push(...when.map( when => ({ ...newMenuEntry, when: when.toString() }) ));
} else {
menu.push(newMenuEntry);
}
Expand Down
Loading

0 comments on commit aeacbe5

Please sign in to comment.