cdk-common 2.0.493 → 2.0.495
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 +8 -2
- package/API.md +5 -0
- package/lib/main.js +1 -1
- package/lib/managed-policies.d.ts +1 -0
- package/lib/managed-policies.js +2 -1
- package/node_modules/get-intrinsic/CHANGELOG.md +7 -0
- package/node_modules/get-intrinsic/index.js +21 -14
- package/node_modules/get-intrinsic/package.json +3 -2
- package/node_modules/has-proto/.eslintrc +5 -0
- package/node_modules/has-proto/.github/FUNDING.yml +12 -0
- package/node_modules/has-proto/CHANGELOG.md +23 -0
- package/node_modules/has-proto/LICENSE +21 -0
- package/node_modules/has-proto/README.md +38 -0
- package/node_modules/has-proto/index.js +11 -0
- package/node_modules/has-proto/package.json +74 -0
- package/node_modules/has-proto/test/index.js +19 -0
- package/node_modules/qs/CHANGELOG.md +4 -0
- package/node_modules/qs/dist/qs.js +43 -22
- package/node_modules/qs/lib/parse.js +2 -1
- package/node_modules/qs/package.json +4 -1
- package/node_modules/qs/test/empty-keys-cases.js +37 -0
- package/node_modules/qs/test/parse.js +45 -2
- package/node_modules/qs/test/stringify.js +18 -0
- package/package.json +2 -2
|
@@ -6,6 +6,7 @@ var utils = require('../lib/utils');
|
|
|
6
6
|
var iconv = require('iconv-lite');
|
|
7
7
|
var SaferBuffer = require('safer-buffer').Buffer;
|
|
8
8
|
var hasSymbols = require('has-symbols');
|
|
9
|
+
var emptyTestCases = require('./empty-keys-cases').emptyTestCases;
|
|
9
10
|
var hasBigInt = typeof BigInt === 'function';
|
|
10
11
|
|
|
11
12
|
test('stringify()', function (t) {
|
|
@@ -952,3 +953,20 @@ test('stringify()', function (t) {
|
|
|
952
953
|
|
|
953
954
|
t.end();
|
|
954
955
|
});
|
|
956
|
+
|
|
957
|
+
test('stringifies empty keys', function (t) {
|
|
958
|
+
emptyTestCases.forEach(function (testCase) {
|
|
959
|
+
t.test('stringifies an object with empty string key with ' + testCase.input, function (st) {
|
|
960
|
+
st.deepEqual(qs.stringify(testCase.withEmptyKeys, { encode: false }), testCase.stringifyOutput);
|
|
961
|
+
|
|
962
|
+
st.end();
|
|
963
|
+
});
|
|
964
|
+
});
|
|
965
|
+
|
|
966
|
+
t.test('edge case with object/arrays', function (st) {
|
|
967
|
+
st.deepEqual(qs.stringify({ '': { '': [2, 3] } }, { encode: false }), '[][0]=2&[][1]=3');
|
|
968
|
+
st.deepEqual(qs.stringify({ '': { '': [2, 3], a: 2 } }, { encode: false }), '[][0]=2&[][1]=3&[a]=2');
|
|
969
|
+
|
|
970
|
+
st.end();
|
|
971
|
+
});
|
|
972
|
+
});
|
package/package.json
CHANGED
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"jsii-docgen": "^3.8.31",
|
|
55
55
|
"jsii-pacmak": "^1.81.0",
|
|
56
56
|
"npm-check-updates": "^16",
|
|
57
|
-
"projen": "0.71.
|
|
57
|
+
"projen": "0.71.56",
|
|
58
58
|
"standard-version": "^9",
|
|
59
59
|
"ts-jest": "^27",
|
|
60
60
|
"typescript": "^4.9"
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
],
|
|
87
87
|
"main": "lib/index.js",
|
|
88
88
|
"license": "Apache-2.0",
|
|
89
|
-
"version": "2.0.
|
|
89
|
+
"version": "2.0.495",
|
|
90
90
|
"jest": {
|
|
91
91
|
"testMatch": [
|
|
92
92
|
"<rootDir>/src/**/__tests__/**/*.ts?(x)",
|