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

@eclipse-che/devfile-converter

Package Overview
Dependencies
Maintainers
5
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eclipse-che/devfile-converter - npm Package Compare versions

Comparing version 0.0.1-ba9d381 to 0.0.1-eb20432

12

lib/converter/devfile-converter.js

@@ -309,3 +309,4 @@ "use strict";

if (commandV1.name) {
devfileV2Command.id = commandV1.name;
// the id can't have spaces
devfileV2Command.id = commandV1.name.replace(/\s+/g, '-').toLowerCase();
}

@@ -315,2 +316,6 @@ if (commandV1.actions && commandV1.actions[0].type === 'exec') {

var action = commandV1.actions[0];
// label is the same as name
if (commandV1.name) {
devfileV2Command.exec.label = commandV1.name;
}
if (action.command) {

@@ -336,2 +341,5 @@ devfileV2Command.exec.commandLine = action.command;

if (commandV2.exec) {
if (commandV2.exec.label) {
devfileV1Command.name = commandV2.exec.label;
}
var devfileAction = {};

@@ -693,3 +701,3 @@ if (commandV2.exec.commandLine) {

devfileV1.components.push({
id: "".concat(recommendation.replaceAll('.', '/'), "/latest"),
id: "".concat(recommendation.replace(/\./g, '/'), "/latest"),
type: 'chePlugin'

@@ -696,0 +704,0 @@ });

2

package.json
{
"name": "@eclipse-che/devfile-converter",
"version": "0.0.1-ba9d381",
"version": "0.0.1-eb20432",
"description": "Convert devfile v1 to v2 or v2 to v1",

@@ -5,0 +5,0 @@ "publishConfig": {

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