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

@substrate/playground-client

Package Overview
Dependencies
Maintainers
9
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@substrate/playground-client - npm Package Compare versions

Comparing version 1.1.9 to 1.2.0

1

dist/browser/index.d.ts

@@ -13,2 +13,3 @@ import { Playground, Session, SessionConfiguration, User, UserConfiguration } from './types';

getCurrentUser(init?: RequestInit): Promise<User>;
getUser(id: string, init?: RequestInit): Promise<User | null>;
listUsers(init?: RequestInit): Promise<Record<string, User>>;

@@ -15,0 +16,0 @@ createOrUpdateUser(id: string, conf: UserConfiguration, init?: RequestInit): Promise<User>;

@@ -31,2 +31,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

// Users
getUser(id, init = this.defaultInit) {
return __awaiter(this, void 0, void 0, function* () {
return rpc(this.path(Client.usersResource, id), init);
});
}
listUsers(init = this.defaultInit) {

@@ -33,0 +38,0 @@ return __awaiter(this, void 0, void 0, function* () {

3

dist/browser/types.d.ts

@@ -8,2 +8,3 @@ export interface Playground {

export interface Environment {
secured: boolean;
host: string;

@@ -60,3 +61,3 @@ namespace: string;

description: string;
tags: Record<string, string>;
tags?: Record<string, string>;
runtime?: RuntimeConfiguration;

@@ -63,0 +64,0 @@ }

@@ -13,2 +13,3 @@ import { Playground, Session, SessionConfiguration, User, UserConfiguration } from './types';

getCurrentUser(init?: RequestInit): Promise<User>;
getUser(id: string, init?: RequestInit): Promise<User | null>;
listUsers(init?: RequestInit): Promise<Record<string, User>>;

@@ -15,0 +16,0 @@ createOrUpdateUser(id: string, conf: UserConfiguration, init?: RequestInit): Promise<User>;

@@ -99,2 +99,10 @@ "use strict";

// Users
Client.prototype.getUser = function (id, init) {
if (init === void 0) { init = this.defaultInit; }
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
return [2 /*return*/, rpc_1.rpc(this.path(Client.usersResource, id), init)];
});
});
};
Client.prototype.listUsers = function (init) {

@@ -101,0 +109,0 @@ if (init === void 0) { init = this.defaultInit; }

@@ -8,2 +8,3 @@ export interface Playground {

export interface Environment {
secured: boolean;
host: string;

@@ -60,3 +61,3 @@ namespace: string;

description: string;
tags: Record<string, string>;
tags?: Record<string, string>;
runtime?: RuntimeConfiguration;

@@ -63,0 +64,0 @@ }

{
"name": "@substrate/playground-client",
"version": "1.1.9",
"version": "1.2.0",
"description": "An isomorphic client for Substrate Playground",

@@ -5,0 +5,0 @@ "main": "dist/main/index.js",

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