@cdklabs/cdk-ecs-codedeploy 0.0.95 → 0.0.96

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.
Files changed (116) hide show
  1. package/.jsii +6 -6
  2. package/.projenrc.ts +1 -1
  3. package/lib/api-canary/index.js +1 -1
  4. package/lib/ecs-appspec/index.js +1 -1
  5. package/lib/ecs-deployment/index.js +1 -1
  6. package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
  7. package/node_modules/@aws-sdk/abort-controller/package.json +6 -3
  8. package/node_modules/@aws-sdk/client-codedeploy/package.json +36 -41
  9. package/node_modules/@aws-sdk/client-sso/package.json +32 -37
  10. package/node_modules/@aws-sdk/client-sso-oidc/package.json +32 -37
  11. package/node_modules/@aws-sdk/client-sts/package.json +35 -40
  12. package/node_modules/@aws-sdk/config-resolver/package.json +10 -7
  13. package/node_modules/@aws-sdk/credential-provider-env/package.json +7 -4
  14. package/node_modules/@aws-sdk/credential-provider-imds/package.json +9 -6
  15. package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -10
  16. package/node_modules/@aws-sdk/credential-provider-node/package.json +14 -11
  17. package/node_modules/@aws-sdk/credential-provider-process/package.json +8 -5
  18. package/node_modules/@aws-sdk/credential-provider-sso/package.json +10 -7
  19. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -4
  20. package/node_modules/@aws-sdk/fetch-http-handler/package.json +10 -7
  21. package/node_modules/@aws-sdk/hash-node/package.json +8 -5
  22. package/node_modules/@aws-sdk/invalid-dependency/package.json +6 -3
  23. package/node_modules/@aws-sdk/is-array-buffer/package.json +5 -2
  24. package/node_modules/@aws-sdk/middleware-content-length/package.json +7 -4
  25. package/node_modules/@aws-sdk/middleware-endpoint/package.json +12 -9
  26. package/node_modules/@aws-sdk/middleware-host-header/package.json +7 -4
  27. package/node_modules/@aws-sdk/middleware-logger/package.json +6 -3
  28. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +7 -4
  29. package/node_modules/@aws-sdk/middleware-retry/package.json +11 -8
  30. package/node_modules/@aws-sdk/middleware-sdk-sts/package.json +10 -7
  31. package/node_modules/@aws-sdk/middleware-serde/package.json +6 -3
  32. package/node_modules/@aws-sdk/middleware-signing/package.json +10 -7
  33. package/node_modules/@aws-sdk/middleware-stack/package.json +6 -3
  34. package/node_modules/@aws-sdk/middleware-user-agent/package.json +8 -5
  35. package/node_modules/@aws-sdk/node-config-provider/package.json +8 -5
  36. package/node_modules/@aws-sdk/node-http-handler/package.json +9 -6
  37. package/node_modules/@aws-sdk/property-provider/package.json +6 -3
  38. package/node_modules/@aws-sdk/protocol-http/dist-cjs/Field.js +1 -1
  39. package/node_modules/@aws-sdk/protocol-http/dist-cjs/Fields.js +0 -10
  40. package/node_modules/@aws-sdk/protocol-http/dist-cjs/httpRequest.js +24 -99
  41. package/node_modules/@aws-sdk/protocol-http/dist-es/Field.js +1 -1
  42. package/node_modules/@aws-sdk/protocol-http/dist-es/Fields.js +0 -10
  43. package/node_modules/@aws-sdk/protocol-http/dist-es/httpRequest.js +24 -99
  44. package/node_modules/@aws-sdk/protocol-http/dist-types/Field.d.ts +1 -1
  45. package/node_modules/@aws-sdk/protocol-http/dist-types/Fields.d.ts +1 -18
  46. package/node_modules/@aws-sdk/protocol-http/dist-types/httpRequest.d.ts +7 -50
  47. package/node_modules/@aws-sdk/protocol-http/dist-types/ts3.4/Fields.d.ts +1 -3
  48. package/node_modules/@aws-sdk/protocol-http/dist-types/ts3.4/httpRequest.d.ts +15 -30
  49. package/node_modules/@aws-sdk/protocol-http/package.json +7 -4
  50. package/node_modules/@aws-sdk/querystring-builder/package.json +7 -4
  51. package/node_modules/@aws-sdk/querystring-parser/package.json +6 -3
  52. package/node_modules/@aws-sdk/service-error-classification/package.json +6 -3
  53. package/node_modules/@aws-sdk/shared-ini-file-loader/package.json +6 -3
  54. package/node_modules/@aws-sdk/signature-v4/dist-cjs/prepareRequest.js +1 -18
  55. package/node_modules/@aws-sdk/signature-v4/dist-es/prepareRequest.js +1 -18
  56. package/node_modules/@aws-sdk/signature-v4/package.json +13 -10
  57. package/node_modules/@aws-sdk/smithy-client/dist-types/date-utils.d.ts +16 -16
  58. package/node_modules/@aws-sdk/smithy-client/dist-types/default-error-handler.d.ts +1 -1
  59. package/node_modules/@aws-sdk/smithy-client/dist-types/emitWarningIfUnsupportedVersion.d.ts +1 -1
  60. package/node_modules/@aws-sdk/smithy-client/dist-types/object-mapping.d.ts +1 -1
  61. package/node_modules/@aws-sdk/smithy-client/dist-types/parse-utils.d.ts +23 -23
  62. package/node_modules/@aws-sdk/smithy-client/dist-types/ser-utils.d.ts +1 -1
  63. package/node_modules/@aws-sdk/smithy-client/dist-types/split-every.d.ts +3 -3
  64. package/node_modules/@aws-sdk/smithy-client/package.json +7 -4
  65. package/node_modules/@aws-sdk/token-providers/package.json +9 -6
  66. package/node_modules/@aws-sdk/types/dist-types/abort.d.ts +1 -1
  67. package/node_modules/@aws-sdk/types/dist-types/auth.d.ts +1 -1
  68. package/node_modules/@aws-sdk/types/dist-types/checksum.d.ts +2 -2
  69. package/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +2 -2
  70. package/node_modules/@aws-sdk/types/dist-types/dns.d.ts +3 -3
  71. package/node_modules/@aws-sdk/types/dist-types/http.d.ts +6 -10
  72. package/node_modules/@aws-sdk/types/dist-types/identity/Identity.d.ts +1 -1
  73. package/node_modules/@aws-sdk/types/dist-types/logger.d.ts +1 -1
  74. package/node_modules/@aws-sdk/types/dist-types/middleware.d.ts +15 -15
  75. package/node_modules/@aws-sdk/types/dist-types/profile.d.ts +1 -1
  76. package/node_modules/@aws-sdk/types/dist-types/retry.d.ts +2 -2
  77. package/node_modules/@aws-sdk/types/dist-types/serde.d.ts +7 -7
  78. package/node_modules/@aws-sdk/types/dist-types/shapes.d.ts +1 -2
  79. package/node_modules/@aws-sdk/types/dist-types/signature.d.ts +4 -4
  80. package/node_modules/@aws-sdk/types/dist-types/token.d.ts +2 -2
  81. package/node_modules/@aws-sdk/types/dist-types/util.d.ts +4 -4
  82. package/node_modules/@aws-sdk/types/package.json +5 -2
  83. package/node_modules/@aws-sdk/url-parser/package.json +7 -4
  84. package/node_modules/@aws-sdk/util-base64/package.json +6 -3
  85. package/node_modules/@aws-sdk/util-body-length-browser/package.json +5 -2
  86. package/node_modules/@aws-sdk/util-body-length-node/package.json +5 -2
  87. package/node_modules/@aws-sdk/util-buffer-from/package.json +6 -3
  88. package/node_modules/@aws-sdk/util-config-provider/package.json +5 -2
  89. package/node_modules/@aws-sdk/util-defaults-mode-browser/package.json +8 -5
  90. package/node_modules/@aws-sdk/util-defaults-mode-node/package.json +11 -8
  91. package/node_modules/@aws-sdk/util-endpoints/package.json +6 -3
  92. package/node_modules/@aws-sdk/util-hex-encoding/package.json +5 -2
  93. package/node_modules/@aws-sdk/util-locate-window/package.json +5 -2
  94. package/node_modules/@aws-sdk/util-middleware/package.json +6 -3
  95. package/node_modules/@aws-sdk/util-retry/package.json +7 -4
  96. package/node_modules/@aws-sdk/util-uri-escape/package.json +5 -2
  97. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +7 -4
  98. package/node_modules/@aws-sdk/util-user-agent-node/package.json +8 -5
  99. package/node_modules/@aws-sdk/util-utf8/package.json +6 -3
  100. package/node_modules/@aws-sdk/util-waiter/dist-types/poller.d.ts +4 -4
  101. package/node_modules/@aws-sdk/util-waiter/dist-types/utils/validate.d.ts +1 -1
  102. package/node_modules/@aws-sdk/util-waiter/dist-types/waiter.d.ts +1 -1
  103. package/node_modules/@aws-sdk/util-waiter/package.json +7 -4
  104. package/package.json +14 -14
  105. package/node_modules/@aws-sdk/is-array-buffer/CHANGELOG.md +0 -663
  106. package/node_modules/@aws-sdk/protocol-http/dist-cjs/headersProxy.js +0 -52
  107. package/node_modules/@aws-sdk/protocol-http/dist-cjs/queryProxy.js +0 -71
  108. package/node_modules/@aws-sdk/protocol-http/dist-es/headersProxy.js +0 -45
  109. package/node_modules/@aws-sdk/protocol-http/dist-es/queryProxy.js +0 -65
  110. package/node_modules/@aws-sdk/protocol-http/dist-types/headersProxy.d.ts +0 -39
  111. package/node_modules/@aws-sdk/protocol-http/dist-types/queryProxy.d.ts +0 -29
  112. package/node_modules/@aws-sdk/protocol-http/dist-types/ts3.4/headersProxy.d.ts +0 -8
  113. package/node_modules/@aws-sdk/protocol-http/dist-types/ts3.4/queryProxy.d.ts +0 -10
  114. package/node_modules/@aws-sdk/util-body-length-browser/CHANGELOG.md +0 -681
  115. package/node_modules/@aws-sdk/util-hex-encoding/CHANGELOG.md +0 -676
  116. package/node_modules/@aws-sdk/util-uri-escape/CHANGELOG.md +0 -768
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-retry",
3
- "version": "3.290.0",
3
+ "version": "3.292.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,22 +20,22 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/protocol-http": "3.290.0",
24
- "@aws-sdk/service-error-classification": "3.290.0",
25
- "@aws-sdk/types": "3.290.0",
26
- "@aws-sdk/util-middleware": "3.290.0",
27
- "@aws-sdk/util-retry": "3.290.0",
23
+ "@aws-sdk/protocol-http": "3.292.0",
24
+ "@aws-sdk/service-error-classification": "3.292.0",
25
+ "@aws-sdk/types": "3.292.0",
26
+ "@aws-sdk/util-middleware": "3.292.0",
27
+ "@aws-sdk/util-retry": "3.292.0",
28
28
  "tslib": "^2.3.1",
