@terascope/teraslice-messaging 0.26.1 → 0.27.1
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAIA,wBAAgB,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC,CAE1C;AAED,wBAAgB,SAAS,CAAC,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAIA,wBAAgB,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC,CAE1C;AAED,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAiBhE"}
|
package/dist/src/utils/index.js
CHANGED
|
@@ -11,10 +11,10 @@ function newMsgId() {
|
|
|
11
11
|
return (0, async_1.nanoid)(10);
|
|
12
12
|
}
|
|
13
13
|
exports.newMsgId = newMsgId;
|
|
14
|
-
function formatURL(hostname
|
|
14
|
+
function formatURL(hostname, port) {
|
|
15
15
|
let formatOptions;
|
|
16
16
|
try {
|
|
17
|
-
const parsed = new url_1.default.URL(hostname);
|
|
17
|
+
const parsed = new url_1.default.URL(hostname !== null && hostname !== void 0 ? hostname : os_1.default.hostname());
|
|
18
18
|
formatOptions = Object.assign(parsed, {
|
|
19
19
|
port,
|
|
20
20
|
});
|
|
@@ -23,7 +23,7 @@ function formatURL(hostname = os_1.default.hostname(), port) {
|
|
|
23
23
|
formatOptions = {
|
|
24
24
|
protocol: 'http:',
|
|
25
25
|
slashes: true,
|
|
26
|
-
hostname,
|
|
26
|
+
hostname: hostname !== null && hostname !== void 0 ? hostname : os_1.default.hostname(),
|
|
27
27
|
port,
|
|
28
28
|
};
|
|
29
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AACpB,8CAAsB;AACtB,wCAAsC;AAEtC,SAAgB,QAAQ;IACpB,OAAO,IAAA,cAAM,EAAC,EAAE,CAAC,CAAC;AACtB,CAAC;AAFD,4BAEC;AAED,SAAgB,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AACpB,8CAAsB;AACtB,wCAAsC;AAEtC,SAAgB,QAAQ;IACpB,OAAO,IAAA,cAAM,EAAC,EAAE,CAAC,CAAC;AACtB,CAAC;AAFD,4BAEC;AAED,SAAgB,SAAS,CAAC,QAAgB,EAAE,IAAY;IACpD,IAAI,aAAa,CAAC;IAClB,IAAI;QACA,MAAM,MAAM,GAAG,IAAI,aAAG,CAAC,GAAG,CAAC,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,YAAE,CAAC,QAAQ,EAAE,CAAC,CAAC;QACtD,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE;YAClC,IAAI;SACP,CAAC,CAAC;KACN;IAAC,OAAO,GAAG,EAAE;QACV,aAAa,GAAG;YACZ,QAAQ,EAAE,OAAO;YACjB,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,YAAE,CAAC,QAAQ,EAAE;YACnC,IAAI;SACP,CAAC;KACL;IAED,OAAO,aAAG,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;AACrC,CAAC;AAjBD,8BAiBC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@terascope/teraslice-messaging",
|
|
3
3
|
"displayName": "Teraslice Messaging",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.27.1",
|
|
5
5
|
"description": "An internal teraslice messaging library using socket.io",
|
|
6
6
|
"homepage": "https://github.com/terascope/teraslice/tree/master/packages/teraslice-messaging#readme",
|
|
7
7
|
"bugs": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"ms": "^2.1.3"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@terascope/utils": "^0.
|
|
37
|
+
"@terascope/utils": "^0.44.1",
|
|
38
38
|
"ms": "^2.1.3",
|
|
39
39
|
"nanoid": "^3.1.30",
|
|
40
40
|
"p-event": "^4.2.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@types/socket.io-client": "^1.4.35"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|
|
51
|
-
"node": "^12.
|
|
51
|
+
"node": "^12.22.0 || >=14.17.0",
|
|
52
52
|
"yarn": ">=1.16.0"
|
|
53
53
|
},
|
|
54
54
|
"publishConfig": {
|