Accidentally included tslint/error
This commit is contained in:
7
dist/classes/Circuit.js
vendored
7
dist/classes/Circuit.js
vendored
@@ -9,7 +9,6 @@ const operators_1 = require("rxjs/operators");
|
||||
const FilterResponse_1 = require("../enums/FilterResponse");
|
||||
const Subject_1 = require("rxjs/internal/Subject");
|
||||
const __1 = require("..");
|
||||
const error_1 = require("tslint/lib/error");
|
||||
class Circuit {
|
||||
constructor(clientEvents) {
|
||||
this.client = null;
|
||||
@@ -32,7 +31,7 @@ class Circuit {
|
||||
}
|
||||
sendMessage(message, flags) {
|
||||
if (!this.active) {
|
||||
throw new error_1.Error('Attempting to send a message on a closed circuit');
|
||||
throw new Error('Attempting to send a message on a closed circuit');
|
||||
}
|
||||
const packet = new Packet_1.Packet();
|
||||
packet.message = message;
|
||||
@@ -61,7 +60,7 @@ class Circuit {
|
||||
handleObj.timeout = setTimeout(() => {
|
||||
if (handleObj.subscription !== null) {
|
||||
handleObj.subscription.unsubscribe();
|
||||
reject(new error_1.Error('Timeout'));
|
||||
reject(new Error('Timeout'));
|
||||
}
|
||||
}, timeout);
|
||||
handleObj.subscription = this.onAckReceived.subscribe((sequenceNumber) => {
|
||||
@@ -122,7 +121,7 @@ class Circuit {
|
||||
const timeoutFunc = () => {
|
||||
if (handleObj.subscription !== null) {
|
||||
handleObj.subscription.unsubscribe();
|
||||
reject(new error_1.Error('Timeout waiting for message of type ' + id));
|
||||
reject(new Error('Timeout waiting for message of type ' + id));
|
||||
}
|
||||
};
|
||||
handleObj.timeout = setTimeout(timeoutFunc, timeout);
|
||||
|
||||
2
dist/classes/Circuit.js.map
vendored
2
dist/classes/Circuit.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -14,7 +14,6 @@ import {ClientEvents} from './ClientEvents';
|
||||
import {FilterResponse} from '../enums/FilterResponse';
|
||||
import {Subject} from 'rxjs/internal/Subject';
|
||||
import {PacketFlags} from '..';
|
||||
import {Error} from 'tslint/lib/error';
|
||||
|
||||
export class Circuit
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@caspertech/node-metaverse",
|
||||
"version": "0.4.7",
|
||||
"version": "0.4.8",
|
||||
"description": "A node.js interface for Second Life.",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
||||
Reference in New Issue
Block a user