29
29
  "uuid": "^8.3.2"
30
30
  },
31
31
  "devDependencies": {
32
- "@aws-sdk/node-config-provider": "3.290.0",
32
+ "@aws-sdk/node-config-provider": "3.292.0",
33
33
  "@tsconfig/recommended": "1.0.1",
34
34
  "@types/uuid": "^8.3.0",
35
35
  "concurrently": "7.0.0",
36
36
  "downlevel-dts": "0.10.1",
37
37
  "rimraf": "3.0.2",
38
- "typedoc": "0.19.2",
38
+ "typedoc": "0.23.23",
39
39
  "typescript": "~4.6.2"
40
40
  },
41
41
  "engines": {
@@ -56,5 +56,8 @@
56
56
  "type": "git",
57
57
  "url": "https://github.com/aws/aws-sdk-js-v3.git",
58
58
  "directory": "packages/middleware-retry"
59
+ },
60
+ "typedoc": {
61
+ "entryPoint": "src/index.ts"
59
62
  }
60
63
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-sdk-sts",
3
- "version": "3.290.0",
3
+ "version": "3.292.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,11 +20,11 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/middleware-signing": "3.290.0",
24
- "@aws-sdk/property-provider": "3.290.0",
25
- "@aws-sdk/protocol-http": "3.290.0",
26
- "@aws-sdk/signature-v4": "3.290.0",
27
- "@aws-sdk/types": "3.290.0",
23
+ "@aws-sdk/middleware-signing": "3.292.0",
24
+ "@aws-sdk/property-provider": "3.292.0",
25
+ "@aws-sdk/protocol-http": "3.292.0",
26
+ "@aws-sdk/signature-v4": "3.292.0",
27
+ "@aws-sdk/types": "3.292.0",
28
28
  "tslib": "^2.3.1"
