@sellout/service 0.0.21 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dist/NatsConnectionManager.js +188 -185
- package/.dist/NatsConnectionManager.js.map +1 -1
- package/.dist/PbAsyncMessageHandler.js +1 -0
- package/.dist/PbAsyncMessageHandler.js.map +1 -1
- package/.dist/PbMessageHandler.js +1 -0
- package/.dist/PbMessageHandler.js.map +1 -1
- package/.dist/PbServiceProxy.js +1 -0
- package/.dist/PbServiceProxy.js.map +1 -1
- package/.dist/TracerExpress.js +1 -0
- package/.dist/TracerExpress.js.map +1 -1
- package/.dist/env.js +1 -0
- package/.dist/env.js.map +1 -1
- package/.dist/joiToErrors.js +1 -0
- package/.dist/joiToErrors.js.map +1 -1
- package/package.json +4 -4
|
@@ -5,211 +5,214 @@ const BROADCAST_PREFIX = 'BROADCAST'; /* Prefix for broadcast messages */
|
|
|
5
5
|
/**
|
|
6
6
|
* Exposes connection operations for NATS.
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* Manages connections to NATS servers.
|
|
11
|
-
* @constructor
|
|
12
|
-
*
|
|
13
|
-
* @param {boolean} verbose - Log all events if true
|
|
14
|
-
*/
|
|
15
|
-
constructor(natsServers, logger, verbose = false, defaultRequestTimeout = 60000) {
|
|
16
|
-
this.logPrefix = 'NatsConnectionManager';
|
|
8
|
+
let NatsConnectionManager = /** @class */ (() => {
|
|
9
|
+
class NatsConnectionManager {
|
|
17
10
|
/**
|
|
18
|
-
*
|
|
11
|
+
* Manages connections to NATS servers.
|
|
12
|
+
* @constructor
|
|
19
13
|
*
|
|
20
|
-
* @param {
|
|
21
|
-
* @param {string} method - Id of method to call
|
|
22
|
-
* @param {Buffer} req - Request buffer
|
|
23
|
-
* @callback cb - Reply callback
|
|
24
|
-
* @param { number} [timeout] - Register a default timeout for requests
|
|
14
|
+
* @param {boolean} verbose - Log all events if true
|
|
25
15
|
*/
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
16
|
+
constructor(natsServers, logger, verbose = false, defaultRequestTimeout = 60000) {
|
|
17
|
+
this.logPrefix = 'NatsConnectionManager';
|
|
18
|
+
/**
|
|
19
|
+
* Publish request for service.
|
|
20
|
+
*
|
|
21
|
+
* @param {string} serviceId - Service Id of receipient
|
|
22
|
+
* @param {string} method - Id of method to call
|
|
23
|
+
* @param {Buffer} req - Request buffer
|
|
24
|
+
* @callback cb - Reply callback
|
|
25
|
+
* @param { number} [timeout] - Register a default timeout for requests
|
|
26
|
+
*/
|
|
27
|
+
// tslint:disable-next-line:max-line-length
|
|
28
|
+
this.send = (serviceId, method, req, cb, timeout) => {
|
|
29
|
+
const subject = [serviceId, method].join('.');
|
|
30
|
+
const msgId = this.conn.requestOne(subject, req, {}, timeout == null ? this.defaultRequestTimeout : timeout, (reply) => {
|
|
31
|
+
this.logMessage(`Sending message: ${subject} (${msgId})`);
|
|
32
|
+
if (reply.code && reply.code === NATS.REQ_TIMEOUT) {
|
|
33
|
+
this.logMessage(`Reply for (${msgId}): ${JSON.stringify(reply)}`, true);
|
|
34
|
+
const error = new NatsConnectionManager.TIMEOUT_ERROR({
|
|
35
|
+
message: `Timeout sending request: ${subject} (${msgId})`,
|
|
36
|
+
});
|
|
37
|
+
cb(error, null);
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
this.logMessage(`Received reply: ${subject} (${msgId})`);
|
|
41
|
+
cb(null, reply);
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Publish a broadcast message
|
|
46
|
+
*/
|
|
47
|
+
this.sendBroadcast = (messageId, req, cb) => {
|
|
48
|
+
return this.sendAsync(BROADCAST_PREFIX, messageId, req, cb);
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Publish asynchronous request for service.
|
|
52
|
+
*
|
|
53
|
+
* @param {string} serviceId - Service Id of receipient
|
|
54
|
+
* @param {string} method - Id of method to call
|
|
55
|
+
* @param {Buffer} req - Request buffer
|
|
56
|
+
* @callback cb - Reply callback
|
|
57
|
+
*/
|
|
58
|
+
this.sendAsync = (serviceId, method, req, cb) => {
|
|
59
|
+
const subject = [serviceId, method].join('.');
|
|
60
|
+
this.conn.publish(subject, req, (reply) => {
|
|
61
|
+
this.logMessage(`Queued message: ${subject}`);
|
|
62
|
+
// NATS always returns "undefined" for publish, since reply is N/A.
|
|
63
|
+
// Protobuf Services require _some_ kind of Type (cannot be undefined or void).
|
|
64
|
+
// thus, return an empty `<Buffer >` here, which can be marshalled to the `google.protobuf.Empty` type.
|
|
65
|
+
const empty = Buffer.from([]);
|
|
66
|
+
cb(null, empty);
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
this.logger = logger;
|
|
70
|
+
this.natsServers = natsServers;
|
|
71
|
+
this.verbose = verbose;
|
|
72
|
+
if (process.env.NATS_TIMEOUT) {
|
|
73
|
+
this.defaultRequestTimeout = parseInt(process.env.NATS_TIMEOUT, 10);
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
this.defaultRequestTimeout = defaultRequestTimeout;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Connect to one of the specified servers.
|
|
81
|
+
*
|
|
82
|
+
* @param {string[]} servers - Array of server URLs for NATS (server is randomly chosen)
|
|
83
|
+
*/
|
|
84
|
+
connect(waitForConnect = true) {
|
|
85
|
+
const opts = {};
|
|
86
|
+
opts.servers = this.natsServers;
|
|
87
|
+
opts.preserveBuffers = true;
|
|
88
|
+
opts.verbose = this.verbose;
|
|
89
|
+
opts.waitOnFirstConnect = waitForConnect;
|
|
90
|
+
opts.maxReconnectAttempts = -1; /* Infinite reconnect attempts */
|
|
91
|
+
this.conn = NATS.connect(opts);
|
|
92
|
+
this.enableLogging();
|
|
93
|
+
}
|
|
43
94
|
/**
|
|
44
|
-
*
|
|
95
|
+
* Close active connections.
|
|
45
96
|
*/
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
97
|
+
close() {
|
|
98
|
+
this.conn.close();
|
|
99
|
+
}
|
|
49
100
|
/**
|
|
50
|
-
*
|
|
101
|
+
* Expose event system of Nats client.
|
|
51
102
|
*
|
|
52
|
-
* @param
|
|
53
|
-
* @
|
|
54
|
-
* @param {Buffer} req - Request buffer
|
|
55
|
-
* @callback cb - Reply callback
|
|
103
|
+
* @param event
|
|
104
|
+
* @callback cb
|
|
56
105
|
*/
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
this.conn.publish(subject, req, (reply) => {
|
|
60
|
-
this.logMessage(`Queued message: ${subject}`);
|
|
61
|
-
// NATS always returns "undefined" for publish, since reply is N/A.
|
|
62
|
-
// Protobuf Services require _some_ kind of Type (cannot be undefined or void).
|
|
63
|
-
// thus, return an empty `<Buffer >` here, which can be marshalled to the `google.protobuf.Empty` type.
|
|
64
|
-
const empty = Buffer.from([]);
|
|
65
|
-
cb(null, empty);
|
|
66
|
-
});
|
|
67
|
-
};
|
|
68
|
-
this.logger = logger;
|
|
69
|
-
this.natsServers = natsServers;
|
|
70
|
-
this.verbose = verbose;
|
|
71
|
-
if (process.env.NATS_TIMEOUT) {
|
|
72
|
-
this.defaultRequestTimeout = parseInt(process.env.NATS_TIMEOUT, 10);
|
|
106
|
+
on(event, cb) {
|
|
107
|
+
this.conn.on(event, cb);
|
|
73
108
|
}
|
|
74
|
-
|
|
75
|
-
|
|
109
|
+
/**
|
|
110
|
+
* Subscribes a service listener to its methods within a NATS queue.
|
|
111
|
+
*
|
|
112
|
+
* IMPORTANT: Ensure service message handlers are defined via arrow functions
|
|
113
|
+
* to ensure instance variables of the class are accessible within
|
|
114
|
+
* the scope of the handlers.
|
|
115
|
+
*
|
|
116
|
+
* @param service - Service Id of listener
|
|
117
|
+
* @param @optional {string} - Optional name of queue to subscribe
|
|
118
|
+
* @param {SubscriptionRoutes} routes - Mapping of method Ids to handlers
|
|
119
|
+
*/
|
|
120
|
+
subscribe(serviceId, queue, routes) {
|
|
121
|
+
this.logMessage(`Subscribing handlers for service='${serviceId}', queue='${queue}'`);
|
|
122
|
+
const topic = [serviceId, '>'].join('.');
|
|
123
|
+
return this.subscribeTopic(topic, queue, routes); /* Match all topics containing Service Id */
|
|
76
124
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
const opts = {};
|
|
85
|
-
opts.servers = this.natsServers;
|
|
86
|
-
opts.preserveBuffers = true;
|
|
87
|
-
opts.verbose = this.verbose;
|
|
88
|
-
opts.waitOnFirstConnect = waitForConnect;
|
|
89
|
-
opts.maxReconnectAttempts = -1; /* Infinite reconnect attempts */
|
|
90
|
-
this.conn = NATS.connect(opts);
|
|
91
|
-
this.enableLogging();
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Close active connections.
|
|
95
|
-
*/
|
|
96
|
-
close() {
|
|
97
|
-
this.conn.close();
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Expose event system of Nats client.
|
|
101
|
-
*
|
|
102
|
-
* @param event
|
|
103
|
-
* @callback cb
|
|
104
|
-
*/
|
|
105
|
-
on(event, cb) {
|
|
106
|
-
this.conn.on(event, cb);
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Subscribes a service listener to its methods within a NATS queue.
|
|
110
|
-
*
|
|
111
|
-
* IMPORTANT: Ensure service message handlers are defined via arrow functions
|
|
112
|
-
* to ensure instance variables of the class are accessible within
|
|
113
|
-
* the scope of the handlers.
|
|
114
|
-
*
|
|
115
|
-
* @param service - Service Id of listener
|
|
116
|
-
* @param @optional {string} - Optional name of queue to subscribe
|
|
117
|
-
* @param {SubscriptionRoutes} routes - Mapping of method Ids to handlers
|
|
118
|
-
*/
|
|
119
|
-
subscribe(serviceId, queue, routes) {
|
|
120
|
-
this.logMessage(`Subscribing handlers for service='${serviceId}', queue='${queue}'`);
|
|
121
|
-
const topic = [serviceId, '>'].join('.');
|
|
122
|
-
return this.subscribeTopic(topic, queue, routes); /* Match all topics containing Service Id */
|
|
123
|
-
}
|
|
124
|
-
subscribeBroadcast(serviceId, routes) {
|
|
125
|
-
const routeNames = Object.keys(routes);
|
|
126
|
-
this.logMessage(`Subscribing handlers for broadcast: [${routeNames.join(', ')}]`);
|
|
127
|
-
routeNames.forEach((r) => {
|
|
128
|
-
const topic = [BROADCAST_PREFIX, r].join('.');
|
|
129
|
-
const queue = `${serviceId}-${r}`;
|
|
130
|
-
this.subscribeTopic(topic, queue, { [r]: routes[r] });
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
subscribeTopic(topicQualifier, queue, routes) {
|
|
134
|
-
const opts = {};
|
|
135
|
-
opts.queue = queue;
|
|
136
|
-
this.conn.subscribe(topicQualifier, opts, (req, reply, subject) => {
|
|
137
|
-
const method = subject.substring(subject.indexOf('.') + 1);
|
|
138
|
-
const handler = routes[method];
|
|
139
|
-
this.logMessage(`Receive message: full subject=${subject}, method=${method}, replyTo=${reply} `);
|
|
140
|
-
handler.process(req).then((resp) => {
|
|
141
|
-
if (reply) {
|
|
142
|
-
this.logMessage(`Publishing reply: ${reply}`);
|
|
143
|
-
this.conn.publish(reply, resp);
|
|
144
|
-
}
|
|
145
|
-
else {
|
|
146
|
-
this.logMessage('No reply required');
|
|
147
|
-
}
|
|
148
|
-
}, (reason) => {
|
|
149
|
-
this.logMessage(`Handler failed. Reason= ${reason}`, false);
|
|
150
|
-
throw new NatsConnectionManager.MESSAGE_HANDLER_ERROR(reason, subject);
|
|
125
|
+
subscribeBroadcast(serviceId, routes) {
|
|
126
|
+
const routeNames = Object.keys(routes);
|
|
127
|
+
this.logMessage(`Subscribing handlers for broadcast: [${routeNames.join(', ')}]`);
|
|
128
|
+
routeNames.forEach((r) => {
|
|
129
|
+
const topic = [BROADCAST_PREFIX, r].join('.');
|
|
130
|
+
const queue = `${serviceId}-${r}`;
|
|
131
|
+
this.subscribeTopic(topic, queue, { [r]: routes[r] });
|
|
151
132
|
});
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
133
|
+
}
|
|
134
|
+
subscribeTopic(topicQualifier, queue, routes) {
|
|
135
|
+
const opts = {};
|
|
136
|
+
opts.queue = queue;
|
|
137
|
+
this.conn.subscribe(topicQualifier, opts, (req, reply, subject) => {
|
|
138
|
+
const method = subject.substring(subject.indexOf('.') + 1);
|
|
139
|
+
const handler = routes[method];
|
|
140
|
+
this.logMessage(`Receive message: full subject=${subject}, method=${method}, replyTo=${reply} `);
|
|
141
|
+
handler.process(req).then((resp) => {
|
|
142
|
+
if (reply) {
|
|
143
|
+
this.logMessage(`Publishing reply: ${reply}`);
|
|
144
|
+
this.conn.publish(reply, resp);
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
this.logMessage('No reply required');
|
|
148
|
+
}
|
|
149
|
+
}, (reason) => {
|
|
150
|
+
this.logMessage(`Handler failed. Reason= ${reason}`, false);
|
|
151
|
+
throw new NatsConnectionManager.MESSAGE_HANDLER_ERROR(reason, subject);
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
}
|
|
158
155
|
/**
|
|
159
|
-
*
|
|
156
|
+
* Register for logged connection events
|
|
160
157
|
*/
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
158
|
+
enableLogging() {
|
|
159
|
+
/**
|
|
160
|
+
* GENERIC ERROR LOGGING
|
|
161
|
+
*/
|
|
162
|
+
this.conn.on('error', (err) => {
|
|
163
|
+
this.logMessage(err, false);
|
|
164
|
+
});
|
|
165
|
+
if (!this.verbose) {
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* VERBOSE EVENT LOGGING
|
|
170
|
+
*/
|
|
171
|
+
this.conn.on('connect', (conn) => {
|
|
172
|
+
this.logMessage(`Connection established to ${conn.currentServer.url.host}`);
|
|
173
|
+
});
|
|
174
|
+
this.conn.on('disconnect', () => {
|
|
175
|
+
this.logMessage('Disconnected', false);
|
|
176
|
+
});
|
|
177
|
+
this.conn.on('reconnect', () => {
|
|
178
|
+
this.logMessage('Reconnected', false);
|
|
179
|
+
});
|
|
180
|
+
this.conn.on('close', () => {
|
|
181
|
+
this.logMessage('Connection closed');
|
|
182
|
+
});
|
|
166
183
|
}
|
|
167
184
|
/**
|
|
168
|
-
*
|
|
185
|
+
* Log a message
|
|
186
|
+
*
|
|
187
|
+
* @param msg
|
|
169
188
|
*/
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
});
|
|
176
|
-
this.conn.on('reconnect', () => {
|
|
177
|
-
this.logMessage('Reconnected', false);
|
|
178
|
-
});
|
|
179
|
-
this.conn.on('close', () => {
|
|
180
|
-
this.logMessage('Connection closed');
|
|
181
|
-
});
|
|
189
|
+
logMessage(msg, info = true) {
|
|
190
|
+
if (!info || this.verbose) {
|
|
191
|
+
this.logger.info(`(${this.logPrefix}) ${msg}`);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
182
194
|
}
|
|
183
195
|
/**
|
|
184
|
-
*
|
|
196
|
+
* Exception representing an error that occurred during invocation of
|
|
197
|
+
* a message handler.
|
|
185
198
|
*
|
|
186
|
-
* @param msg
|
|
187
199
|
*/
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
200
|
+
NatsConnectionManager.MESSAGE_HANDLER_ERROR = class extends Error {
|
|
201
|
+
constructor(errors, messageSubject) {
|
|
202
|
+
super(`Error from message handler for '${messageSubject}'. Reason = ${JSON.stringify(errors)}`);
|
|
203
|
+
this.errors = errors;
|
|
191
204
|
}
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
};
|
|
205
|
-
/**
|
|
206
|
-
* Exception caused by request timeout.
|
|
207
|
-
*/
|
|
208
|
-
NatsConnectionManager.TIMEOUT_ERROR = class extends Error {
|
|
209
|
-
constructor(errors) {
|
|
210
|
-
super('NATS Timeout');
|
|
211
|
-
this.errors = errors;
|
|
212
|
-
}
|
|
213
|
-
};
|
|
205
|
+
};
|
|
206
|
+
/**
|
|
207
|
+
* Exception caused by request timeout.
|
|
208
|
+
*/
|
|
209
|
+
NatsConnectionManager.TIMEOUT_ERROR = class extends Error {
|
|
210
|
+
constructor(errors) {
|
|
211
|
+
super('NATS Timeout');
|
|
212
|
+
this.errors = errors;
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
return NatsConnectionManager;
|
|
216
|
+
})();
|
|
214
217
|
exports.default = NatsConnectionManager;
|
|
215
218
|
//# sourceMappingURL=NatsConnectionManager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NatsConnectionManager.js","sourceRoot":"","sources":["../src/NatsConnectionManager.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,6BAA6B;AAG7B,MAAM,gBAAgB,GAAG,WAAW,CAAC,CAAC,mCAAmC;AAEzE;;GAEG;AACH,MAAM,qBAAqB;
|
|
1
|
+
{"version":3,"file":"NatsConnectionManager.js","sourceRoot":"","sources":["../src/NatsConnectionManager.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,6BAA6B;AAG7B,MAAM,gBAAgB,GAAG,WAAW,CAAC,CAAC,mCAAmC;AAEzE;;GAEG;AACH;IAAA,MAAM,qBAAqB;QAoCzB;;;;;WAKG;QACH,YAAY,WAAqB,EAAE,MAAmB,EAAE,OAAO,GAAG,KAAK,EAAE,qBAA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ACxC,KAAK,CAAC,mCAAmC,cAAc,eAAe,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;YAChG,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACvB,CAAC;KACF,CAAC;IAEF;;OAEG;IACW,mCAAa,GAAG,KAAM,SAAQ,KAAK;QAG/C,YAAY,MAAM;YAChB,KAAK,CAAC,cAAc,CAAC,CAAC;YACtB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACvB,CAAC;KACF,CAAC;IAsOJ,4BAAC;KAAA;AAED,kBAAe,qBAAqB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PbAsyncMessageHandler = void 0;
|
|
3
4
|
const pb = require("@sellout/models/.dist/sellout-proto");
|
|
4
5
|
const PbMessageHandler_1 = require("./PbMessageHandler");
|
|
5
6
|
/* Message handler wrapper method for unidirectional calls */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PbAsyncMessageHandler.js","sourceRoot":"","sources":["../src/PbAsyncMessageHandler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PbAsyncMessageHandler.js","sourceRoot":"","sources":["../src/PbAsyncMessageHandler.ts"],"names":[],"mappings":";;;AAAA,0DAA0D;AAC1D,yDAAsD;AAGtD,6DAA6D;AAC7D,SAAS,uBAAuB,CAAC,MAAM;IACrC,OAAO,CAAC,GAAW,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AACrG,CAAC;AAED;;;;GAIG;AACH,MAAa,qBAAsB,SAAQ,mCAAgB;IAEzD;;;;OAIG;IACH,YAAY,MAAM,EAAE,UAAU;QAC5B,KAAK,CAAC,uBAAuB,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC/E,CAAC;CAEF;AAXD,sDAWC;AAED,kBAAe,qBAAqB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PbMessageHandler = void 0;
|
|
3
4
|
/**
|
|
4
5
|
* Provides a wrapper around Protobuf messages. Incoming buffers are decoded, the
|
|
5
6
|
* handler method is called using staticly-compiled Protobuf definitions, and returned
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PbMessageHandler.js","sourceRoot":"","sources":["../src/PbMessageHandler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PbMessageHandler.js","sourceRoot":"","sources":["../src/PbMessageHandler.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,MAAa,gBAAgB;IAM3B;;;;;OAKG;IACH,YAAY,MAAM,EAAE,UAAU,EAAE,WAAW;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAED;;;;;OAKG;IACI,OAAO,CAAC,GAAW;QACxB,OAAO,IAAI,OAAO,CAAS,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YAC7C,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAC5C,sDAAsD;YACtD,6CAA6C;YAC5C,+CAA+C;YAChD,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;YACjD,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE;gBACnC,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC;gBAC9D,OAAO,CAAC,WAAW,CAAC,CAAC;YACvB,CAAC,CAAC;iBACC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;gBACX,OAAO,CAAC,GAAG,CAAC,yCAAyC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;gBACpE,MAAM,CAAC,CAAC,CAAC,CAAC;YACZ,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAzCD,4CAyCC;AAED,kBAAe,gBAAgB,CAAC"}
|
package/.dist/PbServiceProxy.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PbServiceProxy.js","sourceRoot":"","sources":["../src/PbServiceProxy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PbServiceProxy.js","sourceRoot":"","sources":["../src/PbServiceProxy.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,MAAa,cAAc;IAIzB;;;;OAIG;IACH,YAAmB,IAAwB,EAAE,WAAmB;QAkBhE;;;;;;;WAOG;QACO,gBAAW,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE;YACxD,IAAI;gBACF,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;aACtE;YAAC,OAAO,CAAC,EAAE;gBACV,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;aACnB;QACH,CAAC,CAAC;QAEF;;;;;;;WAOG;QACO,qBAAgB,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE;YAC7D,IAAI;gBACF,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;aAC3E;YAAC,OAAO,CAAC,EAAE;gBACV,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;aACnB;QACH,CAAC,CAAC;QA/CA,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAED;;;OAGG;IACI,QAAQ,CAAC,GAAG,EAAE,KAAM;QACzB,IAAI,KAAK,KAAK,IAAI,EAAE;YAClB,OAAO,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;SAC1C;aAAM;YACL,sBAAsB;YACtB,OAAO,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;SACrC;IACH,CAAC;CAiCF;AA1DD,wCA0DC;AAED,kBAAe,cAAc,CAAC"}
|
package/.dist/TracerExpress.js
CHANGED
|
@@ -9,6 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.tracerExpress = void 0;
|
|
12
13
|
const Tracer_1 = require("./Tracer");
|
|
13
14
|
const url = require("url");
|
|
14
15
|
const traceHTTP = (req, res, tracer) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TracerExpress.js","sourceRoot":"","sources":["../src/TracerExpress.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TracerExpress.js","sourceRoot":"","sources":["../src/TracerExpress.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA8B;AAC9B,2BAA2B;AAE3B,MAAM,SAAS,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,EAAQ,EAAE;IAC3C,MAAM,QAAQ,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC;I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AAE,CAAC;IACT,CAAC,CAAA,CAAA;AACH,CAAC,CAAC"}
|
package/.dist/env.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NODE_ENV = exports.SENTRY_DSN = exports.SEGMENT_IO_WRITE_KEY = exports.LOAD_TEST_ENABLED = exports.DISABLE_PROMETHEUS = void 0;
|
|
3
4
|
exports.DISABLE_PROMETHEUS = process.env.DISABLE_PROMETHEUS || false;
|
|
4
5
|
exports.LOAD_TEST_ENABLED = process.env.LOAD_TEST_ENABLED === '1';
|
|
5
6
|
exports.SEGMENT_IO_WRITE_KEY = process.env.SEGMENT_IO_WRITE_KEY;
|
package/.dist/env.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.js","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"env.js","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,KAAK,CAAC;AAC7D,QAAA,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,iBAAiB,KAAK,GAAG,CAAC;AAC1D,QAAA,oBAAoB,GAAG,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC;AACxD,QAAA,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC;AACpC,QAAA,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,aAAa,CAAC"}
|
package/.dist/joiToErrors.js
CHANGED
package/.dist/joiToErrors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"joiToErrors.js","sourceRoot":"","sources":["../src/joiToErrors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"joiToErrors.js","sourceRoot":"","sources":["../src/joiToErrors.ts"],"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AAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAEF,kBAAe,WAAW,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellout/service",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.23",
|
|
4
4
|
"description": "Sellout.io base service",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"author": "samheutmaker@gmail.com",
|
|
16
16
|
"license": "MIT",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@sellout/models": "^0.0.
|
|
19
|
-
"@sellout/utils": "^0.0.
|
|
18
|
+
"@sellout/models": "^0.0.23",
|
|
19
|
+
"@sellout/utils": "^0.0.23",
|
|
20
20
|
"@sentry/node": "^5.14.2",
|
|
21
21
|
"analytics-node": "^3.4.0-beta.1",
|
|
22
22
|
"express": "^4.17.1",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"nodemon": "^2.0.2",
|
|
32
32
|
"typescript": "^3.8.3"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "d024a3aae1a78700b11e0b5e59484868754b8d40"
|
|
35
35
|
}
|