@substrate/playground-client
Advanced tools
Comparing version 1.6.7 to 1.7.0
@@ -10,2 +10,3 @@ export interface IdentifiedResource { | ||
configuration: Configuration; | ||
templates: Record<string, Template>; | ||
user?: LoggedUser; | ||
@@ -126,2 +127,9 @@ } | ||
} | ||
export interface Template { | ||
name: string; | ||
image: string; | ||
description: string; | ||
tags?: Record<string, string>; | ||
runtime?: RepositoryRuntimeConfiguration; | ||
} | ||
export interface NameValuePair { | ||
@@ -128,0 +136,0 @@ name: string; |
@@ -59,6 +59,10 @@ "use strict"; | ||
}; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from) { | ||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | ||
to[j] = from[i]; | ||
return to; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { | ||
if (ar || !(i in from)) { | ||
if (!ar) ar = Array.prototype.slice.call(from, 0, i); | ||
ar[i] = from[i]; | ||
} | ||
} | ||
return to.concat(ar || Array.prototype.slice.call(from)); | ||
}; | ||
@@ -80,3 +84,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
} | ||
return __spreadArray([this.base], resources).join("/"); | ||
return __spreadArray([this.base], resources, true).join("/"); | ||
}; | ||
@@ -91,3 +95,3 @@ Client.prototype.loginPath = function (queryParams) { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, rpc_1.rpc(this.path(""), init, this.timeout)]; | ||
return [2 /*return*/, (0, rpc_1.rpc)(this.path(""), init, this.timeout)]; | ||
}); | ||
@@ -101,3 +105,3 @@ }); | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, rpc_1.rpc(this.path(Client.userResource), __assign({}, init), this.timeout)]; | ||
return [2 /*return*/, (0, rpc_1.rpc)(this.path(Client.userResource), __assign({}, init), this.timeout)]; | ||
}); | ||
@@ -111,3 +115,3 @@ }); | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, rpc_1.rpc(this.path(Client.usersResource, id), init, this.timeout)]; | ||
return [2 /*return*/, (0, rpc_1.rpc)(this.path(Client.usersResource, id), init, this.timeout)]; | ||
}); | ||
@@ -120,3 +124,3 @@ }); | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, rpc_1.rpc(this.path(Client.usersResource), init, this.timeout)]; | ||
return [2 /*return*/, (0, rpc_1.rpc)(this.path(Client.usersResource), init, this.timeout)]; | ||
}); | ||
@@ -129,3 +133,3 @@ }); | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, rpc_1.rpc(this.path(Client.usersResource, id), __assign({ method: 'PUT', body: JSON.stringify(conf) }, init), this.timeout)]; | ||
return [2 /*return*/, (0, rpc_1.rpc)(this.path(Client.usersResource, id), __assign({ method: 'PUT', body: JSON.stringify(conf) }, init), this.timeout)]; | ||
}); | ||
@@ -138,3 +142,3 @@ }); | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, rpc_1.rpc(this.path(Client.usersResource, id), __assign({ method: 'PATCH', body: JSON.stringify(conf) }, init), this.timeout)]; | ||
return [2 /*return*/, (0, rpc_1.rpc)(this.path(Client.usersResource, id), __assign({ method: 'PATCH', body: JSON.stringify(conf) }, init), this.timeout)]; | ||
}); | ||
@@ -147,3 +151,3 @@ }); | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, rpc_1.rpc(this.path(Client.usersResource, id), __assign({ method: 'DELETE' }, init), this.timeout)]; | ||
return [2 /*return*/, (0, rpc_1.rpc)(this.path(Client.usersResource, id), __assign({ method: 'DELETE' }, init), this.timeout)]; | ||
}); | ||
@@ -157,3 +161,3 @@ }); | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, rpc_1.rpc(this.path(Client.workspaceResource), init, this.timeout)]; | ||
return [2 /*return*/, (0, rpc_1.rpc)(this.path(Client.workspaceResource), init, this.timeout)]; | ||
}); | ||
@@ -166,3 +170,3 @@ }); | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, rpc_1.rpc(this.path(Client.workspaceResource), __assign({ method: 'PUT', body: JSON.stringify(conf) }, init), this.timeout)]; | ||
return [2 /*return*/, (0, rpc_1.rpc)(this.path(Client.workspaceResource), __assign({ method: 'PUT', body: JSON.stringify(conf) }, init), this.timeout)]; | ||
}); | ||
@@ -175,3 +179,3 @@ }); | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, rpc_1.rpc(this.path(Client.workspaceResource), __assign({ method: 'PATCH', body: JSON.stringify(conf) }, init), this.timeout)]; | ||
return [2 /*return*/, (0, rpc_1.rpc)(this.path(Client.workspaceResource), __assign({ method: 'PATCH', body: JSON.stringify(conf) }, init), this.timeout)]; | ||
}); | ||
@@ -184,3 +188,3 @@ }); | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, rpc_1.rpc(this.path(Client.workspaceResource), __assign({ method: 'DELETE' }, init), this.timeout)]; | ||
return [2 /*return*/, (0, rpc_1.rpc)(this.path(Client.workspaceResource), __assign({ method: 'DELETE' }, init), this.timeout)]; | ||
}); | ||
@@ -194,3 +198,3 @@ }); | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, rpc_1.rpc(this.path(Client.workspacesResource, id), init, this.timeout)]; | ||
return [2 /*return*/, (0, rpc_1.rpc)(this.path(Client.workspacesResource, id), init, this.timeout)]; | ||
}); | ||
@@ -203,3 +207,3 @@ }); | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, rpc_1.rpc(this.path(Client.workspacesResource), init, this.timeout)]; | ||
return [2 /*return*/, (0, rpc_1.rpc)(this.path(Client.workspacesResource), init, this.timeout)]; | ||
}); | ||
@@ -212,3 +216,3 @@ }); | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, rpc_1.rpc(this.path(Client.workspacesResource, id), __assign({ method: 'PUT', body: JSON.stringify(conf) }, init), this.timeout)]; | ||
return [2 /*return*/, (0, rpc_1.rpc)(this.path(Client.workspacesResource, id), __assign({ method: 'PUT', body: JSON.stringify(conf) }, init), this.timeout)]; | ||
}); | ||
@@ -221,3 +225,3 @@ }); | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, rpc_1.rpc(this.path(Client.workspacesResource, id), __assign({ method: 'PATCH', body: JSON.stringify(conf) }, init), this.timeout)]; | ||
return [2 /*return*/, (0, rpc_1.rpc)(this.path(Client.workspacesResource, id), __assign({ method: 'PATCH', body: JSON.stringify(conf) }, init), this.timeout)]; | ||
}); | ||
@@ -230,3 +234,3 @@ }); | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, rpc_1.rpc(this.path(Client.workspacesResource, id), __assign({ method: 'DELETE' }, init), this.timeout)]; | ||
return [2 /*return*/, (0, rpc_1.rpc)(this.path(Client.workspacesResource, id), __assign({ method: 'DELETE' }, init), this.timeout)]; | ||
}); | ||
@@ -240,3 +244,3 @@ }); | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, rpc_1.rpc(this.path(Client.repositoriesResource, id), init, this.timeout)]; | ||
return [2 /*return*/, (0, rpc_1.rpc)(this.path(Client.repositoriesResource, id), init, this.timeout)]; | ||
}); | ||
@@ -249,3 +253,3 @@ }); | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, rpc_1.rpc(this.path(Client.repositoriesResource), init, this.timeout)]; | ||
return [2 /*return*/, (0, rpc_1.rpc)(this.path(Client.repositoriesResource), init, this.timeout)]; | ||
}); | ||
@@ -258,3 +262,3 @@ }); | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, rpc_1.rpc(this.path(Client.repositoriesResource, id), __assign({ method: 'PUT', body: JSON.stringify(conf) }, init), this.timeout)]; | ||
return [2 /*return*/, (0, rpc_1.rpc)(this.path(Client.repositoriesResource, id), __assign({ method: 'PUT', body: JSON.stringify(conf) }, init), this.timeout)]; | ||
}); | ||
@@ -267,3 +271,3 @@ }); | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, rpc_1.rpc(this.path(Client.repositoriesResource, id), __assign({ method: 'PATCH', body: JSON.stringify(conf) }, init), this.timeout)]; | ||
return [2 /*return*/, (0, rpc_1.rpc)(this.path(Client.repositoriesResource, id), __assign({ method: 'PATCH', body: JSON.stringify(conf) }, init), this.timeout)]; | ||
}); | ||
@@ -276,3 +280,3 @@ }); | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, rpc_1.rpc(this.path(Client.repositoriesResource, id), __assign({ method: 'DELETE' }, init), this.timeout)]; | ||
return [2 /*return*/, (0, rpc_1.rpc)(this.path(Client.repositoriesResource, id), __assign({ method: 'DELETE' }, init), this.timeout)]; | ||
}); | ||
@@ -285,3 +289,3 @@ }); | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, rpc_1.rpc(this.path(Client.repositoriesResource, id, 'versions', version), init, this.timeout)]; | ||
return [2 /*return*/, (0, rpc_1.rpc)(this.path(Client.repositoriesResource, id, 'versions', version), init, this.timeout)]; | ||
}); | ||
@@ -294,3 +298,3 @@ }); | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, rpc_1.rpc(this.path(Client.repositoriesResource, id, 'versions'), init, this.timeout)]; | ||
return [2 /*return*/, (0, rpc_1.rpc)(this.path(Client.repositoriesResource, id, 'versions'), init, this.timeout)]; | ||
}); | ||
@@ -303,3 +307,3 @@ }); | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, rpc_1.rpc(this.path(Client.repositoriesResource, id, 'versions', version), __assign({ method: 'PUT', body: JSON.stringify(conf) }, init), this.timeout)]; | ||
return [2 /*return*/, (0, rpc_1.rpc)(this.path(Client.repositoriesResource, id, 'versions', version), __assign({ method: 'PUT', body: JSON.stringify(conf) }, init), this.timeout)]; | ||
}); | ||
@@ -312,3 +316,3 @@ }); | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, rpc_1.rpc(this.path(Client.repositoriesResource, id, 'versions', version), __assign({ method: 'DELETE' }, init), this.timeout)]; | ||
return [2 /*return*/, (0, rpc_1.rpc)(this.path(Client.repositoriesResource, id, 'versions', version), __assign({ method: 'DELETE' }, init), this.timeout)]; | ||
}); | ||
@@ -322,3 +326,3 @@ }); | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, rpc_1.rpc(this.path(Client.poolsResource, id), init, this.timeout)]; | ||
return [2 /*return*/, (0, rpc_1.rpc)(this.path(Client.poolsResource, id), init, this.timeout)]; | ||
}); | ||
@@ -331,3 +335,3 @@ }); | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, rpc_1.rpc(this.path(Client.poolsResource), init, this.timeout)]; | ||
return [2 /*return*/, (0, rpc_1.rpc)(this.path(Client.poolsResource), init, this.timeout)]; | ||
}); | ||
@@ -341,3 +345,3 @@ }); | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, rpc_1.fetchWithTimeout(this.path('login') + "?bearer=" + bearer, __assign({}, init), this.timeout)]; | ||
return [2 /*return*/, (0, rpc_1.fetchWithTimeout)(this.path('login') + "?bearer=" + bearer, __assign({}, init), this.timeout)]; | ||
}); | ||
@@ -350,3 +354,3 @@ }); | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, rpc_1.fetchWithTimeout(this.path('logout'), init, this.timeout)]; | ||
return [2 /*return*/, (0, rpc_1.fetchWithTimeout)(this.path('logout'), init, this.timeout)]; | ||
}); | ||
@@ -353,0 +357,0 @@ }); |
@@ -10,2 +10,3 @@ export interface IdentifiedResource { | ||
configuration: Configuration; | ||
templates: Record<string, Template>; | ||
user?: LoggedUser; | ||
@@ -126,2 +127,9 @@ } | ||
} | ||
export interface Template { | ||
name: string; | ||
image: string; | ||
description: string; | ||
tags?: Record<string, string>; | ||
runtime?: RepositoryRuntimeConfiguration; | ||
} | ||
export interface NameValuePair { | ||
@@ -128,0 +136,0 @@ name: string; |
@@ -84,3 +84,3 @@ "use strict"; | ||
}); }, timeout); | ||
var id = uuid_1.v4(); | ||
var id = (0, uuid_1.v4)(); | ||
var callback = function (event) { | ||
@@ -87,0 +87,0 @@ if (event.data.id == id) { |
{ | ||
"name": "@substrate/playground-client", | ||
"version": "1.6.7", | ||
"version": "1.7.0", | ||
"description": "An isomorphic client for Substrate Playground", | ||
@@ -37,4 +37,4 @@ "main": "dist/main/index.js", | ||
"devDependencies": { | ||
"typescript": "4.3.5" | ||
"typescript": "4.4.4" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73435
1601