29
29
  },
30
30
  "engines": {
@@ -51,7 +51,10 @@
51
51
  "concurrently": "7.0.0",
52
52
  "downlevel-dts": "0.10.1",
53
53
  "rimraf": "3.0.2",
54
- "typedoc": "0.19.2",
54
+ "typedoc": "0.23.23",
55
55
  "typescript": "~4.6.2"
56
+ },
57
+ "typedoc": {
58
+ "entryPoint": "src/index.ts"
56
59
  }
57
60
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-serde",
3
- "version": "3.290.0",
3
+ "version": "3.292.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/types": "3.290.0",
23
+ "@aws-sdk/types": "3.292.0",
24
24
  "tslib": "^2.3.1"
25
25
  },
26
26
  "engines": {
@@ -47,7 +47,10 @@
47
47
  "concurrently": "7.0.0",
48
48
  "downlevel-dts": "0.10.1",
49
49
  "rimraf": "3.0.2",
50
- "typedoc": "0.19.2",
50
+ "typedoc": "0.23.23",
51
51
  "typescript": "~4.6.2"
52
+ },
53
+ "typedoc": {
54
+ "entryPoint": "src/index.ts"
52
55
  }
53
56
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-signing",
3
- "version": "3.290.0",
3
+ "version": "3.292.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,11 +20,11 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/property-provider": "3.290.0",
24
- "@aws-sdk/protocol-http": "3.290.0",
25
- "@aws-sdk/signature-v4": "3.290.0",
26
- "@aws-sdk/types": "3.290.0",
27
- "@aws-sdk/util-middleware": "3.290.0",
23
+ "@aws-sdk/property-provider": "3.292.0",
24
+ "@aws-sdk/protocol-http": "3.292.0",
25
+ "@aws-sdk/signature-v4": "3.292.0",
26
+ "@aws-sdk/types": "3.292.0",
27
+ "@aws-sdk/util-middleware": "3.292.0",
28
28
  "tslib": "^2.3.1"
