@tomphttp/bare-client
Advanced tools
Comparing version 1.1.2-beta to 1.1.2-beta.1
@@ -87,3 +87,3 @@ export * from './Client'; | ||
*/ | ||
constructor(server: string | URL, manfiest: BareManifest); | ||
constructor(server: string | URL, manfiest?: BareManifest); | ||
private demand; | ||
@@ -90,0 +90,0 @@ private getClient; |
@@ -628,7 +628,7 @@ // The user likely has overwritten all networking functions after importing bare-client | ||
}); | ||
const assign_meta = await fetch(request); | ||
if (!assign_meta.ok) { | ||
throw new BareError(assign_meta.status, await assign_meta.json()); | ||
const assignMeta = await fetch(request); | ||
if (!assignMeta.ok) { | ||
throw new BareError(assignMeta.status, await assignMeta.json()); | ||
} | ||
const id = await assign_meta.text(); | ||
const id = await assignMeta.text(); | ||
const socket = new WebSocket(this.ws, [ | ||
@@ -645,3 +645,3 @@ id, | ||
}); | ||
resolve(await await this.readBareResponse(outgoing)); | ||
resolve(await this.readBareResponse(outgoing)); | ||
}); | ||
@@ -648,0 +648,0 @@ socket.addEventListener('error', reject); |
{ | ||
"name": "@tomphttp/bare-client", | ||
"version": "1.1.2-beta", | ||
"version": "1.1.2-beta.1", | ||
"homepage": "https://github.com/tomphttp", | ||
@@ -5,0 +5,0 @@ "bugs": { |
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
252606
1368