launcher-client
Advanced tools
Comparing version 0.0.1 to 0.0.2
export declare class Locations { | ||
static joinPath(...parts: string[]): string; | ||
static joinWithSlash(start: string, end: string): string; | ||
static joinWithSlash(start: string, end?: string): string; | ||
static createWebsocketUrl(url: string): string; | ||
} |
@@ -23,5 +23,2 @@ "use strict"; | ||
Locations.joinWithSlash = function (start, end) { | ||
if (!start || !start.length) { | ||
return end; | ||
} | ||
if (!end || !end.length) { | ||
@@ -37,6 +34,6 @@ return start; | ||
} | ||
if (slashes == 2) { | ||
if (slashes === 2) { | ||
return start + end.substring(1); | ||
} | ||
if (slashes == 1) { | ||
if (slashes === 1) { | ||
return start + end; | ||
@@ -43,0 +40,0 @@ } |
@@ -82,2 +82,3 @@ export interface LauncherClientConfig { | ||
props?: FieldProperty[]; | ||
values?: PropertyValue[]; | ||
shared?: boolean; | ||
@@ -103,3 +104,3 @@ enabledWhen?: { | ||
name: string; | ||
version: any; | ||
version: string | undefined; | ||
}; | ||
@@ -106,0 +107,0 @@ export interface AuthorizedRequest { |
@@ -5,9 +5,5 @@ "use strict"; | ||
var parts = arg.split('/', 2); | ||
var runtime = { name: parts[0], version: undefined }; | ||
if (parts.length > 1) { | ||
runtime.version = parts[1]; | ||
} | ||
return runtime; | ||
return { name: parts[0], version: parts.length > 1 ? parts[1] : undefined }; | ||
} | ||
exports.toRuntime = toRuntime; | ||
//# sourceMappingURL=types.js.map |
export * from './client/launcher.client.factory'; | ||
export * from './client/launcher.client'; | ||
export * from './client/types'; | ||
export * from './client/helpers/launchers'; |
@@ -11,2 +11,3 @@ "use strict"; | ||
__export(require("./client/types")); | ||
__export(require("./client/helpers/launchers")); | ||
//# sourceMappingURL=launcher.client.js.map |
{ | ||
"name": "launcher-client", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"homepage": "https://github.com/fabric8-launcher/launcher-client", | ||
@@ -12,2 +12,3 @@ "repository": { | ||
}, | ||
"main": "dist/launcher.client.js", | ||
"module": "dist/launcher.client.js", | ||
@@ -14,0 +15,0 @@ "types": "dist/launcher.client.d.ts", |
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
280052
38
1610