Socket
Book a DemoInstallSign in
Socket

@eclipse-che/che-devworkspace-generator

Package Overview
Dependencies
Maintainers
4
Versions
249
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eclipse-che/che-devworkspace-generator - npm Package Compare versions

Comparing version

to
7.105.0-next-58c4e02

6

lib/generate.d.ts

@@ -10,3 +10,9 @@ /**********************************************************************

***********************************************************************/
import { V230Devfile, V230DevfileMetadata } from '@devfile/api';
import { DevfileContext } from './api/devfile-context';
export type DevfileLike = V230Devfile & {
metadata: V230DevfileMetadata & {
generateName?: string;
};
};
export declare const DEVWORKSPACE_METADATA_ANNOTATION = "dw.metadata.annotations";

@@ -13,0 +19,0 @@ export declare class Generate {

9

package.json
{
"name": "@eclipse-che/che-devworkspace-generator",
"version": "7.105.0-next-4ba0a41",
"version": "7.105.0-next-58c4e02",
"private": false,

@@ -44,9 +44,8 @@ "description": "Generates DevWorkspaces by transforming existing devfiles",

"@devfile/api": "2.3.0-1747843475",
"axios": "^1.8.3",
"fs-extra": "^11.2.0",
"inversify": "^7.1.0",
"lodash": "^4.17.21",
"js-yaml": "^4.0.0",
"jsonc-parser": "^3.0.0",
"jsonschema": "^1.4.1",
"lodash": "^4.17.21",
"reflect-metadata": "^0.2.2"

@@ -56,2 +55,3 @@ },

"@types/jest": "^29.5.14",
"axios": "^1.8.3",
"eslint": "^9.5.0",

@@ -66,2 +66,5 @@ "if-env": "^1.0.4",

},
"peerDependencies": {
"axios": "^1.8.3"
},
"prettier": {

@@ -68,0 +71,0 @@ "printWidth": 120,

@@ -27,3 +27,3 @@ /**********************************************************************

type DevfileLike = V230Devfile & {
export type DevfileLike = V230Devfile & {
metadata: V230DevfileMetadata & {

@@ -76,3 +76,3 @@ generateName?: string;

): Promise<DevfileContext> {
const devfile = jsYaml.load(devfileContent);
const devfile = jsYaml.load(devfileContent) as DevfileLike;

@@ -83,3 +83,3 @@ // sets the suffix to the devfile name

// devfile of the editor
const editorDevfile = jsYaml.load(editorContent);
const editorDevfile = jsYaml.load(editorContent) as DevfileLike;

@@ -86,0 +86,0 @@ // transform it into a devWorkspace template

@@ -13,3 +13,3 @@ /**********************************************************************

import * as fs from 'fs-extra';
import { Generate, DEVWORKSPACE_METADATA_ANNOTATION } from './generate';
import { Generate, DEVWORKSPACE_METADATA_ANNOTATION, DevfileLike } from './generate';
import { DevfileSchemaValidator } from './devfile-schema/devfile-schema-validator';

@@ -75,3 +75,3 @@ import * as jsYaml from 'js-yaml';

// load content
const devfileParsed = jsYaml.load(devfileContent);
const devfileParsed = jsYaml.load(devfileContent) as DevfileLike;

@@ -111,3 +111,3 @@ if (!devfileParsed.attributes) {

const jsYamlDevfileContent = jsYaml.load(devfileContent);
const jsYamlDevfileContent = jsYaml.load(devfileContent) as DevfileLike;
const schemaVersion = jsYamlDevfileContent.schemaVersion;

@@ -114,0 +114,0 @@ if (!schemaVersion) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet