node-red-contrib-tak-registration 0.8.0 → 0.9.0
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 +2 -0
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/child_process.d.ts +5 -0
- package/node_modules/@types/node/dgram.d.ts +5 -0
- package/node_modules/@types/node/events.d.ts +35 -0
- package/node_modules/@types/node/fs/promises.d.ts +5 -0
- package/node_modules/@types/node/fs.d.ts +43 -5
- package/node_modules/@types/node/globals.d.ts +22 -0
- package/node_modules/@types/node/index.d.ts +1 -1
- package/node_modules/@types/node/inspector.d.ts +1 -1
- package/node_modules/@types/node/module.d.ts +103 -0
- package/node_modules/@types/node/net.d.ts +5 -0
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/node/stream.d.ts +143 -0
- package/node_modules/@types/node/test.d.ts +33 -4
- package/node_modules/@types/node/timers.d.ts +12 -2
- package/node_modules/@types/node/ts4.8/child_process.d.ts +5 -0
- package/node_modules/@types/node/ts4.8/dgram.d.ts +5 -0
- package/node_modules/@types/node/ts4.8/events.d.ts +35 -0
- package/node_modules/@types/node/ts4.8/fs/promises.d.ts +5 -0
- package/node_modules/@types/node/ts4.8/fs.d.ts +43 -5
- package/node_modules/@types/node/ts4.8/globals.d.ts +22 -0
- package/node_modules/@types/node/ts4.8/inspector.d.ts +1 -1
- package/node_modules/@types/node/ts4.8/module.d.ts +103 -0
- package/node_modules/@types/node/ts4.8/net.d.ts +5 -0
- package/node_modules/@types/node/ts4.8/stream.d.ts +762 -728
- package/node_modules/@types/node/ts4.8/test.d.ts +97 -50
- package/node_modules/@types/node/ts4.8/timers.d.ts +12 -2
- package/node_modules/@types/node/ts4.8/vm.d.ts +2 -1
- package/node_modules/@types/node/vm.d.ts +2 -1
- package/node_modules/axios/CHANGELOG.md +23 -0
- package/node_modules/axios/README.md +33 -5
- package/node_modules/axios/dist/axios.js +26 -18
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +1 -1
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +24 -20
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +26 -21
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +1 -1
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +27 -21
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +1 -0
- package/node_modules/axios/index.d.ts +3 -0
- package/node_modules/axios/index.js +2 -0
- package/node_modules/axios/lib/adapters/http.js +3 -1
- package/node_modules/axios/lib/axios.js +3 -0
- package/node_modules/axios/lib/core/Axios.js +2 -4
- package/node_modules/axios/lib/core/AxiosHeaders.js +11 -1
- package/node_modules/axios/lib/defaults/index.js +4 -11
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/utils.js +3 -2
- package/node_modules/axios/package.json +3 -1
- package/node_modules/protobufjs/dist/light/protobuf.js +24 -13
- package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.js +12 -7
- package/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.js +40 -18
- package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/package.json +1 -1
- package/node_modules/protobufjs/src/converter.js +2 -2
- package/node_modules/protobufjs/src/parse.js +4 -1
- package/node_modules/protobufjs/src/reader.js +8 -3
- package/node_modules/protobufjs/src/tokenize.js +2 -4
- package/package.json +3 -3
- package/tak-ingest.js +1 -1
- package/tak-registration.js +38 -6
|
@@ -523,6 +523,7 @@ declare namespace axios {
|
|
|
523
523
|
isAxiosError<T = any, D = any>(payload: any): payload is AxiosError<T, D>;
|
|
524
524
|
toFormData(sourceObj: object, targetFormData?: GenericFormData, options?: FormSerializerOptions): GenericFormData;
|
|
525
525
|
formToJSON(form: GenericFormData|GenericHTMLFormElement): object;
|
|
526
|
+
getAdapter(adapters: AxiosAdapterConfig | AxiosAdapterConfig[] | undefined): AxiosAdapter;
|
|
526
527
|
AxiosHeaders: typeof AxiosHeaders;
|
|
527
528
|
}
|
|
528
529
|
}
|
|
@@ -512,6 +512,8 @@ export interface GenericHTMLFormElement {
|
|
|
512
512
|
submit(): void;
|
|
513
513
|
}
|
|
514
514
|
|
|
515
|
+
export function getAdapter(adapters: AxiosAdapterConfig | AxiosAdapterConfig[] | undefined): AxiosAdapter;
|
|
516
|
+
|
|
515
517
|
export function toFormData(sourceObj: object, targetFormData?: GenericFormData, options?: FormSerializerOptions): GenericFormData;
|
|
516
518
|
|
|
517
519
|
export function formToJSON(form: GenericFormData|GenericHTMLFormElement): object;
|
|
@@ -538,6 +540,7 @@ export interface AxiosStatic extends AxiosInstance {
|
|
|
538
540
|
isAxiosError: typeof isAxiosError;
|
|
539
541
|
toFormData: typeof toFormData;
|
|
540
542
|
formToJSON: typeof formToJSON;
|
|
543
|
+
getAdapter: typeof getAdapter;
|
|
541
544
|
CanceledError: typeof CanceledError;
|
|
542
545
|
AxiosHeaders: typeof AxiosHeaders;
|
|
543
546
|
}
|
|
@@ -391,11 +391,13 @@ export default isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
391
391
|
auth,
|
|
392
392
|
protocol,
|
|
393
393
|
family,
|
|
394
|
-
lookup,
|
|
395
394
|
beforeRedirect: dispatchBeforeRedirect,
|
|
396
395
|
beforeRedirects: {}
|
|
397
396
|
};
|
|
398
397
|
|
|
398
|
+
// cacheable-lookup integration hotfix
|
|
399
|
+
!utils.isUndefined(lookup) && (options.lookup = lookup);
|
|
400
|
+
|
|
399
401
|
if (config.socketPath) {
|
|
400
402
|
options.socketPath = config.socketPath;
|
|
401
403
|
} else {
|
|
@@ -15,6 +15,7 @@ import AxiosError from './core/AxiosError.js';
|
|
|
15
15
|
import spread from './helpers/spread.js';
|
|
16
16
|
import isAxiosError from './helpers/isAxiosError.js';
|
|
17
17
|
import AxiosHeaders from "./core/AxiosHeaders.js";
|
|
18
|
+
import adapters from './adapters/adapters.js';
|
|
18
19
|
import HttpStatusCode from './helpers/HttpStatusCode.js';
|
|
19
20
|
|
|
20
21
|
/**
|
|
@@ -78,6 +79,8 @@ axios.AxiosHeaders = AxiosHeaders;
|
|
|
78
79
|
|
|
79
80
|
axios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);
|
|
80
81
|
|
|
82
|
+
axios.getAdapter = adapters.getAdapter;
|
|
83
|
+
|
|
81
84
|
axios.HttpStatusCode = HttpStatusCode;
|
|
82
85
|
|
|
83
86
|
axios.default = axios;
|
|
@@ -73,15 +73,13 @@ class Axios {
|
|
|
73
73
|
// Set config.method
|
|
74
74
|
config.method = (config.method || this.defaults.method || 'get').toLowerCase();
|
|
75
75
|
|
|
76
|
-
let contextHeaders;
|
|
77
|
-
|
|
78
76
|
// Flatten headers
|
|
79
|
-
contextHeaders = headers && utils.merge(
|
|
77
|
+
let contextHeaders = headers && utils.merge(
|
|
80
78
|
headers.common,
|
|
81
79
|
headers[config.method]
|
|
82
80
|
);
|
|
83
81
|
|
|
84
|
-
|
|
82
|
+
headers && utils.forEach(
|
|
85
83
|
['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
|
|
86
84
|
(method) => {
|
|
87
85
|
delete headers[method];
|
|
@@ -282,7 +282,17 @@ class AxiosHeaders {
|
|
|
282
282
|
|
|
283
283
|
AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);
|
|
284
284
|
|
|
285
|
-
|
|
285
|
+
// reserved names hotfix
|
|
286
|
+
utils.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {
|
|
287
|
+
let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`
|
|
288
|
+
return {
|
|
289
|
+
get: () => value,
|
|
290
|
+
set(headerValue) {
|
|
291
|
+
this[mapped] = headerValue;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
});
|
|
295
|
+
|
|
286
296
|
utils.freezeMethods(AxiosHeaders);
|
|
287
297
|
|
|
288
298
|
export default AxiosHeaders;
|
|
@@ -8,10 +8,6 @@ import toURLEncodedForm from '../helpers/toURLEncodedForm.js';
|
|
|
8
8
|
import platform from '../platform/index.js';
|
|
9
9
|
import formDataToJSON from '../helpers/formDataToJSON.js';
|
|
10
10
|
|
|
11
|
-
const DEFAULT_CONTENT_TYPE = {
|
|
12
|
-
'Content-Type': undefined
|
|
13
|
-
};
|
|
14
|
-
|
|
15
11
|
/**
|
|
16
12
|
* It takes a string, tries to parse it, and if it fails, it returns the stringified version
|
|
17
13
|
* of the input
|
|
@@ -41,7 +37,7 @@ const defaults = {
|
|
|
41
37
|
|
|
42
38
|
transitional: transitionalDefaults,
|
|
43
39
|
|
|
44
|
-
adapter:
|
|
40
|
+
adapter: platform.isNode ? 'http' : 'xhr',
|
|
45
41
|
|
|
46
42
|
transformRequest: [function transformRequest(data, headers) {
|
|
47
43
|
const contentType = headers.getContentType() || '';
|
|
@@ -150,17 +146,14 @@ const defaults = {
|
|
|
150
146
|
|
|
151
147
|
headers: {
|
|
152
148
|
common: {
|
|
153
|
-
'Accept': 'application/json, text/plain, */*'
|
|
149
|
+
'Accept': 'application/json, text/plain, */*',
|
|
150
|
+
'Content-Type': undefined
|
|
154
151
|
}
|
|
155
152
|
}
|
|
156
153
|
};
|
|
157
154
|
|
|
158
|
-
utils.forEach(['delete', 'get', 'head'],
|
|
155
|
+
utils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {
|
|
159
156
|
defaults.headers[method] = {};
|
|
160
157
|
});
|
|
161
158
|
|
|
162
|
-
utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
163
|
-
defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
|
|
164
|
-
});
|
|
165
|
-
|
|
166
159
|
export default defaults;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.
|
|
1
|
+
export const VERSION = "1.5.0";
|
|
@@ -540,8 +540,9 @@ const reduceDescriptors = (obj, reducer) => {
|
|
|
540
540
|
const reducedDescriptors = {};
|
|
541
541
|
|
|
542
542
|
forEach(descriptors, (descriptor, name) => {
|
|
543
|
-
|
|
544
|
-
|
|
543
|
+
let ret;
|
|
544
|
+
if ((ret = reducer(descriptor, name, obj)) !== false) {
|
|
545
|
+
reducedDescriptors[name] = ret || descriptor;
|
|
545
546
|
}
|
|
546
547
|
});
|
|
547
548
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "axios",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Promise based HTTP client for the browser and node.js",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"exports": {
|
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
"default": "./index.js"
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
|
+
"./lib/adapters/http.js": "./lib/adapters/http.js",
|
|
22
|
+
"./lib/adapters/xhr.js": "./lib/adapters/xhr.js",
|
|
21
23
|
"./unsafe/*": "./lib/*",
|
|
22
24
|
"./unsafe/core/settle.js": "./lib/core/settle.js",
|
|
23
25
|
"./unsafe/core/buildFullPath.js": "./lib/core/buildFullPath.js",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* protobuf.js v7.
|
|
3
|
-
* compiled
|
|
2
|
+
* protobuf.js v7.2.5 (c) 2016, daniel wirtz
|
|
3
|
+
* compiled tue, 22 aug 2023 00:04:28 utc
|
|
4
4
|
* licensed under the bsd-3-clause license
|
|
5
5
|
* see: https://github.com/dcodeio/protobuf.js for details
|
|
6
6
|
*/
|
|
@@ -1129,18 +1129,20 @@ var Enum = require(14),
|
|
|
1129
1129
|
* @ignore
|
|
1130
1130
|
*/
|
|
1131
1131
|
function genValuePartial_fromObject(gen, field, fieldIndex, prop) {
|
|
1132
|
+
var defaultAlreadyEmitted = false;
|
|
1132
1133
|
/* eslint-disable no-unexpected-multiline, block-scoped-var, no-redeclare */
|
|
1133
1134
|
if (field.resolvedType) {
|
|
1134
1135
|
if (field.resolvedType instanceof Enum) { gen
|
|
1135
1136
|
("switch(d%s){", prop);
|
|
1136
1137
|
for (var values = field.resolvedType.values, keys = Object.keys(values), i = 0; i < keys.length; ++i) {
|
|
1137
1138
|
// enum unknown values passthrough
|
|
1138
|
-
if (values[keys[i]] === field.typeDefault) { gen
|
|
1139
|
+
if (values[keys[i]] === field.typeDefault && !defaultAlreadyEmitted) { gen
|
|
1139
1140
|
("default:")
|
|
1140
1141
|
("if(typeof(d%s)===\"number\"){m%s=d%s;break}", prop, prop, prop);
|
|
1141
1142
|
if (!field.repeated) gen // fallback to default value only for
|
|
1142
1143
|
// arrays, to avoid leaving holes.
|
|
1143
1144
|
("break"); // for non-repeated fields, just ignore
|
|
1145
|
+
defaultAlreadyEmitted = true;
|
|
1144
1146
|
}
|
|
1145
1147
|
gen
|
|
1146
1148
|
("case%j:", keys[i])
|
|
@@ -1171,7 +1173,7 @@ function genValuePartial_fromObject(gen, field, fieldIndex, prop) {
|
|
|
1171
1173
|
break;
|
|
1172
1174
|
case "uint64":
|
|
1173
1175
|
isUnsigned = true;
|
|
1174
|
-
// eslint-disable-line no-fallthrough
|
|
1176
|
+
// eslint-disable-next-line no-fallthrough
|
|
1175
1177
|
case "int64":
|
|
1176
1178
|
case "sint64":
|
|
1177
1179
|
case "fixed64":
|
|
@@ -1285,7 +1287,7 @@ function genValuePartial_toObject(gen, field, fieldIndex, prop) {
|
|
|
1285
1287
|
break;
|
|
1286
1288
|
case "uint64":
|
|
1287
1289
|
isUnsigned = true;
|
|
1288
|
-
// eslint-disable-line no-fallthrough
|
|
1290
|
+
// eslint-disable-next-line no-fallthrough
|
|
1289
1291
|
case "int64":
|
|
1290
1292
|
case "sint64":
|
|
1291
1293
|
case "fixed64":
|
|
@@ -2941,9 +2943,8 @@ Object.defineProperty(Namespace.prototype, "nestedArray", {
|
|
|
2941
2943
|
/**
|
|
2942
2944
|
* Any nested object descriptor.
|
|
2943
2945
|
* @typedef AnyNestedObject
|
|
2944
|
-
* @type {IEnum|IType|IService|AnyExtensionField|INamespace}
|
|
2946
|
+
* @type {IEnum|IType|IService|AnyExtensionField|INamespace|IOneOf}
|
|
2945
2947
|
*/
|
|
2946
|
-
// ^ BEWARE: VSCode hangs forever when using more than 5 types (that's why AnyExtensionField exists in the first place)
|
|
2947
2948
|
|
|
2948
2949
|
/**
|
|
2949
2950
|
* Converts this namespace to a namespace descriptor.
|
|
@@ -3996,9 +3997,14 @@ Reader.prototype.bytes = function read_bytes() {
|
|
|
3996
3997
|
this.pos += length;
|
|
3997
3998
|
if (Array.isArray(this.buf)) // plain array
|
|
3998
3999
|
return this.buf.slice(start, end);
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4000
|
+
|
|
4001
|
+
if (start === end) { // fix for IE 10/Win8 and others' subarray returning array of size 1
|
|
4002
|
+
var nativeBuffer = util.Buffer;
|
|
4003
|
+
return nativeBuffer
|
|
4004
|
+
? nativeBuffer.alloc(0)
|
|
4005
|
+
: new this.buf.constructor(0);
|
|
4006
|
+
}
|
|
4007
|
+
return this._slice.call(this.buf, start, end);
|
|
4002
4008
|
};
|
|
4003
4009
|
|
|
4004
4010
|
/**
|
|
@@ -4295,6 +4301,7 @@ Root.prototype.load = function load(filename, options, callback) {
|
|
|
4295
4301
|
|
|
4296
4302
|
// Fetches a single file
|
|
4297
4303
|
function fetch(filename, weak) {
|
|
4304
|
+
filename = getBundledFileName(filename) || filename;
|
|
4298
4305
|
|
|
4299
4306
|
// Skip if already loaded / attempted
|
|
4300
4307
|
if (self.files.indexOf(filename) > -1)
|
|
@@ -4423,6 +4430,10 @@ function tryHandleExtension(root, field) {
|
|
|
4423
4430
|
var extendedType = field.parent.lookup(field.extend);
|
|
4424
4431
|
if (extendedType) {
|
|
4425
4432
|
var sisterField = new Field(field.fullName, field.id, field.type, field.rule, undefined, field.options);
|
|
4433
|
+
//do not allow to extend same field twice to prevent the error
|
|
4434
|
+
if (extendedType.get(sisterField.name)) {
|
|
4435
|
+
return true;
|
|
4436
|
+
}
|
|
4426
4437
|
sisterField.declaringField = field;
|
|
4427
4438
|
field.extensionField = sisterField;
|
|
4428
4439
|
extendedType.add(sisterField);
|
|
@@ -5851,7 +5862,7 @@ util.decorateEnum = function decorateEnum(object) {
|
|
|
5851
5862
|
util.setProperty = function setProperty(dst, path, value) {
|
|
5852
5863
|
function setProp(dst, path, value) {
|
|
5853
5864
|
var part = path.shift();
|
|
5854
|
-
if (part === "__proto__") {
|
|
5865
|
+
if (part === "__proto__" || part === "prototype") {
|
|
5855
5866
|
return dst;
|
|
5856
5867
|
}
|
|
5857
5868
|
if (path.length > 0) {
|
|
@@ -6379,7 +6390,7 @@ function newError(name) {
|
|
|
6379
6390
|
configurable: true,
|
|
6380
6391
|
},
|
|
6381
6392
|
name: {
|
|
6382
|
-
get() { return name; },
|
|
6393
|
+
get: function get() { return name; },
|
|
6383
6394
|
set: undefined,
|
|
6384
6395
|
enumerable: false,
|
|
6385
6396
|
// configurable: false would accurately preserve the behavior of
|
|
@@ -6389,7 +6400,7 @@ function newError(name) {
|
|
|
6389
6400
|
configurable: true,
|
|
6390
6401
|
},
|
|
6391
6402
|
toString: {
|
|
6392
|
-
value() { return this.name + ": " + this.message; },
|
|
6403
|
+
value: function value() { return this.name + ": " + this.message; },
|
|
6393
6404
|
writable: true,
|
|
6394
6405
|
enumerable: false,
|
|
6395
6406
|
configurable: true,
|