29
29
  },
30
30
  "engines": {
@@ -51,7 +51,10 @@
51
51
  "concurrently": "7.0.0",
52
52
  "downlevel-dts": "0.10.1",
53
53
  "rimraf": "3.0.2",
54
- "typedoc": "0.19.2",
54
+ "typedoc": "0.23.23",
55
55
  "typescript": "~4.6.2"
56
+ },
57
+ "typedoc": {
58
+ "entryPoint": "src/index.ts"
56
59
  }
57
60
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-stack",
3
- "version": "3.290.0",
3
+ "version": "3.292.0",
4
4
  "description": "Provides a means for composing multiple middleware functions into a single handler",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
@@ -25,12 +25,12 @@
25
25
  "tslib": "^2.3.1"
26
26
  },
27
27
  "devDependencies": {
28
- "@aws-sdk/types": "3.290.0",
28
+ "@aws-sdk/types": "3.292.0",
29
29
  "@tsconfig/recommended": "1.0.1",
30
30
  "concurrently": "7.0.0",
31
31
  "downlevel-dts": "0.10.1",
32
32
  "rimraf": "3.0.2",
33
- "typedoc": "0.19.2",
33
+ "typedoc": "0.23.23",
34
34
  "typescript": "~4.6.2"
35
35
  },
36
36
  "engines": {
@@ -51,5 +51,8 @@
51
51
  "type": "git",
52
52
  "url": "https://github.com/aws/aws-sdk-js-v3.git",
53
53
  "directory": "packages/middleware-stack"
54
+ },
55
+ "typedoc": {
56
+ "entryPoint": "src/index.ts"
54
57
  }
