cdk-common 1.0.1034 → 1.0.1036
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/.jsii +86 -2
- package/API.md +84 -0
- package/lib/main.js +1 -1
- package/lib/managed-policies.d.ts +15 -1
- package/lib/managed-policies.js +15 -1
- package/node_modules/has-symbols/CHANGELOG.md +16 -0
- package/node_modules/has-symbols/index.d.ts +3 -0
- package/node_modules/has-symbols/index.js +1 -0
- package/node_modules/has-symbols/package.json +19 -9
- package/node_modules/has-symbols/shams.d.ts +3 -0
- package/node_modules/has-symbols/shams.js +5 -2
- package/node_modules/has-symbols/test/shams/core-js.js +1 -0
- package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +1 -0
- package/node_modules/has-symbols/test/tests.js +4 -2
- package/node_modules/has-symbols/tsconfig.json +10 -0
- package/package.json +2 -2
|
@@ -5,6 +5,22 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [v1.1.0](https://github.com/inspect-js/has-symbols/compare/v1.0.3...v1.1.0) - 2024-12-02
|
|
9
|
+
|
|
10
|
+
### Commits
|
|
11
|
+
|
|
12
|
+
- [actions] update workflows [`548c0bf`](https://github.com/inspect-js/has-symbols/commit/548c0bf8c9b1235458df7a1c0490b0064647a282)
|
|
13
|
+
- [actions] further shard; update action deps [`bec56bb`](https://github.com/inspect-js/has-symbols/commit/bec56bb0fb44b43a786686b944875a3175cf3ff3)
|
|
14
|
+
- [meta] use `npmignore` to autogenerate an npmignore file [`ac81032`](https://github.com/inspect-js/has-symbols/commit/ac81032809157e0a079e5264e9ce9b6f1275777e)
|
|
15
|
+
- [New] add types [`6469cbf`](https://github.com/inspect-js/has-symbols/commit/6469cbff1866cfe367b2b3d181d9296ec14b2a3d)
|
|
16
|
+
- [actions] update rebase action to use reusable workflow [`9c9d4d0`](https://github.com/inspect-js/has-symbols/commit/9c9d4d0d8938e4b267acdf8e421f4e92d1716d72)
|
|
17
|
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `tape` [`adb5887`](https://github.com/inspect-js/has-symbols/commit/adb5887ca9444849b08beb5caaa9e1d42320cdfb)
|
|
18
|
+
- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`13ec198`](https://github.com/inspect-js/has-symbols/commit/13ec198ec80f1993a87710af1606a1970b22c7cb)
|
|
19
|
+
- [Dev Deps] update `auto-changelog`, `core-js`, `tape` [`941be52`](https://github.com/inspect-js/has-symbols/commit/941be5248387cab1da72509b22acf3fdb223f057)
|
|
20
|
+
- [Tests] replace `aud` with `npm audit` [`74f49e9`](https://github.com/inspect-js/has-symbols/commit/74f49e9a9d17a443020784234a1c53ce765b3559)
|
|
21
|
+
- [Dev Deps] update `npmignore` [`9c0ac04`](https://github.com/inspect-js/has-symbols/commit/9c0ac0452a834f4c2a4b54044f2d6a89f17e9a70)
|
|
22
|
+
- [Dev Deps] add missing peer dep [`52337a5`](https://github.com/inspect-js/has-symbols/commit/52337a5621cced61f846f2afdab7707a8132cc12)
|
|
23
|
+
|
|
8
24
|
## [v1.0.3](https://github.com/inspect-js/has-symbols/compare/v1.0.2...v1.0.3) - 2022-03-01
|
|
9
25
|
|
|
10
26
|
### Commits
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
4
4
|
var hasSymbolSham = require('./shams');
|
|
5
5
|
|
|
6
|
+
/** @type {import('.')} */
|
|
6
7
|
module.exports = function hasNativeSymbols() {
|
|
7
8
|
if (typeof origSymbol !== 'function') { return false; }
|
|
8
9
|
if (typeof Symbol !== 'function') { return false; }
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "has-symbols",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Determine if the JS environment has Symbol support. Supports spec, or shams.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
+
"prepack": "npmignore --auto --commentLines=autogenerated",
|
|
7
8
|
"prepublishOnly": "safe-publish-latest",
|
|
8
9
|
"prepublish": "not-in-publish || npm run prepublishOnly",
|
|
9
10
|
"pretest": "npm run --silent lint",
|
|
10
11
|
"test": "npm run tests-only",
|
|
11
|
-
"posttest": "
|
|
12
|
-
"tests-only": "npm run test:stock && npm run test:
|
|
12
|
+
"posttest": "npx npm@'>=10.2' audit --production",
|
|
13
|
+
"tests-only": "npm run test:stock && npm run test:shams",
|
|
13
14
|
"test:stock": "nyc node test",
|
|
14
15
|
"test:staging": "nyc node --harmony --es-staging test",
|
|
15
16
|
"test:shams": "npm run --silent test:shams:getownpropertysymbols && npm run --silent test:shams:corejs",
|
|
16
17
|
"test:shams:corejs": "nyc node test/shams/core-js.js",
|
|
17
18
|
"test:shams:getownpropertysymbols": "nyc node test/shams/get-own-property-symbols.js",
|
|
18
19
|
"lint": "eslint --ext=js,mjs .",
|
|
20
|
+
"postlint": "tsc -p . && attw -P",
|
|
19
21
|
"version": "auto-changelog && git add CHANGELOG.md",
|
|
20
22
|
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
|
21
23
|
},
|
|
@@ -54,15 +56,22 @@
|
|
|
54
56
|
},
|
|
55
57
|
"homepage": "https://github.com/ljharb/has-symbols#readme",
|
|
56
58
|
"devDependencies": {
|
|
57
|
-
"@
|
|
58
|
-
"
|
|
59
|
-
"
|
|
59
|
+
"@arethetypeswrong/cli": "^0.17.0",
|
|
60
|
+
"@ljharb/eslint-config": "^21.1.1",
|
|
61
|
+
"@ljharb/tsconfig": "^0.2.0",
|
|
62
|
+
"@types/core-js": "^2.5.8",
|
|
63
|
+
"@types/tape": "^5.6.5",
|
|
64
|
+
"auto-changelog": "^2.5.0",
|
|
60
65
|
"core-js": "^2.6.12",
|
|
66
|
+
"encoding": "^0.1.13",
|
|
61
67
|
"eslint": "=8.8.0",
|
|
62
68
|
"get-own-property-symbols": "^0.9.5",
|
|
69
|
+
"in-publish": "^2.0.1",
|
|
70
|
+
"npmignore": "^0.3.1",
|
|
63
71
|
"nyc": "^10.3.2",
|
|
64
72
|
"safe-publish-latest": "^2.0.0",
|
|
65
|
-
"tape": "^5.
|
|
73
|
+
"tape": "^5.9.0",
|
|
74
|
+
"typescript": "next"
|
|
66
75
|
},
|
|
67
76
|
"testling": {
|
|
68
77
|
"files": "test/index.js",
|
|
@@ -93,9 +102,10 @@
|
|
|
93
102
|
"backfillLimit": false,
|
|
94
103
|
"hideCredit": true
|
|
95
104
|
},
|
|
96
|
-
"
|
|
105
|
+
"publishConfig": {
|
|
97
106
|
"ignore": [
|
|
98
|
-
"
|
|
107
|
+
".github/workflows",
|
|
108
|
+
"types"
|
|
99
109
|
]
|
|
100
110
|
}
|
|
101
111
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
/** @type {import('./shams')} */
|
|
3
4
|
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
4
5
|
module.exports = function hasSymbols() {
|
|
5
6
|
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
6
7
|
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
7
8
|
|
|
9
|
+
/** @type {{ [k in symbol]?: unknown }} */
|
|
8
10
|
var obj = {};
|
|
9
11
|
var sym = Symbol('test');
|
|
10
12
|
var symObj = Object(sym);
|
|
@@ -23,7 +25,7 @@ module.exports = function hasSymbols() {
|
|
|
23
25
|
|
|
24
26
|
var symVal = 42;
|
|
25
27
|
obj[sym] = symVal;
|
|
26
|
-
for (
|
|
28
|
+
for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
27
29
|
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
28
30
|
|
|
29
31
|
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
@@ -34,7 +36,8 @@ module.exports = function hasSymbols() {
|
|
|
34
36
|
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
35
37
|
|
|
36
38
|
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
37
|
-
|
|
39
|
+
// eslint-disable-next-line no-extra-parens
|
|
40
|
+
var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));
|
|
38
41
|
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
39
42
|
}
|
|
40
43
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
/** @type {(t: import('tape').Test) => false | void} */
|
|
3
4
|
// eslint-disable-next-line consistent-return
|
|
4
5
|
module.exports = function runSymbolTests(t) {
|
|
5
6
|
t.equal(typeof Symbol, 'function', 'global Symbol is a function');
|
|
@@ -31,6 +32,7 @@ module.exports = function runSymbolTests(t) {
|
|
|
31
32
|
|
|
32
33
|
t.equal(typeof Object.getOwnPropertySymbols, 'function', 'Object.getOwnPropertySymbols is a function');
|
|
33
34
|
|
|
35
|
+
/** @type {{ [k in symbol]?: unknown }} */
|
|
34
36
|
var obj = {};
|
|
35
37
|
var sym = Symbol('test');
|
|
36
38
|
var symObj = Object(sym);
|
|
@@ -40,8 +42,8 @@ module.exports = function runSymbolTests(t) {
|
|
|
40
42
|
|
|
41
43
|
var symVal = 42;
|
|
42
44
|
obj[sym] = symVal;
|
|
43
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
44
|
-
for (
|
|
45
|
+
// eslint-disable-next-line no-restricted-syntax, no-unused-vars
|
|
46
|
+
for (var _ in obj) { t.fail('symbol property key was found in for..in of object'); }
|
|
45
47
|
|
|
46
48
|
t.deepEqual(Object.keys(obj), [], 'no enumerable own keys on symbol-valued object');
|
|
47
49
|
t.deepEqual(Object.getOwnPropertyNames(obj), [], 'no own names on symbol-valued object');
|
package/package.json
CHANGED
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"jsii-docgen": "^10.5.0",
|
|
56
56
|
"jsii-pacmak": "^1.105.0",
|
|
57
57
|
"jsii-rosetta": "5.3.x",
|
|
58
|
-
"projen": "0.90.
|
|
58
|
+
"projen": "0.90.6",
|
|
59
59
|
"ts-jest": "^27",
|
|
60
60
|
"typescript": "^5"
|
|
61
61
|
},
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"publishConfig": {
|
|
92
92
|
"access": "public"
|
|
93
93
|
},
|
|
94
|
-
"version": "1.0.
|
|
94
|
+
"version": "1.0.1036",
|
|
95
95
|
"jest": {
|
|
96
96
|
"coverageProvider": "v8",
|
|
97
97
|
"testMatch": [
|