node-red-contrib-tak-registration 0.2.1 → 0.2.2
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/README.md +5 -5
- package/node_modules/axios/CHANGELOG.md +15 -0
- package/node_modules/axios/README.md +1 -0
- package/node_modules/axios/dist/axios.js +49 -33
- package/node_modules/axios/dist/axios.map +1 -1
- package/node_modules/axios/dist/axios.min.js +1 -3
- package/node_modules/axios/dist/axios.min.map +1 -1
- package/node_modules/axios/lib/adapters/http.js +19 -3
- package/node_modules/axios/lib/adapters/xhr.js +2 -2
- package/node_modules/axios/lib/core/Axios.js +0 -7
- package/node_modules/axios/lib/core/transformData.js +1 -1
- package/node_modules/axios/lib/{defaults.js → defaults/index.js} +7 -10
- package/node_modules/axios/lib/defaults/transitional.js +7 -0
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/package.json +69 -41
- package/node_modules/follow-redirects/index.js +82 -77
- package/node_modules/follow-redirects/package.json +13 -13
- package/package.json +19 -12
- package/tak-registration.html +12 -11
- package/tak-registration.js +62 -11
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ Run the following command in your Node-RED user directory - typically `~/.node-r
|
|
|
16
16
|
Registers a TAK gateway node and sets up a heartbeat.
|
|
17
17
|
|
|
18
18
|
Works in conjunction with a TCP request node, set to point to the TAK server tcp address and port
|
|
19
|
-
(usually 8087 or 8089), set to return strings, <i>keep connection open</i> mode, and split on "<
|
|
19
|
+
(usually 8087 or 8089), set to return strings, <i>keep connection open</i> mode, and split on "</event>".
|
|
20
20
|
|
|
21
21
|
It can send various types of messages to TAK.
|
|
22
22
|
|
|
@@ -31,20 +31,20 @@ requires a msg containing the following properties
|
|
|
31
31
|
- **sendTo** - *string|array* - can either be an individual TAK callsign, an array of callsigns, or **broadcast**
|
|
32
32
|
to send to all users, or **public** to just upload the package to the TAK server.
|
|
33
33
|
- **topic** - *string* - the overall package name - IE what you want it to be called on the TAK device (keep it short).
|
|
34
|
-
- **attachments** - *array of objects* - each object must contain at least a **filename** (string) and
|
|
34
|
+
- **attachments** - *array of objects* - each object must contain at least a **filename** (string) and **content** a buffer of the file/data, for example `[{filename:"foo.kml", content: <buffer of the file>}]`
|
|
35
35
|
|
|
36
36
|
### Sending marker position...
|
|
37
37
|
|
|
38
38
|
To create or update a simple marker send a msg with the following property
|
|
39
39
|
|
|
40
|
-
- **payload** - *object* - a "standard" node-red worldmap format msg.payload containing `name, lat, lon,
|
|
40
|
+
- **payload** - *object* - a "standard" node-red worldmap format msg.payload containing `name, lat, lon, cottype or SIDC, (alt), (speed), (bearing), (layer)`, where `cottype` is the CoT type eg a-f-g-u, or `SIDC` is the standard mil 2525C code, eg SFGPU. The `layer` will get turned into a hashtag which can then be selected on/off in the TAK app layers control.
|
|
41
41
|
|
|
42
42
|
### Updating gateway position...
|
|
43
43
|
|
|
44
44
|
To update the location of the gateway dynamically the node can accept a payload
|
|
45
45
|
|
|
46
|
-
- **payload** - *string|object* - Either a string starting `$GPGGA` or an object containing `lat` and `lon` and optional `alt` properties (but no name property).
|
|
46
|
+
- **payload** - *string|object* - Either a string starting `$GPGGA` (for example from a locally attached serial GPS device) - or an object containing `lat` and `lon` and optional `alt` properties (but no name property).
|
|
47
47
|
|
|
48
48
|
### Details
|
|
49
49
|
|
|
50
|
-
This should work almost directly with messages received from an email-in node for example - but you will need to add the recipients in the sendTo property and may need to filter out unwanted messages first.
|
|
50
|
+
This should work almost directly with messages received from an email-in node for example - but you will need to add the recipients in the sendTo property and may need to filter out unwanted messages first.
|
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
### 0.26.1 (March 9, 2022)
|
|
4
|
+
|
|
5
|
+
Fixes and Functionality:
|
|
6
|
+
- Refactored project file structure to avoid circular imports ([##4220](https://github.com/axios/axios/pull/#4220))
|
|
7
|
+
|
|
8
|
+
### 0.26.0 (February 13, 2022)
|
|
9
|
+
|
|
10
|
+
Fixes and Functionality:
|
|
11
|
+
- Fixed The timeoutErrorMessage property in config not work with Node.js ([#3581](https://github.com/axios/axios/pull/3581))
|
|
12
|
+
- Added errors to be displayed when the query parsing process itself fails ([#3961](https://github.com/axios/axios/pull/3961))
|
|
13
|
+
- Fix/remove url required ([#4426](https://github.com/axios/axios/pull/4426))
|
|
14
|
+
- Update follow-redirects dependency due to Vurnerbility ([#4462](https://github.com/axios/axios/pull/4462))
|
|
15
|
+
- Bump karma from 6.3.11 to 6.3.14 ([#4461](https://github.com/axios/axios/pull/4461))
|
|
16
|
+
- Bump follow-redirects from 1.14.7 to 1.14.8 ([#4473](https://github.com/axios/axios/pull/4473))
|
|
17
|
+
|
|
3
18
|
### 0.25.0 (January 18, 2022)
|
|
4
19
|
|
|
5
20
|
Breaking changes:
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
[](http://npm-stat.com/charts.html?package=axios)
|
|
10
10
|
[](https://gitter.im/mzabriskie/axios)
|
|
11
11
|
[](https://www.codetriage.com/axios/axios)
|
|
12
|
+
[](https://snyk.io/test/npm/axios)
|
|
12
13
|
|
|
13
14
|
Promise based HTTP client for the browser and node.js
|
|
14
15
|
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/* axios v0.25.0 | (c) 2022 by Matt Zabriskie */
|
|
2
|
-
/* axios v0.24.0 | (c) 2022 by Matt Zabriskie */
|
|
3
1
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
4
2
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
5
3
|
module.exports = factory();
|
|
@@ -127,7 +125,7 @@ var buildFullPath = __webpack_require__(/*! ../core/buildFullPath */ "./lib/core
|
|
|
127
125
|
var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */ "./lib/helpers/parseHeaders.js");
|
|
128
126
|
var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ "./lib/helpers/isURLSameOrigin.js");
|
|
129
127
|
var createError = __webpack_require__(/*! ../core/createError */ "./lib/core/createError.js");
|
|
130
|
-
var
|
|
128
|
+
var transitionalDefaults = __webpack_require__(/*! ../defaults/transitional */ "./lib/defaults/transitional.js");
|
|
131
129
|
var Cancel = __webpack_require__(/*! ../cancel/Cancel */ "./lib/cancel/Cancel.js");
|
|
132
130
|
|
|
133
131
|
module.exports = function xhrAdapter(config) {
|
|
@@ -242,7 +240,7 @@ module.exports = function xhrAdapter(config) {
|
|
|
242
240
|
// Handle timeout
|
|
243
241
|
request.ontimeout = function handleTimeout() {
|
|
244
242
|
var timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
|
|
245
|
-
var transitional = config.transitional ||
|
|
243
|
+
var transitional = config.transitional || transitionalDefaults;
|
|
246
244
|
if (config.timeoutErrorMessage) {
|
|
247
245
|
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
248
246
|
}
|
|
@@ -347,7 +345,7 @@ var utils = __webpack_require__(/*! ./utils */ "./lib/utils.js");
|
|
|
347
345
|
var bind = __webpack_require__(/*! ./helpers/bind */ "./lib/helpers/bind.js");
|
|
348
346
|
var Axios = __webpack_require__(/*! ./core/Axios */ "./lib/core/Axios.js");
|
|
349
347
|
var mergeConfig = __webpack_require__(/*! ./core/mergeConfig */ "./lib/core/mergeConfig.js");
|
|
350
|
-
var defaults = __webpack_require__(/*! ./defaults */ "./lib/defaults.js");
|
|
348
|
+
var defaults = __webpack_require__(/*! ./defaults */ "./lib/defaults/index.js");
|
|
351
349
|
|
|
352
350
|
/**
|
|
353
351
|
* Create an instance of Axios
|
|
@@ -617,14 +615,14 @@ function Axios(instanceConfig) {
|
|
|
617
615
|
*
|
|
618
616
|
* @param {Object} config The config specific for this request (merged with this.defaults)
|
|
619
617
|
*/
|
|
620
|
-
Axios.prototype.request = function request(config) {
|
|
618
|
+
Axios.prototype.request = function request(configOrUrl, config) {
|
|
621
619
|
/*eslint no-param-reassign:0*/
|
|
622
620
|
// Allow for axios('example/url'[, config]) a la fetch API
|
|
623
|
-
if (typeof
|
|
624
|
-
config = arguments[1] || {};
|
|
625
|
-
config.url = arguments[0];
|
|
626
|
-
} else {
|
|
621
|
+
if (typeof configOrUrl === 'string') {
|
|
627
622
|
config = config || {};
|
|
623
|
+
config.url = configOrUrl;
|
|
624
|
+
} else {
|
|
625
|
+
config = configOrUrl || {};
|
|
628
626
|
}
|
|
629
627
|
|
|
630
628
|
config = mergeConfig(this.defaults, config);
|
|
@@ -882,7 +880,7 @@ module.exports = function createError(message, config, code, request, response)
|
|
|
882
880
|
var utils = __webpack_require__(/*! ./../utils */ "./lib/utils.js");
|
|
883
881
|
var transformData = __webpack_require__(/*! ./transformData */ "./lib/core/transformData.js");
|
|
884
882
|
var isCancel = __webpack_require__(/*! ../cancel/isCancel */ "./lib/cancel/isCancel.js");
|
|
885
|
-
var defaults = __webpack_require__(/*! ../defaults */ "./lib/defaults.js");
|
|
883
|
+
var defaults = __webpack_require__(/*! ../defaults */ "./lib/defaults/index.js");
|
|
886
884
|
var Cancel = __webpack_require__(/*! ../cancel/Cancel */ "./lib/cancel/Cancel.js");
|
|
887
885
|
|
|
888
886
|
/**
|
|
@@ -1182,7 +1180,7 @@ module.exports = function settle(resolve, reject, response) {
|
|
|
1182
1180
|
|
|
1183
1181
|
|
|
1184
1182
|
var utils = __webpack_require__(/*! ./../utils */ "./lib/utils.js");
|
|
1185
|
-
var defaults = __webpack_require__(/*!
|
|
1183
|
+
var defaults = __webpack_require__(/*! ../defaults */ "./lib/defaults/index.js");
|
|
1186
1184
|
|
|
1187
1185
|
/**
|
|
1188
1186
|
* Transform the data for a request or a response
|
|
@@ -1205,19 +1203,20 @@ module.exports = function transformData(data, headers, fns) {
|
|
|
1205
1203
|
|
|
1206
1204
|
/***/ }),
|
|
1207
1205
|
|
|
1208
|
-
/***/ "./lib/defaults.js":
|
|
1209
|
-
|
|
1210
|
-
!*** ./lib/defaults.js ***!
|
|
1211
|
-
|
|
1206
|
+
/***/ "./lib/defaults/index.js":
|
|
1207
|
+
/*!*******************************!*\
|
|
1208
|
+
!*** ./lib/defaults/index.js ***!
|
|
1209
|
+
\*******************************/
|
|
1212
1210
|
/*! no static exports found */
|
|
1213
1211
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1214
1212
|
|
|
1215
1213
|
"use strict";
|
|
1216
1214
|
|
|
1217
1215
|
|
|
1218
|
-
var utils = __webpack_require__(/*!
|
|
1219
|
-
var normalizeHeaderName = __webpack_require__(/*!
|
|
1220
|
-
var enhanceError = __webpack_require__(/*!
|
|
1216
|
+
var utils = __webpack_require__(/*! ../utils */ "./lib/utils.js");
|
|
1217
|
+
var normalizeHeaderName = __webpack_require__(/*! ../helpers/normalizeHeaderName */ "./lib/helpers/normalizeHeaderName.js");
|
|
1218
|
+
var enhanceError = __webpack_require__(/*! ../core/enhanceError */ "./lib/core/enhanceError.js");
|
|
1219
|
+
var transitionalDefaults = __webpack_require__(/*! ./transitional */ "./lib/defaults/transitional.js");
|
|
1221
1220
|
|
|
1222
1221
|
var DEFAULT_CONTENT_TYPE = {
|
|
1223
1222
|
'Content-Type': 'application/x-www-form-urlencoded'
|
|
@@ -1233,10 +1232,10 @@ function getDefaultAdapter() {
|
|
|
1233
1232
|
var adapter;
|
|
1234
1233
|
if (typeof XMLHttpRequest !== 'undefined') {
|
|
1235
1234
|
// For browsers use XHR adapter
|
|
1236
|
-
adapter = __webpack_require__(/*!
|
|
1235
|
+
adapter = __webpack_require__(/*! ../adapters/xhr */ "./lib/adapters/xhr.js");
|
|
1237
1236
|
} else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
|
|
1238
1237
|
// For node use HTTP adapter
|
|
1239
|
-
adapter = __webpack_require__(/*!
|
|
1238
|
+
adapter = __webpack_require__(/*! ../adapters/http */ "./lib/adapters/xhr.js");
|
|
1240
1239
|
}
|
|
1241
1240
|
return adapter;
|
|
1242
1241
|
}
|
|
@@ -1258,11 +1257,7 @@ function stringifySafely(rawValue, parser, encoder) {
|
|
|
1258
1257
|
|
|
1259
1258
|
var defaults = {
|
|
1260
1259
|
|
|
1261
|
-
transitional:
|
|
1262
|
-
silentJSONParsing: true,
|
|
1263
|
-
forcedJSONParsing: true,
|
|
1264
|
-
clarifyTimeoutError: false
|
|
1265
|
-
},
|
|
1260
|
+
transitional: transitionalDefaults,
|
|
1266
1261
|
|
|
1267
1262
|
adapter: getDefaultAdapter(),
|
|
1268
1263
|
|
|
@@ -1349,6 +1344,25 @@ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
|
1349
1344
|
module.exports = defaults;
|
|
1350
1345
|
|
|
1351
1346
|
|
|
1347
|
+
/***/ }),
|
|
1348
|
+
|
|
1349
|
+
/***/ "./lib/defaults/transitional.js":
|
|
1350
|
+
/*!**************************************!*\
|
|
1351
|
+
!*** ./lib/defaults/transitional.js ***!
|
|
1352
|
+
\**************************************/
|
|
1353
|
+
/*! no static exports found */
|
|
1354
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1355
|
+
|
|
1356
|
+
"use strict";
|
|
1357
|
+
|
|
1358
|
+
|
|
1359
|
+
module.exports = {
|
|
1360
|
+
silentJSONParsing: true,
|
|
1361
|
+
forcedJSONParsing: true,
|
|
1362
|
+
clarifyTimeoutError: false
|
|
1363
|
+
};
|
|
1364
|
+
|
|
1365
|
+
|
|
1352
1366
|
/***/ }),
|
|
1353
1367
|
|
|
1354
1368
|
/***/ "./lib/env/data.js":
|
|
@@ -1359,7 +1373,7 @@ module.exports = defaults;
|
|
|
1359
1373
|
/***/ (function(module, exports) {
|
|
1360
1374
|
|
|
1361
1375
|
module.exports = {
|
|
1362
|
-
"version": "0.
|
|
1376
|
+
"version": "0.26.1"
|
|
1363
1377
|
};
|
|
1364
1378
|
|
|
1365
1379
|
/***/ }),
|
|
@@ -1580,7 +1594,7 @@ module.exports = function isAbsoluteURL(url) {
|
|
|
1580
1594
|
// A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
|
|
1581
1595
|
// RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
|
|
1582
1596
|
// by any combination of letters, digits, plus, period, or hyphen.
|
|
1583
|
-
return /^([a-z][a-z\d
|
|
1597
|
+
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
|
|
1584
1598
|
};
|
|
1585
1599
|
|
|
1586
1600
|
|
|
@@ -1596,6 +1610,8 @@ module.exports = function isAbsoluteURL(url) {
|
|
|
1596
1610
|
"use strict";
|
|
1597
1611
|
|
|
1598
1612
|
|
|
1613
|
+
var utils = __webpack_require__(/*! ./../utils */ "./lib/utils.js");
|
|
1614
|
+
|
|
1599
1615
|
/**
|
|
1600
1616
|
* Determines whether the payload is an error thrown by Axios
|
|
1601
1617
|
*
|
|
@@ -1603,7 +1619,7 @@ module.exports = function isAbsoluteURL(url) {
|
|
|
1603
1619
|
* @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
|
|
1604
1620
|
*/
|
|
1605
1621
|
module.exports = function isAxiosError(payload) {
|
|
1606
|
-
return (
|
|
1622
|
+
return utils.isObject(payload) && (payload.isAxiosError === true);
|
|
1607
1623
|
};
|
|
1608
1624
|
|
|
1609
1625
|
|
|
@@ -1934,7 +1950,7 @@ var toString = Object.prototype.toString;
|
|
|
1934
1950
|
* @returns {boolean} True if value is an Array, otherwise false
|
|
1935
1951
|
*/
|
|
1936
1952
|
function isArray(val) {
|
|
1937
|
-
return
|
|
1953
|
+
return Array.isArray(val);
|
|
1938
1954
|
}
|
|
1939
1955
|
|
|
1940
1956
|
/**
|
|
@@ -1975,7 +1991,7 @@ function isArrayBuffer(val) {
|
|
|
1975
1991
|
* @returns {boolean} True if value is an FormData, otherwise false
|
|
1976
1992
|
*/
|
|
1977
1993
|
function isFormData(val) {
|
|
1978
|
-
return (
|
|
1994
|
+
return toString.call(val) === '[object FormData]';
|
|
1979
1995
|
}
|
|
1980
1996
|
|
|
1981
1997
|
/**
|
|
@@ -1989,7 +2005,7 @@ function isArrayBufferView(val) {
|
|
|
1989
2005
|
if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
|
|
1990
2006
|
result = ArrayBuffer.isView(val);
|
|
1991
2007
|
} else {
|
|
1992
|
-
result = (val) && (val.buffer) && (val.buffer
|
|
2008
|
+
result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));
|
|
1993
2009
|
}
|
|
1994
2010
|
return result;
|
|
1995
2011
|
}
|
|
@@ -2096,7 +2112,7 @@ function isStream(val) {
|
|
|
2096
2112
|
* @returns {boolean} True if value is a URLSearchParams object, otherwise false
|
|
2097
2113
|
*/
|
|
2098
2114
|
function isURLSearchParams(val) {
|
|
2099
|
-
return
|
|
2115
|
+
return toString.call(val) === '[object URLSearchParams]';
|
|
2100
2116
|
}
|
|
2101
2117
|
|
|
2102
2118
|
/**
|