55
58
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-user-agent",
3
- "version": "3.290.0",
3
+ "version": "3.292.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,17 +20,17 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/protocol-http": "3.290.0",
24
- "@aws-sdk/types": "3.290.0",
23
+ "@aws-sdk/protocol-http": "3.292.0",
24
+ "@aws-sdk/types": "3.292.0",
25
25
  "tslib": "^2.3.1"
26
26
  },
27
27
  "devDependencies": {
28
- "@aws-sdk/middleware-stack": "3.290.0",
28
+ "@aws-sdk/middleware-stack": "3.292.0",
29
29
  "@tsconfig/recommended": "1.0.1",
30
30
  "concurrently": "7.0.0",
31
31
  "downlevel-dts": "0.10.1",
32
32
  "rimraf": "3.0.2",
33
- "typedoc": "0.19.2",
33
+ "typedoc": "0.23.23",
34
34
  "typescript": "~4.6.2"
35
35
  },
36
36
  "engines": {
@@ -51,5 +51,8 @@
51
51
  "type": "git",
52
52
  "url": "https://github.com/aws/aws-sdk-js-v3.git",
53
53
  "directory": "packages/middleware-user-agent"
54
+ },
55
+ "typedoc": {
56
+ "entryPoint": "src/index.ts"
54
57
  }
55
58
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/node-config-provider",
3
- "version": "3.290.0",
3
+ "version": "3.292.0",
4
4
  "description": "Load config default values from ini config files and environmental variable",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
@@ -22,9 +22,9 @@
22
22
  "module": "./dist-es/index.js",
23
23
  "types": "./dist-types/index.d.ts",
24
24
  "dependencies": {
25
- "@aws-sdk/property-provider": "3.290.0",
26
- "@aws-sdk/shared-ini-file-loader": "3.290.0",
27
- "@aws-sdk/types": "3.290.0",
25
+ "@aws-sdk/property-provider": "3.292.0",
26
+ "@aws-sdk/shared-ini-file-loader": "3.292.0",
27
+ "@aws-sdk/types": "3.292.0",
28
28
  "tslib": "^2.3.1"
29
29
  },
30
30
  "devDependencies": {
@@ -33,7 +33,7 @@
33
33
  "concurrently": "7.0.0",
34
34
  "downlevel-dts": "0.10.1",
35
35
  "rimraf": "3.0.2",
36
- "typedoc": "0.19.2",
36
+ "typedoc": "0.23.23",
37
37
  "typescript": "~4.6.2"
38
38
  },
39
39
  "engines": {
@@ -54,5 +54,8 @@
54
54
  "type": "git",
55
55
  "url": "https://github.com/aws/aws-sdk-js-v3.git",
56
56
  "directory": "packages/node-config-provider"
57
+ },
58
+ "typedoc": {
59
+ "entryPoint": "src/index.ts"
57
60
  }
58
61
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/node-http-handler",
3
- "version": "3.290.0",
3
+ "version": "3.292.0",
4
4
  "description": "Provides a way to make requests",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
@@ -22,10 +22,10 @@
22
22
  "module": "./dist-es/index.js",
23
23
  "types": "./dist-types/index.d.ts",
24
24
  "dependencies": {
25
- "@aws-sdk/abort-controller": "3.290.0",
26
- "@aws-sdk/protocol-http": "3.290.0",
27
- "@aws-sdk/querystring-builder": "3.290.0",
28
- "@aws-sdk/types": "3.290.0",
25
+ "@aws-sdk/abort-controller": "3.292.0",
26
+ "@aws-sdk/protocol-http": "3.292.0",
27
+ "@aws-sdk/querystring-builder": "3.292.0",
28
+ "@aws-sdk/types": "3.292.0",
29
29
  "tslib": "^2.3.1"
30
30
  },
31
31
  "devDependencies": {
@@ -34,7 +34,7 @@
34
34
  "concurrently": "7.0.0",
35
35
  "downlevel-dts": "0.10.1",
36
36
  "rimraf": "3.0.2",
37
- "typedoc": "0.19.2",
37
+ "typedoc": "0.23.23",
38
38
  "typescript": "~4.6.2"
39
39
  },
