@substrate/playground-client
Advanced tools
Comparing version 1.4.5 to 1.5.0
@@ -13,2 +13,3 @@ import { Playground, Pool, Session, SessionConfiguration, SessionUpdateConfiguration, User, UserConfiguration, UserUpdateConfiguration } from './types'; | ||
path(...resources: string[]): string; | ||
loginPath(queryParams?: string): string; | ||
get(init?: RequestInit): Promise<Playground>; | ||
@@ -15,0 +16,0 @@ getCurrentUser(init?: RequestInit): Promise<User>; |
@@ -20,2 +20,5 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
} | ||
loginPath(queryParams = window.location.search) { | ||
return this.path(`login/github${queryParams}`); | ||
} | ||
get(init = this.defaultInit) { | ||
@@ -22,0 +25,0 @@ return __awaiter(this, void 0, void 0, function* () { |
@@ -13,2 +13,3 @@ import { Playground, Pool, Session, SessionConfiguration, SessionUpdateConfiguration, User, UserConfiguration, UserUpdateConfiguration } from './types'; | ||
path(...resources: string[]): string; | ||
loginPath(queryParams?: string): string; | ||
get(init?: RequestInit): Promise<Playground>; | ||
@@ -15,0 +16,0 @@ getCurrentUser(init?: RequestInit): Promise<User>; |
@@ -81,2 +81,6 @@ "use strict"; | ||
}; | ||
Client.prototype.loginPath = function (queryParams) { | ||
if (queryParams === void 0) { queryParams = window.location.search; } | ||
return this.path("login/github" + queryParams); | ||
}; | ||
Client.prototype.get = function (init) { | ||
@@ -83,0 +87,0 @@ if (init === void 0) { init = this.defaultInit; } |
{ | ||
"name": "@substrate/playground-client", | ||
"version": "1.4.5", | ||
"version": "1.5.0", | ||
"description": "An isomorphic client for Substrate Playground", | ||
@@ -33,5 +33,8 @@ "main": "dist/main/index.js", | ||
}, | ||
"dependencies": { | ||
"uuid": "8.3.2" | ||
}, | ||
"devDependencies": { | ||
"typescript": "4.2.3" | ||
"typescript": "4.2.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
51499
1133
1
+ Addeduuid@8.3.2
+ Addeduuid@8.3.2(transitive)