cdk-common 2.0.166 → 2.0.169
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 +2 -2
- package/lib/main.js +1 -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/package.json +2 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/process.d.ts +10 -10
- package/node_modules/@types/form-data/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/form-data/node_modules/@types/node/process.d.ts +10 -10
- package/node_modules/qs/.editorconfig +3 -0
- package/node_modules/qs/.eslintrc +4 -4
- package/node_modules/qs/CHANGELOG.md +154 -0
- package/node_modules/qs/dist/qs.js +12 -9
- package/node_modules/qs/lib/stringify.js +5 -3
- package/node_modules/qs/package.json +16 -12
- package/node_modules/qs/test/parse.js +14 -0
- package/node_modules/qs/test/stringify.js +42 -13
- package/package.json +5 -5
- package/changelog.md +0 -2
- package/releasetag.txt +0 -1
- package/version.txt +0 -1
package/.jsii
CHANGED
|
@@ -8773,6 +8773,6 @@
|
|
|
8773
8773
|
"symbolId": "src/main:LambdaArmFunctionProps"
|
|
8774
8774
|
}
|
|
8775
8775
|
},
|
|
8776
|
-
"version": "2.0.
|
|
8777
|
-
"fingerprint": "
|
|
8776
|
+
"version": "2.0.169",
|
|
8777
|
+
"fingerprint": "fw09BzgRo+oHdZcKNuvzdQpuwbVWsDecZynanzSiIdo="
|
|
8778
8778
|
}
|
package/lib/main.js
CHANGED
|
@@ -41,5 +41,5 @@ class LambdaArmFunction extends constructs_1.Construct {
|
|
|
41
41
|
}
|
|
42
42
|
exports.LambdaArmFunction = LambdaArmFunction;
|
|
43
43
|
_a = JSII_RTTI_SYMBOL_1;
|
|
44
|
-
LambdaArmFunction[_a] = { fqn: "cdk-common.LambdaArmFunction", version: "2.0.
|
|
44
|
+
LambdaArmFunction[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50aW1lID09PSBsYW1iZGEuUnVudGltZS5SVUJZXzJfNykge1xuICAgICAgY2RrLkFubm90YXRpb25zLm9mKHRoaXMpLmFkZFdhcm5pbmcoJ1lvdSBhcmUgdXNpbmcgUlVCWSAyLjcgYXQgQVJNJyk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHRocm93IG5ldyBFcnJvcihgSW52YWxpZCBSdW50aW1lICR7cHJvcHMucnVudGltZX0gYXQgQVJNLCBTZWUgaHR0cHM6Ly9kb2NzLmF3cy5hbWF6b24uY29tL2xhbWJkYS9sYXRlc3QvZGcvZm91bmRhdGlvbi1hcmNoLmh0bWw/aWNtcGlkPWRvY3NfbGFtYmRhX3Jzc2ApO1xuICAgIH1cblxuICAgIHRoaXMubGFtYmRhRnVuY3Rpb24gPSBuZXcgbGFtYmRhLkZ1bmN0aW9uKHRoaXMsICdMYW1iZGFGdW5jdGlvbicsIHsgYXJjaGl0ZWN0dXJlOiBsYW1iZGEuQXJjaGl0ZWN0dXJlLkFSTV82NCwgLi4ucHJvcHMgfSk7XG4gIH1cbn0iXX0=
|
|
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Sun, 05 Jun 2022 08:01:31 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.40",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -220,6 +220,6 @@
|
|
|
220
220
|
},
|
|
221
221
|
"scripts": {},
|
|
222
222
|
"dependencies": {},
|
|
223
|
-
"typesPublisherContentHash": "
|
|
223
|
+
"typesPublisherContentHash": "8924a04e799179c8e10493629b0bdf0c5388080a62ec2e413b2137b01ecc29c7",
|
|
224
224
|
"typeScriptVersion": "3.9"
|
|
225
225
|
}
|
|
@@ -642,7 +642,7 @@ declare module 'process' {
|
|
|
642
642
|
* Android).
|
|
643
643
|
* @since v0.1.31
|
|
644
644
|
*/
|
|
645
|
-
getgid()
|
|
645
|
+
getgid?: () => number;
|
|
646
646
|
/**
|
|
647
647
|
* The `process.setgid()` method sets the group identity of the process. (See [`setgid(2)`](http://man7.org/linux/man-pages/man2/setgid.2.html).) The `id` can be passed as either a
|
|
648
648
|
* numeric ID or a group name
|
|
@@ -669,7 +669,7 @@ declare module 'process' {
|
|
|
669
669
|
* @since v0.1.31
|
|
670
670
|
* @param id The group name or ID
|
|
671
671
|
*/
|
|
672
|
-
setgid(id: number | string)
|
|
672
|
+
setgid?: (id: number | string) => void;
|
|
673
673
|
/**
|
|
674
674
|
* The `process.getuid()` method returns the numeric user identity of the process.
|
|
675
675
|
* (See [`getuid(2)`](http://man7.org/linux/man-pages/man2/getuid.2.html).)
|
|
@@ -686,7 +686,7 @@ declare module 'process' {
|
|
|
686
686
|
* Android).
|
|
687
687
|
* @since v0.1.28
|
|
688
688
|
*/
|
|
689
|
-
getuid()
|
|
689
|
+
getuid?: () => number;
|
|
690
690
|
/**
|
|
691
691
|
* The `process.setuid(id)` method sets the user identity of the process. (See [`setuid(2)`](http://man7.org/linux/man-pages/man2/setuid.2.html).) The `id` can be passed as either a
|
|
692
692
|
* numeric ID or a username string.
|
|
@@ -712,7 +712,7 @@ declare module 'process' {
|
|
|
712
712
|
* This feature is not available in `Worker` threads.
|
|
713
713
|
* @since v0.1.28
|
|
714
714
|
*/
|
|
715
|
-
setuid(id: number | string)
|
|
715
|
+
setuid?: (id: number | string) => void;
|
|
716
716
|
/**
|
|
717
717
|
* The `process.geteuid()` method returns the numerical effective user identity of
|
|
718
718
|
* the process. (See [`geteuid(2)`](http://man7.org/linux/man-pages/man2/geteuid.2.html).)
|
|
@@ -729,7 +729,7 @@ declare module 'process' {
|
|
|
729
729
|
* Android).
|
|
730
730
|
* @since v2.0.0
|
|
731
731
|
*/
|
|
732
|
-
geteuid()
|
|
732
|
+
geteuid?: () => number;
|
|
733
733
|
/**
|
|
734
734
|
* The `process.seteuid()` method sets the effective user identity of the process.
|
|
735
735
|
* (See [`seteuid(2)`](http://man7.org/linux/man-pages/man2/seteuid.2.html).) The `id` can be passed as either a numeric ID or a username
|
|
@@ -756,7 +756,7 @@ declare module 'process' {
|
|
|
756
756
|
* @since v2.0.0
|
|
757
757
|
* @param id A user name or ID
|
|
758
758
|
*/
|
|
759
|
-
seteuid(id: number | string)
|
|
759
|
+
seteuid?: (id: number | string) => void;
|
|
760
760
|
/**
|
|
761
761
|
* The `process.getegid()` method returns the numerical effective group identity
|
|
762
762
|
* of the Node.js process. (See [`getegid(2)`](http://man7.org/linux/man-pages/man2/getegid.2.html).)
|
|
@@ -773,7 +773,7 @@ declare module 'process' {
|
|
|
773
773
|
* Android).
|
|
774
774
|
* @since v2.0.0
|
|
775
775
|
*/
|
|
776
|
-
getegid()
|
|
776
|
+
getegid?: () => number;
|
|
777
777
|
/**
|
|
778
778
|
* The `process.setegid()` method sets the effective group identity of the process.
|
|
779
779
|
* (See [`setegid(2)`](http://man7.org/linux/man-pages/man2/setegid.2.html).) The `id` can be passed as either a numeric ID or a group
|
|
@@ -800,7 +800,7 @@ declare module 'process' {
|
|
|
800
800
|
* @since v2.0.0
|
|
801
801
|
* @param id A group name or ID
|
|
802
802
|
*/
|
|
803
|
-
setegid(id: number | string)
|
|
803
|
+
setegid?: (id: number | string) => void;
|
|
804
804
|
/**
|
|
805
805
|
* The `process.getgroups()` method returns an array with the supplementary group
|
|
806
806
|
* IDs. POSIX leaves it unspecified if the effective group ID is included but
|
|
@@ -818,7 +818,7 @@ declare module 'process' {
|
|
|
818
818
|
* Android).
|
|
819
819
|
* @since v0.9.4
|
|
820
820
|
*/
|
|
821
|
-
getgroups()
|
|
821
|
+
getgroups?: () => number[];
|
|
822
822
|
/**
|
|
823
823
|
* The `process.setgroups()` method sets the supplementary group IDs for the
|
|
824
824
|
* Node.js process. This is a privileged operation that requires the Node.js
|
|
@@ -844,7 +844,7 @@ declare module 'process' {
|
|
|
844
844
|
* This feature is not available in `Worker` threads.
|
|
845
845
|
* @since v0.9.4
|
|
846
846
|
*/
|
|
847
|
-
setgroups(groups: ReadonlyArray<string | number>)
|
|
847
|
+
setgroups?: (groups: ReadonlyArray<string | number>) => void;
|
|
848
848
|
/**
|
|
849
849
|
* The `process.setUncaughtExceptionCaptureCallback()` function sets a function
|
|
850
850
|
* that will be invoked when an uncaught exception occurs, which will receive the
|
|
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Sun, 05 Jun 2022 08:01:31 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.40",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -220,6 +220,6 @@
|
|
|
220
220
|
},
|
|
221
221
|
"scripts": {},
|
|
222
222
|
"dependencies": {},
|
|
223
|
-
"typesPublisherContentHash": "
|
|
223
|
+
"typesPublisherContentHash": "8924a04e799179c8e10493629b0bdf0c5388080a62ec2e413b2137b01ecc29c7",
|
|
224
224
|
"typeScriptVersion": "3.9"
|
|
225
225
|
}
|
|
@@ -642,7 +642,7 @@ declare module 'process' {
|
|
|
642
642
|
* Android).
|
|
643
643
|
* @since v0.1.31
|
|
644
644
|
*/
|
|
645
|
-
getgid()
|
|
645
|
+
getgid?: () => number;
|
|
646
646
|
/**
|
|
647
647
|
* The `process.setgid()` method sets the group identity of the process. (See [`setgid(2)`](http://man7.org/linux/man-pages/man2/setgid.2.html).) The `id` can be passed as either a
|
|
648
648
|
* numeric ID or a group name
|
|
@@ -669,7 +669,7 @@ declare module 'process' {
|
|
|
669
669
|
* @since v0.1.31
|
|
670
670
|
* @param id The group name or ID
|
|
671
671
|
*/
|
|
672
|
-
setgid(id: number | string)
|
|
672
|
+
setgid?: (id: number | string) => void;
|
|
673
673
|
/**
|
|
674
674
|
* The `process.getuid()` method returns the numeric user identity of the process.
|
|
675
675
|
* (See [`getuid(2)`](http://man7.org/linux/man-pages/man2/getuid.2.html).)
|
|
@@ -686,7 +686,7 @@ declare module 'process' {
|
|
|
686
686
|
* Android).
|
|
687
687
|
* @since v0.1.28
|
|
688
688
|
*/
|
|
689
|
-
getuid()
|
|
689
|
+
getuid?: () => number;
|
|
690
690
|
/**
|
|
691
691
|
* The `process.setuid(id)` method sets the user identity of the process. (See [`setuid(2)`](http://man7.org/linux/man-pages/man2/setuid.2.html).) The `id` can be passed as either a
|
|
692
692
|
* numeric ID or a username string.
|
|
@@ -712,7 +712,7 @@ declare module 'process' {
|
|
|
712
712
|
* This feature is not available in `Worker` threads.
|
|
713
713
|
* @since v0.1.28
|
|
714
714
|
*/
|
|
715
|
-
setuid(id: number | string)
|
|
715
|
+
setuid?: (id: number | string) => void;
|
|
716
716
|
/**
|
|
717
717
|
* The `process.geteuid()` method returns the numerical effective user identity of
|
|
718
718
|
* the process. (See [`geteuid(2)`](http://man7.org/linux/man-pages/man2/geteuid.2.html).)
|
|
@@ -729,7 +729,7 @@ declare module 'process' {
|
|
|
729
729
|
* Android).
|
|
730
730
|
* @since v2.0.0
|
|
731
731
|
*/
|
|
732
|
-
geteuid()
|
|
732
|
+
geteuid?: () => number;
|
|
733
733
|
/**
|
|
734
734
|
* The `process.seteuid()` method sets the effective user identity of the process.
|
|
735
735
|
* (See [`seteuid(2)`](http://man7.org/linux/man-pages/man2/seteuid.2.html).) The `id` can be passed as either a numeric ID or a username
|
|
@@ -756,7 +756,7 @@ declare module 'process' {
|
|
|
756
756
|
* @since v2.0.0
|
|
757
757
|
* @param id A user name or ID
|
|
758
758
|
*/
|
|
759
|
-
seteuid(id: number | string)
|
|
759
|
+
seteuid?: (id: number | string) => void;
|
|
760
760
|
/**
|
|
761
761
|
* The `process.getegid()` method returns the numerical effective group identity
|
|
762
762
|
* of the Node.js process. (See [`getegid(2)`](http://man7.org/linux/man-pages/man2/getegid.2.html).)
|
|
@@ -773,7 +773,7 @@ declare module 'process' {
|
|
|
773
773
|
* Android).
|
|
774
774
|
* @since v2.0.0
|
|
775
775
|
*/
|
|
776
|
-
getegid()
|
|
776
|
+
getegid?: () => number;
|
|
777
777
|
/**
|
|
778
778
|
* The `process.setegid()` method sets the effective group identity of the process.
|
|
779
779
|
* (See [`setegid(2)`](http://man7.org/linux/man-pages/man2/setegid.2.html).) The `id` can be passed as either a numeric ID or a group
|
|
@@ -800,7 +800,7 @@ declare module 'process' {
|
|
|
800
800
|
* @since v2.0.0
|
|
801
801
|
* @param id A group name or ID
|
|
802
802
|
*/
|
|
803
|
-
setegid(id: number | string)
|
|
803
|
+
setegid?: (id: number | string) => void;
|
|
804
804
|
/**
|
|
805
805
|
* The `process.getgroups()` method returns an array with the supplementary group
|
|
806
806
|
* IDs. POSIX leaves it unspecified if the effective group ID is included but
|
|
@@ -818,7 +818,7 @@ declare module 'process' {
|
|
|
818
818
|
* Android).
|
|
819
819
|
* @since v0.9.4
|
|
820
820
|
*/
|
|
821
|
-
getgroups()
|
|
821
|
+
getgroups?: () => number[];
|
|
822
822
|
/**
|
|
823
823
|
* The `process.setgroups()` method sets the supplementary group IDs for the
|
|
824
824
|
* Node.js process. This is a privileged operation that requires the Node.js
|
|
@@ -844,7 +844,7 @@ declare module 'process' {
|
|
|
844
844
|
* This feature is not available in `Worker` threads.
|
|
845
845
|
* @since v0.9.4
|
|
846
846
|
*/
|
|
847
|
-
setgroups(groups: ReadonlyArray<string | number>)
|
|
847
|
+
setgroups?: (groups: ReadonlyArray<string | number>) => void;
|
|
848
848
|
/**
|
|
849
849
|
* The `process.setUncaughtExceptionCaptureCallback()` function sets a function
|
|
850
850
|
* that will be invoked when an uncaught exception occurs, which will receive the
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"indent": [2, 4],
|
|
16
16
|
"max-lines-per-function": [2, { "max": 150 }],
|
|
17
17
|
"max-params": [2, 15],
|
|
18
|
-
"max-statements": [2,
|
|
18
|
+
"max-statements": [2, 53],
|
|
19
19
|
"multiline-comment-style": 0,
|
|
20
20
|
"no-continue": 1,
|
|
21
21
|
"no-magic-numbers": 0,
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"no-buffer-constructor": 0,
|
|
33
33
|
"no-extend-native": 0,
|
|
34
34
|
"no-throw-literal": 0,
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
]
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
38
|
}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## **6.10.5**
|
|
2
|
+
- [Fix] `stringify`: with `arrayFormat: comma`, properly include an explicit `[]` on a single-item array (#434)
|
|
3
|
+
|
|
4
|
+
## **6.10.4**
|
|
5
|
+
- [Fix] `stringify`: with `arrayFormat: comma`, include an explicit `[]` on a single-item array (#441)
|
|
6
|
+
- [meta] use `npmignore` to autogenerate an npmignore file
|
|
7
|
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `has-symbol`, `object-inspect`, `tape`
|
|
8
|
+
|
|
1
9
|
## **6.10.3**
|
|
2
10
|
- [Fix] `parse`: ignore `__proto__` keys (#428)
|
|
3
11
|
- [Robustness] `stringify`: avoid relying on a global `undefined` (#427)
|
|
@@ -27,6 +35,18 @@
|
|
|
27
35
|
- [Tests] use `ljharb/actions/node/install` instead of `ljharb/actions/node/run`
|
|
28
36
|
- [Tests] Revert "[meta] ignore eclint transitive audit warning"
|
|
29
37
|
|
|
38
|
+
## **6.9.7**
|
|
39
|
+
- [Fix] `parse`: ignore `__proto__` keys (#428)
|
|
40
|
+
- [Fix] `stringify`: avoid encoding arrayformat comma when `encodeValuesOnly = true` (#424)
|
|
41
|
+
- [Robustness] `stringify`: avoid relying on a global `undefined` (#427)
|
|
42
|
+
- [readme] remove travis badge; add github actions/codecov badges; update URLs
|
|
43
|
+
- [Docs] add note and links for coercing primitive values (#408)
|
|
44
|
+
- [Tests] clean up stringify tests slightly
|
|
45
|
+
- [meta] fix README.md (#399)
|
|
46
|
+
- Revert "[meta] ignore eclint transitive audit warning"
|
|
47
|
+
- [actions] backport actions from main
|
|
48
|
+
- [Dev Deps] backport updates from main
|
|
49
|
+
|
|
30
50
|
## **6.9.6**
|
|
31
51
|
- [Fix] restore `dist` dir; mistakenly removed in d4f6c32
|
|
32
52
|
|
|
@@ -75,6 +95,19 @@
|
|
|
75
95
|
- [Tests] up to `node` `v12.10`, `v11.15`, `v10.16`, `v8.16`
|
|
76
96
|
- [Tests] `Buffer.from` in node v5.0-v5.9 and v4.0-v4.4 requires a TypedArray
|
|
77
97
|
|
|
98
|
+
## **6.8.3**
|
|
99
|
+
- [Fix] `parse`: ignore `__proto__` keys (#428)
|
|
100
|
+
- [Robustness] `stringify`: avoid relying on a global `undefined` (#427)
|
|
101
|
+
- [Fix] `stringify`: avoid encoding arrayformat comma when `encodeValuesOnly = true` (#424)
|
|
102
|
+
- [readme] remove travis badge; add github actions/codecov badges; update URLs
|
|
103
|
+
- [Tests] clean up stringify tests slightly
|
|
104
|
+
- [Docs] add note and links for coercing primitive values (#408)
|
|
105
|
+
- [meta] fix README.md (#399)
|
|
106
|
+
- [actions] backport actions from main
|
|
107
|
+
- [Dev Deps] backport updates from main
|
|
108
|
+
- [Refactor] `stringify`: reduce branching
|
|
109
|
+
- [meta] do not publish workflow files
|
|
110
|
+
|
|
78
111
|
## **6.8.2**
|
|
79
112
|
- [Fix] proper comma parsing of URL-encoded commas (#361)
|
|
80
113
|
- [Fix] parses comma delimited array while having percent-encoded comma treated as normal text (#336)
|
|
@@ -106,6 +139,19 @@
|
|
|
106
139
|
- [meta] add FUNDING.yml
|
|
107
140
|
- [meta] Clean up license text so it’s properly detected as BSD-3-Clause
|
|
108
141
|
|
|
142
|
+
## **6.7.3**
|
|
143
|
+
- [Fix] `parse`: ignore `__proto__` keys (#428)
|
|
144
|
+
- [Fix] `stringify`: avoid encoding arrayformat comma when `encodeValuesOnly = true` (#424)
|
|
145
|
+
- [Robustness] `stringify`: avoid relying on a global `undefined` (#427)
|
|
146
|
+
- [readme] remove travis badge; add github actions/codecov badges; update URLs
|
|
147
|
+
- [Docs] add note and links for coercing primitive values (#408)
|
|
148
|
+
- [meta] fix README.md (#399)
|
|
149
|
+
- [meta] do not publish workflow files
|
|
150
|
+
- [actions] backport actions from main
|
|
151
|
+
- [Dev Deps] backport updates from main
|
|
152
|
+
- [Tests] use `nyc` for coverage
|
|
153
|
+
- [Tests] clean up stringify tests slightly
|
|
154
|
+
|
|
109
155
|
## **6.7.2**
|
|
110
156
|
- [Fix] proper comma parsing of URL-encoded commas (#361)
|
|
111
157
|
- [Fix] parses comma delimited array while having percent-encoded comma treated as normal text (#336)
|
|
@@ -144,6 +190,32 @@
|
|
|
144
190
|
- [Tests] fix Buffer tests to work in node < 4.5 and node < 5.10
|
|
145
191
|
- [Tests] temporarily allow coverage to fail
|
|
146
192
|
|
|
193
|
+
## **6.6.1**
|
|
194
|
+
- [Fix] `parse`: ignore `__proto__` keys (#428)
|
|
195
|
+
- [Fix] fix for an impossible situation: when the formatter is called with a non-string value
|
|
196
|
+
- [Fix] `utils.merge`: avoid a crash with a null target and an array source
|
|
197
|
+
- [Fix] `utils.merge`: avoid a crash with a null target and a truthy non-array source
|
|
198
|
+
- [Fix] correctly parse nested arrays
|
|
199
|
+
- [Robustness] `stringify`: avoid relying on a global `undefined` (#427)
|
|
200
|
+
- [Robustness] `stringify`: cache `Object.prototype.hasOwnProperty`
|
|
201
|
+
- [Refactor] `formats`: tiny bit of cleanup.
|
|
202
|
+
- [Refactor] `utils`: `isBuffer`: small tweak; add tests
|
|
203
|
+
- [Refactor]: `stringify`/`utils`: cache `Array.isArray`
|
|
204
|
+
- [Refactor] `utils`: reduce observable [[Get]]s
|
|
205
|
+
- [Refactor] use cached `Array.isArray`
|
|
206
|
+
- [Refactor] `parse`/`stringify`: make a function to normalize the options
|
|
207
|
+
- [readme] remove travis badge; add github actions/codecov badges; update URLs
|
|
208
|
+
- [Docs] Clarify the need for "arrayLimit" option
|
|
209
|
+
- [meta] fix README.md (#399)
|
|
210
|
+
- [meta] do not publish workflow files
|
|
211
|
+
- [meta] Clean up license text so it’s properly detected as BSD-3-Clause
|
|
212
|
+
- [meta] add FUNDING.yml
|
|
213
|
+
- [meta] Fixes typo in CHANGELOG.md
|
|
214
|
+
- [actions] backport actions from main
|
|
215
|
+
- [Tests] fix Buffer tests to work in node < 4.5 and node < 5.10
|
|
216
|
+
- [Tests] always use `String(x)` over `x.toString()`
|
|
217
|
+
- [Dev Deps] backport from main
|
|
218
|
+
|
|
147
219
|
## **6.6.0**
|
|
148
220
|
- [New] Add support for iso-8859-1, utf8 "sentinel" and numeric entities (#268)
|
|
149
221
|
- [New] move two-value combine to a `utils` function (#189)
|
|
@@ -160,6 +232,30 @@
|
|
|
160
232
|
- [Dev Deps] update `browserify`, `eslint`, `@ljharb/eslint-config`, `iconv-lite`, `safe-publish-latest`, `tape`
|
|
161
233
|
- [Tests] up to `node` `v10.10`, `v9.11`, `v8.12`, `v6.14`, `v4.9`; pin included builds to LTS
|
|
162
234
|
|
|
235
|
+
## **6.5.3**
|
|
236
|
+
- [Fix] `parse`: ignore `__proto__` keys (#428)
|
|
237
|
+
- [Fix]` `utils.merge`: avoid a crash with a null target and a truthy non-array source
|
|
238
|
+
- [Fix] correctly parse nested arrays
|
|
239
|
+
- [Fix] `stringify`: fix a crash with `strictNullHandling` and a custom `filter`/`serializeDate` (#279)
|
|
240
|
+
- [Fix] `utils`: `merge`: fix crash when `source` is a truthy primitive & no options are provided
|
|
241
|
+
- [Fix] when `parseArrays` is false, properly handle keys ending in `[]`
|
|
242
|
+
- [Fix] fix for an impossible situation: when the formatter is called with a non-string value
|
|
243
|
+
- [Fix] `utils.merge`: avoid a crash with a null target and an array source
|
|
244
|
+
- [Refactor] `utils`: reduce observable [[Get]]s
|
|
245
|
+
- [Refactor] use cached `Array.isArray`
|
|
246
|
+
- [Refactor] `stringify`: Avoid arr = arr.concat(...), push to the existing instance (#269)
|
|
247
|
+
- [Refactor] `parse`: only need to reassign the var once
|
|
248
|
+
- [Robustness] `stringify`: avoid relying on a global `undefined` (#427)
|
|
249
|
+
- [readme] remove travis badge; add github actions/codecov badges; update URLs
|
|
250
|
+
- [Docs] Clean up license text so it’s properly detected as BSD-3-Clause
|
|
251
|
+
- [Docs] Clarify the need for "arrayLimit" option
|
|
252
|
+
- [meta] fix README.md (#399)
|
|
253
|
+
- [meta] add FUNDING.yml
|
|
254
|
+
- [actions] backport actions from main
|
|
255
|
+
- [Tests] always use `String(x)` over `x.toString()`
|
|
256
|
+
- [Tests] remove nonexistent tape option
|
|
257
|
+
- [Dev Deps] backport from main
|
|
258
|
+
|
|
163
259
|
## **6.5.2**
|
|
164
260
|
- [Fix] use `safer-buffer` instead of `Buffer` constructor
|
|
165
261
|
- [Refactor] utils: `module.exports` one thing, instead of mutating `exports` (#230)
|
|
@@ -186,6 +282,27 @@
|
|
|
186
282
|
- [Tests] up to `node` `v8.1`, `v7.10`, `v6.11`; npm v4.6 breaks on node < v1; npm v5+ breaks on node < v4
|
|
187
283
|
- [Tests] add `editorconfig-tools`
|
|
188
284
|
|
|
285
|
+
## **6.4.1**
|
|
286
|
+
- [Fix] `parse`: ignore `__proto__` keys (#428)
|
|
287
|
+
- [Fix] fix for an impossible situation: when the formatter is called with a non-string value
|
|
288
|
+
- [Fix] use `safer-buffer` instead of `Buffer` constructor
|
|
289
|
+
- [Fix] `utils.merge`: avoid a crash with a null target and an array source
|
|
290
|
+
- [Fix]` `utils.merge`: avoid a crash with a null target and a truthy non-array source
|
|
291
|
+
- [Fix] `stringify`: fix a crash with `strictNullHandling` and a custom `filter`/`serializeDate` (#279)
|
|
292
|
+
- [Fix] `utils`: `merge`: fix crash when `source` is a truthy primitive & no options are provided
|
|
293
|
+
- [Fix] when `parseArrays` is false, properly handle keys ending in `[]`
|
|
294
|
+
- [Robustness] `stringify`: avoid relying on a global `undefined` (#427)
|
|
295
|
+
- [Refactor] use cached `Array.isArray`
|
|
296
|
+
- [Refactor] `stringify`: Avoid arr = arr.concat(...), push to the existing instance (#269)
|
|
297
|
+
- [readme] remove travis badge; add github actions/codecov badges; update URLs
|
|
298
|
+
- [Docs] Clarify the need for "arrayLimit" option
|
|
299
|
+
- [meta] fix README.md (#399)
|
|
300
|
+
- [meta] Clean up license text so it’s properly detected as BSD-3-Clause
|
|
301
|
+
- [meta] add FUNDING.yml
|
|
302
|
+
- [actions] backport actions from main
|
|
303
|
+
- [Tests] remove nonexistent tape option
|
|
304
|
+
- [Dev Deps] backport from main
|
|
305
|
+
|
|
189
306
|
## **6.4.0**
|
|
190
307
|
- [New] `qs.stringify`: add `encodeValuesOnly` option
|
|
191
308
|
- [Fix] follow `allowPrototypes` option during merge (#201, #201)
|
|
@@ -195,6 +312,26 @@
|
|
|
195
312
|
- [Tests] up to `node` `v7.7`, `v6.10`,` v4.8`; disable osx builds since they block linux builds
|
|
196
313
|
- [eslint] reduce warnings
|
|
197
314
|
|
|
315
|
+
## **6.3.3**
|
|
316
|
+
- [Fix] `parse`: ignore `__proto__` keys (#428)
|
|
317
|
+
- [Fix] fix for an impossible situation: when the formatter is called with a non-string value
|
|
318
|
+
- [Fix] `utils.merge`: avoid a crash with a null target and an array source
|
|
319
|
+
- [Fix]` `utils.merge`: avoid a crash with a null target and a truthy non-array source
|
|
320
|
+
- [Fix] `stringify`: fix a crash with `strictNullHandling` and a custom `filter`/`serializeDate` (#279)
|
|
321
|
+
- [Fix] `utils`: `merge`: fix crash when `source` is a truthy primitive & no options are provided
|
|
322
|
+
- [Fix] when `parseArrays` is false, properly handle keys ending in `[]`
|
|
323
|
+
- [Robustness] `stringify`: avoid relying on a global `undefined` (#427)
|
|
324
|
+
- [Refactor] use cached `Array.isArray`
|
|
325
|
+
- [Refactor] `stringify`: Avoid arr = arr.concat(...), push to the existing instance (#269)
|
|
326
|
+
- [Docs] Clarify the need for "arrayLimit" option
|
|
327
|
+
- [meta] fix README.md (#399)
|
|
328
|
+
- [meta] Clean up license text so it’s properly detected as BSD-3-Clause
|
|
329
|
+
- [meta] add FUNDING.yml
|
|
330
|
+
- [actions] backport actions from main
|
|
331
|
+
- [Tests] use `safer-buffer` instead of `Buffer` constructor
|
|
332
|
+
- [Tests] remove nonexistent tape option
|
|
333
|
+
- [Dev Deps] backport from main
|
|
334
|
+
|
|
198
335
|
## **6.3.2**
|
|
199
336
|
- [Fix] follow `allowPrototypes` option during merge (#201, #200)
|
|
200
337
|
- [Dev Deps] update `eslint`
|
|
@@ -228,6 +365,23 @@
|
|
|
228
365
|
- [Tests] skip Object.create tests when null objects are not available
|
|
229
366
|
- [Tests] Turn on eslint for test files (#175)
|
|
230
367
|
|
|
368
|
+
## **6.2.4**
|
|
369
|
+
- [Fix] `parse`: ignore `__proto__` keys (#428)
|
|
370
|
+
- [Fix] `utils.merge`: avoid a crash with a null target and an array source
|
|
371
|
+
- [Fix] `utils.merge`: avoid a crash with a null target and a truthy non-array source
|
|
372
|
+
- [Fix] `utils`: `merge`: fix crash when `source` is a truthy primitive & no options are provided
|
|
373
|
+
- [Fix] when `parseArrays` is false, properly handle keys ending in `[]`
|
|
374
|
+
- [Robustness] `stringify`: avoid relying on a global `undefined` (#427)
|
|
375
|
+
- [Refactor] use cached `Array.isArray`
|
|
376
|
+
- [Docs] Clarify the need for "arrayLimit" option
|
|
377
|
+
- [meta] fix README.md (#399)
|
|
378
|
+
- [meta] Clean up license text so it’s properly detected as BSD-3-Clause
|
|
379
|
+
- [meta] add FUNDING.yml
|
|
380
|
+
- [actions] backport actions from main
|
|
381
|
+
- [Tests] use `safer-buffer` instead of `Buffer` constructor
|
|
382
|
+
- [Tests] remove nonexistent tape option
|
|
383
|
+
- [Dev Deps] backport from main
|
|
384
|
+
|
|
231
385
|
## **6.2.3**
|
|
232
386
|
- [Fix] follow `allowPrototypes` option during merge (#201, #200)
|
|
233
387
|
- [Fix] chmod a-x
|
|
@@ -430,7 +430,7 @@ var stringify = function stringify(
|
|
|
430
430
|
for (var i = 0; i < valuesArray.length; ++i) {
|
|
431
431
|
valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults.encoder, charset, 'value', format));
|
|
432
432
|
}
|
|
433
|
-
return [formatter(keyValue) + '=' + valuesJoined];
|
|
433
|
+
return [formatter(keyValue) + (isArray(obj) && valuesArray.length === 1 ? '[]' : '') + '=' + valuesJoined];
|
|
434
434
|
}
|
|
435
435
|
return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
|
|
436
436
|
}
|
|
@@ -454,6 +454,8 @@ var stringify = function stringify(
|
|
|
454
454
|
objKeys = sort ? keys.sort(sort) : keys;
|
|
455
455
|
}
|
|
456
456
|
|
|
457
|
+
var adjustedPrefix = generateArrayPrefix === 'comma' && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix;
|
|
458
|
+
|
|
457
459
|
for (var j = 0; j < objKeys.length; ++j) {
|
|
458
460
|
var key = objKeys[j];
|
|
459
461
|
var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
|
|
@@ -463,8 +465,8 @@ var stringify = function stringify(
|
|
|
463
465
|
}
|
|
464
466
|
|
|
465
467
|
var keyPrefix = isArray(obj)
|
|
466
|
-
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(
|
|
467
|
-
:
|
|
468
|
+
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
|
|
469
|
+
: adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
|
|
468
470
|
|
|
469
471
|
sideChannel.set(object, step);
|
|
470
472
|
var valueSideChannel = getSideChannel();
|
|
@@ -1469,8 +1471,9 @@ function addNumericSeparator(num, str) {
|
|
|
1469
1471
|
return $replace.call(str, sepRegex, '$&_');
|
|
1470
1472
|
}
|
|
1471
1473
|
|
|
1472
|
-
var
|
|
1473
|
-
var
|
|
1474
|
+
var utilInspect = require('./util.inspect');
|
|
1475
|
+
var inspectCustom = utilInspect.custom;
|
|
1476
|
+
var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
|
|
1474
1477
|
|
|
1475
1478
|
module.exports = function inspect_(obj, options, depth, seen) {
|
|
1476
1479
|
var opts = options || {};
|
|
@@ -1560,7 +1563,7 @@ module.exports = function inspect_(obj, options, depth, seen) {
|
|
|
1560
1563
|
return inspect_(value, opts, depth + 1, seen);
|
|
1561
1564
|
}
|
|
1562
1565
|
|
|
1563
|
-
if (typeof obj === 'function') {
|
|
1566
|
+
if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable
|
|
1564
1567
|
var name = nameOf(obj);
|
|
1565
1568
|
var keys = arrObjKeys(obj, inspect);
|
|
1566
1569
|
return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
|
|
@@ -1590,15 +1593,15 @@ module.exports = function inspect_(obj, options, depth, seen) {
|
|
|
1590
1593
|
}
|
|
1591
1594
|
if (isError(obj)) {
|
|
1592
1595
|
var parts = arrObjKeys(obj, inspect);
|
|
1593
|
-
if ('cause' in obj && !isEnumerable.call(obj, 'cause')) {
|
|
1596
|
+
if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
|
|
1594
1597
|
return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
|
|
1595
1598
|
}
|
|
1596
1599
|
if (parts.length === 0) { return '[' + String(obj) + ']'; }
|
|
1597
1600
|
return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
|
|
1598
1601
|
}
|
|
1599
1602
|
if (typeof obj === 'object' && customInspect) {
|
|
1600
|
-
if (inspectSymbol && typeof obj[inspectSymbol] === 'function') {
|
|
1601
|
-
return obj
|
|
1603
|
+
if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
|
|
1604
|
+
return utilInspect(obj, { depth: maxDepth - depth });
|
|
1602
1605
|
} else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
|
|
1603
1606
|
return obj.inspect();
|
|
1604
1607
|
}
|
|
@@ -126,7 +126,7 @@ var stringify = function stringify(
|
|
|
126
126
|
for (var i = 0; i < valuesArray.length; ++i) {
|
|
127
127
|
valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults.encoder, charset, 'value', format));
|
|
128
128
|
}
|
|
129
|
-
return [formatter(keyValue) + '=' + valuesJoined];
|
|
129
|
+
return [formatter(keyValue) + (isArray(obj) && valuesArray.length === 1 ? '[]' : '') + '=' + valuesJoined];
|
|
130
130
|
}
|
|
131
131
|
return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
|
|
132
132
|
}
|
|
@@ -150,6 +150,8 @@ var stringify = function stringify(
|
|
|
150
150
|
objKeys = sort ? keys.sort(sort) : keys;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
+
var adjustedPrefix = generateArrayPrefix === 'comma' && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix;
|
|
154
|
+
|
|
153
155
|
for (var j = 0; j < objKeys.length; ++j) {
|
|
154
156
|
var key = objKeys[j];
|
|
155
157
|
var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
|
|
@@ -159,8 +161,8 @@ var stringify = function stringify(
|
|
|
159
161
|
}
|
|
160
162
|
|
|
161
163
|
var keyPrefix = isArray(obj)
|
|
162
|
-
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(
|
|
163
|
-
:
|
|
164
|
+
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
|
|
165
|
+
: adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
|
|
164
166
|
|
|
165
167
|
sideChannel.set(object, step);
|
|
166
168
|
var valueSideChannel = getSideChannel();
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "qs",
|
|
3
3
|
"description": "A querystring parser that supports nesting and arrays, with a depth limit",
|
|
4
4
|
"homepage": "https://github.com/ljharb/qs",
|
|
5
|
-
"version": "6.10.
|
|
5
|
+
"version": "6.10.5",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/ljharb/qs.git"
|
|
@@ -33,25 +33,27 @@
|
|
|
33
33
|
"side-channel": "^1.0.4"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@ljharb/eslint-config": "^
|
|
37
|
-
"aud": "^
|
|
36
|
+
"@ljharb/eslint-config": "^21.0.0",
|
|
37
|
+
"aud": "^2.0.0",
|
|
38
38
|
"browserify": "^16.5.2",
|
|
39
39
|
"eclint": "^2.8.1",
|
|
40
|
-
"eslint": "
|
|
40
|
+
"eslint": "=8.8.0",
|
|
41
41
|
"evalmd": "^0.0.19",
|
|
42
42
|
"for-each": "^0.3.3",
|
|
43
|
-
"has-symbols": "^1.0.
|
|
43
|
+
"has-symbols": "^1.0.3",
|
|
44
44
|
"iconv-lite": "^0.5.1",
|
|
45
45
|
"in-publish": "^2.0.1",
|
|
46
46
|
"mkdirp": "^0.5.5",
|
|
47
|
+
"npmignore": "^0.3.0",
|
|
47
48
|
"nyc": "^10.3.2",
|
|
48
|
-
"object-inspect": "^1.12.
|
|
49
|
+
"object-inspect": "^1.12.2",
|
|
49
50
|
"qs-iconv": "^1.0.4",
|
|
50
51
|
"safe-publish-latest": "^2.0.0",
|
|
51
52
|
"safer-buffer": "^2.1.2",
|
|
52
|
-
"tape": "^5.
|
|
53
|
+
"tape": "^5.5.3"
|
|
53
54
|
},
|
|
54
55
|
"scripts": {
|
|
56
|
+
"prepack": "npmignore --auto --commentLines=autogenerated",
|
|
55
57
|
"prepublishOnly": "safe-publish-latest && npm run dist",
|
|
56
58
|
"prepublish": "not-in-publish || npm run prepublishOnly",
|
|
57
59
|
"pretest": "npm run --silent readme && npm run --silent lint",
|
|
@@ -59,15 +61,17 @@
|
|
|
59
61
|
"tests-only": "nyc tape 'test/**/*.js'",
|
|
60
62
|
"posttest": "aud --production",
|
|
61
63
|
"readme": "evalmd README.md",
|
|
62
|
-
"postlint": "eclint check
|
|
63
|
-
"lint": "eslint .",
|
|
64
|
+
"postlint": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' | grep -v dist/)",
|
|
65
|
+
"lint": "eslint --ext=js,mjs .",
|
|
64
66
|
"dist": "mkdirp dist && browserify --standalone Qs lib/index.js > dist/qs.js"
|
|
65
67
|
},
|
|
66
68
|
"license": "BSD-3-Clause",
|
|
67
|
-
"
|
|
69
|
+
"publishConfig": {
|
|
68
70
|
"ignore": [
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
+
"!dist/*",
|
|
72
|
+
"bower.json",
|
|
73
|
+
"component.json",
|
|
74
|
+
".github/workflows"
|
|
71
75
|
]
|
|
72
76
|
}
|
|
73
77
|
}
|
|
@@ -140,6 +140,9 @@ test('parse()', function (t) {
|
|
|
140
140
|
t.test('limits specific array indices to arrayLimit', function (st) {
|
|
141
141
|
st.deepEqual(qs.parse('a[20]=a', { arrayLimit: 20 }), { a: ['a'] });
|
|
142
142
|
st.deepEqual(qs.parse('a[21]=a', { arrayLimit: 20 }), { a: { 21: 'a' } });
|
|
143
|
+
|
|
144
|
+
st.deepEqual(qs.parse('a[20]=a'), { a: ['a'] });
|
|
145
|
+
st.deepEqual(qs.parse('a[21]=a'), { a: { 21: 'a' } });
|
|
143
146
|
st.end();
|
|
144
147
|
});
|
|
145
148
|
|
|
@@ -378,6 +381,7 @@ test('parse()', function (t) {
|
|
|
378
381
|
st.deepEqual(qs.parse('?foo=bar', { ignoreQueryPrefix: true }), { foo: 'bar' });
|
|
379
382
|
st.deepEqual(qs.parse('foo=bar', { ignoreQueryPrefix: true }), { foo: 'bar' });
|
|
380
383
|
st.deepEqual(qs.parse('?foo=bar', { ignoreQueryPrefix: false }), { '?foo': 'bar' });
|
|
384
|
+
|
|
381
385
|
st.end();
|
|
382
386
|
});
|
|
383
387
|
|
|
@@ -406,6 +410,16 @@ test('parse()', function (t) {
|
|
|
406
410
|
st.deepEqual(qs.parse('foo=', { comma: true }), { foo: '' });
|
|
407
411
|
st.deepEqual(qs.parse('foo', { comma: true }), { foo: '' });
|
|
408
412
|
st.deepEqual(qs.parse('foo', { comma: true, strictNullHandling: true }), { foo: null });
|
|
413
|
+
|
|
414
|
+
// test cases inversed from from stringify tests
|
|
415
|
+
st.deepEqual(qs.parse('a[0]=c'), { a: ['c'] });
|
|
416
|
+
st.deepEqual(qs.parse('a[]=c'), { a: ['c'] });
|
|
417
|
+
st.deepEqual(qs.parse('a[]=c', { comma: true }), { a: ['c'] });
|
|
418
|
+
|
|
419
|
+
st.deepEqual(qs.parse('a[0]=c&a[1]=d'), { a: ['c', 'd'] });
|
|
420
|
+
st.deepEqual(qs.parse('a[]=c&a[]=d'), { a: ['c', 'd'] });
|
|
421
|
+
st.deepEqual(qs.parse('a=c,d', { comma: true }), { a: ['c', 'd'] });
|
|
422
|
+
|
|
409
423
|
st.end();
|
|
410
424
|
});
|
|
411
425
|
|
|
@@ -131,6 +131,37 @@ test('stringify()', function (t) {
|
|
|
131
131
|
st.end();
|
|
132
132
|
});
|
|
133
133
|
|
|
134
|
+
t.test('stringifies an array value with one item vs multiple items', function (st) {
|
|
135
|
+
st.test('non-array item', function (s2t) {
|
|
136
|
+
s2t.equal(qs.stringify({ a: 'c' }, { encodeValuesOnly: true, arrayFormat: 'indices' }), 'a=c');
|
|
137
|
+
s2t.equal(qs.stringify({ a: 'c' }, { encodeValuesOnly: true, arrayFormat: 'brackets' }), 'a=c');
|
|
138
|
+
s2t.equal(qs.stringify({ a: 'c' }, { encodeValuesOnly: true, arrayFormat: 'comma' }), 'a=c');
|
|
139
|
+
s2t.equal(qs.stringify({ a: 'c' }, { encodeValuesOnly: true }), 'a=c');
|
|
140
|
+
|
|
141
|
+
s2t.end();
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
st.test('array with a single item', function (s2t) {
|
|
145
|
+
s2t.equal(qs.stringify({ a: ['c'] }, { encodeValuesOnly: true, arrayFormat: 'indices' }), 'a[0]=c');
|
|
146
|
+
s2t.equal(qs.stringify({ a: ['c'] }, { encodeValuesOnly: true, arrayFormat: 'brackets' }), 'a[]=c');
|
|
147
|
+
s2t.equal(qs.stringify({ a: ['c'] }, { encodeValuesOnly: true, arrayFormat: 'comma' }), 'a[]=c'); // so it parses back as an array
|
|
148
|
+
s2t.equal(qs.stringify({ a: ['c'] }, { encodeValuesOnly: true }), 'a[0]=c');
|
|
149
|
+
|
|
150
|
+
s2t.end();
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
st.test('array with multiple items', function (s2t) {
|
|
154
|
+
s2t.equal(qs.stringify({ a: ['c', 'd'] }, { encodeValuesOnly: true, arrayFormat: 'indices' }), 'a[0]=c&a[1]=d');
|
|
155
|
+
s2t.equal(qs.stringify({ a: ['c', 'd'] }, { encodeValuesOnly: true, arrayFormat: 'brackets' }), 'a[]=c&a[]=d');
|
|
156
|
+
s2t.equal(qs.stringify({ a: ['c', 'd'] }, { encodeValuesOnly: true, arrayFormat: 'comma' }), 'a=c,d');
|
|
157
|
+
s2t.equal(qs.stringify({ a: ['c', 'd'] }, { encodeValuesOnly: true }), 'a[0]=c&a[1]=d');
|
|
158
|
+
|
|
159
|
+
s2t.end();
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
st.end();
|
|
163
|
+
});
|
|
164
|
+
|
|
134
165
|
t.test('stringifies a nested array value', function (st) {
|
|
135
166
|
st.equal(qs.stringify({ a: { b: ['c', 'd'] } }, { encodeValuesOnly: true, arrayFormat: 'indices' }), 'a[b][0]=c&a[b][1]=d');
|
|
136
167
|
st.equal(qs.stringify({ a: { b: ['c', 'd'] } }, { encodeValuesOnly: true, arrayFormat: 'brackets' }), 'a[b][]=c&a[b][]=d');
|
|
@@ -348,12 +379,12 @@ test('stringify()', function (t) {
|
|
|
348
379
|
st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'indices' }), 'b[0]=&c=c');
|
|
349
380
|
st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'brackets' }), 'b[]=&c=c');
|
|
350
381
|
st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'repeat' }), 'b=&c=c');
|
|
351
|
-
st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'comma' }), 'b=&c=c');
|
|
382
|
+
st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'comma' }), 'b[]=&c=c');
|
|
352
383
|
// with strictNullHandling
|
|
353
384
|
st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'indices', strictNullHandling: true }), 'b[0]&c=c');
|
|
354
385
|
st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'brackets', strictNullHandling: true }), 'b[]&c=c');
|
|
355
386
|
st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'repeat', strictNullHandling: true }), 'b&c=c');
|
|
356
|
-
st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'comma', strictNullHandling: true }), 'b&c=c');
|
|
387
|
+
st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'comma', strictNullHandling: true }), 'b[]&c=c');
|
|
357
388
|
// with skipNulls
|
|
358
389
|
st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'indices', skipNulls: true }), 'c=c');
|
|
359
390
|
st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'brackets', skipNulls: true }), 'c=c');
|
|
@@ -681,7 +712,7 @@ test('stringify()', function (t) {
|
|
|
681
712
|
arrayFormat: 'comma'
|
|
682
713
|
}
|
|
683
714
|
),
|
|
684
|
-
'a=' + date.getTime(),
|
|
715
|
+
'a%5B%5D=' + date.getTime(),
|
|
685
716
|
'works with arrayFormat comma'
|
|
686
717
|
);
|
|
687
718
|
|
|
@@ -714,16 +745,14 @@ test('stringify()', function (t) {
|
|
|
714
745
|
});
|
|
715
746
|
|
|
716
747
|
t.test('Edge cases and unknown formats', function (st) {
|
|
717
|
-
['UFO1234', false, 1234, null, {}, []].forEach(
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
}
|
|
726
|
-
);
|
|
748
|
+
['UFO1234', false, 1234, null, {}, []].forEach(function (format) {
|
|
749
|
+
st['throws'](
|
|
750
|
+
function () {
|
|
751
|
+
qs.stringify({ a: 'b c' }, { format: format });
|
|
752
|
+
},
|
|
753
|
+
new TypeError('Unknown format option provided.')
|
|
754
|
+
);
|
|
755
|
+
});
|
|
727
756
|
st.end();
|
|
728
757
|
});
|
|
729
758
|
|
package/package.json
CHANGED
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"jsii-pacmak": "^1.59.0",
|
|
57
57
|
"json-schema": "^0.4.0",
|
|
58
58
|
"npm-check-updates": "^12",
|
|
59
|
-
"projen": "0.57.
|
|
59
|
+
"projen": "0.57.8",
|
|
60
60
|
"standard-version": "^9",
|
|
61
61
|
"ts-jest": "^27",
|
|
62
62
|
"typescript": "^4.7.3"
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
],
|
|
85
85
|
"main": "lib/index.js",
|
|
86
86
|
"license": "Apache-2.0",
|
|
87
|
-
"version": "2.0.
|
|
87
|
+
"version": "2.0.169",
|
|
88
88
|
"jest": {
|
|
89
89
|
"testMatch": [
|
|
90
90
|
"<rootDir>/src/**/__tests__/**/*.ts?(x)",
|
|
@@ -140,12 +140,12 @@
|
|
|
140
140
|
"rootDir": "src"
|
|
141
141
|
}
|
|
142
142
|
},
|
|
143
|
-
"resolutions": {
|
|
144
|
-
"@types/prettier": "2.6.0"
|
|
145
|
-
},
|
|
146
143
|
"awscdkio": {
|
|
147
144
|
"twitter": "neil_kuan",
|
|
148
145
|
"announce": true
|
|
149
146
|
},
|
|
147
|
+
"resolutions": {
|
|
148
|
+
"@types/prettier": "2.6.0"
|
|
149
|
+
},
|
|
150
150
|
"//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"."
|
|
151
151
|
}
|
package/changelog.md
DELETED
package/releasetag.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
v2.0.166
|
package/version.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.166
|