40
40
  "engines": {
@@ -55,5 +55,8 @@
55
55
  "type": "git",
56
56
  "url": "https://github.com/aws/aws-sdk-js-v3.git",
57
57
  "directory": "packages/node-http-handler"
58
+ },
59
+ "typedoc": {
60
+ "entryPoint": "src/index.ts"
58
61
  }
59
62
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/property-provider",
3
- "version": "3.290.0",
3
+ "version": "3.292.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/types": "3.290.0",
23
+ "@aws-sdk/types": "3.292.0",
24
24
  "tslib": "^2.3.1"
25
25
  },
26
26
  "engines": {
@@ -47,7 +47,10 @@
47
47
  "concurrently": "7.0.0",
48
48
  "downlevel-dts": "0.10.1",
49
49
  "rimraf": "3.0.2",
50
- "typedoc": "0.19.2",
50
+ "typedoc": "0.23.23",
51
51
  "typescript": "~4.6.2"
52
+ },
53
+ "typedoc": {
54
+ "entryPoint": "src/index.ts"
52
55
  }
53
56
  }
@@ -18,7 +18,7 @@ class Field {
18
18
  this.values = this.values.filter((v) => v !== value);
19
19
  }
20
20
  toString() {
21
- return this.values.map((v) => (v.includes(",") ? `"${v}"` : v)).join(", ");
21
+ return this.values.map((v) => (v.includes(",") || v.includes(" ") ? `"${v}"` : v)).join(", ");
22
22
  }
