Compare commits
12 Commits
Author | SHA1 | Date | |
---|---|---|---|
8d6c8494c4 | |||
3fb7375a42 | |||
c64a72ea9d | |||
c8c481fda0 | |||
bafa94c6ac | |||
a28c96356f | |||
bc7069e72c | |||
5ba41150be | |||
317a9f2189 | |||
850032bd03 | |||
c009cd337d | |||
76cb8a36fc |
1
Dockerfile
Normal file
1
Dockerfile
Normal file
@ -0,0 +1 @@
|
|||||||
|
FROM hosttoday/ht-docker-node
|
4
dist/index.d.ts
vendored
4
dist/index.d.ts
vendored
@ -1 +1,3 @@
|
|||||||
export * from './smartuniverse.classes.smartuniverse';
|
export * from './smartuniverse.classes.universe';
|
||||||
|
export * from './smartuniverse.classes.universeclient';
|
||||||
|
export * from './smartuniverse.classes.universemessage';
|
||||||
|
6
dist/index.js
vendored
6
dist/index.js
vendored
@ -3,5 +3,7 @@ function __export(m) {
|
|||||||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
||||||
}
|
}
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
__export(require("./smartuniverse.classes.smartuniverse"));
|
__export(require("./smartuniverse.classes.universe"));
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLDJEQUFzRCJ9
|
__export(require("./smartuniverse.classes.universeclient"));
|
||||||
|
__export(require("./smartuniverse.classes.universemessage"));
|
||||||
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLHNEQUFpRDtBQUNqRCw0REFBdUQ7QUFDdkQsNkRBQXdEIn0=
|
3
dist/smartuniverse.classes.manager.d.ts
vendored
Normal file
3
dist/smartuniverse.classes.manager.d.ts
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
export declare class UniverseManager {
|
||||||
|
registerMember(): Promise<void>;
|
||||||
|
}
|
17
dist/smartuniverse.classes.manager.js
vendored
Normal file
17
dist/smartuniverse.classes.manager.js
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
"use strict";
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
class UniverseManager {
|
||||||
|
registerMember() {
|
||||||
|
return __awaiter(this, void 0, void 0, function* () { });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
exports.UniverseManager = UniverseManager;
|
||||||
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnR1bml2ZXJzZS5jbGFzc2VzLm1hbmFnZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydHVuaXZlcnNlLmNsYXNzZXMubWFuYWdlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBSUE7SUFDZSxjQUFjOzhEQUFJLENBQUM7S0FBQTtDQUNqQztBQUZELDBDQUVDIn0=
|
11
dist/smartuniverse.classes.smartuniverse.d.ts
vendored
11
dist/smartuniverse.classes.smartuniverse.d.ts
vendored
@ -1,11 +0,0 @@
|
|||||||
export interface ISmartUniverseConstructorOptions {
|
|
||||||
port: number | string;
|
|
||||||
}
|
|
||||||
export declare class SmartUniverse {
|
|
||||||
private options;
|
|
||||||
private universeVersionStore;
|
|
||||||
private readonly universeVersion;
|
|
||||||
private smartexpressServer;
|
|
||||||
constructor(optionsArg: ISmartUniverseConstructorOptions);
|
|
||||||
init(): Promise<void>;
|
|
||||||
}
|
|
45
dist/smartuniverse.classes.smartuniverse.js
vendored
45
dist/smartuniverse.classes.smartuniverse.js
vendored
@ -1,45 +0,0 @@
|
|||||||
"use strict";
|
|
||||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
||||||
return new (P || (P = Promise))(function (resolve, reject) {
|
|
||||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
||||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
||||||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
|
||||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
||||||
});
|
|
||||||
};
|
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
|
||||||
const plugins = require("./smartuniverse.plugins");
|
|
||||||
const smartexpress_1 = require("smartexpress");
|
|
||||||
const paths = require("./smartuniverse.paths");
|
|
||||||
class SmartUniverse {
|
|
||||||
get universeVersion() {
|
|
||||||
if (this.universeVersionStore) {
|
|
||||||
return this.universeVersionStore;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
const packageJson = plugins.smartfile.fs.toObjectSync(paths.packageJson);
|
|
||||||
this.universeVersionStore = packageJson.version;
|
|
||||||
return this.universeVersionStore;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
constructor(optionsArg) {
|
|
||||||
this.options = optionsArg;
|
|
||||||
}
|
|
||||||
init() {
|
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
|
||||||
this.smartexpressServer = new plugins.smartexpress.Server({
|
|
||||||
cors: true,
|
|
||||||
defaultAnswer: `smartuniverse server ${this.universeVersion}`,
|
|
||||||
forceSsl: false,
|
|
||||||
port: this.options.port
|
|
||||||
});
|
|
||||||
const addRoute = new smartexpress_1.Route(this.smartexpressServer, 'addMessage');
|
|
||||||
const addHandler = new smartexpress_1.Handler('PUT', requestBody => {
|
|
||||||
return 'hi';
|
|
||||||
});
|
|
||||||
// await this.smartexpressServer.addRoute()
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
exports.SmartUniverse = SmartUniverse;
|
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnR1bml2ZXJzZS5jbGFzc2VzLnNtYXJ0dW5pdmVyc2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydHVuaXZlcnNlLmNsYXNzZXMuc21hcnR1bml2ZXJzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEsbURBQW1EO0FBRW5ELCtDQUFzRDtBQUV0RCwrQ0FBK0M7QUFNL0M7SUFHRSxJQUFZLGVBQWU7UUFDekIsRUFBRSxDQUFDLENBQUMsSUFBSSxDQUFDLG9CQUFvQixDQUFDLENBQUMsQ0FBQztZQUM5QixNQUFNLENBQUMsSUFBSSxDQUFDLG9CQUFvQixDQUFDO1FBQ25DLENBQUM7UUFBQyxJQUFJLENBQUMsQ0FBQztZQUNOLE1BQU0sV0FBVyxHQUFHLE9BQU8sQ0FBQyxTQUFTLENBQUMsRUFBRSxDQUFDLFlBQVksQ0FBQyxLQUFLLENBQUMsV0FBVyxDQUFDLENBQUM7WUFDekUsSUFBSSxDQUFDLG9CQUFvQixHQUFHLFdBQVcsQ0FBQyxPQUFPLENBQUM7WUFDaEQsTUFBTSxDQUFDLElBQUksQ0FBQyxvQkFBb0IsQ0FBQztRQUNuQyxDQUFDO0lBQ0gsQ0FBQztJQUVELFlBQVksVUFBNEM7UUFDdEQsSUFBSSxDQUFDLE9BQU8sR0FBRyxVQUFVLENBQUM7SUFDNUIsQ0FBQztJQUVZLElBQUk7O1lBQ2YsSUFBSSxDQUFDLGtCQUFrQixHQUFHLElBQUksT0FBTyxDQUFDLFlBQVksQ0FBQyxNQUFNLENBQUM7Z0JBQ3hELElBQUksRUFBRSxJQUFJO2dCQUNWLGFBQWEsRUFBRSx3QkFBd0IsSUFBSSxDQUFDLGVBQWUsRUFBRTtnQkFDN0QsUUFBUSxFQUFFLEtBQUs7Z0JBQ2YsSUFBSSxFQUFFLElBQUksQ0FBQyxPQUFPLENBQUMsSUFBSTthQUN4QixDQUFDLENBQUM7WUFFSCxNQUFNLFFBQVEsR0FBRyxJQUFJLG9CQUFLLENBQUMsSUFBSSxDQUFDLGtCQUFrQixFQUFFLFlBQVksQ0FBQyxDQUFDO1lBQ2xFLE1BQU0sVUFBVSxHQUFHLElBQUksc0JBQU8sQ0FBQyxLQUFLLEVBQUUsV0FBVyxDQUFDLEVBQUU7Z0JBQ2xELE1BQU0sQ0FBQyxJQUFJLENBQUM7WUFDZCxDQUFDLENBQUMsQ0FBQztZQUNILDJDQUEyQztRQUM3QyxDQUFDO0tBQUE7Q0FDRjtBQS9CRCxzQ0ErQkMifQ==
|
|
27
dist/smartuniverse.classes.universe.d.ts
vendored
Normal file
27
dist/smartuniverse.classes.universe.d.ts
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
import { UniverseManager } from './smartuniverse.classes.manager';
|
||||||
|
import { UniverseStore } from './smartuniverse.classes.universestore';
|
||||||
|
export interface ISmartUniverseConstructorOptions {
|
||||||
|
messageExpiryInMilliseconds: number;
|
||||||
|
}
|
||||||
|
export interface IServerGetMessagesRequestBody {
|
||||||
|
youngerThan: number;
|
||||||
|
}
|
||||||
|
export interface IServerPutMessageRequestBody {
|
||||||
|
message: string;
|
||||||
|
payload: any;
|
||||||
|
}
|
||||||
|
export declare class Universe {
|
||||||
|
universeStore: UniverseStore;
|
||||||
|
universeManager: UniverseManager;
|
||||||
|
private options;
|
||||||
|
private universeVersionStore;
|
||||||
|
private readonly universeVersion;
|
||||||
|
private smartexpressServer;
|
||||||
|
private smartsocket;
|
||||||
|
constructor(optionsArg: ISmartUniverseConstructorOptions);
|
||||||
|
/**
|
||||||
|
* initiates a server
|
||||||
|
*/
|
||||||
|
initServer(portArg: number | string): Promise<void>;
|
||||||
|
stopServer(): Promise<void>;
|
||||||
|
}
|
75
dist/smartuniverse.classes.universe.js
vendored
Normal file
75
dist/smartuniverse.classes.universe.js
vendored
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
"use strict";
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
const plugins = require("./smartuniverse.plugins");
|
||||||
|
const smartexpress_1 = require("smartexpress");
|
||||||
|
const smartuniverse_classes_manager_1 = require("./smartuniverse.classes.manager");
|
||||||
|
const smartuniverse_classes_universestore_1 = require("./smartuniverse.classes.universestore");
|
||||||
|
const paths = require("./smartuniverse.paths");
|
||||||
|
class Universe {
|
||||||
|
get universeVersion() {
|
||||||
|
if (this.universeVersionStore) {
|
||||||
|
return this.universeVersionStore;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
const packageJson = plugins.smartfile.fs.toObjectSync(paths.packageJson);
|
||||||
|
this.universeVersionStore = packageJson.version;
|
||||||
|
return this.universeVersionStore;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
constructor(optionsArg) {
|
||||||
|
this.options = optionsArg;
|
||||||
|
this.universeStore = new smartuniverse_classes_universestore_1.UniverseStore(this.options.messageExpiryInMilliseconds);
|
||||||
|
this.universeManager = new smartuniverse_classes_manager_1.UniverseManager();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* initiates a server
|
||||||
|
*/
|
||||||
|
initServer(portArg) {
|
||||||
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
|
this.smartexpressServer = new plugins.smartexpress.Server({
|
||||||
|
cors: true,
|
||||||
|
defaultAnswer: `smartuniverse server ${this.universeVersion}`,
|
||||||
|
forceSsl: false,
|
||||||
|
port: portArg
|
||||||
|
});
|
||||||
|
this.smartsocket = new plugins.smartsocket.Smartsocket({
|
||||||
|
port: 12345 // fix this within smartsocket
|
||||||
|
});
|
||||||
|
this.smartsocket.setExternalServer('express', this.smartexpressServer); // should work with express as well
|
||||||
|
this.smartsocket.start();
|
||||||
|
// route handling
|
||||||
|
// adds messages
|
||||||
|
const addMessageHandler = new smartexpress_1.Handler('PUT', request => {
|
||||||
|
const requestBody = request.body;
|
||||||
|
this.universeStore.addMessage(requestBody.message, requestBody.payload);
|
||||||
|
console.log(requestBody);
|
||||||
|
return true;
|
||||||
|
});
|
||||||
|
// gets messages
|
||||||
|
const readMessageHandler = new smartexpress_1.Handler('GET', request => {
|
||||||
|
const requestBody = request.body;
|
||||||
|
this.universeStore.readMessagesYoungerThan(requestBody.since);
|
||||||
|
});
|
||||||
|
const messageRoute = new smartexpress_1.Route(this.smartexpressServer, 'message');
|
||||||
|
messageRoute.addHandler(addMessageHandler);
|
||||||
|
messageRoute.addHandler(readMessageHandler);
|
||||||
|
yield this.smartexpressServer.start();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
stopServer() {
|
||||||
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
|
yield this.smartsocket.stop();
|
||||||
|
yield this.smartexpressServer.stop();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
exports.Universe = Universe;
|
||||||
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnR1bml2ZXJzZS5jbGFzc2VzLnVuaXZlcnNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnR1bml2ZXJzZS5jbGFzc2VzLnVuaXZlcnNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxtREFBbUQ7QUFFbkQsK0NBQXNEO0FBRXRELG1GQUFrRTtBQUVsRSwrRkFBc0U7QUFDdEUsK0NBQStDO0FBZS9DO0lBVUUsSUFBWSxlQUFlO1FBQ3pCLEVBQUUsQ0FBQyxDQUFDLElBQUksQ0FBQyxvQkFBb0IsQ0FBQyxDQUFDLENBQUM7WUFDOUIsTUFBTSxDQUFDLElBQUksQ0FBQyxvQkFBb0IsQ0FBQztRQUNuQyxDQUFDO1FBQUMsSUFBSSxDQUFDLENBQUM7WUFDTixNQUFNLFdBQVcsR0FBRyxPQUFPLENBQUMsU0FBUyxDQUFDLEVBQUUsQ0FBQyxZQUFZLENBQUMsS0FBSyxDQUFDLFdBQVcsQ0FBQyxDQUFDO1lBQ3pFLElBQUksQ0FBQyxvQkFBb0IsR0FBRyxXQUFXLENBQUMsT0FBTyxDQUFDO1lBQ2hELE1BQU0sQ0FBQyxJQUFJLENBQUMsb0JBQW9CLENBQUM7UUFDbkMsQ0FBQztJQUNILENBQUM7SUFLRCxZQUFZLFVBQTRDO1FBQ3RELElBQUksQ0FBQyxPQUFPLEdBQUcsVUFBVSxDQUFDO1FBQzFCLElBQUksQ0FBQyxhQUFhLEdBQUcsSUFBSSxtREFBYSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsMkJBQTJCLENBQUMsQ0FBQztRQUNqRixJQUFJLENBQUMsZUFBZSxHQUFHLElBQUksK0NBQWUsRUFBRSxDQUFDO0lBQy9DLENBQUM7SUFFRDs7T0FFRztJQUNVLFVBQVUsQ0FBQyxPQUF3Qjs7WUFDOUMsSUFBSSxDQUFDLGtCQUFrQixHQUFHLElBQUksT0FBTyxDQUFDLFlBQVksQ0FBQyxNQUFNLENBQUM7Z0JBQ3hELElBQUksRUFBRSxJQUFJO2dCQUNWLGFBQWEsRUFBRSx3QkFBd0IsSUFBSSxDQUFDLGVBQWUsRUFBRTtnQkFDN0QsUUFBUSxFQUFFLEtBQUs7Z0JBQ2YsSUFBSSxFQUFFLE9BQU87YUFDZCxDQUFDLENBQUM7WUFFSCxJQUFJLENBQUMsV0FBVyxHQUFHLElBQUksT0FBTyxDQUFDLFdBQVcsQ0FBQyxXQUFXLENBQUM7Z0JBQ3JELElBQUksRUFBRSxLQUFLLENBQUMsOEJBQThCO2FBQzNDLENBQUMsQ0FBQztZQUVILElBQUksQ0FBQyxXQUFXLENBQUMsaUJBQWlCLENBQ2hDLFNBQVMsRUFDVCxJQUFJLENBQUMsa0JBQXlCLENBQUMsQ0FBQyxDQUFDLG1DQUFtQztZQUN0RSxJQUFJLENBQUMsV0FBVyxDQUFDLEtBQUssRUFBRSxDQUFDO1lBRXpCLGlCQUFpQjtZQUNqQixnQkFBZ0I7WUFDaEIsTUFBTSxpQkFBaUIsR0FBRyxJQUFJLHNCQUFPLENBQUMsS0FBSyxFQUFFLE9BQU8sQ0FBQyxFQUFFO2dCQUNyRCxNQUFNLFdBQVcsR0FBRyxPQUFPLENBQUMsSUFBSSxDQUFDO2dCQUNqQyxJQUFJLENBQUMsYUFBYSxDQUFDLFVBQVUsQ0FBQyxXQUFXLENBQUMsT0FBTyxFQUFFLFdBQVcsQ0FBQyxPQUFPLENBQUMsQ0FBQztnQkFDeEUsT0FBTyxDQUFDLEdBQUcsQ0FBQyxXQUFXLENBQUMsQ0FBQztnQkFDekIsTUFBTSxDQUFDLElBQUksQ0FBQztZQUNkLENBQUMsQ0FBQyxDQUFDO1lBRUgsZ0JBQWdCO1lBQ2hCLE1BQU0sa0JBQWtCLEdBQUcsSUFBSSxzQkFBTyxDQUFDLEtBQUssRUFBRSxPQUFPLENBQUMsRUFBRTtnQkFDdEQsTUFBTSxXQUFXLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQztnQkFDakMsSUFBSSxDQUFDLGFBQWEsQ0FBQyx1QkFBdUIsQ0FBQyxXQUFXLENBQUMsS0FBSyxDQUFDLENBQUM7WUFDaEUsQ0FBQyxDQUFDLENBQUM7WUFFSCxNQUFNLFlBQVksR0FBRyxJQUFJLG9CQUFLLENBQUMsSUFBSSxDQUFDLGtCQUFrQixFQUFFLFNBQVMsQ0FBQyxDQUFDO1lBQ25FLFlBQVksQ0FBQyxVQUFVLENBQUMsaUJBQWlCLENBQUMsQ0FBQztZQUMzQyxZQUFZLENBQUMsVUFBVSxDQUFDLGtCQUFrQixDQUFDLENBQUM7WUFFNUMsTUFBTSxJQUFJLENBQUMsa0JBQWtCLENBQUMsS0FBSyxFQUFFLENBQUM7UUFDeEMsQ0FBQztLQUFBO0lBRVksVUFBVTs7WUFDckIsTUFBTSxJQUFJLENBQUMsV0FBVyxDQUFDLElBQUksRUFBRSxDQUFDO1lBQzlCLE1BQU0sSUFBSSxDQUFDLGtCQUFrQixDQUFDLElBQUksRUFBRSxDQUFDO1FBQ3ZDLENBQUM7S0FBQTtDQUNGO0FBM0VELDRCQTJFQyJ9
|
14
dist/smartuniverse.classes.universeclient.d.ts
vendored
Normal file
14
dist/smartuniverse.classes.universeclient.d.ts
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
import * as plugins from './smartuniverse.plugins';
|
||||||
|
import { UniverseMessage } from './smartuniverse.classes.universemessage';
|
||||||
|
export interface IClientOptions {
|
||||||
|
serverAddress: string;
|
||||||
|
}
|
||||||
|
export declare class UniverseClient {
|
||||||
|
options: any;
|
||||||
|
private socketClient;
|
||||||
|
private observableIntake;
|
||||||
|
constructor(optionsArg: IClientOptions);
|
||||||
|
sendMessage(messageArg: any, payloadArg: any): Promise<void>;
|
||||||
|
getMessageObservable(): plugins.smartrx.rxjs.Observable<UniverseMessage>;
|
||||||
|
close(): void;
|
||||||
|
}
|
49
dist/smartuniverse.classes.universeclient.js
vendored
Normal file
49
dist/smartuniverse.classes.universeclient.js
vendored
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
"use strict";
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
const plugins = require("./smartuniverse.plugins");
|
||||||
|
const smartsocket_1 = require("smartsocket");
|
||||||
|
const url = require("url");
|
||||||
|
class UniverseClient {
|
||||||
|
constructor(optionsArg) {
|
||||||
|
this.options = optionsArg;
|
||||||
|
}
|
||||||
|
sendMessage(messageArg, payloadArg) {
|
||||||
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
|
const requestBody = {
|
||||||
|
message: messageArg,
|
||||||
|
payload: payloadArg
|
||||||
|
};
|
||||||
|
yield plugins.smartrequest.post(this.options.serverAddress, {
|
||||||
|
requestBody
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
getMessageObservable() {
|
||||||
|
if (!this.socketClient && !this.observableIntake) {
|
||||||
|
const parsedURL = url.parse(this.options.serverAddress);
|
||||||
|
this.socketClient = new smartsocket_1.SmartsocketClient({
|
||||||
|
alias: process.env.SOCKET_ALIAS || 'someclient',
|
||||||
|
password: 'UniverseClient',
|
||||||
|
port: parseInt(parsedURL.port, 10),
|
||||||
|
role: 'UniverseClient',
|
||||||
|
url: parsedURL.hostname,
|
||||||
|
});
|
||||||
|
this.observableIntake = new plugins.smartrx.ObservableIntake();
|
||||||
|
this.socketClient.connect();
|
||||||
|
}
|
||||||
|
return this.observableIntake.observable;
|
||||||
|
}
|
||||||
|
close() {
|
||||||
|
this.socketClient.disconnect();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
exports.UniverseClient = UniverseClient;
|
||||||
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnR1bml2ZXJzZS5jbGFzc2VzLnVuaXZlcnNlY2xpZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnR1bml2ZXJzZS5jbGFzc2VzLnVuaXZlcnNlY2xpZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxtREFBbUQ7QUFJbkQsNkNBQTZEO0FBQzdELDJCQUEyQjtBQVkzQjtJQUtFLFlBQVksVUFBMEI7UUFDcEMsSUFBSSxDQUFDLE9BQU8sR0FBRyxVQUFVLENBQUM7SUFDNUIsQ0FBQztJQUVZLFdBQVcsQ0FBQyxVQUFVLEVBQUUsVUFBVTs7WUFDN0MsTUFBTSxXQUFXLEdBQUc7Z0JBQ2xCLE9BQU8sRUFBRSxVQUFVO2dCQUNuQixPQUFPLEVBQUUsVUFBVTthQUNwQixDQUFDO1lBQ0YsTUFBTSxPQUFPLENBQUMsWUFBWSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLGFBQWEsRUFBRTtnQkFDMUQsV0FBVzthQUNaLENBQUMsQ0FBQztRQUNMLENBQUM7S0FBQTtJQUVNLG9CQUFvQjtRQUN6QixFQUFFLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxZQUFZLElBQUksQ0FBQyxJQUFJLENBQUMsZ0JBQWdCLENBQUMsQ0FBQyxDQUFDO1lBQ2pELE1BQU0sU0FBUyxHQUFHLEdBQUcsQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxhQUFhLENBQUMsQ0FBQztZQUN4RCxJQUFJLENBQUMsWUFBWSxHQUFHLElBQUksK0JBQWlCLENBQUM7Z0JBQ3hDLEtBQUssRUFBRSxPQUFPLENBQUMsR0FBRyxDQUFDLFlBQVksSUFBSSxZQUFZO2dCQUMvQyxRQUFRLEVBQUUsZ0JBQWdCO2dCQUMxQixJQUFJLEVBQUUsUUFBUSxDQUFDLFNBQVMsQ0FBQyxJQUFJLEVBQUUsRUFBRSxDQUFDO2dCQUNsQyxJQUFJLEVBQUUsZ0JBQWdCO2dCQUN0QixHQUFHLEVBQUUsU0FBUyxDQUFDLFFBQVE7YUFDeEIsQ0FBQyxDQUFDO1lBQ0gsSUFBSSxDQUFDLGdCQUFnQixHQUFHLElBQUksT0FBTyxDQUFDLE9BQU8sQ0FBQyxnQkFBZ0IsRUFBRSxDQUFDO1lBQy9ELElBQUksQ0FBQyxZQUFZLENBQUMsT0FBTyxFQUFFLENBQUM7UUFDOUIsQ0FBQztRQUNELE1BQU0sQ0FBQyxJQUFJLENBQUMsZ0JBQWdCLENBQUMsVUFBVSxDQUFDO0lBQzFDLENBQUM7SUFFTSxLQUFLO1FBQ1YsSUFBSSxDQUFDLFlBQVksQ0FBQyxVQUFVLEVBQUUsQ0FBQztJQUNqQyxDQUFDO0NBQ0Y7QUF0Q0Qsd0NBc0NDIn0=
|
17
dist/smartuniverse.classes.universemessage.d.ts
vendored
Normal file
17
dist/smartuniverse.classes.universemessage.d.ts
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
import { Timer, TimeStamp } from 'smarttime';
|
||||||
|
import { UniverseStore } from './smartuniverse.classes.universestore';
|
||||||
|
export declare class UniverseMessage {
|
||||||
|
/**
|
||||||
|
* public and unique id
|
||||||
|
* numeric ascending
|
||||||
|
* adheres to time in milliseconds
|
||||||
|
* avoids duplications though
|
||||||
|
*/
|
||||||
|
id: number;
|
||||||
|
universeStore: UniverseStore;
|
||||||
|
timestamp: TimeStamp;
|
||||||
|
message: string;
|
||||||
|
attachedPayload: any;
|
||||||
|
destructionTimer: Timer;
|
||||||
|
constructor(parentUniverseStore: UniverseStore, messageArg: string, attachedPayloadArg: any, selfdestructAfterArg: number);
|
||||||
|
}
|
27
dist/smartuniverse.classes.universemessage.js
vendored
Normal file
27
dist/smartuniverse.classes.universemessage.js
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
"use strict";
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
const smarttime_1 = require("smarttime");
|
||||||
|
class UniverseMessage {
|
||||||
|
constructor(parentUniverseStore, messageArg, attachedPayloadArg, selfdestructAfterArg) {
|
||||||
|
this.universeStore = parentUniverseStore;
|
||||||
|
this.timestamp = new smarttime_1.TimeStamp();
|
||||||
|
this.message = messageArg;
|
||||||
|
this.attachedPayload = attachedPayloadArg;
|
||||||
|
this.destructionTimer = new smarttime_1.Timer(selfdestructAfterArg);
|
||||||
|
this.destructionTimer.start();
|
||||||
|
// set up self destruction by removing this from the parent messageStore
|
||||||
|
this.destructionTimer.completed.then(() => __awaiter(this, void 0, void 0, function* () {
|
||||||
|
this.universeStore.messageStore.remove(this);
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
exports.UniverseMessage = UniverseMessage;
|
||||||
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnR1bml2ZXJzZS5jbGFzc2VzLnVuaXZlcnNlbWVzc2FnZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0dW5pdmVyc2UuY2xhc3Nlcy51bml2ZXJzZW1lc3NhZ2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUVBLHlDQUE2QztBQUc3QztJQWNFLFlBQ0UsbUJBQWtDLEVBQ2xDLFVBQWtCLEVBQ2xCLGtCQUF1QixFQUN2QixvQkFBNEI7UUFFNUIsSUFBSSxDQUFDLGFBQWEsR0FBRyxtQkFBbUIsQ0FBQztRQUN6QyxJQUFJLENBQUMsU0FBUyxHQUFHLElBQUkscUJBQVMsRUFBRSxDQUFDO1FBQ2pDLElBQUksQ0FBQyxPQUFPLEdBQUcsVUFBVSxDQUFDO1FBQzFCLElBQUksQ0FBQyxlQUFlLEdBQUcsa0JBQWtCLENBQUM7UUFDMUMsSUFBSSxDQUFDLGdCQUFnQixHQUFHLElBQUksaUJBQUssQ0FBQyxvQkFBb0IsQ0FBQyxDQUFDO1FBQ3hELElBQUksQ0FBQyxnQkFBZ0IsQ0FBQyxLQUFLLEVBQUUsQ0FBQztRQUU5Qix3RUFBd0U7UUFDeEUsSUFBSSxDQUFDLGdCQUFnQixDQUFDLFNBQVMsQ0FBQyxJQUFJLENBQUMsR0FBUyxFQUFFO1lBQzlDLElBQUksQ0FBQyxhQUFhLENBQUMsWUFBWSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsQ0FBQztRQUMvQyxDQUFDLENBQUEsQ0FBQyxDQUFDO0lBQ0wsQ0FBQztDQUNGO0FBaENELDBDQWdDQyJ9
|
20
dist/smartuniverse.classes.universestore.d.ts
vendored
Normal file
20
dist/smartuniverse.classes.universestore.d.ts
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
import * as plugins from './smartuniverse.plugins';
|
||||||
|
import { UniverseMessage } from './smartuniverse.classes.universemessage';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
export declare class UniverseStore {
|
||||||
|
standardMessageExpiry: number;
|
||||||
|
destructionTime: number;
|
||||||
|
messageStore: plugins.lik.Objectmap<UniverseMessage>;
|
||||||
|
private lastId;
|
||||||
|
constructor(standardMessageExpiryArg: number);
|
||||||
|
/**
|
||||||
|
* add a message to the UniverseStore
|
||||||
|
* @param messageArg
|
||||||
|
* @param attachedPayloadArg
|
||||||
|
*/
|
||||||
|
addMessage(messageArg: any, attachedPayloadArg: any): void;
|
||||||
|
/**
|
||||||
|
* Read a message from the UniverseStore
|
||||||
|
*/
|
||||||
|
readMessagesYoungerThan(unixTimeArg?: number): Observable<UniverseMessage>;
|
||||||
|
}
|
32
dist/smartuniverse.classes.universestore.js
vendored
Normal file
32
dist/smartuniverse.classes.universestore.js
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
"use strict";
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
const smartuniverse_classes_universemessage_1 = require("./smartuniverse.classes.universemessage");
|
||||||
|
const lik_1 = require("lik");
|
||||||
|
const smartrx_1 = require("smartrx");
|
||||||
|
class UniverseStore {
|
||||||
|
constructor(standardMessageExpiryArg) {
|
||||||
|
this.destructionTime = 60000;
|
||||||
|
this.messageStore = new lik_1.Objectmap();
|
||||||
|
this.lastId = 0; // stores the last id
|
||||||
|
this.standardMessageExpiry = standardMessageExpiryArg;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* add a message to the UniverseStore
|
||||||
|
* @param messageArg
|
||||||
|
* @param attachedPayloadArg
|
||||||
|
*/
|
||||||
|
addMessage(messageArg, attachedPayloadArg) {
|
||||||
|
this.messageStore.add(new smartuniverse_classes_universemessage_1.UniverseMessage(this, messageArg, attachedPayloadArg, this.destructionTime));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Read a message from the UniverseStore
|
||||||
|
*/
|
||||||
|
readMessagesYoungerThan(unixTimeArg) {
|
||||||
|
const messageObservable = smartrx_1.rxjs.Observable.from(this.messageStore.getArray()).filter(messageArg => {
|
||||||
|
return messageArg.timestamp.isYoungerThanMilliSeconds(this.destructionTime);
|
||||||
|
});
|
||||||
|
return messageObservable;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
exports.UniverseStore = UniverseStore;
|
||||||
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnR1bml2ZXJzZS5jbGFzc2VzLnVuaXZlcnNlc3RvcmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydHVuaXZlcnNlLmNsYXNzZXMudW5pdmVyc2VzdG9yZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUVBLG1HQUEwRTtBQUUxRSw2QkFBZ0M7QUFHaEMscUNBQStCO0FBRS9CO0lBTUUsWUFBWSx3QkFBZ0M7UUFKckMsb0JBQWUsR0FBVyxLQUFLLENBQUM7UUFDaEMsaUJBQVksR0FBRyxJQUFJLGVBQVMsRUFBbUIsQ0FBQztRQUMvQyxXQUFNLEdBQVcsQ0FBQyxDQUFDLENBQUMscUJBQXFCO1FBRy9DLElBQUksQ0FBQyxxQkFBcUIsR0FBRyx3QkFBd0IsQ0FBQztJQUN4RCxDQUFDO0lBRUQ7Ozs7T0FJRztJQUNJLFVBQVUsQ0FBQyxVQUFVLEVBQUUsa0JBQWtCO1FBQzlDLElBQUksQ0FBQyxZQUFZLENBQUMsR0FBRyxDQUNuQixJQUFJLHVEQUFlLENBQUMsSUFBSSxFQUFFLFVBQVUsRUFBRSxrQkFBa0IsRUFBRSxJQUFJLENBQUMsZUFBZSxDQUFDLENBQ2hGLENBQUM7SUFDSixDQUFDO0lBRUQ7O09BRUc7SUFDSSx1QkFBdUIsQ0FBQyxXQUFvQjtRQUNqRCxNQUFNLGlCQUFpQixHQUFHLGNBQUksQ0FBQyxVQUFVLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxZQUFZLENBQUMsUUFBUSxFQUFFLENBQUMsQ0FBQyxNQUFNLENBQ2pGLFVBQVUsQ0FBQyxFQUFFO1lBQ1gsTUFBTSxDQUFDLFVBQVUsQ0FBQyxTQUFTLENBQUMseUJBQXlCLENBQUMsSUFBSSxDQUFDLGVBQWUsQ0FBQyxDQUFDO1FBQzlFLENBQUMsQ0FDRixDQUFDO1FBQ0YsTUFBTSxDQUFDLGlCQUFpQixDQUFDO0lBQzNCLENBQUM7Q0FDRjtBQWhDRCxzQ0FnQ0MifQ==
|
19
dist/smartuniverse.cli.js
vendored
19
dist/smartuniverse.cli.js
vendored
@ -1,12 +1,21 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
const plugins = require("./smartuniverse.plugins");
|
const plugins = require("./smartuniverse.plugins");
|
||||||
const index_1 = require("./index");
|
const index_1 = require("./index");
|
||||||
process.env.CLI = 'true';
|
process.env.CLI = 'true';
|
||||||
const universeCli = new plugins.smartcli.Smartcli();
|
const universeCli = new plugins.smartcli.Smartcli();
|
||||||
universeCli.standardTask().then(argvArg => {
|
universeCli.standardTask().then((argvArg) => __awaiter(this, void 0, void 0, function* () {
|
||||||
const standardUniverse = new index_1.SmartUniverse({
|
const standardUniverse = new index_1.Universe({
|
||||||
port: 8765
|
messageExpiryInMilliseconds: 60000
|
||||||
});
|
});
|
||||||
});
|
yield standardUniverse.initServer(8765);
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnR1bml2ZXJzZS5jbGkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydHVuaXZlcnNlLmNsaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLG1EQUFtRDtBQUVuRCxtQ0FBd0M7QUFFeEMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxHQUFHLEdBQUcsTUFBTSxDQUFDO0FBRXpCLE1BQU0sV0FBVyxHQUFHLElBQUksT0FBTyxDQUFDLFFBQVEsQ0FBQyxRQUFRLEVBQUUsQ0FBQztBQUVwRCxXQUFXLENBQUMsWUFBWSxFQUFFLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxFQUFFO0lBQ3hDLE1BQU0sZ0JBQWdCLEdBQUcsSUFBSSxxQkFBYSxDQUFDO1FBQ3pDLElBQUksRUFBRSxJQUFJO0tBQ1gsQ0FBQyxDQUFDO0FBQ0wsQ0FBQyxDQUFDLENBQUMifQ==
|
}));
|
||||||
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnR1bml2ZXJzZS5jbGkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydHVuaXZlcnNlLmNsaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEsbURBQW1EO0FBRW5ELG1DQUFtQztBQUVuQyxPQUFPLENBQUMsR0FBRyxDQUFDLEdBQUcsR0FBRyxNQUFNLENBQUM7QUFFekIsTUFBTSxXQUFXLEdBQUcsSUFBSSxPQUFPLENBQUMsUUFBUSxDQUFDLFFBQVEsRUFBRSxDQUFDO0FBRXBELFdBQVcsQ0FBQyxZQUFZLEVBQUUsQ0FBQyxJQUFJLENBQUMsQ0FBTSxPQUFPLEVBQUMsRUFBRTtJQUM5QyxNQUFNLGdCQUFnQixHQUFHLElBQUksZ0JBQVEsQ0FBQztRQUNwQywyQkFBMkIsRUFBRSxLQUFLO0tBQ25DLENBQUMsQ0FBQztJQUNILE1BQU0sZ0JBQWdCLENBQUMsVUFBVSxDQUFDLElBQUksQ0FBQyxDQUFDO0FBQzFDLENBQUMsQ0FBQSxDQUFDLENBQUMifQ==
|
7
dist/smartuniverse.plugins.d.ts
vendored
7
dist/smartuniverse.plugins.d.ts
vendored
@ -1,5 +1,10 @@
|
|||||||
|
import * as lik from 'lik';
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
import * as smartcli from 'smartcli';
|
import * as smartcli from 'smartcli';
|
||||||
import * as smartexpress from 'smartexpress';
|
import * as smartexpress from 'smartexpress';
|
||||||
import * as smartfile from 'smartfile';
|
import * as smartfile from 'smartfile';
|
||||||
export { path, smartcli, smartexpress, smartfile };
|
import * as smartrequest from 'smartrequest';
|
||||||
|
import * as smartrx from 'smartrx';
|
||||||
|
import * as smartsocket from 'smartsocket';
|
||||||
|
import * as smarttime from 'smarttime';
|
||||||
|
export { lik, path, smartcli, smartexpress, smartfile, smartrx, smartrequest, smartsocket, smarttime };
|
||||||
|
12
dist/smartuniverse.plugins.js
vendored
12
dist/smartuniverse.plugins.js
vendored
@ -1,5 +1,7 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
const lik = require("lik");
|
||||||
|
exports.lik = lik;
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
exports.path = path;
|
exports.path = path;
|
||||||
const smartcli = require("smartcli");
|
const smartcli = require("smartcli");
|
||||||
@ -8,4 +10,12 @@ const smartexpress = require("smartexpress");
|
|||||||
exports.smartexpress = smartexpress;
|
exports.smartexpress = smartexpress;
|
||||||
const smartfile = require("smartfile");
|
const smartfile = require("smartfile");
|
||||||
exports.smartfile = smartfile;
|
exports.smartfile = smartfile;
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnR1bml2ZXJzZS5wbHVnaW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnR1bml2ZXJzZS5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkJBQTZCO0FBS3BCLG9CQUFJO0FBSmIscUNBQXFDO0FBSXRCLDRCQUFRO0FBSHZCLDZDQUE2QztBQUdwQixvQ0FBWTtBQUZyQyx1Q0FBdUM7QUFFQSw4QkFBUyJ9
|
const smartrequest = require("smartrequest");
|
||||||
|
exports.smartrequest = smartrequest;
|
||||||
|
const smartrx = require("smartrx");
|
||||||
|
exports.smartrx = smartrx;
|
||||||
|
const smartsocket = require("smartsocket");
|
||||||
|
exports.smartsocket = smartsocket;
|
||||||
|
const smarttime = require("smarttime");
|
||||||
|
exports.smarttime = smarttime;
|
||||||
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnR1bml2ZXJzZS5wbHVnaW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnR1bml2ZXJzZS5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkJBQTJCO0FBV3pCLGtCQUFHO0FBVkwsNkJBQTZCO0FBVzNCLG9CQUFJO0FBVk4scUNBQXFDO0FBV25DLDRCQUFRO0FBVlYsNkNBQTZDO0FBVzNDLG9DQUFZO0FBVmQsdUNBQXVDO0FBV3JDLDhCQUFTO0FBVlgsNkNBQTZDO0FBWTNDLG9DQUFZO0FBWGQsbUNBQW1DO0FBVWpDLDBCQUFPO0FBVFQsMkNBQTJDO0FBV3pDLGtDQUFXO0FBVmIsdUNBQXVDO0FBV3JDLDhCQUFTIn0=
|
15
package.json
15
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "smartuniverse",
|
"name": "@pushrocks/smartuniverse",
|
||||||
"version": "1.0.2",
|
"version": "1.0.6",
|
||||||
"description": "messaging service for your micro services",
|
"description": "messaging service for your micro services",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "dist/index.d.ts",
|
"typings": "dist/index.d.ts",
|
||||||
@ -11,11 +11,18 @@
|
|||||||
"format": "(gitzone format)"
|
"format": "(gitzone format)"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@types/node": "^9.6.0",
|
||||||
"tapbundle": "^2.0.0"
|
"tapbundle": "^2.0.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"lik": "^2.0.5",
|
||||||
|
"rxjs": "^5.5.8",
|
||||||
"smartcli": "^2.0.12",
|
"smartcli": "^2.0.12",
|
||||||
"smartexpress": "^1.0.19",
|
"smartexpress": "^1.0.21",
|
||||||
"smartfile": "^4.2.28"
|
"smartfile": "^4.2.28",
|
||||||
|
"smartrequest": "^1.0.8",
|
||||||
|
"smartrx": "^1.0.5",
|
||||||
|
"smartsocket": "^1.1.19",
|
||||||
|
"smarttime": "^2.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
29
readme.md
Normal file
29
readme.md
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# smartuniverse
|
||||||
|
messaging service for your micro services
|
||||||
|
|
||||||
|
## Availabililty
|
||||||
|
[](https://www.npmjs.com/package/@pushrocks/smartuniverse)
|
||||||
|
[](https://GitLab.com/pushrocks/smartuniverse)
|
||||||
|
[](https://github.com/pushrocks/smartuniverse)
|
||||||
|
[](https://pushrocks.gitlab.io/smartuniverse/)
|
||||||
|
|
||||||
|
## Status for master
|
||||||
|
[](https://GitLab.com/pushrocks/smartuniverse/commits/master)
|
||||||
|
[](https://GitLab.com/pushrocks/smartuniverse/commits/master)
|
||||||
|
[](https://www.npmjs.com/package/@pushrocks/@pushrocks/smartuniverse)
|
||||||
|
[](https://www.bithound.io/github/pushrocks/smartuniverse/master/dependencies/npm)
|
||||||
|
[](https://www.bithound.io/github/pushrocks/smartuniverse)
|
||||||
|
[](https://snyk.io/test/npm/@pushrocks/smartuniverse)
|
||||||
|
[](https://nodejs.org/dist/latest-v6.x/docs/api/)
|
||||||
|
[](https://nodejs.org/dist/latest-v6.x/docs/api/)
|
||||||
|
[](http://standardjs.com/)
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
Use TypeScript for best in class instellisense.
|
||||||
|
|
||||||
|
For further information read the linked docs at the top of this README.
|
||||||
|
|
||||||
|
> licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
||||||
|
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html)
|
||||||
|
|
||||||
|
[](https://push.rocks)
|
46
test/test.ts
46
test/test.ts
@ -1,12 +1,50 @@
|
|||||||
|
// tslint:disable-next-line:no-implicit-dependencies
|
||||||
import { expect, tap } from 'tapbundle';
|
import { expect, tap } from 'tapbundle';
|
||||||
import * as smartuniverse from '../ts/index';
|
import * as smartuniverse from '../ts/index';
|
||||||
|
|
||||||
let testSmartUniverse: smartuniverse.SmartUniverse;
|
import { Observable } from 'rxjs';
|
||||||
|
|
||||||
|
let testUniverse: smartuniverse.Universe;
|
||||||
|
let testUniverseClient: smartuniverse.UniverseClient;
|
||||||
|
let testMessageObservable: Observable<smartuniverse.UniverseMessage>;
|
||||||
|
|
||||||
tap.test('first test', async () => {
|
tap.test('first test', async () => {
|
||||||
testSmartUniverse = new smartuniverse.SmartUniverse({
|
testUniverse = new smartuniverse.Universe({
|
||||||
port: 8765
|
messageExpiryInMilliseconds: 1000
|
||||||
})
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
tap.test('add a message to the SmartUniverse', async () => {
|
||||||
|
await testUniverse.initServer(8765);
|
||||||
|
});
|
||||||
|
|
||||||
|
// testing message handling
|
||||||
|
tap.test('create smartuniverse client', async () => {
|
||||||
|
testUniverseClient = new smartuniverse.UniverseClient({
|
||||||
|
serverAddress: 'http://localhost:8765'
|
||||||
|
});
|
||||||
|
expect(testUniverseClient).to.be.instanceof(smartuniverse.UniverseClient);
|
||||||
|
});
|
||||||
|
|
||||||
|
tap.test('should send a message correctly', async () => {
|
||||||
|
await testUniverseClient.sendMessage('greeting', {
|
||||||
|
anyBool: true
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
tap.test('should get a observable correctly', async () => {
|
||||||
|
testMessageObservable = testUniverseClient.getMessageObservable();
|
||||||
|
});
|
||||||
|
|
||||||
|
tap.test('should receive a message correctly', async () => {
|
||||||
|
});
|
||||||
|
|
||||||
|
tap.test('should disconnect the client correctly', async () => {
|
||||||
|
testUniverseClient.close();
|
||||||
|
})
|
||||||
|
|
||||||
|
tap.test('should end the server correctly', async (tools) => {
|
||||||
|
await testUniverse.stopServer();
|
||||||
});
|
});
|
||||||
|
|
||||||
tap.start();
|
tap.start();
|
||||||
|
@ -1 +1,3 @@
|
|||||||
export * from './smartuniverse.classes.smartuniverse';
|
export * from './smartuniverse.classes.universe';
|
||||||
|
export * from './smartuniverse.classes.universeclient';
|
||||||
|
export * from './smartuniverse.classes.universemessage';
|
||||||
|
7
ts/smartuniverse.classes.manager.ts
Normal file
7
ts/smartuniverse.classes.manager.ts
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
import * as plugins from './smartuniverse.plugins';
|
||||||
|
|
||||||
|
import { Objectmap } from 'lik';
|
||||||
|
|
||||||
|
export class UniverseManager {
|
||||||
|
public async registerMember() {}
|
||||||
|
}
|
@ -1,42 +0,0 @@
|
|||||||
import * as plugins from './smartuniverse.plugins';
|
|
||||||
|
|
||||||
import { Handler, Route, Server } from 'smartexpress';
|
|
||||||
|
|
||||||
import * as paths from './smartuniverse.paths';
|
|
||||||
|
|
||||||
export interface ISmartUniverseConstructorOptions {
|
|
||||||
port: number | string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export class SmartUniverse {
|
|
||||||
private options: ISmartUniverseConstructorOptions;
|
|
||||||
private universeVersionStore: string;
|
|
||||||
private get universeVersion() {
|
|
||||||
if (this.universeVersionStore) {
|
|
||||||
return this.universeVersionStore;
|
|
||||||
} else {
|
|
||||||
const packageJson = plugins.smartfile.fs.toObjectSync(paths.packageJson);
|
|
||||||
this.universeVersionStore = packageJson.version;
|
|
||||||
return this.universeVersionStore;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
private smartexpressServer: plugins.smartexpress.Server;
|
|
||||||
constructor(optionsArg: ISmartUniverseConstructorOptions) {
|
|
||||||
this.options = optionsArg;
|
|
||||||
}
|
|
||||||
|
|
||||||
public async init() {
|
|
||||||
this.smartexpressServer = new plugins.smartexpress.Server({
|
|
||||||
cors: true,
|
|
||||||
defaultAnswer: `smartuniverse server ${this.universeVersion}`,
|
|
||||||
forceSsl: false,
|
|
||||||
port: this.options.port
|
|
||||||
});
|
|
||||||
|
|
||||||
const addRoute = new Route(this.smartexpressServer, 'addMessage');
|
|
||||||
const addHandler = new Handler('PUT', requestBody => {
|
|
||||||
return 'hi';
|
|
||||||
});
|
|
||||||
// await this.smartexpressServer.addRoute()
|
|
||||||
}
|
|
||||||
}
|
|
98
ts/smartuniverse.classes.universe.ts
Normal file
98
ts/smartuniverse.classes.universe.ts
Normal file
@ -0,0 +1,98 @@
|
|||||||
|
import * as plugins from './smartuniverse.plugins';
|
||||||
|
|
||||||
|
import { Handler, Route, Server } from 'smartexpress';
|
||||||
|
|
||||||
|
import { UniverseManager } from './smartuniverse.classes.manager';
|
||||||
|
import { UniverseMessage } from './smartuniverse.classes.universemessage';
|
||||||
|
import { UniverseStore } from './smartuniverse.classes.universestore';
|
||||||
|
import * as paths from './smartuniverse.paths';
|
||||||
|
|
||||||
|
export interface ISmartUniverseConstructorOptions {
|
||||||
|
messageExpiryInMilliseconds: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface IServerGetMessagesRequestBody {
|
||||||
|
youngerThan: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface IServerPutMessageRequestBody {
|
||||||
|
message: string;
|
||||||
|
payload: any;
|
||||||
|
}
|
||||||
|
|
||||||
|
export class Universe {
|
||||||
|
// subinstances
|
||||||
|
public universeStore: UniverseStore;
|
||||||
|
public universeManager: UniverseManager;
|
||||||
|
|
||||||
|
// options
|
||||||
|
private options: ISmartUniverseConstructorOptions;
|
||||||
|
|
||||||
|
// Store version handling
|
||||||
|
private universeVersionStore: string;
|
||||||
|
private get universeVersion() {
|
||||||
|
if (this.universeVersionStore) {
|
||||||
|
return this.universeVersionStore;
|
||||||
|
} else {
|
||||||
|
const packageJson = plugins.smartfile.fs.toObjectSync(paths.packageJson);
|
||||||
|
this.universeVersionStore = packageJson.version;
|
||||||
|
return this.universeVersionStore;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private smartexpressServer: plugins.smartexpress.Server;
|
||||||
|
private smartsocket: plugins.smartsocket.Smartsocket;
|
||||||
|
|
||||||
|
constructor(optionsArg: ISmartUniverseConstructorOptions) {
|
||||||
|
this.options = optionsArg;
|
||||||
|
this.universeStore = new UniverseStore(this.options.messageExpiryInMilliseconds);
|
||||||
|
this.universeManager = new UniverseManager();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* initiates a server
|
||||||
|
*/
|
||||||
|
public async initServer(portArg: number | string) {
|
||||||
|
this.smartexpressServer = new plugins.smartexpress.Server({
|
||||||
|
cors: true,
|
||||||
|
defaultAnswer: `smartuniverse server ${this.universeVersion}`,
|
||||||
|
forceSsl: false,
|
||||||
|
port: portArg
|
||||||
|
});
|
||||||
|
|
||||||
|
this.smartsocket = new plugins.smartsocket.Smartsocket({
|
||||||
|
port: 12345 // fix this within smartsocket
|
||||||
|
});
|
||||||
|
|
||||||
|
this.smartsocket.setExternalServer(
|
||||||
|
'express',
|
||||||
|
this.smartexpressServer as any); // should work with express as well
|
||||||
|
this.smartsocket.start();
|
||||||
|
|
||||||
|
// route handling
|
||||||
|
// adds messages
|
||||||
|
const addMessageHandler = new Handler('PUT', request => {
|
||||||
|
const requestBody = request.body;
|
||||||
|
this.universeStore.addMessage(requestBody.message, requestBody.payload);
|
||||||
|
console.log(requestBody);
|
||||||
|
return true;
|
||||||
|
});
|
||||||
|
|
||||||
|
// gets messages
|
||||||
|
const readMessageHandler = new Handler('GET', request => {
|
||||||
|
const requestBody = request.body;
|
||||||
|
this.universeStore.readMessagesYoungerThan(requestBody.since);
|
||||||
|
});
|
||||||
|
|
||||||
|
const messageRoute = new Route(this.smartexpressServer, 'message');
|
||||||
|
messageRoute.addHandler(addMessageHandler);
|
||||||
|
messageRoute.addHandler(readMessageHandler);
|
||||||
|
|
||||||
|
await this.smartexpressServer.start();
|
||||||
|
}
|
||||||
|
|
||||||
|
public async stopServer() {
|
||||||
|
await this.smartsocket.stop();
|
||||||
|
await this.smartexpressServer.stop();
|
||||||
|
}
|
||||||
|
}
|
56
ts/smartuniverse.classes.universeclient.ts
Normal file
56
ts/smartuniverse.classes.universeclient.ts
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
import * as plugins from './smartuniverse.plugins';
|
||||||
|
|
||||||
|
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { Smartsocket, SmartsocketClient } from 'smartsocket';
|
||||||
|
import * as url from 'url';
|
||||||
|
|
||||||
|
import {
|
||||||
|
IServerGetMessagesRequestBody,
|
||||||
|
IServerPutMessageRequestBody
|
||||||
|
} from './smartuniverse.classes.universe';
|
||||||
|
import { UniverseMessage } from './smartuniverse.classes.universemessage';
|
||||||
|
|
||||||
|
export interface IClientOptions {
|
||||||
|
serverAddress: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export class UniverseClient {
|
||||||
|
public options;
|
||||||
|
private socketClient: plugins.smartsocket.SmartsocketClient;
|
||||||
|
private observableIntake: plugins.smartrx.ObservableIntake<UniverseMessage>;
|
||||||
|
|
||||||
|
constructor(optionsArg: IClientOptions) {
|
||||||
|
this.options = optionsArg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public async sendMessage(messageArg, payloadArg) {
|
||||||
|
const requestBody = {
|
||||||
|
message: messageArg,
|
||||||
|
payload: payloadArg
|
||||||
|
};
|
||||||
|
await plugins.smartrequest.post(this.options.serverAddress, {
|
||||||
|
requestBody
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageObservable() {
|
||||||
|
if (!this.socketClient && !this.observableIntake) {
|
||||||
|
const parsedURL = url.parse(this.options.serverAddress);
|
||||||
|
this.socketClient = new SmartsocketClient({
|
||||||
|
alias: process.env.SOCKET_ALIAS || 'someclient',
|
||||||
|
password: 'UniverseClient',
|
||||||
|
port: parseInt(parsedURL.port, 10),
|
||||||
|
role: 'UniverseClient',
|
||||||
|
url: parsedURL.hostname,
|
||||||
|
});
|
||||||
|
this.observableIntake = new plugins.smartrx.ObservableIntake();
|
||||||
|
this.socketClient.connect();
|
||||||
|
}
|
||||||
|
return this.observableIntake.observable;
|
||||||
|
}
|
||||||
|
|
||||||
|
public close () {
|
||||||
|
this.socketClient.disconnect();
|
||||||
|
}
|
||||||
|
}
|
38
ts/smartuniverse.classes.universemessage.ts
Normal file
38
ts/smartuniverse.classes.universemessage.ts
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
import * as plugins from './smartuniverse.plugins';
|
||||||
|
|
||||||
|
import { Timer, TimeStamp } from 'smarttime';
|
||||||
|
import { UniverseStore } from './smartuniverse.classes.universestore';
|
||||||
|
|
||||||
|
export class UniverseMessage {
|
||||||
|
/**
|
||||||
|
* public and unique id
|
||||||
|
* numeric ascending
|
||||||
|
* adheres to time in milliseconds
|
||||||
|
* avoids duplications though
|
||||||
|
*/
|
||||||
|
public id: number;
|
||||||
|
public universeStore: UniverseStore;
|
||||||
|
public timestamp: TimeStamp;
|
||||||
|
public message: string;
|
||||||
|
public attachedPayload: any;
|
||||||
|
public destructionTimer: Timer;
|
||||||
|
|
||||||
|
constructor(
|
||||||
|
parentUniverseStore: UniverseStore,
|
||||||
|
messageArg: string,
|
||||||
|
attachedPayloadArg: any,
|
||||||
|
selfdestructAfterArg: number
|
||||||
|
) {
|
||||||
|
this.universeStore = parentUniverseStore;
|
||||||
|
this.timestamp = new TimeStamp();
|
||||||
|
this.message = messageArg;
|
||||||
|
this.attachedPayload = attachedPayloadArg;
|
||||||
|
this.destructionTimer = new Timer(selfdestructAfterArg);
|
||||||
|
this.destructionTimer.start();
|
||||||
|
|
||||||
|
// set up self destruction by removing this from the parent messageStore
|
||||||
|
this.destructionTimer.completed.then(async () => {
|
||||||
|
this.universeStore.messageStore.remove(this);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
42
ts/smartuniverse.classes.universestore.ts
Normal file
42
ts/smartuniverse.classes.universestore.ts
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
import * as plugins from './smartuniverse.plugins';
|
||||||
|
|
||||||
|
import { UniverseMessage } from './smartuniverse.classes.universemessage';
|
||||||
|
|
||||||
|
import { Objectmap } from 'lik';
|
||||||
|
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { rxjs } from 'smartrx';
|
||||||
|
|
||||||
|
export class UniverseStore {
|
||||||
|
public standardMessageExpiry: number;
|
||||||
|
public destructionTime: number = 60000;
|
||||||
|
public messageStore = new Objectmap<UniverseMessage>();
|
||||||
|
private lastId: number = 0; // stores the last id
|
||||||
|
|
||||||
|
constructor(standardMessageExpiryArg: number) {
|
||||||
|
this.standardMessageExpiry = standardMessageExpiryArg;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* add a message to the UniverseStore
|
||||||
|
* @param messageArg
|
||||||
|
* @param attachedPayloadArg
|
||||||
|
*/
|
||||||
|
public addMessage(messageArg, attachedPayloadArg) {
|
||||||
|
this.messageStore.add(
|
||||||
|
new UniverseMessage(this, messageArg, attachedPayloadArg, this.destructionTime)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Read a message from the UniverseStore
|
||||||
|
*/
|
||||||
|
public readMessagesYoungerThan(unixTimeArg?: number): Observable<UniverseMessage> {
|
||||||
|
const messageObservable = rxjs.Observable.from(this.messageStore.getArray()).filter(
|
||||||
|
messageArg => {
|
||||||
|
return messageArg.timestamp.isYoungerThanMilliSeconds(this.destructionTime);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
return messageObservable;
|
||||||
|
}
|
||||||
|
}
|
@ -1,13 +1,14 @@
|
|||||||
import * as plugins from './smartuniverse.plugins';
|
import * as plugins from './smartuniverse.plugins';
|
||||||
|
|
||||||
import { SmartUniverse } from './index';
|
import { Universe } from './index';
|
||||||
|
|
||||||
process.env.CLI = 'true';
|
process.env.CLI = 'true';
|
||||||
|
|
||||||
const universeCli = new plugins.smartcli.Smartcli();
|
const universeCli = new plugins.smartcli.Smartcli();
|
||||||
|
|
||||||
universeCli.standardTask().then(argvArg => {
|
universeCli.standardTask().then(async argvArg => {
|
||||||
const standardUniverse = new SmartUniverse({
|
const standardUniverse = new Universe({
|
||||||
port: 8765
|
messageExpiryInMilliseconds: 60000
|
||||||
});
|
});
|
||||||
|
await standardUniverse.initServer(8765);
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,21 @@
|
|||||||
|
import * as lik from 'lik';
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
import * as smartcli from 'smartcli';
|
import * as smartcli from 'smartcli';
|
||||||
import * as smartexpress from 'smartexpress';
|
import * as smartexpress from 'smartexpress';
|
||||||
import * as smartfile from 'smartfile';
|
import * as smartfile from 'smartfile';
|
||||||
|
import * as smartrequest from 'smartrequest';
|
||||||
|
import * as smartrx from 'smartrx';
|
||||||
|
import * as smartsocket from 'smartsocket';
|
||||||
|
import * as smarttime from 'smarttime';
|
||||||
|
|
||||||
export { path, smartcli, smartexpress, smartfile };
|
export {
|
||||||
|
lik,
|
||||||
|
path,
|
||||||
|
smartcli,
|
||||||
|
smartexpress,
|
||||||
|
smartfile,
|
||||||
|
smartrx,
|
||||||
|
smartrequest,
|
||||||
|
smartsocket,
|
||||||
|
smarttime
|
||||||
|
};
|
||||||
|
@ -2,5 +2,11 @@
|
|||||||
"extends": [
|
"extends": [
|
||||||
"tslint:latest",
|
"tslint:latest",
|
||||||
"tslint-config-prettier"
|
"tslint-config-prettier"
|
||||||
|
],
|
||||||
|
"rules": {
|
||||||
|
"semicolon": [
|
||||||
|
true,
|
||||||
|
"always"
|
||||||
]
|
]
|
||||||
|
}
|
||||||
}
|
}
|
435
yarn.lock
435
yarn.lock
@ -36,7 +36,7 @@
|
|||||||
"@types/events" "*"
|
"@types/events" "*"
|
||||||
"@types/node" "*"
|
"@types/node" "*"
|
||||||
|
|
||||||
"@types/express@*", "@types/express@^4.0.39":
|
"@types/express@*", "@types/express@^4.11.1":
|
||||||
version "4.11.1"
|
version "4.11.1"
|
||||||
resolved "https://registry.yarnpkg.com/@types/express/-/express-4.11.1.tgz#f99663b3ab32d04cb11db612ef5dd7933f75465b"
|
resolved "https://registry.yarnpkg.com/@types/express/-/express-4.11.1.tgz#f99663b3ab32d04cb11db612ef5dd7933f75465b"
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -57,8 +57,8 @@
|
|||||||
"@types/express" "*"
|
"@types/express" "*"
|
||||||
|
|
||||||
"@types/lodash@^4.14.55", "@types/lodash@^4.14.97":
|
"@types/lodash@^4.14.55", "@types/lodash@^4.14.97":
|
||||||
version "4.14.104"
|
version "4.14.106"
|
||||||
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.104.tgz#53ee2357fa2e6e68379341d92eb2ecea4b11bb80"
|
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.106.tgz#6093e9a02aa567ddecfe9afadca89e53e5dce4dd"
|
||||||
|
|
||||||
"@types/mime@*":
|
"@types/mime@*":
|
||||||
version "2.0.0"
|
version "2.0.0"
|
||||||
@ -68,9 +68,13 @@
|
|||||||
version "3.0.3"
|
version "3.0.3"
|
||||||
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d"
|
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d"
|
||||||
|
|
||||||
"@types/node@*":
|
"@types/node@*", "@types/node@^9.6.0":
|
||||||
version "9.4.6"
|
version "9.6.0"
|
||||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-9.4.6.tgz#d8176d864ee48753d053783e4e463aec86b8d82e"
|
resolved "https://registry.yarnpkg.com/@types/node/-/node-9.6.0.tgz#d3480ee666df9784b1001a1872a2f6ccefb6c2d7"
|
||||||
|
|
||||||
|
"@types/q@0.x.x":
|
||||||
|
version "0.0.37"
|
||||||
|
resolved "https://registry.yarnpkg.com/@types/q/-/q-0.0.37.tgz#7d6a934b35ee2f0ed0646d286eba559599021c9e"
|
||||||
|
|
||||||
"@types/serve-static@*":
|
"@types/serve-static@*":
|
||||||
version "1.13.1"
|
version "1.13.1"
|
||||||
@ -79,6 +83,26 @@
|
|||||||
"@types/express-serve-static-core" "*"
|
"@types/express-serve-static-core" "*"
|
||||||
"@types/mime" "*"
|
"@types/mime" "*"
|
||||||
|
|
||||||
|
"@types/shortid@0.0.29":
|
||||||
|
version "0.0.29"
|
||||||
|
resolved "https://registry.yarnpkg.com/@types/shortid/-/shortid-0.0.29.tgz#8093ee0416a6e2bf2aa6338109114b3fbffa0e9b"
|
||||||
|
|
||||||
|
"@types/socket.io-client@^1.4.32":
|
||||||
|
version "1.4.32"
|
||||||
|
resolved "https://registry.yarnpkg.com/@types/socket.io-client/-/socket.io-client-1.4.32.tgz#988a65a0386c274b1c22a55377fab6a30789ac14"
|
||||||
|
|
||||||
|
"@types/socket.io@^1.4.32":
|
||||||
|
version "1.4.32"
|
||||||
|
resolved "https://registry.yarnpkg.com/@types/socket.io/-/socket.io-1.4.32.tgz#bf7bc4ea6991327f31672c05e237a8a28d7bfc30"
|
||||||
|
dependencies:
|
||||||
|
"@types/node" "*"
|
||||||
|
|
||||||
|
"@types/through2@0.x.x":
|
||||||
|
version "0.4.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@types/through2/-/through2-0.4.1.tgz#0f008e174c1dc5f1cc7e00eb2d132b2cb67f7bd2"
|
||||||
|
dependencies:
|
||||||
|
"@types/node" "*"
|
||||||
|
|
||||||
"@types/vinyl@^2.0.2":
|
"@types/vinyl@^2.0.2":
|
||||||
version "2.0.2"
|
version "2.0.2"
|
||||||
resolved "https://registry.yarnpkg.com/@types/vinyl/-/vinyl-2.0.2.tgz#4f3b8dae8f5828d3800ef709b0cff488ee852de3"
|
resolved "https://registry.yarnpkg.com/@types/vinyl/-/vinyl-2.0.2.tgz#4f3b8dae8f5828d3800ef709b0cff488ee852de3"
|
||||||
@ -89,13 +113,17 @@
|
|||||||
version "10.0.2"
|
version "10.0.2"
|
||||||
resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-10.0.2.tgz#cc4ea921877874d1261e2c44b89807bc836e1b12"
|
resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-10.0.2.tgz#cc4ea921877874d1261e2c44b89807bc836e1b12"
|
||||||
|
|
||||||
accepts@~1.3.4:
|
accepts@~1.3.4, accepts@~1.3.5:
|
||||||
version "1.3.5"
|
version "1.3.5"
|
||||||
resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.5.tgz#eb777df6011723a3b14e8a72c0805c8e86746bd2"
|
resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.5.tgz#eb777df6011723a3b14e8a72c0805c8e86746bd2"
|
||||||
dependencies:
|
dependencies:
|
||||||
mime-types "~2.1.18"
|
mime-types "~2.1.18"
|
||||||
negotiator "0.6.1"
|
negotiator "0.6.1"
|
||||||
|
|
||||||
|
after@0.8.2:
|
||||||
|
version "0.8.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/after/-/after-0.8.2.tgz#fedb394f9f0e02aa9768e702bda23b505fae7e1f"
|
||||||
|
|
||||||
ansi-256-colors@^1.1.0:
|
ansi-256-colors@^1.1.0:
|
||||||
version "1.1.0"
|
version "1.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/ansi-256-colors/-/ansi-256-colors-1.1.0.tgz#910de50efcc7c09e3d82f2f87abd6b700c18818a"
|
resolved "https://registry.yarnpkg.com/ansi-256-colors/-/ansi-256-colors-1.1.0.tgz#910de50efcc7c09e3d82f2f87abd6b700c18818a"
|
||||||
@ -124,14 +152,34 @@ array-flatten@1.1.1:
|
|||||||
version "1.1.1"
|
version "1.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2"
|
resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2"
|
||||||
|
|
||||||
|
arraybuffer.slice@~0.0.7:
|
||||||
|
version "0.0.7"
|
||||||
|
resolved "https://registry.yarnpkg.com/arraybuffer.slice/-/arraybuffer.slice-0.0.7.tgz#3bbc4275dd584cc1b10809b89d4e8b63a69e7675"
|
||||||
|
|
||||||
assertion-error@^1.0.1:
|
assertion-error@^1.0.1:
|
||||||
version "1.1.0"
|
version "1.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/assertion-error/-/assertion-error-1.1.0.tgz#e60b6b0e8f301bd97e5375215bda406c85118c0b"
|
resolved "https://registry.yarnpkg.com/assertion-error/-/assertion-error-1.1.0.tgz#e60b6b0e8f301bd97e5375215bda406c85118c0b"
|
||||||
|
|
||||||
|
async-limiter@~1.0.0:
|
||||||
|
version "1.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.0.tgz#78faed8c3d074ab81f22b4e985d79e8738f720f8"
|
||||||
|
|
||||||
|
backo2@1.0.2:
|
||||||
|
version "1.0.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/backo2/-/backo2-1.0.2.tgz#31ab1ac8b129363463e35b3ebb69f4dfcfba7947"
|
||||||
|
|
||||||
balanced-match@^1.0.0:
|
balanced-match@^1.0.0:
|
||||||
version "1.0.0"
|
version "1.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"
|
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"
|
||||||
|
|
||||||
|
base64-arraybuffer@0.1.5:
|
||||||
|
version "0.1.5"
|
||||||
|
resolved "https://registry.yarnpkg.com/base64-arraybuffer/-/base64-arraybuffer-0.1.5.tgz#73926771923b5a19747ad666aa5cd4bf9c6e9ce8"
|
||||||
|
|
||||||
|
base64id@1.0.0:
|
||||||
|
version "1.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/base64id/-/base64id-1.0.0.tgz#47688cb99bb6804f0e06d3e763b1c32e57d8e6b6"
|
||||||
|
|
||||||
beautycolor@^1.0.7:
|
beautycolor@^1.0.7:
|
||||||
version "1.0.11"
|
version "1.0.11"
|
||||||
resolved "https://registry.yarnpkg.com/beautycolor/-/beautycolor-1.0.11.tgz#71c5568d5a7ed5c144d3a54f753ad1b08862aea5"
|
resolved "https://registry.yarnpkg.com/beautycolor/-/beautycolor-1.0.11.tgz#71c5568d5a7ed5c144d3a54f753ad1b08862aea5"
|
||||||
@ -152,10 +200,20 @@ beautylog@6.1.10, beautylog@^6.1.10:
|
|||||||
smartq "^1.1.1"
|
smartq "^1.1.1"
|
||||||
typings-global "^1.0.14"
|
typings-global "^1.0.14"
|
||||||
|
|
||||||
|
better-assert@~1.0.0:
|
||||||
|
version "1.0.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/better-assert/-/better-assert-1.0.2.tgz#40866b9e1b9e0b55b481894311e68faffaebc522"
|
||||||
|
dependencies:
|
||||||
|
callsite "1.0.0"
|
||||||
|
|
||||||
bindings@^1.2.1:
|
bindings@^1.2.1:
|
||||||
version "1.3.0"
|
version "1.3.0"
|
||||||
resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.3.0.tgz#b346f6ecf6a95f5a815c5839fc7cdb22502f1ed7"
|
resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.3.0.tgz#b346f6ecf6a95f5a815c5839fc7cdb22502f1ed7"
|
||||||
|
|
||||||
|
blob@0.0.4:
|
||||||
|
version "0.0.4"
|
||||||
|
resolved "https://registry.yarnpkg.com/blob/-/blob-0.0.4.tgz#bcf13052ca54463f30f9fc7e95b9a47630a94921"
|
||||||
|
|
||||||
body-parser@1.18.2, body-parser@^1.18.2:
|
body-parser@1.18.2, body-parser@^1.18.2:
|
||||||
version "1.18.2"
|
version "1.18.2"
|
||||||
resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.18.2.tgz#87678a19d84b47d859b83199bd59bce222b10454"
|
resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.18.2.tgz#87678a19d84b47d859b83199bd59bce222b10454"
|
||||||
@ -182,6 +240,10 @@ bytes@3.0.0:
|
|||||||
version "3.0.0"
|
version "3.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048"
|
resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048"
|
||||||
|
|
||||||
|
callsite@1.0.0:
|
||||||
|
version "1.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/callsite/-/callsite-1.0.0.tgz#280398e5d664bd74038b6f0905153e6e8af1bc20"
|
||||||
|
|
||||||
camelcase@^4.1.0:
|
camelcase@^4.1.0:
|
||||||
version "4.1.0"
|
version "4.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd"
|
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd"
|
||||||
@ -250,12 +312,12 @@ clone-stats@^1.0.0:
|
|||||||
resolved "https://registry.yarnpkg.com/clone-stats/-/clone-stats-1.0.0.tgz#b3782dff8bb5474e18b9b6bf0fdfe782f8777680"
|
resolved "https://registry.yarnpkg.com/clone-stats/-/clone-stats-1.0.0.tgz#b3782dff8bb5474e18b9b6bf0fdfe782f8777680"
|
||||||
|
|
||||||
clone@^2.1.1:
|
clone@^2.1.1:
|
||||||
version "2.1.1"
|
version "2.1.2"
|
||||||
resolved "https://registry.yarnpkg.com/clone/-/clone-2.1.1.tgz#d217d1e961118e3ac9a4b8bba3285553bf647cdb"
|
resolved "https://registry.yarnpkg.com/clone/-/clone-2.1.2.tgz#1b7f4b9f591f1e8f83670401600345a02887435f"
|
||||||
|
|
||||||
cloneable-readable@^1.0.0:
|
cloneable-readable@^1.0.0:
|
||||||
version "1.1.1"
|
version "1.1.2"
|
||||||
resolved "https://registry.yarnpkg.com/cloneable-readable/-/cloneable-readable-1.1.1.tgz#c27a4f3a943ca37bed9b01c7d572ee61b1302b15"
|
resolved "https://registry.yarnpkg.com/cloneable-readable/-/cloneable-readable-1.1.2.tgz#d591dee4a8f8bc15da43ce97dceeba13d43e2a65"
|
||||||
dependencies:
|
dependencies:
|
||||||
inherits "^2.0.1"
|
inherits "^2.0.1"
|
||||||
process-nextick-args "^2.0.0"
|
process-nextick-args "^2.0.0"
|
||||||
@ -275,6 +337,18 @@ color-name@^1.1.1:
|
|||||||
version "1.1.3"
|
version "1.1.3"
|
||||||
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25"
|
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25"
|
||||||
|
|
||||||
|
component-bind@1.0.0:
|
||||||
|
version "1.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/component-bind/-/component-bind-1.0.0.tgz#00c608ab7dcd93897c0009651b1d3a8e1e73bbd1"
|
||||||
|
|
||||||
|
component-emitter@1.2.1:
|
||||||
|
version "1.2.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.2.1.tgz#137918d6d78283f7df7a6b7c5a63e140e69425e6"
|
||||||
|
|
||||||
|
component-inherit@0.0.3:
|
||||||
|
version "0.0.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/component-inherit/-/component-inherit-0.0.3.tgz#645fc4adf58b72b649d5cae65135619db26ff143"
|
||||||
|
|
||||||
concat-map@0.0.1:
|
concat-map@0.0.1:
|
||||||
version "0.0.1"
|
version "0.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
|
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
|
||||||
@ -322,12 +396,18 @@ dasherize@2.0.0:
|
|||||||
version "2.0.0"
|
version "2.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/dasherize/-/dasherize-2.0.0.tgz#6d809c9cd0cf7bb8952d80fc84fa13d47ddb1308"
|
resolved "https://registry.yarnpkg.com/dasherize/-/dasherize-2.0.0.tgz#6d809c9cd0cf7bb8952d80fc84fa13d47ddb1308"
|
||||||
|
|
||||||
debug@2.6.9:
|
debug@2.6.9, debug@~2.6.4, debug@~2.6.6:
|
||||||
version "2.6.9"
|
version "2.6.9"
|
||||||
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
|
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
|
||||||
dependencies:
|
dependencies:
|
||||||
ms "2.0.0"
|
ms "2.0.0"
|
||||||
|
|
||||||
|
debug@~3.1.0:
|
||||||
|
version "3.1.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261"
|
||||||
|
dependencies:
|
||||||
|
ms "2.0.0"
|
||||||
|
|
||||||
decamelize@^1.1.1:
|
decamelize@^1.1.1:
|
||||||
version "1.2.0"
|
version "1.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290"
|
resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290"
|
||||||
@ -349,7 +429,7 @@ depd@1.1.1:
|
|||||||
version "1.1.1"
|
version "1.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.1.tgz#5783b4e1c459f06fa5ca27f991f3d06e7a310359"
|
resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.1.tgz#5783b4e1c459f06fa5ca27f991f3d06e7a310359"
|
||||||
|
|
||||||
depd@~1.1.1:
|
depd@~1.1.1, depd@~1.1.2:
|
||||||
version "1.1.2"
|
version "1.1.2"
|
||||||
resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9"
|
resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9"
|
||||||
|
|
||||||
@ -377,13 +457,52 @@ ee-first@1.1.1:
|
|||||||
version "1.1.1"
|
version "1.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d"
|
resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d"
|
||||||
|
|
||||||
encodeurl@~1.0.1:
|
encodeurl@~1.0.2:
|
||||||
version "1.0.2"
|
version "1.0.2"
|
||||||
resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59"
|
resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59"
|
||||||
|
|
||||||
|
engine.io-client@~3.1.0:
|
||||||
|
version "3.1.6"
|
||||||
|
resolved "https://registry.yarnpkg.com/engine.io-client/-/engine.io-client-3.1.6.tgz#5bdeb130f8b94a50ac5cbeb72583e7a4a063ddfd"
|
||||||
|
dependencies:
|
||||||
|
component-emitter "1.2.1"
|
||||||
|
component-inherit "0.0.3"
|
||||||
|
debug "~3.1.0"
|
||||||
|
engine.io-parser "~2.1.1"
|
||||||
|
has-cors "1.1.0"
|
||||||
|
indexof "0.0.1"
|
||||||
|
parseqs "0.0.5"
|
||||||
|
parseuri "0.0.5"
|
||||||
|
ws "~3.3.1"
|
||||||
|
xmlhttprequest-ssl "~1.5.4"
|
||||||
|
yeast "0.1.2"
|
||||||
|
|
||||||
|
engine.io-parser@~2.1.0, engine.io-parser@~2.1.1:
|
||||||
|
version "2.1.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/engine.io-parser/-/engine.io-parser-2.1.2.tgz#4c0f4cff79aaeecbbdcfdea66a823c6085409196"
|
||||||
|
dependencies:
|
||||||
|
after "0.8.2"
|
||||||
|
arraybuffer.slice "~0.0.7"
|
||||||
|
base64-arraybuffer "0.1.5"
|
||||||
|
blob "0.0.4"
|
||||||
|
has-binary2 "~1.0.2"
|
||||||
|
|
||||||
|
engine.io@~3.1.0:
|
||||||
|
version "3.1.5"
|
||||||
|
resolved "https://registry.yarnpkg.com/engine.io/-/engine.io-3.1.5.tgz#0e7ef9d690eb0b35597f1d4ad02a26ca2dba3845"
|
||||||
|
dependencies:
|
||||||
|
accepts "~1.3.4"
|
||||||
|
base64id "1.0.0"
|
||||||
|
cookie "0.3.1"
|
||||||
|
debug "~3.1.0"
|
||||||
|
engine.io-parser "~2.1.0"
|
||||||
|
ws "~3.3.1"
|
||||||
|
optionalDependencies:
|
||||||
|
uws "~9.14.0"
|
||||||
|
|
||||||
es-abstract@^1.5.1:
|
es-abstract@^1.5.1:
|
||||||
version "1.10.0"
|
version "1.11.0"
|
||||||
resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.10.0.tgz#1ecb36c197842a00d8ee4c2dfd8646bb97d60864"
|
resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.11.0.tgz#cce87d518f0496893b1a30cd8461835535480681"
|
||||||
dependencies:
|
dependencies:
|
||||||
es-to-primitive "^1.1.1"
|
es-to-primitive "^1.1.1"
|
||||||
function-bind "^1.1.1"
|
function-bind "^1.1.1"
|
||||||
@ -442,10 +561,10 @@ express-force-ssl@^0.3.2:
|
|||||||
lodash.assign "^3.2.0"
|
lodash.assign "^3.2.0"
|
||||||
|
|
||||||
express@^4.16.2:
|
express@^4.16.2:
|
||||||
version "4.16.2"
|
version "4.16.3"
|
||||||
resolved "https://registry.yarnpkg.com/express/-/express-4.16.2.tgz#e35c6dfe2d64b7dca0a5cd4f21781be3299e076c"
|
resolved "https://registry.yarnpkg.com/express/-/express-4.16.3.tgz#6af8a502350db3246ecc4becf6b5a34d22f7ed53"
|
||||||
dependencies:
|
dependencies:
|
||||||
accepts "~1.3.4"
|
accepts "~1.3.5"
|
||||||
array-flatten "1.1.1"
|
array-flatten "1.1.1"
|
||||||
body-parser "1.18.2"
|
body-parser "1.18.2"
|
||||||
content-disposition "0.5.2"
|
content-disposition "0.5.2"
|
||||||
@ -453,26 +572,26 @@ express@^4.16.2:
|
|||||||
cookie "0.3.1"
|
cookie "0.3.1"
|
||||||
cookie-signature "1.0.6"
|
cookie-signature "1.0.6"
|
||||||
debug "2.6.9"
|
debug "2.6.9"
|
||||||
depd "~1.1.1"
|
depd "~1.1.2"
|
||||||
encodeurl "~1.0.1"
|
encodeurl "~1.0.2"
|
||||||
escape-html "~1.0.3"
|
escape-html "~1.0.3"
|
||||||
etag "~1.8.1"
|
etag "~1.8.1"
|
||||||
finalhandler "1.1.0"
|
finalhandler "1.1.1"
|
||||||
fresh "0.5.2"
|
fresh "0.5.2"
|
||||||
merge-descriptors "1.0.1"
|
merge-descriptors "1.0.1"
|
||||||
methods "~1.1.2"
|
methods "~1.1.2"
|
||||||
on-finished "~2.3.0"
|
on-finished "~2.3.0"
|
||||||
parseurl "~1.3.2"
|
parseurl "~1.3.2"
|
||||||
path-to-regexp "0.1.7"
|
path-to-regexp "0.1.7"
|
||||||
proxy-addr "~2.0.2"
|
proxy-addr "~2.0.3"
|
||||||
qs "6.5.1"
|
qs "6.5.1"
|
||||||
range-parser "~1.2.0"
|
range-parser "~1.2.0"
|
||||||
safe-buffer "5.1.1"
|
safe-buffer "5.1.1"
|
||||||
send "0.16.1"
|
send "0.16.2"
|
||||||
serve-static "1.13.1"
|
serve-static "1.13.2"
|
||||||
setprototypeof "1.1.0"
|
setprototypeof "1.1.0"
|
||||||
statuses "~1.3.1"
|
statuses "~1.4.0"
|
||||||
type-is "~1.6.15"
|
type-is "~1.6.16"
|
||||||
utils-merge "1.0.1"
|
utils-merge "1.0.1"
|
||||||
vary "~1.1.2"
|
vary "~1.1.2"
|
||||||
|
|
||||||
@ -480,16 +599,16 @@ figlet@^1.2.0:
|
|||||||
version "1.2.0"
|
version "1.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/figlet/-/figlet-1.2.0.tgz#6c46537378fab649146b5a6143dda019b430b410"
|
resolved "https://registry.yarnpkg.com/figlet/-/figlet-1.2.0.tgz#6c46537378fab649146b5a6143dda019b430b410"
|
||||||
|
|
||||||
finalhandler@1.1.0:
|
finalhandler@1.1.1:
|
||||||
version "1.1.0"
|
version "1.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.1.0.tgz#ce0b6855b45853e791b2fcc680046d88253dd7f5"
|
resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.1.1.tgz#eebf4ed840079c83f4249038c9d703008301b105"
|
||||||
dependencies:
|
dependencies:
|
||||||
debug "2.6.9"
|
debug "2.6.9"
|
||||||
encodeurl "~1.0.1"
|
encodeurl "~1.0.2"
|
||||||
escape-html "~1.0.3"
|
escape-html "~1.0.3"
|
||||||
on-finished "~2.3.0"
|
on-finished "~2.3.0"
|
||||||
parseurl "~1.3.2"
|
parseurl "~1.3.2"
|
||||||
statuses "~1.3.1"
|
statuses "~1.4.0"
|
||||||
unpipe "~1.0.0"
|
unpipe "~1.0.0"
|
||||||
|
|
||||||
find-up@^2.1.0:
|
find-up@^2.1.0:
|
||||||
@ -563,6 +682,16 @@ graceful-fs@^4.1.2, graceful-fs@^4.1.6:
|
|||||||
version "4.1.11"
|
version "4.1.11"
|
||||||
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658"
|
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658"
|
||||||
|
|
||||||
|
has-binary2@~1.0.2:
|
||||||
|
version "1.0.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/has-binary2/-/has-binary2-1.0.2.tgz#e83dba49f0b9be4d026d27365350d9f03f54be98"
|
||||||
|
dependencies:
|
||||||
|
isarray "2.0.1"
|
||||||
|
|
||||||
|
has-cors@1.1.0:
|
||||||
|
version "1.1.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/has-cors/-/has-cors-1.1.0.tgz#5e474793f7ea9843d1bb99c23eef49ff126fff39"
|
||||||
|
|
||||||
has-flag@^3.0.0:
|
has-flag@^3.0.0:
|
||||||
version "3.0.0"
|
version "3.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd"
|
resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd"
|
||||||
@ -583,7 +712,7 @@ helmet-csp@2.7.0:
|
|||||||
lodash.reduce "4.6.0"
|
lodash.reduce "4.6.0"
|
||||||
platform "1.3.5"
|
platform "1.3.5"
|
||||||
|
|
||||||
helmet@^3.10.0:
|
helmet@^3.12.0:
|
||||||
version "3.12.0"
|
version "3.12.0"
|
||||||
resolved "https://registry.yarnpkg.com/helmet/-/helmet-3.12.0.tgz#2098e35cf4e51c64c2f1d38670b7d382a377d92c"
|
resolved "https://registry.yarnpkg.com/helmet/-/helmet-3.12.0.tgz#2098e35cf4e51c64c2f1d38670b7d382a377d92c"
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -635,6 +764,10 @@ ienoopen@1.0.0:
|
|||||||
version "1.0.0"
|
version "1.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/ienoopen/-/ienoopen-1.0.0.tgz#346a428f474aac8f50cf3784ea2d0f16f62bda6b"
|
resolved "https://registry.yarnpkg.com/ienoopen/-/ienoopen-1.0.0.tgz#346a428f474aac8f50cf3784ea2d0f16f62bda6b"
|
||||||
|
|
||||||
|
indexof@0.0.1:
|
||||||
|
version "0.0.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/indexof/-/indexof-0.0.1.tgz#82dc336d232b9062179d05ab3293a66059fd435d"
|
||||||
|
|
||||||
inflight@^1.0.4:
|
inflight@^1.0.4:
|
||||||
version "1.0.6"
|
version "1.0.6"
|
||||||
resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9"
|
resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9"
|
||||||
@ -694,6 +827,10 @@ is-utf8@^0.2.0, is-utf8@^0.2.1:
|
|||||||
version "0.2.1"
|
version "0.2.1"
|
||||||
resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72"
|
resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72"
|
||||||
|
|
||||||
|
isarray@2.0.1:
|
||||||
|
version "2.0.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/isarray/-/isarray-2.0.1.tgz#a37d94ed9cda2d59865c9f76fe596ee1f338741e"
|
||||||
|
|
||||||
isarray@~1.0.0:
|
isarray@~1.0.0:
|
||||||
version "1.0.0"
|
version "1.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11"
|
resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11"
|
||||||
@ -735,7 +872,7 @@ left-pad@^1.1.3:
|
|||||||
version "1.2.0"
|
version "1.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/left-pad/-/left-pad-1.2.0.tgz#d30a73c6b8201d8f7d8e7956ba9616087a68e0ee"
|
resolved "https://registry.yarnpkg.com/left-pad/-/left-pad-1.2.0.tgz#d30a73c6b8201d8f7d8e7956ba9616087a68e0ee"
|
||||||
|
|
||||||
lik@^2.0.2:
|
lik@^2.0.1, lik@^2.0.2, lik@^2.0.5:
|
||||||
version "2.0.5"
|
version "2.0.5"
|
||||||
resolved "https://registry.yarnpkg.com/lik/-/lik-2.0.5.tgz#1338a3201828b557fa91a5b8a6013743ff720e10"
|
resolved "https://registry.yarnpkg.com/lik/-/lik-2.0.5.tgz#1338a3201828b557fa91a5b8a6013743ff720e10"
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -827,8 +964,8 @@ log-symbols@^2.1.0:
|
|||||||
chalk "^2.0.1"
|
chalk "^2.0.1"
|
||||||
|
|
||||||
lru-cache@^4.0.1:
|
lru-cache@^4.0.1:
|
||||||
version "4.1.1"
|
version "4.1.2"
|
||||||
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.1.tgz#622e32e82488b49279114a4f9ecf45e7cd6bba55"
|
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.2.tgz#45234b2e6e2f2b33da125624c4664929a0224c3f"
|
||||||
dependencies:
|
dependencies:
|
||||||
pseudomap "^1.0.2"
|
pseudomap "^1.0.2"
|
||||||
yallist "^2.1.2"
|
yallist "^2.1.2"
|
||||||
@ -886,13 +1023,17 @@ minimist@^1.2.0:
|
|||||||
version "1.2.0"
|
version "1.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284"
|
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284"
|
||||||
|
|
||||||
|
moment@^2.21.0:
|
||||||
|
version "2.21.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/moment/-/moment-2.21.0.tgz#2a114b51d2a6ec9e6d83cf803f838a878d8a023a"
|
||||||
|
|
||||||
ms@2.0.0:
|
ms@2.0.0:
|
||||||
version "2.0.0"
|
version "2.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8"
|
resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8"
|
||||||
|
|
||||||
nan@^2.3.2:
|
nan@^2.3.2:
|
||||||
version "2.9.2"
|
version "2.10.0"
|
||||||
resolved "https://registry.yarnpkg.com/nan/-/nan-2.9.2.tgz#f564d75f5f8f36a6d9456cca7a6c4fe488ab7866"
|
resolved "https://registry.yarnpkg.com/nan/-/nan-2.10.0.tgz#96d0cd610ebd58d4b4de9cc0c6828cda99c7548f"
|
||||||
|
|
||||||
negotiator@0.6.1:
|
negotiator@0.6.1:
|
||||||
version "0.6.1"
|
version "0.6.1"
|
||||||
@ -902,6 +1043,16 @@ nocache@2.0.0:
|
|||||||
version "2.0.0"
|
version "2.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/nocache/-/nocache-2.0.0.tgz#202b48021a0c4cbde2df80de15a17443c8b43980"
|
resolved "https://registry.yarnpkg.com/nocache/-/nocache-2.0.0.tgz#202b48021a0c4cbde2df80de15a17443c8b43980"
|
||||||
|
|
||||||
|
nodehash@^1.0.4:
|
||||||
|
version "1.0.4"
|
||||||
|
resolved "https://registry.yarnpkg.com/nodehash/-/nodehash-1.0.4.tgz#fd733397a0925b9b4bc19726f3c0e68850206e7f"
|
||||||
|
dependencies:
|
||||||
|
"@types/q" "0.x.x"
|
||||||
|
"@types/through2" "0.x.x"
|
||||||
|
q "^1.4.1"
|
||||||
|
through2 "^2.0.1"
|
||||||
|
typings-global "^1.0.6"
|
||||||
|
|
||||||
npm-run-path@^2.0.0:
|
npm-run-path@^2.0.0:
|
||||||
version "2.0.2"
|
version "2.0.2"
|
||||||
resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f"
|
resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f"
|
||||||
@ -916,6 +1067,10 @@ object-assign@^4:
|
|||||||
version "4.1.1"
|
version "4.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
|
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
|
||||||
|
|
||||||
|
object-component@0.0.3:
|
||||||
|
version "0.0.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/object-component/-/object-component-0.0.3.tgz#f0c69aa50efc95b866c186f400a33769cb2f1291"
|
||||||
|
|
||||||
object-keys@^1.0.8:
|
object-keys@^1.0.8:
|
||||||
version "1.0.11"
|
version "1.0.11"
|
||||||
resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.0.11.tgz#c54601778ad560f1142ce0e01bcca8b56d13426d"
|
resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.0.11.tgz#c54601778ad560f1142ce0e01bcca8b56d13426d"
|
||||||
@ -986,6 +1141,18 @@ p-try@^1.0.0:
|
|||||||
version "1.0.0"
|
version "1.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3"
|
resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3"
|
||||||
|
|
||||||
|
parseqs@0.0.5:
|
||||||
|
version "0.0.5"
|
||||||
|
resolved "https://registry.yarnpkg.com/parseqs/-/parseqs-0.0.5.tgz#d5208a3738e46766e291ba2ea173684921a8b89d"
|
||||||
|
dependencies:
|
||||||
|
better-assert "~1.0.0"
|
||||||
|
|
||||||
|
parseuri@0.0.5:
|
||||||
|
version "0.0.5"
|
||||||
|
resolved "https://registry.yarnpkg.com/parseuri/-/parseuri-0.0.5.tgz#80204a50d4dbb779bfdc6ebe2778d90e4bce320a"
|
||||||
|
dependencies:
|
||||||
|
better-assert "~1.0.0"
|
||||||
|
|
||||||
parseurl@~1.3.2:
|
parseurl@~1.3.2:
|
||||||
version "1.3.2"
|
version "1.3.2"
|
||||||
resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.2.tgz#fc289d4ed8993119460c156253262cdc8de65bf3"
|
resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.2.tgz#fc289d4ed8993119460c156253262cdc8de65bf3"
|
||||||
@ -1026,7 +1193,7 @@ process-nextick-args@^2.0.0, process-nextick-args@~2.0.0:
|
|||||||
version "2.0.0"
|
version "2.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.0.tgz#a37d732f4271b4ab1ad070d35508e8290788ffaa"
|
resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.0.tgz#a37d732f4271b4ab1ad070d35508e8290788ffaa"
|
||||||
|
|
||||||
proxy-addr@~2.0.2:
|
proxy-addr@~2.0.3:
|
||||||
version "2.0.3"
|
version "2.0.3"
|
||||||
resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.3.tgz#355f262505a621646b3130a728eb647e22055341"
|
resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.3.tgz#355f262505a621646b3130a728eb647e22055341"
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -1037,6 +1204,10 @@ pseudomap@^1.0.2:
|
|||||||
version "1.0.2"
|
version "1.0.2"
|
||||||
resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3"
|
resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3"
|
||||||
|
|
||||||
|
q@^1.4.1:
|
||||||
|
version "1.5.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7"
|
||||||
|
|
||||||
qs@6.5.1:
|
qs@6.5.1:
|
||||||
version "6.5.1"
|
version "6.5.1"
|
||||||
resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.1.tgz#349cdf6eef89ec45c12d7d5eb3fc0c870343a6d8"
|
resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.1.tgz#349cdf6eef89ec45c12d7d5eb3fc0c870343a6d8"
|
||||||
@ -1054,7 +1225,7 @@ raw-body@2.3.2:
|
|||||||
iconv-lite "0.4.19"
|
iconv-lite "0.4.19"
|
||||||
unpipe "1.0.0"
|
unpipe "1.0.0"
|
||||||
|
|
||||||
readable-stream@^2.0.2, readable-stream@^2.3.5:
|
readable-stream@^2.0.2, readable-stream@^2.1.5, readable-stream@^2.3.5:
|
||||||
version "2.3.5"
|
version "2.3.5"
|
||||||
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.5.tgz#b4f85003a938cbb6ecbce2a124fb1012bd1a838d"
|
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.5.tgz#b4f85003a938cbb6ecbce2a124fb1012bd1a838d"
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -1097,9 +1268,9 @@ restore-cursor@^2.0.0:
|
|||||||
onetime "^2.0.0"
|
onetime "^2.0.0"
|
||||||
signal-exit "^3.0.2"
|
signal-exit "^3.0.2"
|
||||||
|
|
||||||
rxjs@^5.4.3:
|
rxjs@^5.4.3, rxjs@^5.5.2, rxjs@^5.5.8:
|
||||||
version "5.5.6"
|
version "5.5.8"
|
||||||
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-5.5.6.tgz#e31fb96d6fd2ff1fd84bcea8ae9c02d007179c02"
|
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-5.5.8.tgz#b2b0809a57614ad6254c03d7446dea0d83ca3791"
|
||||||
dependencies:
|
dependencies:
|
||||||
symbol-observable "1.0.1"
|
symbol-observable "1.0.1"
|
||||||
|
|
||||||
@ -1107,14 +1278,14 @@ safe-buffer@5.1.1, safe-buffer@~5.1.0, safe-buffer@~5.1.1:
|
|||||||
version "5.1.1"
|
version "5.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853"
|
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853"
|
||||||
|
|
||||||
send@0.16.1:
|
send@0.16.2:
|
||||||
version "0.16.1"
|
version "0.16.2"
|
||||||
resolved "https://registry.yarnpkg.com/send/-/send-0.16.1.tgz#a70e1ca21d1382c11d0d9f6231deb281080d7ab3"
|
resolved "https://registry.yarnpkg.com/send/-/send-0.16.2.tgz#6ecca1e0f8c156d141597559848df64730a6bbc1"
|
||||||
dependencies:
|
dependencies:
|
||||||
debug "2.6.9"
|
debug "2.6.9"
|
||||||
depd "~1.1.1"
|
depd "~1.1.2"
|
||||||
destroy "~1.0.4"
|
destroy "~1.0.4"
|
||||||
encodeurl "~1.0.1"
|
encodeurl "~1.0.2"
|
||||||
escape-html "~1.0.3"
|
escape-html "~1.0.3"
|
||||||
etag "~1.8.1"
|
etag "~1.8.1"
|
||||||
fresh "0.5.2"
|
fresh "0.5.2"
|
||||||
@ -1123,16 +1294,16 @@ send@0.16.1:
|
|||||||
ms "2.0.0"
|
ms "2.0.0"
|
||||||
on-finished "~2.3.0"
|
on-finished "~2.3.0"
|
||||||
range-parser "~1.2.0"
|
range-parser "~1.2.0"
|
||||||
statuses "~1.3.1"
|
statuses "~1.4.0"
|
||||||
|
|
||||||
serve-static@1.13.1:
|
serve-static@1.13.2:
|
||||||
version "1.13.1"
|
version "1.13.2"
|
||||||
resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.13.1.tgz#4c57d53404a761d8f2e7c1e8a18a47dbf278a719"
|
resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.13.2.tgz#095e8472fd5b46237db50ce486a43f4b86c6cec1"
|
||||||
dependencies:
|
dependencies:
|
||||||
encodeurl "~1.0.1"
|
encodeurl "~1.0.2"
|
||||||
escape-html "~1.0.3"
|
escape-html "~1.0.3"
|
||||||
parseurl "~1.3.2"
|
parseurl "~1.3.2"
|
||||||
send "0.16.1"
|
send "0.16.2"
|
||||||
|
|
||||||
set-blocking@^2.0.0:
|
set-blocking@^2.0.0:
|
||||||
version "2.0.0"
|
version "2.0.0"
|
||||||
@ -1156,6 +1327,10 @@ shebang-regex@^1.0.0:
|
|||||||
version "1.0.0"
|
version "1.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3"
|
resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3"
|
||||||
|
|
||||||
|
shortid@^2.2.8:
|
||||||
|
version "2.2.8"
|
||||||
|
resolved "https://registry.yarnpkg.com/shortid/-/shortid-2.2.8.tgz#033b117d6a2e975804f6f0969dbe7d3d0b355131"
|
||||||
|
|
||||||
signal-exit@^3.0.0, signal-exit@^3.0.2:
|
signal-exit@^3.0.0, signal-exit@^3.0.2:
|
||||||
version "3.0.2"
|
version "3.0.2"
|
||||||
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d"
|
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d"
|
||||||
@ -1184,7 +1359,7 @@ smartcli@^2.0.12:
|
|||||||
typings-global "^1.0.20"
|
typings-global "^1.0.20"
|
||||||
yargs "^11.0.0"
|
yargs "^11.0.0"
|
||||||
|
|
||||||
smartdelay@^1.0.3:
|
smartdelay@^1.0.3, smartdelay@^1.0.4:
|
||||||
version "1.0.4"
|
version "1.0.4"
|
||||||
resolved "https://registry.yarnpkg.com/smartdelay/-/smartdelay-1.0.4.tgz#791c1a4ee6770494064c10b1d2d2b8e6f3105b82"
|
resolved "https://registry.yarnpkg.com/smartdelay/-/smartdelay-1.0.4.tgz#791c1a4ee6770494064c10b1d2d2b8e6f3105b82"
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -1199,18 +1374,25 @@ smartenv@^2.0.0:
|
|||||||
smartq "^1.1.1"
|
smartq "^1.1.1"
|
||||||
typings-global "^1.0.14"
|
typings-global "^1.0.14"
|
||||||
|
|
||||||
smartexpress@^1.0.19:
|
smartevent@^1.0.1:
|
||||||
version "1.0.19"
|
version "1.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/smartexpress/-/smartexpress-1.0.19.tgz#8dd16521d3e27f8336ba28ece6028f9fab1ed793"
|
resolved "https://registry.yarnpkg.com/smartevent/-/smartevent-1.0.1.tgz#13d2bf2cf094ebdf17813fa0d46041f817a302aa"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@types/express" "^4.0.39"
|
smartq "^1.1.1"
|
||||||
|
typings-global "^1.0.16"
|
||||||
|
|
||||||
|
smartexpress@^1.0.21:
|
||||||
|
version "1.0.21"
|
||||||
|
resolved "https://registry.yarnpkg.com/smartexpress/-/smartexpress-1.0.21.tgz#c4fef833d3c6f879da67b7a4c7943c389d85b237"
|
||||||
|
dependencies:
|
||||||
|
"@types/express" "^4.11.1"
|
||||||
"@types/helmet" "^0.0.37"
|
"@types/helmet" "^0.0.37"
|
||||||
body-parser "^1.18.2"
|
body-parser "^1.18.2"
|
||||||
cors "^2.8.4"
|
cors "^2.8.4"
|
||||||
express "^4.16.2"
|
express "^4.16.2"
|
||||||
express-force-ssl "^0.3.2"
|
express-force-ssl "^0.3.2"
|
||||||
helmet "^3.10.0"
|
helmet "^3.12.0"
|
||||||
lik "^2.0.2"
|
lik "^2.0.5"
|
||||||
smartq "^1.1.6"
|
smartq "^1.1.6"
|
||||||
|
|
||||||
smartfile@^4.2.28:
|
smartfile@^4.2.28:
|
||||||
@ -1245,11 +1427,10 @@ smartpath@^3.2.8:
|
|||||||
home "^1.0.1"
|
home "^1.0.1"
|
||||||
typings-global "^1.0.14"
|
typings-global "^1.0.14"
|
||||||
|
|
||||||
smartq@^1.1.1, smartq@^1.1.6:
|
smartq@^1.1.1, smartq@^1.1.6, smartq@^1.1.8:
|
||||||
version "1.1.6"
|
version "1.1.8"
|
||||||
resolved "https://registry.yarnpkg.com/smartq/-/smartq-1.1.6.tgz#0c1ff4336d95e95b4f1fdd8ccd7e2c5a323b8412"
|
resolved "https://registry.yarnpkg.com/smartq/-/smartq-1.1.8.tgz#7e2f3b9739eb5d6c9f45f2a86e339ec81e49e8d2"
|
||||||
dependencies:
|
dependencies:
|
||||||
typings-global "^1.0.19"
|
|
||||||
util.promisify "^1.0.0"
|
util.promisify "^1.0.0"
|
||||||
|
|
||||||
smartrequest@^1.0.8:
|
smartrequest@^1.0.8:
|
||||||
@ -1258,18 +1439,89 @@ smartrequest@^1.0.8:
|
|||||||
dependencies:
|
dependencies:
|
||||||
smartq "^1.1.1"
|
smartq "^1.1.1"
|
||||||
|
|
||||||
|
smartrx@^1.0.5:
|
||||||
|
version "1.0.5"
|
||||||
|
resolved "https://registry.yarnpkg.com/smartrx/-/smartrx-1.0.5.tgz#28dc7bcaf5a33b13cfdf355572bcaf3ebb896e74"
|
||||||
|
dependencies:
|
||||||
|
lik "^2.0.1"
|
||||||
|
rxjs "^5.5.2"
|
||||||
|
smartevent "^1.0.1"
|
||||||
|
smartq "^1.1.6"
|
||||||
|
typings-global "^1.0.23"
|
||||||
|
|
||||||
|
smartsocket@^1.1.19:
|
||||||
|
version "1.1.19"
|
||||||
|
resolved "https://registry.yarnpkg.com/smartsocket/-/smartsocket-1.1.19.tgz#60d15ad1af4b2be03ca7a56ce075e52fa0e33e1f"
|
||||||
|
dependencies:
|
||||||
|
"@types/shortid" "0.0.29"
|
||||||
|
"@types/socket.io" "^1.4.32"
|
||||||
|
"@types/socket.io-client" "^1.4.32"
|
||||||
|
beautylog "^6.1.10"
|
||||||
|
lik "^2.0.5"
|
||||||
|
nodehash "^1.0.4"
|
||||||
|
shortid "^2.2.8"
|
||||||
|
smartdelay "^1.0.4"
|
||||||
|
smartq "^1.1.8"
|
||||||
|
socket.io "^2.0.4"
|
||||||
|
socket.io-client "^2.0.4"
|
||||||
|
|
||||||
|
smarttime@^2.0.0:
|
||||||
|
version "2.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/smarttime/-/smarttime-2.0.0.tgz#fefa32a5087174c4f32fbd3a862176aa9b774b93"
|
||||||
|
dependencies:
|
||||||
|
moment "^2.21.0"
|
||||||
|
smartdelay "^1.0.4"
|
||||||
|
smartq "^1.1.6"
|
||||||
|
|
||||||
|
socket.io-adapter@~1.1.0:
|
||||||
|
version "1.1.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/socket.io-adapter/-/socket.io-adapter-1.1.1.tgz#2a805e8a14d6372124dd9159ad4502f8cb07f06b"
|
||||||
|
|
||||||
|
socket.io-client@2.0.4, socket.io-client@^2.0.4:
|
||||||
|
version "2.0.4"
|
||||||
|
resolved "https://registry.yarnpkg.com/socket.io-client/-/socket.io-client-2.0.4.tgz#0918a552406dc5e540b380dcd97afc4a64332f8e"
|
||||||
|
dependencies:
|
||||||
|
backo2 "1.0.2"
|
||||||
|
base64-arraybuffer "0.1.5"
|
||||||
|
component-bind "1.0.0"
|
||||||
|
component-emitter "1.2.1"
|
||||||
|
debug "~2.6.4"
|
||||||
|
engine.io-client "~3.1.0"
|
||||||
|
has-cors "1.1.0"
|
||||||
|
indexof "0.0.1"
|
||||||
|
object-component "0.0.3"
|
||||||
|
parseqs "0.0.5"
|
||||||
|
parseuri "0.0.5"
|
||||||
|
socket.io-parser "~3.1.1"
|
||||||
|
to-array "0.1.4"
|
||||||
|
|
||||||
|
socket.io-parser@~3.1.1:
|
||||||
|
version "3.1.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/socket.io-parser/-/socket.io-parser-3.1.3.tgz#ed2da5ee79f10955036e3da413bfd7f1e4d86c8e"
|
||||||
|
dependencies:
|
||||||
|
component-emitter "1.2.1"
|
||||||
|
debug "~3.1.0"
|
||||||
|
has-binary2 "~1.0.2"
|
||||||
|
isarray "2.0.1"
|
||||||
|
|
||||||
|
socket.io@^2.0.4:
|
||||||
|
version "2.0.4"
|
||||||
|
resolved "https://registry.yarnpkg.com/socket.io/-/socket.io-2.0.4.tgz#c1a4590ceff87ecf13c72652f046f716b29e6014"
|
||||||
|
dependencies:
|
||||||
|
debug "~2.6.6"
|
||||||
|
engine.io "~3.1.0"
|
||||||
|
socket.io-adapter "~1.1.0"
|
||||||
|
socket.io-client "2.0.4"
|
||||||
|
socket.io-parser "~3.1.1"
|
||||||
|
|
||||||
sprintf-js@~1.0.2:
|
sprintf-js@~1.0.2:
|
||||||
version "1.0.3"
|
version "1.0.3"
|
||||||
resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c"
|
resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c"
|
||||||
|
|
||||||
"statuses@>= 1.3.1 < 2":
|
"statuses@>= 1.3.1 < 2", statuses@~1.4.0:
|
||||||
version "1.4.0"
|
version "1.4.0"
|
||||||
resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.4.0.tgz#bb73d446da2796106efcc1b601a253d6c46bd087"
|
resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.4.0.tgz#bb73d446da2796106efcc1b601a253d6c46bd087"
|
||||||
|
|
||||||
statuses@~1.3.1:
|
|
||||||
version "1.3.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.3.1.tgz#faf51b9eb74aaef3b3acf4ad5f61abf24cb7b93e"
|
|
||||||
|
|
||||||
string-width@^1.0.1:
|
string-width@^1.0.1:
|
||||||
version "1.0.2"
|
version "1.0.2"
|
||||||
resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3"
|
resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3"
|
||||||
@ -1350,21 +1602,36 @@ tapbundle@^2.0.0:
|
|||||||
smartdelay "^1.0.3"
|
smartdelay "^1.0.3"
|
||||||
smartq "^1.1.1"
|
smartq "^1.1.1"
|
||||||
|
|
||||||
|
through2@^2.0.1:
|
||||||
|
version "2.0.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.3.tgz#0004569b37c7c74ba39c43f3ced78d1ad94140be"
|
||||||
|
dependencies:
|
||||||
|
readable-stream "^2.1.5"
|
||||||
|
xtend "~4.0.1"
|
||||||
|
|
||||||
|
to-array@0.1.4:
|
||||||
|
version "0.1.4"
|
||||||
|
resolved "https://registry.yarnpkg.com/to-array/-/to-array-0.1.4.tgz#17e6c11f73dd4f3d74cda7a4ff3238e9ad9bf890"
|
||||||
|
|
||||||
type-detect@^4.0.0:
|
type-detect@^4.0.0:
|
||||||
version "4.0.8"
|
version "4.0.8"
|
||||||
resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c"
|
resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c"
|
||||||
|
|
||||||
type-is@~1.6.15:
|
type-is@~1.6.15, type-is@~1.6.16:
|
||||||
version "1.6.16"
|
version "1.6.16"
|
||||||
resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.16.tgz#f89ce341541c672b25ee7ae3c73dee3b2be50194"
|
resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.16.tgz#f89ce341541c672b25ee7ae3c73dee3b2be50194"
|
||||||
dependencies:
|
dependencies:
|
||||||
media-typer "0.3.0"
|
media-typer "0.3.0"
|
||||||
mime-types "~2.1.18"
|
mime-types "~2.1.18"
|
||||||
|
|
||||||
typings-global@^1.0.14, typings-global@^1.0.16, typings-global@^1.0.19, typings-global@^1.0.20:
|
typings-global@^1.0.14, typings-global@^1.0.16, typings-global@^1.0.20, typings-global@^1.0.23, typings-global@^1.0.6:
|
||||||
version "1.0.28"
|
version "1.0.28"
|
||||||
resolved "https://registry.yarnpkg.com/typings-global/-/typings-global-1.0.28.tgz#e28cc965476564cbc00e438739e0aa0735d323d4"
|
resolved "https://registry.yarnpkg.com/typings-global/-/typings-global-1.0.28.tgz#e28cc965476564cbc00e438739e0aa0735d323d4"
|
||||||
|
|
||||||
|
ultron@~1.1.0:
|
||||||
|
version "1.1.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/ultron/-/ultron-1.1.1.tgz#9fe1536a10a664a65266a1e3ccf85fd36302bc9c"
|
||||||
|
|
||||||
universalify@^0.1.0:
|
universalify@^0.1.0:
|
||||||
version "0.1.1"
|
version "0.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.1.tgz#fa71badd4437af4c148841e3b3b165f9e9e590b7"
|
resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.1.tgz#fa71badd4437af4c148841e3b3b165f9e9e590b7"
|
||||||
@ -1388,6 +1655,10 @@ utils-merge@1.0.1:
|
|||||||
version "1.0.1"
|
version "1.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713"
|
resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713"
|
||||||
|
|
||||||
|
uws@~9.14.0:
|
||||||
|
version "9.14.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/uws/-/uws-9.14.0.tgz#fac8386befc33a7a3705cbd58dc47b430ca4dd95"
|
||||||
|
|
||||||
vary@^1, vary@~1.1.2:
|
vary@^1, vary@~1.1.2:
|
||||||
version "1.1.2"
|
version "1.1.2"
|
||||||
resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc"
|
resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc"
|
||||||
@ -1434,10 +1705,26 @@ wrappy@1:
|
|||||||
version "1.0.2"
|
version "1.0.2"
|
||||||
resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
|
resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
|
||||||
|
|
||||||
|
ws@~3.3.1:
|
||||||
|
version "3.3.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/ws/-/ws-3.3.3.tgz#f1cf84fe2d5e901ebce94efaece785f187a228f2"
|
||||||
|
dependencies:
|
||||||
|
async-limiter "~1.0.0"
|
||||||
|
safe-buffer "~5.1.0"
|
||||||
|
ultron "~1.1.0"
|
||||||
|
|
||||||
x-xss-protection@1.1.0:
|
x-xss-protection@1.1.0:
|
||||||
version "1.1.0"
|
version "1.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/x-xss-protection/-/x-xss-protection-1.1.0.tgz#4f1898c332deb1e7f2be1280efb3e2c53d69c1a7"
|
resolved "https://registry.yarnpkg.com/x-xss-protection/-/x-xss-protection-1.1.0.tgz#4f1898c332deb1e7f2be1280efb3e2c53d69c1a7"
|
||||||
|
|
||||||
|
xmlhttprequest-ssl@~1.5.4:
|
||||||
|
version "1.5.5"
|
||||||
|
resolved "https://registry.yarnpkg.com/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.5.5.tgz#c2876b06168aadc40e57d97e81191ac8f4398b3e"
|
||||||
|
|
||||||
|
xtend@~4.0.1:
|
||||||
|
version "4.0.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af"
|
||||||
|
|
||||||
y18n@^3.2.1:
|
y18n@^3.2.1:
|
||||||
version "3.2.1"
|
version "3.2.1"
|
||||||
resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41"
|
resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41"
|
||||||
@ -1468,3 +1755,7 @@ yargs@^11.0.0:
|
|||||||
which-module "^2.0.0"
|
which-module "^2.0.0"
|
||||||
y18n "^3.2.1"
|
y18n "^3.2.1"
|
||||||
yargs-parser "^9.0.2"
|
yargs-parser "^9.0.2"
|
||||||
|
|
||||||
|
yeast@0.1.2:
|
||||||
|
version "0.1.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/yeast/-/yeast-0.1.2.tgz#008e06d8094320c372dbc2f8ed76a0ca6c8ac419"
|
||||||
|
Reference in New Issue
Block a user