cdk-common 2.0.1102 → 2.0.1104
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 +44 -2
- package/API.md +42 -0
- package/lib/main.js +1 -1
- package/lib/managed-policies.d.ts +8 -1
- package/lib/managed-policies.js +8 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/assert.d.ts +2 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/module.d.ts +7 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/stream.d.ts +6 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/test.d.ts +40 -133
- package/node_modules/@types/concat-stream/node_modules/@types/node/vm.d.ts +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/assert.d.ts +2 -0
- package/node_modules/@types/form-data/node_modules/@types/node/module.d.ts +7 -0
- package/node_modules/@types/form-data/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/form-data/node_modules/@types/node/stream.d.ts +6 -1
- package/node_modules/@types/form-data/node_modules/@types/node/test.d.ts +40 -133
- package/node_modules/@types/form-data/node_modules/@types/node/vm.d.ts +1 -1
- package/node_modules/es-set-tostringtag/.eslintrc +13 -0
- package/node_modules/es-set-tostringtag/.nycrc +9 -0
- package/node_modules/es-set-tostringtag/CHANGELOG.md +67 -0
- package/node_modules/es-set-tostringtag/LICENSE +21 -0
- package/node_modules/es-set-tostringtag/README.md +53 -0
- package/node_modules/es-set-tostringtag/index.d.ts +10 -0
- package/node_modules/es-set-tostringtag/index.js +35 -0
- package/node_modules/es-set-tostringtag/package.json +78 -0
- package/node_modules/es-set-tostringtag/test/index.js +85 -0
- package/node_modules/es-set-tostringtag/tsconfig.json +9 -0
- package/node_modules/form-data/lib/form_data.js +23 -21
- package/node_modules/form-data/package.json +18 -15
- package/node_modules/has-tostringtag/.eslintrc +5 -0
- package/node_modules/has-tostringtag/.github/FUNDING.yml +12 -0
- package/node_modules/has-tostringtag/.nycrc +13 -0
- package/node_modules/has-tostringtag/CHANGELOG.md +42 -0
- package/node_modules/has-tostringtag/LICENSE +21 -0
- package/node_modules/has-tostringtag/README.md +46 -0
- package/node_modules/has-tostringtag/index.d.ts +3 -0
- package/node_modules/has-tostringtag/index.js +8 -0
- package/node_modules/has-tostringtag/package.json +108 -0
- package/node_modules/has-tostringtag/shams.d.ts +3 -0
- package/node_modules/has-tostringtag/shams.js +8 -0
- package/node_modules/has-tostringtag/test/index.js +21 -0
- package/node_modules/has-tostringtag/test/shams/core-js.js +31 -0
- package/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +30 -0
- package/node_modules/has-tostringtag/test/tests.js +15 -0
- package/node_modules/has-tostringtag/tsconfig.json +49 -0
- package/package.json +2 -2
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "has-tostringtag",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"author": {
|
|
5
|
+
"name": "Jordan Harband",
|
|
6
|
+
"email": "ljharb@gmail.com",
|
|
7
|
+
"url": "http://ljharb.codes"
|
|
8
|
+
},
|
|
9
|
+
"funding": {
|
|
10
|
+
"url": "https://github.com/sponsors/ljharb"
|
|
11
|
+
},
|
|
12
|
+
"contributors": [
|
|
13
|
+
{
|
|
14
|
+
"name": "Jordan Harband",
|
|
15
|
+
"email": "ljharb@gmail.com",
|
|
16
|
+
"url": "http://ljharb.codes"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"description": "Determine if the JS environment has `Symbol.toStringTag` support. Supports spec, or shams.",
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"main": "index.js",
|
|
22
|
+
"types": "./index.d.ts",
|
|
23
|
+
"exports": {
|
|
24
|
+
".": [
|
|
25
|
+
{
|
|
26
|
+
"types": "./index.d.ts",
|
|
27
|
+
"default": "./index.js"
|
|
28
|
+
},
|
|
29
|
+
"./index.js"
|
|
30
|
+
],
|
|
31
|
+
"./shams": [
|
|
32
|
+
{
|
|
33
|
+
"types": "./shams.d.ts",
|
|
34
|
+
"default": "./shams.js"
|
|
35
|
+
},
|
|
36
|
+
"./shams.js"
|
|
37
|
+
],
|
|
38
|
+
"./package.json": "./package.json"
|
|
39
|
+
},
|
|
40
|
+
"scripts": {
|
|
41
|
+
"prepack": "npmignore --auto --commentLines=autogenerated",
|
|
42
|
+
"prepublishOnly": "safe-publish-latest",
|
|
43
|
+
"prepublish": "not-in-publish || npm run prepublishOnly",
|
|
44
|
+
"pretest": "npm run --silent lint",
|
|
45
|
+
"test": "npm run tests-only",
|
|
46
|
+
"posttest": "aud --production",
|
|
47
|
+
"tests-only": "npm run test:stock && npm run test:shams",
|
|
48
|
+
"test:stock": "nyc node test",
|
|
49
|
+
"test:staging": "nyc node --harmony --es-staging test",
|
|
50
|
+
"test:shams": "npm run --silent test:shams:getownpropertysymbols && npm run --silent test:shams:corejs",
|
|
51
|
+
"test:shams:corejs": "nyc node test/shams/core-js.js",
|
|
52
|
+
"test:shams:getownpropertysymbols": "nyc node test/shams/get-own-property-symbols.js",
|
|
53
|
+
"lint": "eslint --ext=js,mjs .",
|
|
54
|
+
"version": "auto-changelog && git add CHANGELOG.md",
|
|
55
|
+
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
|
56
|
+
},
|
|
57
|
+
"repository": {
|
|
58
|
+
"type": "git",
|
|
59
|
+
"url": "git+https://github.com/inspect-js/has-tostringtag.git"
|
|
60
|
+
},
|
|
61
|
+
"bugs": {
|
|
62
|
+
"url": "https://github.com/inspect-js/has-tostringtag/issues"
|
|
63
|
+
},
|
|
64
|
+
"homepage": "https://github.com/inspect-js/has-tostringtag#readme",
|
|
65
|
+
"keywords": [
|
|
66
|
+
"javascript",
|
|
67
|
+
"ecmascript",
|
|
68
|
+
"symbol",
|
|
69
|
+
"symbols",
|
|
70
|
+
"tostringtag",
|
|
71
|
+
"Symbol.toStringTag"
|
|
72
|
+
],
|
|
73
|
+
"devDependencies": {
|
|
74
|
+
"@ljharb/eslint-config": "^21.1.0",
|
|
75
|
+
"@types/has-symbols": "^1.0.2",
|
|
76
|
+
"@types/tape": "^5.6.4",
|
|
77
|
+
"aud": "^2.0.4",
|
|
78
|
+
"auto-changelog": "^2.4.0",
|
|
79
|
+
"core-js": "^2.6.12",
|
|
80
|
+
"eslint": "=8.8.0",
|
|
81
|
+
"get-own-property-symbols": "^0.9.5",
|
|
82
|
+
"in-publish": "^2.0.1",
|
|
83
|
+
"npmignore": "^0.3.1",
|
|
84
|
+
"nyc": "^10.3.2",
|
|
85
|
+
"safe-publish-latest": "^2.0.0",
|
|
86
|
+
"tape": "^5.7.4",
|
|
87
|
+
"typescript": "next"
|
|
88
|
+
},
|
|
89
|
+
"engines": {
|
|
90
|
+
"node": ">= 0.4"
|
|
91
|
+
},
|
|
92
|
+
"auto-changelog": {
|
|
93
|
+
"output": "CHANGELOG.md",
|
|
94
|
+
"template": "keepachangelog",
|
|
95
|
+
"unreleased": false,
|
|
96
|
+
"commitLimit": false,
|
|
97
|
+
"backfillLimit": false,
|
|
98
|
+
"hideCredit": true
|
|
99
|
+
},
|
|
100
|
+
"publishConfig": {
|
|
101
|
+
"ignore": [
|
|
102
|
+
".github/workflows"
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
"dependencies": {
|
|
106
|
+
"has-symbols": "^1.0.3"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var test = require('tape');
|
|
4
|
+
var hasSymbolToStringTag = require('../');
|
|
5
|
+
var runSymbolTests = require('./tests');
|
|
6
|
+
|
|
7
|
+
test('interface', function (t) {
|
|
8
|
+
t.equal(typeof hasSymbolToStringTag, 'function', 'is a function');
|
|
9
|
+
t.equal(typeof hasSymbolToStringTag(), 'boolean', 'returns a boolean');
|
|
10
|
+
t.end();
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
test('Symbol.toStringTag exists', { skip: !hasSymbolToStringTag() }, function (t) {
|
|
14
|
+
runSymbolTests(t);
|
|
15
|
+
t.end();
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
test('Symbol.toStringTag does not exist', { skip: hasSymbolToStringTag() }, function (t) {
|
|
19
|
+
t.equal(typeof Symbol === 'undefined' ? 'undefined' : typeof Symbol.toStringTag, 'undefined', 'global Symbol.toStringTag is undefined');
|
|
20
|
+
t.end();
|
|
21
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var test = require('tape');
|
|
4
|
+
|
|
5
|
+
if (typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol') {
|
|
6
|
+
test('has native Symbol.toStringTag support', function (t) {
|
|
7
|
+
t.equal(typeof Symbol, 'function');
|
|
8
|
+
t.equal(typeof Symbol.toStringTag, 'symbol');
|
|
9
|
+
t.end();
|
|
10
|
+
});
|
|
11
|
+
// @ts-expect-error CJS has top-level return
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
var hasSymbolToStringTag = require('../../shams');
|
|
16
|
+
|
|
17
|
+
test('polyfilled Symbols', function (t) {
|
|
18
|
+
/* eslint-disable global-require */
|
|
19
|
+
t.equal(hasSymbolToStringTag(), false, 'hasSymbolToStringTag is false before polyfilling');
|
|
20
|
+
// @ts-expect-error no types defined
|
|
21
|
+
require('core-js/fn/symbol');
|
|
22
|
+
// @ts-expect-error no types defined
|
|
23
|
+
require('core-js/fn/symbol/to-string-tag');
|
|
24
|
+
|
|
25
|
+
require('../tests')(t);
|
|
26
|
+
|
|
27
|
+
var hasToStringTagAfter = hasSymbolToStringTag();
|
|
28
|
+
t.equal(hasToStringTagAfter, true, 'hasSymbolToStringTag is true after polyfilling');
|
|
29
|
+
/* eslint-enable global-require */
|
|
30
|
+
t.end();
|
|
31
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var test = require('tape');
|
|
4
|
+
|
|
5
|
+
if (typeof Symbol === 'function' && typeof Symbol() === 'symbol') {
|
|
6
|
+
test('has native Symbol support', function (t) {
|
|
7
|
+
t.equal(typeof Symbol, 'function');
|
|
8
|
+
t.equal(typeof Symbol(), 'symbol');
|
|
9
|
+
t.end();
|
|
10
|
+
});
|
|
11
|
+
// @ts-expect-error CJS has top-level return
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
var hasSymbolToStringTag = require('../../shams');
|
|
16
|
+
|
|
17
|
+
test('polyfilled Symbols', function (t) {
|
|
18
|
+
/* eslint-disable global-require */
|
|
19
|
+
t.equal(hasSymbolToStringTag(), false, 'hasSymbolToStringTag is false before polyfilling');
|
|
20
|
+
|
|
21
|
+
// @ts-expect-error no types defined
|
|
22
|
+
require('get-own-property-symbols');
|
|
23
|
+
|
|
24
|
+
require('../tests')(t);
|
|
25
|
+
|
|
26
|
+
var hasToStringTagAfter = hasSymbolToStringTag();
|
|
27
|
+
t.equal(hasToStringTagAfter, true, 'hasSymbolToStringTag is true after polyfilling');
|
|
28
|
+
/* eslint-enable global-require */
|
|
29
|
+
t.end();
|
|
30
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line consistent-return
|
|
4
|
+
module.exports = /** @type {(t: import('tape').Test) => void | false} */ function runSymbolTests(t) {
|
|
5
|
+
t.equal(typeof Symbol, 'function', 'global Symbol is a function');
|
|
6
|
+
t.ok(Symbol.toStringTag, 'Symbol.toStringTag exists');
|
|
7
|
+
|
|
8
|
+
if (typeof Symbol !== 'function' || !Symbol.toStringTag) { return false; }
|
|
9
|
+
|
|
10
|
+
/** @type {{ [Symbol.toStringTag]?: 'test'}} */
|
|
11
|
+
var obj = {};
|
|
12
|
+
obj[Symbol.toStringTag] = 'test';
|
|
13
|
+
|
|
14
|
+
t.equal(Object.prototype.toString.call(obj), '[object test]');
|
|
15
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
/* Visit https://aka.ms/tsconfig to read more about this file */
|
|
4
|
+
|
|
5
|
+
/* Projects */
|
|
6
|
+
|
|
7
|
+
/* Language and Environment */
|
|
8
|
+
"target": "ESNext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
|
9
|
+
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
|
10
|
+
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
|
|
11
|
+
"useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
|
|
12
|
+
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
|
13
|
+
|
|
14
|
+
/* Modules */
|
|
15
|
+
"module": "commonjs", /* Specify what module code is generated. */
|
|
16
|
+
// "rootDir": "./", /* Specify the root folder within your source files. */
|
|
17
|
+
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
|
|
18
|
+
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
|
19
|
+
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
|
20
|
+
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
|
21
|
+
"typeRoots": ["types"], /* Specify multiple folders that act like './node_modules/@types'. */
|
|
22
|
+
"resolveJsonModule": true, /* Enable importing .json files. */
|
|
23
|
+
// "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
|
|
24
|
+
|
|
25
|
+
/* JavaScript Support */
|
|
26
|
+
"allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
|
|
27
|
+
"checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
|
|
28
|
+
"maxNodeModuleJsDepth": 0, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
|
29
|
+
|
|
30
|
+
/* Emit */
|
|
31
|
+
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
|
32
|
+
"declarationMap": true, /* Create sourcemaps for d.ts files. */
|
|
33
|
+
"noEmit": true, /* Disable emitting files from a compilation. */
|
|
34
|
+
|
|
35
|
+
/* Interop Constraints */
|
|
36
|
+
"allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
|
37
|
+
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
|
|
38
|
+
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
|
|
39
|
+
|
|
40
|
+
/* Type Checking */
|
|
41
|
+
"strict": true, /* Enable all strict type-checking options. */
|
|
42
|
+
|
|
43
|
+
/* Completeness */
|
|
44
|
+
//"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
|
45
|
+
},
|
|
46
|
+
"exclude": [
|
|
47
|
+
"coverage"
|
|
48
|
+
]
|
|
49
|
+
}
|
package/package.json
CHANGED
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"jsii-docgen": "^10.5.0",
|
|
56
56
|
"jsii-pacmak": "^1.106.0",
|
|
57
57
|
"jsii-rosetta": "5.3.x",
|
|
58
|
-
"projen": "0.91.
|
|
58
|
+
"projen": "0.91.10",
|
|
59
59
|
"ts-jest": "^27",
|
|
60
60
|
"typescript": "^5"
|
|
61
61
|
},
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"publishConfig": {
|
|
89
89
|
"access": "public"
|
|
90
90
|
},
|
|
91
|
-
"version": "2.0.
|
|
91
|
+
"version": "2.0.1104",
|
|
92
92
|
"jest": {
|
|
93
93
|
"coverageProvider": "v8",
|
|
94
94
|
"testMatch": [
|