23
23
  get() {
24
24
  return this.values;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Fields = void 0;
4
- const Field_1 = require("./Field");
5
4
  class Fields {
6
5
  constructor({ fields = [], encoding = "utf-8" }) {
7
6
  this.entries = {};
@@ -20,14 +19,5 @@ class Fields {
20
19
  getByType(kind) {
21
20
  return Object.values(this.entries).filter((field) => field.kind === kind);
22
21
  }
23
- getAll() {
24
- return Object.values(this.entries);
25
- }
26
- static from(fieldsToCreate, encoding) {
27
- return fieldsToCreate.reduce((fields, fieldArgs) => {
28
- fields.setField(new Field_1.Field(fieldArgs));
29
- return fields;
30
- }, new Fields({ encoding }));
31
- }
32
22
  }
33
23
  exports.Fields = Fields;
@@ -1,89 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.HttpRequest = void 0;
4
- const Fields_1 = require("./Fields");
5
- const headersProxy_1 = require("./headersProxy");
6
- const queryProxy_1 = require("./queryProxy");
7
4
  class HttpRequest {
8
5
  constructor(options) {
9
- this.protocol = "https";
10
- this.hostname = "localhost";
11
- this.path = "/";
12
- this.query = {};
13
- this.headers = {};
14
6
  this.method = options.method || "GET";
15
- this.destination = HttpRequest.getDefaultDestination(options);
16
- this.fields = (0, headersProxy_1.headersToFields)(options.headers || {});
7
+ this.hostname = options.hostname || "localhost";
8
+ this.port = options.port;
9
+ this.query = options.query || {};
10
+ this.headers = options.headers || {};
17
11
  this.body = options.body;
18
- const httpRequest = this;
19
- Object.defineProperties(httpRequest, {
20
- protocol: {
21
- enumerable: true,
22
- get() {
23
- return httpRequest.destination.protocol;
24
- },
25
- set(protocol) {
26
- httpRequest.destination.protocol = protocol;
27
- },
28
- },
29
- hostname: {
30
- enumerable: true,
31
- get() {
32
- return httpRequest.destination.hostname;
33
- },
34
- set(hostname) {
35
- httpRequest.destination.hostname = hostname;
36
- },
37
- },
38
- port: {
39
- enumerable: true,
40
- get() {
41
- const port = httpRequest.destination.port;
42
- return port ? Number(port) : undefined;
43
- },
44
- set(port) {
45
- httpRequest.destination.port = String(port);
46
- },
47
- },
48
- path: {
49
- enumerable: true,
50
- get() {
51
- return httpRequest.destination.pathname;
52
- },
53
- set(path) {
54
- httpRequest.destination.pathname = path;
55
- },
56
- },
57
- query: {
58
- enumerable: true,
59
- get() {
60
- return (0, queryProxy_1.getQueryProxy)(httpRequest.destination.searchParams);
61
- },
62
- set(query) {
63
- const searchParams = (0, queryProxy_1.queryToSearchParams)(query || {});
64
- httpRequest.destination.search = searchParams.toString();
65
- },
66
- },
67
- headers: {
68
- enumerable: true,
69
- get() {
70
- return (0, headersProxy_1.getHeadersProxy)(httpRequest.fields);
71
- },
72
- set(headers) {
73
- httpRequest.fields = (0, headersProxy_1.headersToFields)(headers);
74
- },
75
- },
76
- });
77
- }
78
- static from(options) {
79
- const request = new HttpRequest(options);
80
- if (options.destination) {
81
- request.destination = options.destination;
82
- }
83
- if (options.fields) {
84
- request.fields = options.fields;
85
- }
86
- return request;
12
+ this.protocol = options.protocol
13
+ ? options.protocol.slice(-1) !== ":"
14
+ ? `${options.protocol}:`
15
+ : options.protocol
16
+ : "https:";
17
+ this.path = options.path ? (options.path.charAt(0) !== "/" ? `/${options.path}` : options.path) : "/";
87
18
  }
88
19
  static isInstance(request) {
89
20
  if (!request)
@@ -97,28 +28,22 @@ class HttpRequest {
97
28
  typeof req["headers"] === "object");
98
29
  }
99
30
  clone() {
100
- return HttpRequest.from({
31
+ const cloned = new HttpRequest({
101
32
  ...this,
102
- destination: new URL(this.destination),
103
- fields: Fields_1.Fields.from(this.fields.getAll().map((field) => ({
104
- ...field,
105
- values: [...field.values],
106
- }))),
33
+ headers: { ...this.headers },
107
34
  });
108
- }
109
- static getDefaultDestination(options) {
110
- const protocol = options.protocol
111
- ? options.protocol.slice(-1) !== ":"
112
- ? `${options.protocol}:`
113
- : options.protocol
114
- : "https:";
115
- const hostname = options.hostname || "localhost";
116
- const port = options.port ? `:${String(options.port)}` : "";
117
- const path = options.path ? (options.path.charAt(0) !== "/" ? `/${options.path}` : options.path) : "/";
118
- const searchParams = (0, queryProxy_1.queryToSearchParams)(options.query || {});
119
- const url = new URL(`${protocol}//${hostname}${port}${path}`);
120
- url.search = searchParams.toString();
121
- return url;
35
+ if (cloned.query)
36
+ cloned.query = cloneQuery(cloned.query);
37
+ return cloned;
122
38
  }
123
39
  }
124
40
  exports.HttpRequest = HttpRequest;
41
+ function cloneQuery(query) {
42
+ return Object.keys(query).reduce((carry, paramName) => {
43
+ const param = query[paramName];
44
+ return {
45
+ ...carry,
46
+ [paramName]: Array.isArray(param) ? [...param] : param,
47
+ };
48
+ }, {});
49
+ }
@@ -15,7 +15,7 @@ export class Field {
15
15
  this.values = this.values.filter((v) => v !== value);
16
16
  }
17
17
  toString() {
18
- return this.values.map((v) => (v.includes(",") ? `"${v}"` : v)).join(", ");
18
+ return this.values.map((v) => (v.includes(",") || v.includes(" ") ? `"${v}"` : v)).join(", ");
19
19
  }
20
20
  get() {
21
21
  return this.values;
@@ -1,4 +1,3 @@
1
- import { Field } from "./Field";
2
1
  export class Fields {
3
2
  constructor({ fields = [], encoding = "utf-8" }) {
4
3
  this.entries = {};
@@ -17,13 +16,4 @@ export class Fields {
17
16
  getByType(kind) {
18
17
  return Object.values(this.entries).filter((field) => field.kind === kind);
19
18
  }
20
- getAll() {
21
- return Object.values(this.entries);
22
- }
23
- static from(fieldsToCreate, encoding) {
24
- return fieldsToCreate.reduce((fields, fieldArgs) => {
25
- fields.setField(new Field(fieldArgs));
26
- return fields;
27
- }, new Fields({ encoding }));
28
- }
29
19
  }