include node_modules so release .zip is deployable
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
import { Event } from "./Event";
|
||||
export declare class CloseEvent extends Event {
|
||||
readonly code: number;
|
||||
readonly reason: string;
|
||||
constructor(type: string, init?: CloseEventInit);
|
||||
}
|
||||
//# sourceMappingURL=CloseEvent.d.ts.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"CloseEvent.d.ts","sourceRoot":"","sources":["../../src/events/CloseEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,qBAAa,UAAW,SAAQ,KAAK;IAEpC,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,SAAgB,MAAM,EAAE,MAAM,CAAC;gBAEZ,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,cAAc;CAItD"}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
}
|
||||
return function (d, b) {
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var Event_1 = require("./Event");
|
||||
var CloseEvent = /** @class */ (function (_super) {
|
||||
__extends(CloseEvent, _super);
|
||||
function CloseEvent(type, init) {
|
||||
return _super.call(this, type, init) || this;
|
||||
}
|
||||
return CloseEvent;
|
||||
}(Event_1.Event));
|
||||
exports.CloseEvent = CloseEvent;
|
||||
//# sourceMappingURL=CloseEvent.js.map
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import { Event } from "./Event";
|
||||
export declare class ErrorEvent extends Event {
|
||||
readonly error: any;
|
||||
readonly message: string;
|
||||
constructor(type: string, init?: ErrorEventInit);
|
||||
}
|
||||
//# sourceMappingURL=ErrorEvent.d.ts.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ErrorEvent.d.ts","sourceRoot":"","sources":["../../src/events/ErrorEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,qBAAa,UAAW,SAAQ,KAAK;IAEpC,SAAgB,KAAK,EAAE,GAAG,CAAC;IAC3B,SAAgB,OAAO,EAAE,MAAM,CAAC;gBAEb,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,cAAc;CAItD"}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
}
|
||||
return function (d, b) {
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var Event_1 = require("./Event");
|
||||
var ErrorEvent = /** @class */ (function (_super) {
|
||||
__extends(ErrorEvent, _super);
|
||||
function ErrorEvent(type, init) {
|
||||
return _super.call(this, type, init) || this;
|
||||
}
|
||||
return ErrorEvent;
|
||||
}(Event_1.Event));
|
||||
exports.ErrorEvent = ErrorEvent;
|
||||
//# sourceMappingURL=ErrorEvent.js.map
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
export declare class Event {
|
||||
readonly target: EventTarget;
|
||||
readonly type: string;
|
||||
readonly timeStamp: number;
|
||||
constructor(type: string, init?: EventInit);
|
||||
}
|
||||
//# sourceMappingURL=Event.d.ts.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Event.d.ts","sourceRoot":"","sources":["../../src/events/Event.ts"],"names":[],"mappings":"AAAA,qBAAa,KAAK;IAEjB,SAAgB,MAAM,EAAE,WAAW,CAAC;IACpC,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,SAAgB,SAAS,EAAE,MAAM,CAAC;gBAEf,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,SAAS;CAMjD"}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var Event = /** @class */ (function () {
|
||||
function Event(type, init) {
|
||||
this.type = type;
|
||||
if (init)
|
||||
Object.assign(this, init);
|
||||
}
|
||||
return Event;
|
||||
}());
|
||||
exports.Event = Event;
|
||||
//# sourceMappingURL=Event.js.map
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import { Event } from "./Event";
|
||||
export declare class EventTarget<Types extends object = {}> {
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
private listeners_;
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
private created_at_;
|
||||
constructor();
|
||||
dispatchEvent(event: Event): void;
|
||||
addEventListener<K extends keyof Types>(type: K, listener: Types[K]): void;
|
||||
removeEventListener<K extends keyof Types>(type: string, listener: Types[K]): void;
|
||||
}
|
||||
//# sourceMappingURL=EventTarget.d.ts.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"EventTarget.d.ts","sourceRoot":"","sources":["../../src/events/EventTarget.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,qBAAa,WAAW,CAAC,KAAK,SAAS,MAAM,GAAG,EAAE;IAEjD;;OAEG;IACH,OAAO,CAAC,UAAU,CAAqC;IAEvD;;OAEG;IACH,OAAO,CAAC,WAAW,CAAO;;IAQnB,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAgBjC,gBAAgB,CAAC,CAAC,SAAS,MAAM,KAAK,EAC3C,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI;IAS7B,mBAAmB,CAAC,CAAC,SAAS,MAAM,KAAK,EAC9C,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI;CAUzC"}
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
"use strict";
|
||||
var __values = (this && this.__values) || function (o) {
|
||||
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
|
||||
if (m) return m.call(o);
|
||||
return {
|
||||
next: function () {
|
||||
if (o && i >= o.length) o = void 0;
|
||||
return { value: o && o[i++], done: !o };
|
||||
}
|
||||
};
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var HashSet_1 = require("tstl/container/HashSet");
|
||||
var HashMap_1 = require("tstl/container/HashMap");
|
||||
var EventTarget = /** @class */ (function () {
|
||||
function EventTarget() {
|
||||
this.listeners_ = new HashMap_1.HashMap();
|
||||
this.created_at_ = new Date();
|
||||
}
|
||||
EventTarget.prototype.dispatchEvent = function (event) {
|
||||
var e_1, _a;
|
||||
// FIND LISTENERS
|
||||
var it = this.listeners_.find(event.type);
|
||||
if (it.equals(this.listeners_.end()))
|
||||
return;
|
||||
// SET DEFAULT ARGUMENTS
|
||||
event.target = this;
|
||||
event.timeStamp = new Date().getTime() - this.created_at_.getTime();
|
||||
try {
|
||||
// CALL THE LISTENERS
|
||||
for (var _b = __values(it.second), _c = _b.next(); !_c.done; _c = _b.next()) {
|
||||
var listener = _c.value;
|
||||
listener(event);
|
||||
}
|
||||
}
|
||||
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
||||
}
|
||||
finally { if (e_1) throw e_1.error; }
|
||||
}
|
||||
};
|
||||
EventTarget.prototype.addEventListener = function (type, listener) {
|
||||
var it = this.listeners_.find(type);
|
||||
if (it.equals(this.listeners_.end()))
|
||||
it = this.listeners_.emplace(type, new HashSet_1.HashSet()).first;
|
||||
it.second.insert(listener);
|
||||
};
|
||||
EventTarget.prototype.removeEventListener = function (type, listener) {
|
||||
var it = this.listeners_.find(type);
|
||||
if (it.equals(this.listeners_.end()))
|
||||
return;
|
||||
it.second.erase(listener);
|
||||
if (it.second.empty())
|
||||
this.listeners_.erase(it);
|
||||
};
|
||||
return EventTarget;
|
||||
}());
|
||||
exports.EventTarget = EventTarget;
|
||||
//# sourceMappingURL=EventTarget.js.map
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
import { Event } from "./Event";
|
||||
export declare class MessageEvent extends Event {
|
||||
readonly data: any;
|
||||
constructor(type: string, init?: MessageEventInit);
|
||||
}
|
||||
//# sourceMappingURL=MessageEvent.d.ts.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"MessageEvent.d.ts","sourceRoot":"","sources":["../../src/events/MessageEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,qBAAa,YAAa,SAAQ,KAAK;IAEtC,SAAgB,IAAI,EAAE,GAAG,CAAC;gBAEP,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,gBAAgB;CAIxD"}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
}
|
||||
return function (d, b) {
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var Event_1 = require("./Event");
|
||||
var MessageEvent = /** @class */ (function (_super) {
|
||||
__extends(MessageEvent, _super);
|
||||
function MessageEvent(type, init) {
|
||||
return _super.call(this, type, init) || this;
|
||||
}
|
||||
return MessageEvent;
|
||||
}(Event_1.Event));
|
||||
exports.MessageEvent = MessageEvent;
|
||||
//# sourceMappingURL=MessageEvent.js.map
|
||||
Reference in New Issue
Block a user