node-red-contrib-tak-registration 0.8.3 → 0.10.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 +5 -0
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/async_hooks.d.ts +2 -0
- package/node_modules/@types/node/fs.d.ts +12 -7
- package/node_modules/@types/node/http.d.ts +40 -8
- package/node_modules/@types/node/index.d.ts +1 -1
- package/node_modules/@types/node/inspector.d.ts +2 -2
- package/node_modules/@types/node/module.d.ts +29 -4
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/node/process.d.ts +3 -2
- package/node_modules/@types/node/ts4.8/async_hooks.d.ts +2 -0
- package/node_modules/@types/node/ts4.8/fs.d.ts +12 -7
- package/node_modules/@types/node/ts4.8/http.d.ts +40 -8
- package/node_modules/@types/node/ts4.8/inspector.d.ts +2 -2
- package/node_modules/@types/node/ts4.8/module.d.ts +29 -4
- package/node_modules/@types/node/ts4.8/process.d.ts +3 -2
- package/node_modules/@types/node/ts4.8/worker_threads.d.ts +2 -1
- package/node_modules/@types/node/worker_threads.d.ts +2 -1
- package/node_modules/define-data-property/.eslintrc +24 -0
- package/node_modules/define-data-property/.github/FUNDING.yml +12 -0
- package/node_modules/define-data-property/.nycrc +13 -0
- package/node_modules/define-data-property/CHANGELOG.md +31 -0
- package/node_modules/define-data-property/LICENSE +21 -0
- package/node_modules/define-data-property/README.md +67 -0
- package/node_modules/define-data-property/index.d.ts +3 -0
- package/node_modules/define-data-property/index.d.ts.map +1 -0
- package/node_modules/define-data-property/index.js +60 -0
- package/node_modules/define-data-property/package.json +111 -0
- package/node_modules/define-data-property/test/index.js +397 -0
- package/node_modules/define-data-property/tsconfig.json +58 -0
- package/node_modules/define-data-property/tsinit +109 -0
- package/node_modules/define-properties/CHANGELOG.md +8 -0
- package/node_modules/define-properties/index.js +5 -11
- package/node_modules/define-properties/package.json +5 -4
- package/node_modules/gopd/.eslintrc +16 -0
- package/node_modules/gopd/.github/FUNDING.yml +12 -0
- package/node_modules/gopd/CHANGELOG.md +25 -0
- package/node_modules/gopd/LICENSE +21 -0
- package/node_modules/gopd/README.md +40 -0
- package/node_modules/gopd/index.js +16 -0
- package/node_modules/gopd/package.json +71 -0
- package/node_modules/gopd/test/index.js +35 -0
- package/node_modules/regexp.prototype.flags/.eslintrc +1 -0
- package/node_modules/regexp.prototype.flags/CHANGELOG.md +8 -0
- package/node_modules/regexp.prototype.flags/implementation.js +3 -6
- package/node_modules/regexp.prototype.flags/package.json +8 -7
- package/node_modules/set-function-name/.eslintrc +20 -0
- package/node_modules/set-function-name/.github/FUNDING.yml +12 -0
- package/node_modules/set-function-name/CHANGELOG.md +39 -0
- package/node_modules/set-function-name/LICENSE +21 -0
- package/node_modules/set-function-name/README.md +61 -0
- package/node_modules/set-function-name/index.js +22 -0
- package/node_modules/set-function-name/package.json +80 -0
- package/node_modules/uuid/CHANGELOG.md +6 -0
- package/node_modules/uuid/README.md +9 -5
- package/node_modules/uuid/dist/commonjs-browser/stringify.js +1 -1
- package/node_modules/uuid/dist/esm-browser/stringify.js +1 -1
- package/node_modules/uuid/dist/esm-node/stringify.js +1 -1
- package/node_modules/uuid/dist/stringify.js +1 -1
- package/node_modules/uuid/package.json +7 -3
- package/package.json +2 -2
- package/tak-registration.html +9 -2
- package/tak-registration.js +110 -48
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [v1.1.0](https://github.com/ljharb/define-data-property/compare/v1.0.1...v1.1.0) - 2023-09-13
|
|
9
|
+
|
|
10
|
+
### Commits
|
|
11
|
+
|
|
12
|
+
- [New] add `loose` arg [`155235a`](https://github.com/ljharb/define-data-property/commit/155235a4c4d7741f6de01cd87c99599a56654b72)
|
|
13
|
+
- [New] allow `null` to be passed for the non* args [`7d2fa5f`](https://github.com/ljharb/define-data-property/commit/7d2fa5f06be0392736c13b126f7cd38979f34792)
|
|
14
|
+
|
|
15
|
+
## [v1.0.1](https://github.com/ljharb/define-data-property/compare/v1.0.0...v1.0.1) - 2023-09-12
|
|
16
|
+
|
|
17
|
+
### Commits
|
|
18
|
+
|
|
19
|
+
- [meta] add TS types [`43d763c`](https://github.com/ljharb/define-data-property/commit/43d763c6c883f652de1c9c02ef6216ee507ffa69)
|
|
20
|
+
- [Dev Deps] update `@types/tape`, `typescript` [`f444985`](https://github.com/ljharb/define-data-property/commit/f444985811c36f3e6448a03ad2f9b7898917f4c7)
|
|
21
|
+
- [meta] add `safe-publish-latest`, [`172bb10`](https://github.com/ljharb/define-data-property/commit/172bb10890896ebb160e64398f6ee55760107bee)
|
|
22
|
+
|
|
23
|
+
## v1.0.0 - 2023-09-12
|
|
24
|
+
|
|
25
|
+
### Commits
|
|
26
|
+
|
|
27
|
+
- Initial implementation, tests, readme [`5b43d6b`](https://github.com/ljharb/define-data-property/commit/5b43d6b44e675a904810467a7d4e0adb7efc3196)
|
|
28
|
+
- Initial commit [`35e577a`](https://github.com/ljharb/define-data-property/commit/35e577a6ba59a98befa97776d70d90f3bea9009d)
|
|
29
|
+
- npm init [`82a0a04`](https://github.com/ljharb/define-data-property/commit/82a0a04a321ca7de220af02d41e2745e8a9962ed)
|
|
30
|
+
- Only apps should have lockfiles [`96df244`](https://github.com/ljharb/define-data-property/commit/96df244a3c6f426f9a2437be825d1c6f5dd7158e)
|
|
31
|
+
- [meta] use `npmignore` to autogenerate an npmignore file [`a87ff18`](https://github.com/ljharb/define-data-property/commit/a87ff18cb79e14c2eb5720486c4759fd9a189375)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Jordan Harband
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# define-data-property <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
|
|
2
|
+
|
|
3
|
+
[![github actions][actions-image]][actions-url]
|
|
4
|
+
[![coverage][codecov-image]][codecov-url]
|
|
5
|
+
[![License][license-image]][license-url]
|
|
6
|
+
[![Downloads][downloads-image]][downloads-url]
|
|
7
|
+
|
|
8
|
+
[![npm badge][npm-badge-png]][package-url]
|
|
9
|
+
|
|
10
|
+
Define a data property on an object. Will fall back to assignment in an engine without descriptors.
|
|
11
|
+
|
|
12
|
+
The three `non*` argument can also be passed `null`, which will use the existing state if available.
|
|
13
|
+
|
|
14
|
+
The `loose` argument will mean that if you attempt to set a non-normal data property, in an environment without descriptor support, it will fall back to normal assignment.
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
```javascript
|
|
19
|
+
var defineDataProperty = require('define-data-property');
|
|
20
|
+
var assert = require('assert');
|
|
21
|
+
|
|
22
|
+
var obj = {};
|
|
23
|
+
defineDataProperty(obj, 'key', 'value');
|
|
24
|
+
defineDataProperty(
|
|
25
|
+
obj,
|
|
26
|
+
'key2',
|
|
27
|
+
'value',
|
|
28
|
+
true, // nonEnumerable, optional
|
|
29
|
+
false, // nonWritable, optional
|
|
30
|
+
true, // nonConfigurable, optional
|
|
31
|
+
false // loose, optional
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
assert.deepEqual(
|
|
35
|
+
Object.getOwnPropertyDescriptors(obj),
|
|
36
|
+
{
|
|
37
|
+
key: {
|
|
38
|
+
configurable: true,
|
|
39
|
+
enumerable: true,
|
|
40
|
+
value: 'value',
|
|
41
|
+
writable: true,
|
|
42
|
+
},
|
|
43
|
+
key2: {
|
|
44
|
+
configurable: false,
|
|
45
|
+
enumerable: false,
|
|
46
|
+
value: 'value',
|
|
47
|
+
writable: true,
|
|
48
|
+
},
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
[package-url]: https://npmjs.org/package/define-data-property
|
|
54
|
+
[npm-version-svg]: https://versionbadg.es/ljharb/define-data-property.svg
|
|
55
|
+
[deps-svg]: https://david-dm.org/ljharb/define-data-property.svg
|
|
56
|
+
[deps-url]: https://david-dm.org/ljharb/define-data-property
|
|
57
|
+
[dev-deps-svg]: https://david-dm.org/ljharb/define-data-property/dev-status.svg
|
|
58
|
+
[dev-deps-url]: https://david-dm.org/ljharb/define-data-property#info=devDependencies
|
|
59
|
+
[npm-badge-png]: https://nodei.co/npm/define-data-property.png?downloads=true&stars=true
|
|
60
|
+
[license-image]: https://img.shields.io/npm/l/define-data-property.svg
|
|
61
|
+
[license-url]: LICENSE
|
|
62
|
+
[downloads-image]: https://img.shields.io/npm/dm/define-data-property.svg
|
|
63
|
+
[downloads-url]: https://npm-stat.com/charts.html?package=define-data-property
|
|
64
|
+
[codecov-image]: https://codecov.io/gh/ljharb/define-data-property/branch/main/graphs/badge.svg
|
|
65
|
+
[codecov-url]: https://app.codecov.io/gh/ljharb/define-data-property/
|
|
66
|
+
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/define-data-property
|
|
67
|
+
[actions-url]: https://github.com/ljharb/define-data-property/actions
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _exports: (obj: Record<PropertyKey, unknown>, property: PropertyKey, value: unknown, nonEnumerable?: boolean | null, nonWritable?: boolean | null, nonConfigurable?: boolean | null, loose?: boolean) => void;
|
|
2
|
+
export = _exports;
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"8BAaiB,OAAO,WAAW,EAAE,OAAO,CAAC,YAAY,WAAW,SAAS,OAAO,kBAAkB,OAAO,GAAG,IAAI,gBAAgB,OAAO,GAAG,IAAI,oBAAoB,OAAO,GAAG,IAAI,UAAU,OAAO,KAAK,IAAI"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var hasPropertyDescriptors = require('has-property-descriptors')();
|
|
4
|
+
|
|
5
|
+
var GetIntrinsic = require('get-intrinsic');
|
|
6
|
+
|
|
7
|
+
var $defineProperty = hasPropertyDescriptors && GetIntrinsic('%Object.defineProperty%', true);
|
|
8
|
+
|
|
9
|
+
var $SyntaxError = GetIntrinsic('%SyntaxError%');
|
|
10
|
+
var $TypeError = GetIntrinsic('%TypeError%');
|
|
11
|
+
|
|
12
|
+
var gopd = require('gopd');
|
|
13
|
+
|
|
14
|
+
/** @type {(obj: Record<PropertyKey, unknown>, property: PropertyKey, value: unknown, nonEnumerable?: boolean | null, nonWritable?: boolean | null, nonConfigurable?: boolean | null, loose?: boolean) => void} */
|
|
15
|
+
module.exports = function defineDataProperty(
|
|
16
|
+
obj,
|
|
17
|
+
property,
|
|
18
|
+
value
|
|
19
|
+
) {
|
|
20
|
+
if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
|
|
21
|
+
throw new $TypeError('`obj` must be an object or a function`');
|
|
22
|
+
}
|
|
23
|
+
if (typeof property !== 'string' && typeof property !== 'symbol') {
|
|
24
|
+
throw new $TypeError('`property` must be a string or a symbol`');
|
|
25
|
+
}
|
|
26
|
+
if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
|
|
27
|
+
throw new $TypeError('`nonEnumerable`, if provided, must be a boolean or null');
|
|
28
|
+
}
|
|
29
|
+
if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
|
|
30
|
+
throw new $TypeError('`nonWritable`, if provided, must be a boolean or null');
|
|
31
|
+
}
|
|
32
|
+
if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
|
|
33
|
+
throw new $TypeError('`nonConfigurable`, if provided, must be a boolean or null');
|
|
34
|
+
}
|
|
35
|
+
if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
|
|
36
|
+
throw new $TypeError('`loose`, if provided, must be a boolean');
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
|
|
40
|
+
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
|
41
|
+
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
|
42
|
+
var loose = arguments.length > 6 ? arguments[6] : false;
|
|
43
|
+
|
|
44
|
+
/* @type {false | TypedPropertyDescriptor<unknown>} */
|
|
45
|
+
var desc = !!gopd && gopd(obj, property);
|
|
46
|
+
|
|
47
|
+
if ($defineProperty) {
|
|
48
|
+
$defineProperty(obj, property, {
|
|
49
|
+
configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
|
|
50
|
+
enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
|
|
51
|
+
value: value,
|
|
52
|
+
writable: nonWritable === null && desc ? desc.writable : !nonWritable
|
|
53
|
+
});
|
|
54
|
+
} else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
|
|
55
|
+
// must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
|
|
56
|
+
obj[property] = value; // eslint-disable-line no-param-reassign
|
|
57
|
+
} else {
|
|
58
|
+
throw new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
|
|
59
|
+
}
|
|
60
|
+
};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "define-data-property",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Define a data property on an object. Will fall back to assignment in an engine without descriptors.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": [
|
|
8
|
+
{
|
|
9
|
+
"types": "./index.d.ts",
|
|
10
|
+
"default": "./index.js"
|
|
11
|
+
},
|
|
12
|
+
"./index.js"
|
|
13
|
+
],
|
|
14
|
+
"./package.json": "./package.json"
|
|
15
|
+
},
|
|
16
|
+
"sideEffects": false,
|
|
17
|
+
"types": "./index.d.ts",
|
|
18
|
+
"scripts": {
|
|
19
|
+
"prepack": "npmignore --auto --commentLines=autogenerated",
|
|
20
|
+
"prepublish": "not-in-publish || npm run prepublishOnly",
|
|
21
|
+
"prepublishOnly": "safe-publish-latest",
|
|
22
|
+
"tsc": "tsc -p .",
|
|
23
|
+
"preemit-types": "rm -f *.ts *.ts.map test/*.ts test/*.ts.map",
|
|
24
|
+
"emit-types": "npm run tsc -- --noEmit false --emitDeclarationOnly",
|
|
25
|
+
"postemit-types": "rm test/*.ts test/*.ts.map",
|
|
26
|
+
"prelint": "evalmd README.md",
|
|
27
|
+
"lint": "eslint --ext=js,mjs .",
|
|
28
|
+
"postlint": "npm run tsc",
|
|
29
|
+
"pretest": "npm run lint",
|
|
30
|
+
"tests-only": "nyc tape 'test/**/*.js'",
|
|
31
|
+
"test": "npm run tests-only",
|
|
32
|
+
"posttest": "aud --production",
|
|
33
|
+
"version": "auto-changelog && git add CHANGELOG.md",
|
|
34
|
+
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
|
35
|
+
},
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "git+https://github.com/ljharb/define-data-property.git"
|
|
39
|
+
},
|
|
40
|
+
"keywords": [
|
|
41
|
+
"define",
|
|
42
|
+
"data",
|
|
43
|
+
"property",
|
|
44
|
+
"object",
|
|
45
|
+
"accessor",
|
|
46
|
+
"javascript",
|
|
47
|
+
"ecmascript",
|
|
48
|
+
"enumerable",
|
|
49
|
+
"configurable",
|
|
50
|
+
"writable"
|
|
51
|
+
],
|
|
52
|
+
"author": "Jordan Harband <ljharb@gmail.com>",
|
|
53
|
+
"license": "MIT",
|
|
54
|
+
"bugs": {
|
|
55
|
+
"url": "https://github.com/ljharb/define-data-property/issues"
|
|
56
|
+
},
|
|
57
|
+
"homepage": "https://github.com/ljharb/define-data-property#readme",
|
|
58
|
+
"dependencies": {
|
|
59
|
+
"get-intrinsic": "^1.2.1",
|
|
60
|
+
"gopd": "^1.0.1",
|
|
61
|
+
"has-property-descriptors": "^1.0.0"
|
|
62
|
+
},
|
|
63
|
+
"devDependencies": {
|
|
64
|
+
"@ljharb/eslint-config": "^21.1.0",
|
|
65
|
+
"@types/es-value-fixtures": "^1.4.0",
|
|
66
|
+
"@types/for-each": "^0.3.0",
|
|
67
|
+
"@types/get-intrinsic": "^1.2.0",
|
|
68
|
+
"@types/gopd": "^1.0.0",
|
|
69
|
+
"@types/has": "^1.0.0",
|
|
70
|
+
"@types/has-property-descriptors": "^1.0.0",
|
|
71
|
+
"@types/object-inspect": "^1.8.2",
|
|
72
|
+
"@types/object.getownpropertydescriptors": "^2.1.2",
|
|
73
|
+
"@types/tape": "^5.6.1",
|
|
74
|
+
"aud": "^2.0.3",
|
|
75
|
+
"auto-changelog": "^2.4.0",
|
|
76
|
+
"es-value-fixtures": "^1.4.2",
|
|
77
|
+
"eslint": "=8.8.0",
|
|
78
|
+
"evalmd": "^0.0.19",
|
|
79
|
+
"for-each": "^0.3.3",
|
|
80
|
+
"has": "^1.0.3",
|
|
81
|
+
"in-publish": "^2.0.1",
|
|
82
|
+
"npmignore": "^0.3.0",
|
|
83
|
+
"nyc": "^10.3.2",
|
|
84
|
+
"object-inspect": "^1.12.3",
|
|
85
|
+
"object.getownpropertydescriptors": "^2.1.7",
|
|
86
|
+
"safe-publish-latest": "^2.0.0",
|
|
87
|
+
"tape": "^5.6.6",
|
|
88
|
+
"typescript": "^5.3.0-dev.20230912"
|
|
89
|
+
},
|
|
90
|
+
"engines": {
|
|
91
|
+
"node": ">= 0.4"
|
|
92
|
+
},
|
|
93
|
+
"testling": {
|
|
94
|
+
"files": "test/index.js"
|
|
95
|
+
},
|
|
96
|
+
"auto-changelog": {
|
|
97
|
+
"output": "CHANGELOG.md",
|
|
98
|
+
"template": "keepachangelog",
|
|
99
|
+
"unreleased": false,
|
|
100
|
+
"commitLimit": false,
|
|
101
|
+
"backfillLimit": false,
|
|
102
|
+
"hideCredit": true
|
|
103
|
+
},
|
|
104
|
+
"publishConfig": {
|
|
105
|
+
"ignore": [
|
|
106
|
+
".github/workflows",
|
|
107
|
+
"!*.ts",
|
|
108
|
+
"!*.ts.map"
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
}
|