New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@eclipse-glsp/cli

Package Overview
Dependencies
Maintainers
6
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eclipse-glsp/cli - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0-next.193f7f2.151

5

lib/commands/release/common.d.ts

@@ -31,3 +31,3 @@ /********************************************************************************

export interface Component {
type: typeof Component.CLI_CHOICES[number];
type: (typeof Component.CLI_CHOICES)[number];
releaseRepo: ReleaseRepository;

@@ -52,3 +52,3 @@ githubRepo: string;

}
export type ReleaseType = typeof ReleaseType.CLI_CHOICES[number];
export type ReleaseType = (typeof ReleaseType.CLI_CHOICES)[number];
export declare function checkoutAndCd(options: ReleaseOptions): string;

@@ -64,3 +64,2 @@ export declare function commitAndTag(version: string, repositoryPath: string): string;

}[]): void;
export declare function updateServerConfig(configFile: string, version: string, isSnapShot: boolean): void;
export declare function asMvnVersion(version: string): string;

@@ -67,0 +66,0 @@ export declare function checkIfNpmVersionIsNew(pckgName: string, newVersion: string): Promise<void>;

8

lib/commands/release/common.js

@@ -44,3 +44,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.updateLernaForDryRun = exports.checkJavaServerVersion = exports.isExistingMavenVersion = exports.checkIfMavenVersionExists = exports.checkIfNpmVersionIsNew = exports.asMvnVersion = exports.updateServerConfig = exports.updateVersion = exports.upgradeCommand = exports.yarnInstall = exports.lernaSetVersion = exports.publish = exports.commitAndTag = exports.checkoutAndCd = exports.ReleaseType = exports.Component = exports.VERDACCIO_REGISTRY = void 0;
exports.updateLernaForDryRun = exports.checkJavaServerVersion = exports.isExistingMavenVersion = exports.checkIfMavenVersionExists = exports.checkIfNpmVersionIsNew = exports.asMvnVersion = exports.updateVersion = exports.upgradeCommand = exports.yarnInstall = exports.lernaSetVersion = exports.publish = exports.commitAndTag = exports.checkoutAndCd = exports.ReleaseType = exports.Component = exports.VERDACCIO_REGISTRY = void 0;
const fs = __importStar(require("fs"));

@@ -237,8 +237,2 @@ const node_fetch_1 = __importDefault(require("node-fetch"));

exports.updateVersion = updateVersion;
function updateServerConfig(configFile, version, isSnapShot) {
logger_1.LOGGER.info('Update example server download config');
sh.exec(`jq '.isSnapShot=${isSnapShot}| .version="${version}"' ${configFile} > temp.json`, (0, command_util_1.getShellConfig)());
sh.exec(`mv temp.json ${configFile}`, (0, command_util_1.getShellConfig)());
}
exports.updateServerConfig = updateServerConfig;
function asMvnVersion(version) {

@@ -245,0 +239,0 @@ logger_1.LOGGER.debug(`Convert to maven conform version: ${version}`);

@@ -43,2 +43,3 @@ "use strict";

const sh = __importStar(require("shelljs"));
const command_util_1 = require("../../util/command-util");
const logger_1 = require("../../util/logger");

@@ -51,3 +52,3 @@ const common_1 = require("./common");

REPO_ROOT = (0, common_1.checkoutAndCd)(options);
updateExternalGLSPDependencies(options.version);
updateDownloadServerScript(options.version);
generateChangeLog();

@@ -63,6 +64,9 @@ (0, common_1.lernaSetVersion)(REPO_ROOT, options.version);

exports.releaseClient = releaseClient;
function updateExternalGLSPDependencies(version) {
logger_1.LOGGER.info('Update external GLSP dependencies (workflow example server)');
sh.cd(REPO_ROOT);
(0, common_1.updateVersion)({ name: '@eclipse-glsp-examples/workflow-server-bundled', version });
async function updateDownloadServerScript(version) {
logger_1.LOGGER.info('Update example server download config');
sh.cd(`${REPO_ROOT}/examples/workflow-standalone/scripts`);
const configFile = 'config.json';
logger_1.LOGGER.info('Update example server download config');
sh.exec(`jq '.version="${version}"' ${configFile} > temp.json`, (0, command_util_1.getShellConfig)());
sh.exec(`mv temp.json ${configFile}`, (0, command_util_1.getShellConfig)());
}

@@ -69,0 +73,0 @@ function generateChangeLog() {

{
"name": "@eclipse-glsp/cli",
"version": "2.0.0",
"version": "2.1.0-next.193f7f2.151+193f7f2",
"description": "CLI Tooling & scripts for GLSP components",

@@ -52,3 +52,3 @@ "keywords": [

"devDependencies": {
"@eclipse-glsp/config": "~2.0.0",
"@eclipse-glsp/config": "2.1.0-next.193f7f2.151+193f7f2",
"@types/glob": "^8.1.0",

@@ -63,3 +63,3 @@ "@types/node-fetch": "^2.6.6",

},
"gitHead": "de11704de0f39591d2a991c3956df4e0ce88d451"
"gitHead": "193f7f2a715e84374421e7aee59ecfbb2f55280f"
}

@@ -46,3 +46,3 @@ /********************************************************************************

export interface Component {
type: typeof Component.CLI_CHOICES[number];
type: (typeof Component.CLI_CHOICES)[number];
releaseRepo: ReleaseRepository;

@@ -118,3 +118,3 @@ githubRepo: string;

export type ReleaseType = typeof ReleaseType.CLI_CHOICES[number];
export type ReleaseType = (typeof ReleaseType.CLI_CHOICES)[number];

@@ -249,8 +249,2 @@ export function checkoutAndCd(options: ReleaseOptions): string {

export function updateServerConfig(configFile: string, version: string, isSnapShot: boolean): void {
LOGGER.info('Update example server download config');
sh.exec(`jq '.isSnapShot=${isSnapShot}| .version="${version}"' ${configFile} > temp.json`, getShellConfig());
sh.exec(`mv temp.json ${configFile}`, getShellConfig());
}
export function asMvnVersion(version: string): string {

@@ -257,0 +251,0 @@ LOGGER.debug(`Convert to maven conform version: ${version}`);

@@ -17,13 +17,5 @@ /********************************************************************************

import * as sh from 'shelljs';
import { getShellConfig } from '../../util/command-util';
import { LOGGER } from '../../util/logger';
import {
checkoutAndCd,
commitAndTag,
lernaSetVersion,
publish,
ReleaseOptions,
updateLernaForDryRun,
updateVersion,
yarnInstall
} from './common';
import { checkoutAndCd, commitAndTag, lernaSetVersion, publish, ReleaseOptions, updateLernaForDryRun, yarnInstall } from './common';

@@ -36,3 +28,3 @@ let REPO_ROOT: string;

REPO_ROOT = checkoutAndCd(options);
updateExternalGLSPDependencies(options.version);
updateDownloadServerScript(options.version);
generateChangeLog();

@@ -48,6 +40,9 @@ lernaSetVersion(REPO_ROOT, options.version);

function updateExternalGLSPDependencies(version: string): void {
LOGGER.info('Update external GLSP dependencies (workflow example server)');
sh.cd(REPO_ROOT);
updateVersion({ name: '@eclipse-glsp-examples/workflow-server-bundled', version });
async function updateDownloadServerScript(version: string): Promise<void> {
LOGGER.info('Update example server download config');
sh.cd(`${REPO_ROOT}/examples/workflow-standalone/scripts`);
const configFile = 'config.json';
LOGGER.info('Update example server download config');
sh.exec(`jq '.version="${version}"' ${configFile} > temp.json`, getShellConfig());
sh.exec(`mv temp.json ${configFile}`, getShellConfig());
}

@@ -54,0 +49,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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