@jjrawlins/cdk-ami-builder 0.0.189 → 0.0.190

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 (173) hide show
  1. package/.jsii +12 -12
  2. package/cdkamibuilder/go.mod +1 -1
  3. package/cdkamibuilder/jsii/jsii.go +2 -2
  4. package/cdkamibuilder/version +1 -1
  5. package/lib/ImagePipeline/ImagePipeline.js +1 -1
  6. package/lib/Lambdas/CheckStateMachineStatus/CheckStateMachineStatus-function.js +1 -1
  7. package/lib/Lambdas/StartStateMachine/StartStateMachine-function.js +1 -1
  8. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/BundleInstanceCommand.d.ts +4 -2
  9. package/node_modules/@aws-sdk/client-ec2/package.json +6 -6
  10. package/node_modules/@aws-sdk/client-ecs/README.md +91 -7
  11. package/node_modules/@aws-sdk/client-ecs/dist-cjs/index.js +530 -33
  12. package/node_modules/@aws-sdk/client-ecs/dist-cjs/models/errors.js +37 -11
  13. package/node_modules/@aws-sdk/client-ecs/dist-cjs/schemas/schemas_0.js +508 -100
  14. package/node_modules/@aws-sdk/client-ecs/dist-es/ECS.js +34 -0
  15. package/node_modules/@aws-sdk/client-ecs/dist-es/commands/CreateDaemonCommand.js +16 -0
  16. package/node_modules/@aws-sdk/client-ecs/dist-es/commands/DeleteDaemonCommand.js +16 -0
  17. package/node_modules/@aws-sdk/client-ecs/dist-es/commands/DeleteDaemonTaskDefinitionCommand.js +16 -0
  18. package/node_modules/@aws-sdk/client-ecs/dist-es/commands/DescribeDaemonCommand.js +16 -0
  19. package/node_modules/@aws-sdk/client-ecs/dist-es/commands/DescribeDaemonDeploymentsCommand.js +16 -0
  20. package/node_modules/@aws-sdk/client-ecs/dist-es/commands/DescribeDaemonRevisionsCommand.js +16 -0
  21. package/node_modules/@aws-sdk/client-ecs/dist-es/commands/DescribeDaemonTaskDefinitionCommand.js +16 -0
  22. package/node_modules/@aws-sdk/client-ecs/dist-es/commands/ListDaemonDeploymentsCommand.js +16 -0
  23. package/node_modules/@aws-sdk/client-ecs/dist-es/commands/ListDaemonTaskDefinitionsCommand.js +16 -0
  24. package/node_modules/@aws-sdk/client-ecs/dist-es/commands/ListDaemonsCommand.js +16 -0
  25. package/node_modules/@aws-sdk/client-ecs/dist-es/commands/RegisterDaemonTaskDefinitionCommand.js +16 -0
  26. package/node_modules/@aws-sdk/client-ecs/dist-es/commands/UpdateDaemonCommand.js +16 -0
  27. package/node_modules/@aws-sdk/client-ecs/dist-es/commands/index.js +12 -0
  28. package/node_modules/@aws-sdk/client-ecs/dist-es/index.js +1 -0
  29. package/node_modules/@aws-sdk/client-ecs/dist-es/models/enums.js +72 -33
  30. package/node_modules/@aws-sdk/client-ecs/dist-es/models/errors.js +32 -8
  31. package/node_modules/@aws-sdk/client-ecs/dist-es/models/models_1.js +1 -0
  32. package/node_modules/@aws-sdk/client-ecs/dist-es/schemas/schemas_0.js +500 -93
  33. package/node_modules/@aws-sdk/client-ecs/dist-es/waiters/index.js +5 -0
  34. package/node_modules/@aws-sdk/client-ecs/dist-es/waiters/waitForDaemonActive.js +40 -0
  35. package/node_modules/@aws-sdk/client-ecs/dist-es/waiters/waitForDaemonDeploymentStopped.js +54 -0
  36. package/node_modules/@aws-sdk/client-ecs/dist-es/waiters/waitForDaemonDeploymentSuccessful.js +99 -0
  37. package/node_modules/@aws-sdk/client-ecs/dist-es/waiters/waitForDaemonTaskDefinitionActive.js +49 -0
  38. package/node_modules/@aws-sdk/client-ecs/dist-es/waiters/waitForDaemonTaskDefinitionDeleted.js +31 -0
  39. package/node_modules/@aws-sdk/client-ecs/dist-types/ECS.d.ts +116 -0
  40. package/node_modules/@aws-sdk/client-ecs/dist-types/ECSClient.d.ts +14 -2
  41. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/CreateDaemonCommand.d.ts +150 -0
  42. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/CreateTaskSetCommand.d.ts +1 -1
  43. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DeleteDaemonCommand.d.ts +121 -0
  44. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DeleteDaemonTaskDefinitionCommand.d.ts +101 -0
  45. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DeleteTaskDefinitionsCommand.d.ts +1 -0
  46. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DeleteTaskSetCommand.d.ts +1 -1
  47. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DeregisterContainerInstanceCommand.d.ts +1 -1
  48. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DeregisterTaskDefinitionCommand.d.ts +1 -0
  49. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeContainerInstancesCommand.d.ts +1 -1
  50. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeDaemonCommand.d.ts +148 -0
  51. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeDaemonDeploymentsCommand.d.ts +229 -0
  52. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeDaemonRevisionsCommand.d.ts +155 -0
  53. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeDaemonTaskDefinitionCommand.d.ts +286 -0
  54. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeTaskDefinitionCommand.d.ts +1 -0
  55. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeTaskSetsCommand.d.ts +1 -1
  56. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeTasksCommand.d.ts +1 -1
  57. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/GetTaskProtectionCommand.d.ts +1 -1
  58. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/ListDaemonDeploymentsCommand.d.ts +145 -0
  59. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/ListDaemonTaskDefinitionsCommand.d.ts +129 -0
  60. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/ListDaemonsCommand.d.ts +133 -0
  61. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/ListTaskDefinitionsCommand.d.ts +2 -1
  62. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/ListTasksCommand.d.ts +1 -0
  63. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/RegisterContainerInstanceCommand.d.ts +1 -1
  64. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/RegisterDaemonTaskDefinitionCommand.d.ts +277 -0
  65. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/RegisterTaskDefinitionCommand.d.ts +2 -1
  66. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/RunTaskCommand.d.ts +1 -1
  67. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/StartTaskCommand.d.ts +1 -1
  68. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/StopTaskCommand.d.ts +1 -1
  69. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  70. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/UpdateContainerAgentCommand.d.ts +1 -1
  71. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/UpdateContainerInstancesStateCommand.d.ts +1 -1
  72. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/UpdateDaemonCommand.d.ts +149 -0
  73. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/UpdateTaskProtectionCommand.d.ts +1 -1
  74. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/UpdateTaskSetCommand.d.ts +1 -1
  75. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/index.d.ts +12 -0
  76. package/node_modules/@aws-sdk/client-ecs/dist-types/index.d.ts +1 -0
  77. package/node_modules/@aws-sdk/client-ecs/dist-types/models/enums.d.ts +155 -60
  78. package/node_modules/@aws-sdk/client-ecs/dist-types/models/errors.d.ts +32 -8
  79. package/node_modules/@aws-sdk/client-ecs/dist-types/models/models_0.d.ts +2630 -2613
  80. package/node_modules/@aws-sdk/client-ecs/dist-types/models/models_1.d.ts +1245 -0
  81. package/node_modules/@aws-sdk/client-ecs/dist-types/schemas/schemas_0.d.ts +58 -0
  82. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/ECS.d.ts +251 -0
  83. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/ECSClient.d.ts +72 -0
  84. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/CreateDaemonCommand.d.ts +47 -0
  85. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/CreateTaskSetCommand.d.ts +1 -1
  86. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/DeleteDaemonCommand.d.ts +47 -0
  87. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/DeleteDaemonTaskDefinitionCommand.d.ts +51 -0
  88. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/DeleteTaskSetCommand.d.ts +1 -1
  89. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/DescribeDaemonCommand.d.ts +50 -0
  90. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/DescribeDaemonDeploymentsCommand.d.ts +51 -0
  91. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/DescribeDaemonRevisionsCommand.d.ts +51 -0
  92. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/DescribeDaemonTaskDefinitionCommand.d.ts +51 -0
  93. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/DescribeTaskSetsCommand.d.ts +1 -1
  94. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/DescribeTasksCommand.d.ts +1 -1
  95. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/GetTaskProtectionCommand.d.ts +1 -1
  96. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/ListDaemonDeploymentsCommand.d.ts +51 -0
  97. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/ListDaemonTaskDefinitionsCommand.d.ts +51 -0
  98. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/ListDaemonsCommand.d.ts +47 -0
  99. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/ListTaskDefinitionsCommand.d.ts +2 -4
  100. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/RegisterDaemonTaskDefinitionCommand.d.ts +51 -0
  101. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/RegisterTaskDefinitionCommand.d.ts +1 -1
  102. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/RunTaskCommand.d.ts +1 -1
  103. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/StartTaskCommand.d.ts +1 -1
  104. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/StopTaskCommand.d.ts +1 -1
  105. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
  106. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/UpdateDaemonCommand.d.ts +47 -0
  107. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/UpdateTaskProtectionCommand.d.ts +1 -1
  108. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/UpdateTaskSetCommand.d.ts +1 -1
  109. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/index.d.ts +12 -0
  110. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/index.d.ts +1 -0
  111. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/models/enums.d.ts +92 -40
  112. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/models/errors.d.ts +21 -7
  113. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/models/models_0.d.ts +338 -324
  114. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/models/models_1.d.ts +322 -0
  115. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/schemas/schemas_0.d.ts +58 -0
  116. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/waiters/index.d.ts +5 -0
  117. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/waiters/waitForDaemonActive.d.ts +11 -0
  118. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/waiters/waitForDaemonDeploymentStopped.d.ts +11 -0
  119. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/waiters/waitForDaemonDeploymentSuccessful.d.ts +11 -0
  120. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/waiters/waitForDaemonTaskDefinitionActive.d.ts +11 -0
  121. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/waiters/waitForDaemonTaskDefinitionDeleted.d.ts +11 -0
  122. package/node_modules/@aws-sdk/client-ecs/dist-types/waiters/index.d.ts +5 -0
  123. package/node_modules/@aws-sdk/client-ecs/dist-types/waiters/waitForDaemonActive.d.ts +14 -0
  124. package/node_modules/@aws-sdk/client-ecs/dist-types/waiters/waitForDaemonDeploymentStopped.d.ts +14 -0
  125. package/node_modules/@aws-sdk/client-ecs/dist-types/waiters/waitForDaemonDeploymentSuccessful.d.ts +14 -0
  126. package/node_modules/@aws-sdk/client-ecs/dist-types/waiters/waitForDaemonTaskDefinitionActive.d.ts +14 -0
  127. package/node_modules/@aws-sdk/client-ecs/dist-types/waiters/waitForDaemonTaskDefinitionDeleted.d.ts +14 -0
  128. package/node_modules/@aws-sdk/client-ecs/package.json +6 -6
  129. package/node_modules/@aws-sdk/client-kms/package.json +6 -6
  130. package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +1 -0
  131. package/node_modules/@aws-sdk/client-s3/dist-es/commands/ListBucketMetricsConfigurationsCommand.js +1 -0
  132. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketInventoryConfigurationCommand.d.ts +4 -0
  133. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketMetricsConfigurationCommand.d.ts +39 -8
  134. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketMetricsConfigurationCommand.d.ts +39 -8
  135. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListBucketMetricsConfigurationsCommand.d.ts +39 -8
  136. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +39 -8
  137. package/node_modules/@aws-sdk/client-s3/dist-types/models/models_0.d.ts +51 -0
  138. package/node_modules/@aws-sdk/client-s3/package.json +7 -7
  139. package/node_modules/@aws-sdk/client-secrets-manager/package.json +6 -6
  140. package/node_modules/@aws-sdk/client-sfn/package.json +6 -6
  141. package/node_modules/@aws-sdk/client-sns/package.json +6 -6
  142. package/node_modules/@aws-sdk/client-sqs/package.json +6 -6
  143. package/node_modules/@aws-sdk/client-ssm/package.json +6 -6
  144. package/node_modules/@aws-sdk/credential-provider-ini/package.json +5 -5
  145. package/node_modules/@aws-sdk/credential-provider-login/package.json +2 -2
  146. package/node_modules/@aws-sdk/credential-provider-node/package.json +4 -4
  147. package/node_modules/@aws-sdk/credential-provider-sso/package.json +3 -3
  148. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +2 -2
  149. package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  150. package/node_modules/@aws-sdk/nested-clients/package.json +5 -5
  151. package/node_modules/@aws-sdk/token-providers/package.json +2 -2
  152. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  153. package/node_modules/@smithy/middleware-retry/package.json +2 -2
  154. package/node_modules/@smithy/util-retry/dist-cjs/index.js +9 -7
  155. package/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js +9 -7
  156. package/node_modules/@smithy/util-retry/dist-types/DefaultRateLimiter.d.ts +71 -1
  157. package/node_modules/@smithy/util-retry/dist-types/ts3.4/DefaultRateLimiter.d.ts +71 -1
  158. package/node_modules/@smithy/util-retry/package.json +1 -1
  159. package/node_modules/lodash/README.md +2 -2
  160. package/node_modules/lodash/_baseOrderBy.js +1 -1
  161. package/node_modules/lodash/_baseUnset.js +7 -20
  162. package/node_modules/lodash/_setCacheHas.js +1 -1
  163. package/node_modules/lodash/compact.js +1 -1
  164. package/node_modules/lodash/core.js +3 -3
  165. package/node_modules/lodash/core.min.js +26 -25
  166. package/node_modules/lodash/fromPairs.js +3 -1
  167. package/node_modules/lodash/lodash.js +38 -27
  168. package/node_modules/lodash/lodash.min.js +125 -129
  169. package/node_modules/lodash/package.json +4 -2
  170. package/node_modules/lodash/random.js +9 -0
  171. package/node_modules/lodash/template.js +16 -4
  172. package/node_modules/lodash/templateSettings.js +4 -0
  173. package/package.json +12 -12
@@ -3,10 +3,30 @@ import { RateLimiter } from "./types";
3
3
  * @public
4
4
  */
5
5
  export interface DefaultRateLimiterOptions {
6
+ /**
7
+ * Coefficient for controlling how aggressively the rate decreases on throttle.
8
+ * @defaultValue 0.7
9
+ */
6
10
  beta?: number;
11
+ /**
12
+ * Minimum token bucket capacity in adaptive-tokens.
13
+ * @defaultValue 1
14
+ */
7
15
  minCapacity?: number;
16
+ /**
17
+ * Minimum fill rate in adaptive-tokens per second.
18
+ * @defaultValue 0.5
19
+ */
8
20
  minFillRate?: number;
21
+ /**
22
+ * Scale constant used in the cubic rate calculation.
23
+ * @defaultValue 0.4
24
+ */
9
25
  scaleConstant?: number;
26
+ /**
27
+ * Smoothing factor for the exponential moving average of the measured send rate.
28
+ * @defaultValue 0.8
29
+ */
10
30
  smooth?: number;
11
31
  }
12
32
  /**
@@ -22,16 +42,51 @@ export declare class DefaultRateLimiter implements RateLimiter {
22
42
  private minFillRate;
23
43
  private scaleConstant;
24
44
  private smooth;
25
- private currentCapacity;
45
+ /**
46
+ * Whether adaptive retry rate limiting is active.
47
+ * Remains `false` until a throttling error is detected.
48
+ */
26
49
  private enabled;
50
+ /**
51
+ * Current number of available adaptive-tokens. When exhausted, requests wait based on fill rate.
52
+ */
53
+ private availableTokens;
54
+ /**
55
+ * The most recent maximum fill rate in adaptive-tokens per second, recorded at the last throttle event.
56
+ */
27
57
  private lastMaxRate;
58
+ /**
59
+ * Smoothed measured send rate in requests per second.
60
+ */
28
61
  private measuredTxRate;
62
+ /**
63
+ * Number of requests observed in the current measurement time bucket.
64
+ */
29
65
  private requestCount;
66
+ /**
67
+ * Current token bucket fill rate in adaptive-tokens per second. Defaults to {@link minFillRate}.
68
+ */
30
69
  private fillRate;
70
+ /**
71
+ * Timestamp in seconds of the most recent throttle event.
72
+ */
31
73
  private lastThrottleTime;
74
+ /**
75
+ * Timestamp in seconds of the last token bucket refill.
76
+ */
32
77
  private lastTimestamp;
78
+ /**
79
+ * The time bucket (in seconds) used for measuring the send rate.
80
+ */
33
81
  private lastTxRateBucket;
82
+ /**
83
+ * Maximum token bucket capacity in adaptive-tokens. Defaults to {@link minCapacity}.
84
+ * Updated in {@link updateTokenBucketRate} to match the new fill rate, floored by {@link minCapacity}.
85
+ */
34
86
  private maxCapacity;
87
+ /**
88
+ * Calculated time window in seconds used in the cubic rate recovery function.
89
+ */
35
90
  private timeWindow;
36
91
  constructor(options?: DefaultRateLimiterOptions);
37
92
  private getCurrentTimeInSeconds;
@@ -40,9 +95,24 @@ export declare class DefaultRateLimiter implements RateLimiter {
40
95
  private refillTokenBucket;
41
96
  updateClientSendingRate(response: any): void;
42
97
  private calculateTimeWindow;
98
+ /**
99
+ * Returns a new fill rate in adaptive-tokens per second by reducing
100
+ * the given rate by a factor of {@link beta}.
101
+ */
43
102
  private cubicThrottle;
103
+ /**
104
+ * Returns a new fill rate in adaptive-tokens per second using a CUBIC
105
+ * congestion control curve. The rate recovers toward {@link lastMaxRate},
106
+ * then continues growing beyond it. The caller caps the result at
107
+ * `2 * measuredTxRate`.
108
+ */
44
109
  private cubicSuccess;
45
110
  private enableTokenBucket;
111
+ /**
112
+ * Set a new fill rate for adaptive-tokens.
113
+ * The max capacity is updated to allow for one second of time to approximately
114
+ * refill the adaptive-token capacity.
115
+ */
46
116
  private updateTokenBucketRate;
47
117
  private updateMeasuredRate;
48
118
  private getPrecise;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-retry",
3
- "version": "4.2.12",
3
+ "version": "4.2.13",
4
4
  "description": "Shared retry utilities to be used in middleware packages.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -1,4 +1,4 @@
1
- # lodash v4.17.23
1
+ # lodash v4.18.1
2
2
 
3
3
  The [Lodash](https://lodash.com/) library exported as [Node.js](https://nodejs.org/) modules.
4
4
 
@@ -28,7 +28,7 @@ var at = require('lodash/at');
28
28
  var curryN = require('lodash/fp/curryN');
29
29
  ```
30
30
 
31
- See the [package source](https://github.com/lodash/lodash/tree/4.17.23-npm) for more details.
31
+ See the [package source](https://github.com/lodash/lodash/tree/4.18.1-npm) for more details.
32
32
 
33
33
  **Note:**<br>
34
34
  Install [n_](https://www.npmjs.com/package/n_) for Lodash use in the Node.js < 6 REPL.
@@ -23,7 +23,7 @@ function baseOrderBy(collection, iteratees, orders) {
23
23
  if (isArray(iteratee)) {
24
24
  return function(value) {
25
25
  return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
26
- }
26
+ };
27
27
  }
28
28
  return iteratee;
29
29
  });
@@ -20,7 +20,9 @@ var hasOwnProperty = objectProto.hasOwnProperty;
20
20
  function baseUnset(object, path) {
21
21
  path = castPath(path, object);
22
22
 
23
- // Prevent prototype pollution, see: https://github.com/lodash/lodash/security/advisories/GHSA-xxjr-mmjv-4gpg
23
+ // Prevent prototype pollution:
24
+ // https://github.com/lodash/lodash/security/advisories/GHSA-xxjr-mmjv-4gpg
25
+ // https://github.com/lodash/lodash/security/advisories/GHSA-f23m-r3pf-42rh
24
26
  var index = -1,
25
27
  length = path.length;
26
28
 
@@ -28,32 +30,17 @@ function baseUnset(object, path) {
28
30
  return true;
29
31
  }
30
32
 
31
- var isRootPrimitive = object == null || (typeof object !== 'object' && typeof object !== 'function');
32
-
33
33
  while (++index < length) {
34
- var key = path[index];
35
-
36
- // skip non-string keys (e.g., Symbols, numbers)
37
- if (typeof key !== 'string') {
38
- continue;
39
- }
34
+ var key = toKey(path[index]);
40
35
 
41
36
  // Always block "__proto__" anywhere in the path if it's not expected
42
37
  if (key === '__proto__' && !hasOwnProperty.call(object, '__proto__')) {
43
38
  return false;
44
39
  }
45
40
 
46
- // Block "constructor.prototype" chains
47
- if (key === 'constructor' &&
48
- (index + 1) < length &&
49
- typeof path[index + 1] === 'string' &&
50
- path[index + 1] === 'prototype') {
51
-
52
- // Allow ONLY when the path starts at a primitive root, e.g., _.unset(0, 'constructor.prototype.a')
53
- if (isRootPrimitive && index === 0) {
54
- continue;
55
- }
56
-
41
+ // Block constructor/prototype as non-terminal traversal keys to prevent
42
+ // escaping the object graph into built-in constructors and prototypes.
43
+ if ((key === 'constructor' || key === 'prototype') && index < length - 1) {
57
44
  return false;
58
45
  }
59
46
  }
@@ -5,7 +5,7 @@
5
5
  * @name has
6
6
  * @memberOf SetCache
7
7
  * @param {*} value The value to search for.
8
- * @returns {number} Returns `true` if `value` is found, else `false`.
8
+ * @returns {boolean} Returns `true` if `value` is found, else `false`.
9
9
  */
10
10
  function setCacheHas(value) {
11
11
  return this.__data__.has(value);
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Creates an array with all falsey values removed. The values `false`, `null`,
3
- * `0`, `""`, `undefined`, and `NaN` are falsey.
3
+ * `0`, `-0`, `0n`, `""`, `undefined`, and `NaN` are falsy.
4
4
  *
5
5
  * @static
6
6
  * @memberOf _
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Lodash (Custom Build) <https://lodash.com/>
4
- * Build: `lodash core -o ./dist/lodash.core.js`
4
+ * Build: `lodash core --repo lodash/lodash#4.18.1 -o ./core.js`
5
5
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
6
6
  * Released under MIT license <https://lodash.com/license>
7
7
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
@@ -13,7 +13,7 @@
13
13
  var undefined;
14
14
 
15
15
  /** Used as the semantic version number. */
16
- var VERSION = '4.17.23';
16
+ var VERSION = '4.18.1';
17
17
 
18
18
  /** Error message constants. */
19
19
  var FUNC_ERROR_TEXT = 'Expected a function';
@@ -1477,7 +1477,7 @@
1477
1477
 
1478
1478
  /**
1479
1479
  * Creates an array with all falsey values removed. The values `false`, `null`,
1480
- * `0`, `""`, `undefined`, and `NaN` are falsey.
1480
+ * `0`, `-0`, `0n`, `""`, `undefined`, and `NaN` are falsy.
1481
1481
  *
1482
1482
  * @static
1483
1483
  * @memberOf _
@@ -1,29 +1,30 @@
1
1
  /**
2
2
  * @license
3
3
  * Lodash (Custom Build) lodash.com/license | Underscore.js 1.8.3 underscorejs.org/LICENSE
4
- * Build: `lodash core -o ./dist/lodash.core.js`
4
+ * Build: `lodash core --repo lodash/lodash#4.18.1 -o ./core.js`
5
5
  */
6
- ;(function(){function n(n){return H(n)&&pn.call(n,"callee")&&!yn.call(n,"callee")}function t(n,t){return n.push.apply(n,t),n}function r(n){return function(t){return null==t?Z:t[n]}}function e(n,t,r,e,u){return u(n,function(n,u,o){r=e?(e=false,n):t(r,n,u,o)}),r}function u(n,t){return j(t,function(t){return n[t]})}function o(n){return n instanceof i?n:new i(n)}function i(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t}function c(n,t,r){if(typeof n!="function")throw new TypeError("Expected a function");
7
- return setTimeout(function(){n.apply(Z,r)},t)}function f(n,t){var r=true;return mn(n,function(n,e,u){return r=!!t(n,e,u)}),r}function a(n,t,r){for(var e=-1,u=n.length;++e<u;){var o=n[e],i=t(o);if(null!=i&&(c===Z?i===i:r(i,c)))var c=i,f=o}return f}function l(n,t){var r=[];return mn(n,function(n,e,u){t(n,e,u)&&r.push(n)}),r}function p(n,r,e,u,o){var i=-1,c=n.length;for(e||(e=R),o||(o=[]);++i<c;){var f=n[i];0<r&&e(f)?1<r?p(f,r-1,e,u,o):t(o,f):u||(o[o.length]=f)}return o}function s(n,t){return n&&On(n,t,Dn);
8
- }function h(n,t){return l(t,function(t){return U(n[t])})}function v(n,t){return n>t}function b(n,t,r,e,u){return n===t||(null==n||null==t||!H(n)&&!H(t)?n!==n&&t!==t:y(n,t,r,e,b,u))}function y(n,t,r,e,u,o){var i=Nn(n),c=Nn(t),f=i?"[object Array]":hn.call(n),a=c?"[object Array]":hn.call(t),f="[object Arguments]"==f?"[object Object]":f,a="[object Arguments]"==a?"[object Object]":a,l="[object Object]"==f,c="[object Object]"==a,a=f==a;o||(o=[]);var p=An(o,function(t){return t[0]==n}),s=An(o,function(n){
9
- return n[0]==t});if(p&&s)return p[1]==t;if(o.push([n,t]),o.push([t,n]),a&&!l){if(i)r=T(n,t,r,e,u,o);else n:{switch(f){case"[object Boolean]":case"[object Date]":case"[object Number]":r=J(+n,+t);break n;case"[object Error]":r=n.name==t.name&&n.message==t.message;break n;case"[object RegExp]":case"[object String]":r=n==t+"";break n}r=false}return o.pop(),r}return 1&r||(i=l&&pn.call(n,"__wrapped__"),f=c&&pn.call(t,"__wrapped__"),!i&&!f)?!!a&&(r=B(n,t,r,e,u,o),o.pop(),r):(i=i?n.value():n,f=f?t.value():t,
10
- r=u(i,f,r,e,o),o.pop(),r)}function g(n){return typeof n=="function"?n:null==n?X:(typeof n=="object"?d:r)(n)}function _(n,t){return n<t}function j(n,t){var r=-1,e=M(n)?Array(n.length):[];return mn(n,function(n,u,o){e[++r]=t(n,u,o)}),e}function d(n){var t=_n(n);return function(r){var e=t.length;if(null==r)return!e;for(r=Object(r);e--;){var u=t[e];if(!(u in r&&b(n[u],r[u],3)))return false}return true}}function m(n,t){return n=Object(n),C(t,function(t,r){return r in n&&(t[r]=n[r]),t},{})}function O(n){return xn(I(n,void 0,X),n+"");
11
- }function x(n,t,r){var e=-1,u=n.length;for(0>t&&(t=-t>u?0:u+t),r=r>u?u:r,0>r&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0,r=Array(u);++e<u;)r[e]=n[e+t];return r}function A(n){return x(n,0,n.length)}function E(n,t){var r;return mn(n,function(n,e,u){return r=t(n,e,u),!r}),!!r}function w(n,r){return C(r,function(n,r){return r.func.apply(r.thisArg,t([n],r.args))},n)}function k(n,t,r){var e=!r;r||(r={});for(var u=-1,o=t.length;++u<o;){var i=t[u],c=Z;if(c===Z&&(c=n[i]),e)r[i]=c;else{var f=r,a=f[i];pn.call(f,i)&&J(a,c)&&(c!==Z||i in f)||(f[i]=c);
12
- }}return r}function N(n){return O(function(t,r){var e=-1,u=r.length,o=1<u?r[u-1]:Z,o=3<n.length&&typeof o=="function"?(u--,o):Z;for(t=Object(t);++e<u;){var i=r[e];i&&n(t,i,e,o)}return t})}function F(n){return function(){var t=arguments,r=dn(n.prototype),t=n.apply(r,t);return V(t)?t:r}}function S(n,t,r){function e(){for(var o=-1,i=arguments.length,c=-1,f=r.length,a=Array(f+i),l=this&&this!==on&&this instanceof e?u:n;++c<f;)a[c]=r[c];for(;i--;)a[c++]=arguments[++o];return l.apply(t,a)}if(typeof n!="function")throw new TypeError("Expected a function");
13
- var u=F(n);return e}function T(n,t,r,e,u,o){var i=n.length,c=t.length;if(i!=c&&!(1&r&&c>i))return false;var c=o.get(n),f=o.get(t);if(c&&f)return c==t&&f==n;for(var c=-1,f=true,a=2&r?[]:Z;++c<i;){var l=n[c],p=t[c];if(void 0!==Z){f=false;break}if(a){if(!E(t,function(n,t){if(!P(a,t)&&(l===n||u(l,n,r,e,o)))return a.push(t)})){f=false;break}}else if(l!==p&&!u(l,p,r,e,o)){f=false;break}}return f}function B(n,t,r,e,u,o){var i=1&r,c=Dn(n),f=c.length,a=Dn(t).length;if(f!=a&&!i)return false;for(a=f;a--;){var l=c[a];if(!(i?l in t:pn.call(t,l)))return false;
14
- }var p=o.get(n),l=o.get(t);if(p&&l)return p==t&&l==n;for(p=true;++a<f;){var l=c[a],s=n[l],h=t[l];if(void 0!==Z||s!==h&&!u(s,h,r,e,o)){p=false;break}i||(i="constructor"==l)}return p&&!i&&(r=n.constructor,e=t.constructor,r!=e&&"constructor"in n&&"constructor"in t&&!(typeof r=="function"&&r instanceof r&&typeof e=="function"&&e instanceof e)&&(p=false)),p}function R(t){return Nn(t)||n(t)}function D(n){var t=[];if(null!=n)for(var r in Object(n))t.push(r);return t}function I(n,t,r){return t=jn(t===Z?n.length-1:t,0),
15
- function(){for(var e=arguments,u=-1,o=jn(e.length-t,0),i=Array(o);++u<o;)i[u]=e[t+u];for(u=-1,o=Array(t+1);++u<t;)o[u]=e[u];return o[t]=r(i),n.apply(this,o)}}function $(n){return(null==n?0:n.length)?p(n,1):[]}function q(n){return n&&n.length?n[0]:Z}function P(n,t,r){var e=null==n?0:n.length;r=typeof r=="number"?0>r?jn(e+r,0):r:0,r=(r||0)-1;for(var u=t===t;++r<e;){var o=n[r];if(u?o===t:o!==o)return r}return-1}function z(n,t){return mn(n,g(t))}function C(n,t,r){return e(n,g(t),r,3>arguments.length,mn);
16
- }function G(n,t){var r;if(typeof t!="function")throw new TypeError("Expected a function");return n=Fn(n),function(){return 0<--n&&(r=t.apply(this,arguments)),1>=n&&(t=Z),r}}function J(n,t){return n===t||n!==n&&t!==t}function M(n){var t;return(t=null!=n)&&(t=n.length,t=typeof t=="number"&&-1<t&&0==t%1&&9007199254740991>=t),t&&!U(n)}function U(n){return!!V(n)&&(n=hn.call(n),"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n)}function V(n){var t=typeof n;
17
- return null!=n&&("object"==t||"function"==t)}function H(n){return null!=n&&typeof n=="object"}function K(n){return typeof n=="number"||H(n)&&"[object Number]"==hn.call(n)}function L(n){return typeof n=="string"||!Nn(n)&&H(n)&&"[object String]"==hn.call(n)}function Q(n){return typeof n=="string"?n:null==n?"":n+""}function W(n){return null==n?[]:u(n,Dn(n))}function X(n){return n}function Y(n,r,e){var u=Dn(r),o=h(r,u);null!=e||V(r)&&(o.length||!u.length)||(e=r,r=n,n=this,o=h(r,Dn(r)));var i=!(V(e)&&"chain"in e&&!e.chain),c=U(n);
18
- return mn(o,function(e){var u=r[e];n[e]=u,c&&(n.prototype[e]=function(){var r=this.__chain__;if(i||r){var e=n(this.__wrapped__);return(e.__actions__=A(this.__actions__)).push({func:u,args:arguments,thisArg:n}),e.__chain__=r,e}return u.apply(n,t([this.value()],arguments))})}),n}var Z,nn=1/0,tn=/[&<>"']/g,rn=RegExp(tn.source),en=/^(?:0|[1-9]\d*)$/,un=typeof self=="object"&&self&&self.Object===Object&&self,on=typeof global=="object"&&global&&global.Object===Object&&global||un||Function("return this")(),cn=(un=typeof exports=="object"&&exports&&!exports.nodeType&&exports)&&typeof module=="object"&&module&&!module.nodeType&&module,fn=function(n){
19
- return function(t){return null==n?Z:n[t]}}({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),an=Array.prototype,ln=Object.prototype,pn=ln.hasOwnProperty,sn=0,hn=ln.toString,vn=on._,bn=Object.create,yn=ln.propertyIsEnumerable,gn=on.isFinite,_n=function(n,t){return function(r){return n(t(r))}}(Object.keys,Object),jn=Math.max,dn=function(){function n(){}return function(t){return V(t)?bn?bn(t):(n.prototype=t,t=new n,n.prototype=Z,t):{}}}();i.prototype=dn(o.prototype),i.prototype.constructor=i;
20
- var mn=function(n,t){return function(r,e){if(null==r)return r;if(!M(r))return n(r,e);for(var u=r.length,o=t?u:-1,i=Object(r);(t?o--:++o<u)&&false!==e(i[o],o,i););return r}}(s),On=function(n){return function(t,r,e){var u=-1,o=Object(t);e=e(t);for(var i=e.length;i--;){var c=e[n?i:++u];if(false===r(o[c],c,o))break}return t}}(),xn=X,An=function(n){return function(t,r,e){var u=Object(t);if(!M(t)){var o=g(r);t=Dn(t),r=function(n){return o(u[n],n,u)}}return r=n(t,r,e),-1<r?u[o?t[r]:r]:Z}}(function(n,t,r){var e=null==n?0:n.length;
21
- if(!e)return-1;r=null==r?0:Fn(r),0>r&&(r=jn(e+r,0));n:{for(t=g(t),e=n.length,r+=-1;++r<e;)if(t(n[r],r,n)){n=r;break n}n=-1}return n}),En=O(function(n,t,r){return S(n,t,r)}),wn=O(function(n,t){return c(n,1,t)}),kn=O(function(n,t,r){return c(n,Sn(t)||0,r)}),Nn=Array.isArray,Fn=Number,Sn=Number,Tn=N(function(n,t){k(t,_n(t),n)}),Bn=N(function(n,t){k(t,D(t),n)}),Rn=O(function(n,t){n=Object(n);var r,e=-1,u=t.length,o=2<u?t[2]:Z;if(r=o){r=t[0];var i=t[1];if(V(o)){var c=typeof i;if("number"==c){if(c=M(o))var c=o.length,f=typeof i,c=null==c?9007199254740991:c,c=!!c&&("number"==f||"symbol"!=f&&en.test(i))&&-1<i&&0==i%1&&i<c;
22
- }else c="string"==c&&i in o;r=!!c&&J(o[i],r)}else r=false}for(r&&(u=1);++e<u;)for(o=t[e],r=In(o),i=-1,c=r.length;++i<c;){var f=r[i],a=n[f];(a===Z||J(a,ln[f])&&!pn.call(n,f))&&(n[f]=o[f])}return n}),Dn=_n,In=D,$n=function(n){return xn(I(n,Z,$),n+"")}(function(n,t){return null==n?{}:m(n,t)});o.assignIn=Bn,o.before=G,o.bind=En,o.chain=function(n){return n=o(n),n.__chain__=true,n},o.compact=function(n){return l(n,Boolean)},o.concat=function(){var n=arguments.length;if(!n)return[];for(var r=Array(n-1),e=arguments[0];n--;)r[n-1]=arguments[n];
23
- return t(Nn(e)?A(e):[e],p(r,1))},o.create=function(n,t){var r=dn(n);return null==t?r:Tn(r,t)},o.defaults=Rn,o.defer=wn,o.delay=kn,o.filter=function(n,t){return l(n,g(t))},o.flatten=$,o.flattenDeep=function(n){return(null==n?0:n.length)?p(n,nn):[]},o.iteratee=g,o.keys=Dn,o.map=function(n,t){return j(n,g(t))},o.matches=function(n){return d(Tn({},n))},o.mixin=Y,o.negate=function(n){if(typeof n!="function")throw new TypeError("Expected a function");return function(){return!n.apply(this,arguments)}},o.once=function(n){
24
- return G(2,n)},o.pick=$n,o.slice=function(n,t,r){var e=null==n?0:n.length;return r=r===Z?e:+r,e?x(n,null==t?0:+t,r):[]},o.sortBy=function(n,t){var e=0;return t=g(t),j(j(n,function(n,r,u){return{value:n,index:e++,criteria:t(n,r,u)}}).sort(function(n,t){var r;n:{r=n.criteria;var e=t.criteria;if(r!==e){var u=r!==Z,o=null===r,i=r===r,c=e!==Z,f=null===e,a=e===e;if(!f&&r>e||o&&c&&a||!u&&a||!i){r=1;break n}if(!o&&r<e||f&&u&&i||!c&&i||!a){r=-1;break n}}r=0}return r||n.index-t.index}),r("value"))},o.tap=function(n,t){
25
- return t(n),n},o.thru=function(n,t){return t(n)},o.toArray=function(n){return M(n)?n.length?A(n):[]:W(n)},o.values=W,o.extend=Bn,Y(o,o),o.clone=function(n){return V(n)?Nn(n)?A(n):k(n,_n(n)):n},o.escape=function(n){return(n=Q(n))&&rn.test(n)?n.replace(tn,fn):n},o.every=function(n,t,r){return t=r?Z:t,f(n,g(t))},o.find=An,o.forEach=z,o.has=function(n,t){return null!=n&&pn.call(n,t)},o.head=q,o.identity=X,o.indexOf=P,o.isArguments=n,o.isArray=Nn,o.isBoolean=function(n){return true===n||false===n||H(n)&&"[object Boolean]"==hn.call(n);
26
- },o.isDate=function(n){return H(n)&&"[object Date]"==hn.call(n)},o.isEmpty=function(t){return M(t)&&(Nn(t)||L(t)||U(t.splice)||n(t))?!t.length:!_n(t).length},o.isEqual=function(n,t){return b(n,t)},o.isFinite=function(n){return typeof n=="number"&&gn(n)},o.isFunction=U,o.isNaN=function(n){return K(n)&&n!=+n},o.isNull=function(n){return null===n},o.isNumber=K,o.isObject=V,o.isRegExp=function(n){return H(n)&&"[object RegExp]"==hn.call(n)},o.isString=L,o.isUndefined=function(n){return n===Z},o.last=function(n){
27
- var t=null==n?0:n.length;return t?n[t-1]:Z},o.max=function(n){return n&&n.length?a(n,X,v):Z},o.min=function(n){return n&&n.length?a(n,X,_):Z},o.noConflict=function(){return on._===this&&(on._=vn),this},o.noop=function(){},o.reduce=C,o.result=function(n,t,r){return t=null==n?Z:n[t],t===Z&&(t=r),U(t)?t.call(n):t},o.size=function(n){return null==n?0:(n=M(n)?n:_n(n),n.length)},o.some=function(n,t,r){return t=r?Z:t,E(n,g(t))},o.uniqueId=function(n){var t=++sn;return Q(n)+t},o.each=z,o.first=q,Y(o,function(){
28
- var n={};return s(o,function(t,r){pn.call(o.prototype,r)||(n[r]=t)}),n}(),{chain:false}),o.VERSION="4.17.23",mn("pop join replace reverse split push shift sort splice unshift".split(" "),function(n){var t=(/^(?:replace|split)$/.test(n)?String.prototype:an)[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|join|replace|shift)$/.test(n);o.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(Nn(u)?u:[],n)}return this[r](function(r){return t.apply(Nn(r)?r:[],n);
29
- })}}),o.prototype.toJSON=o.prototype.valueOf=o.prototype.value=function(){return w(this.__wrapped__,this.__actions__)},typeof define=="function"&&typeof define.amd=="object"&&define.amd?(on._=o, define(function(){return o})):cn?((cn.exports=o)._=o,un._=o):on._=o}).call(this);
6
+ ;(function(){function n(n,t){return n.push.apply(n,t),n}function t(n,t,r,e){for(var u=n.length,o=r+(e?1:-1);e?o--:++o<u;)if(t(n[o],o,n))return o;return-1}function r(n){return function(t){return null==t?nt:t[n]}}function e(n){return function(t){return null==n?nt:n[t]}}function u(n,t,r,e,u){return u(n,function(n,u,o){r=e?(e=false,n):t(r,n,u,o)}),r}function o(n,t){return E(t,function(t){return n[t]})}function i(n,t){return function(r){return n(t(r))}}function c(n){return n instanceof f?n:new f(n)}function f(n,t){
7
+ this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t}function a(n,t,r){var e=n[t];Rt.call(n,t)&&wn(e,r)&&(r!==nt||t in n)||l(n,t,r)}function l(n,t,r){n[t]=r}function p(n,t,r){if(typeof n!="function")throw new TypeError(rt);return setTimeout(function(){n.apply(nt,r)},t)}function s(n,t){var r=true;return Ut(n,function(n,e,u){return r=!!t(n,e,u)}),r}function h(n,t,r){for(var e=-1,u=n.length;++e<u;){var o=n[e],i=t(o);if(null!=i&&(c===nt?i===i&&true:r(i,c)))var c=i,f=o}return f}function v(n,t){var r=[];
8
+ return Ut(n,function(n,e,u){t(n,e,u)&&r.push(n)}),r}function y(t,r,e,u,o){var i=-1,c=t.length;for(e||(e=H),o||(o=[]);++i<c;){var f=t[i];r>0&&e(f)?r>1?y(f,r-1,e,u,o):n(o,f):u||(o[o.length]=f)}return o}function g(n,t){return n&&Vt(n,t,cr)}function _(n,t){return v(t,function(t){return Tn(n[t])})}function b(n){return W(n)}function j(n,t){return n>t}function d(n){return In(n)&&b(n)==ht}function m(n,t,r,e,u){return n===t||(null==n||null==t||!In(n)&&!In(t)?n!==n&&t!==t:O(n,t,r,e,m,u))}function O(n,t,r,e,u,o){
9
+ var i=Zt(n),c=Zt(t),f=i?lt:b(n),a=c?lt:b(t);f=f==at?bt:f,a=a==at?bt:a;var l=f==bt,p=a==bt,s=f==a;o||(o=[]);var h=Lt(o,function(t){return t[0]==n}),v=Lt(o,function(n){return n[0]==t});if(h&&v)return h[1]==t;if(o.push([n,t]),o.push([t,n]),s&&!l){var y=i?J(n,t,r,e,u,o):M(n,t,f,r,e,u,o);return o.pop(),y}if(!(r&et)){var g=l&&Rt.call(n,"__wrapped__"),_=p&&Rt.call(t,"__wrapped__");if(g||_){var j=g?n.value():n,d=_?t.value():t,y=u(j,d,r,e,o);return o.pop(),y}}if(!s)return false;var y=U(n,t,r,e,u,o);return o.pop(),
10
+ y}function x(n){return In(n)&&b(n)==dt}function w(n){return typeof n=="function"?n:null==n?Hn:(typeof n=="object"?N:r)(n)}function A(n,t){return n<t}function E(n,t){var r=-1,e=An(n)?Array(n.length):[];return Ut(n,function(n,u,o){e[++r]=t(n,u,o)}),e}function N(n){var t=Gt(n);return function(r){var e=t.length;if(null==r)return!e;for(r=Object(r);e--;){var u=t[e];if(!(u in r&&m(n[u],r[u],et|ut)))return false}return true}}function k(n,t){return n=Object(n),gn(t,function(t,r){return r in n&&(t[r]=n[r]),t},{})}
11
+ function F(n,t){return Kt(X(n,t,Hn),n+"")}function T(n,t,r){var e=-1,u=n.length;t<0&&(t=-t>u?0:u+t),r=r>u?u:r,r<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(u);++e<u;)o[e]=n[e+t];return o}function S(n){return T(n,0,n.length)}function B(n,t){var r;return Ut(n,function(n,e,u){return r=t(n,e,u),!r}),!!r}function I(t,r){var e=t;return gn(r,function(t,r){return r.func.apply(r.thisArg,n([t],r.args))},e)}function R(n,t){if(n!==t){var r=n!==nt,e=null===n,u=n===n,o=false,i=t!==nt,c=null===t,f=t===t,a=false;if(!c&&!a&&!o&&n>t||o&&i&&f&&!c&&!a||e&&i&&f||!r&&f||!u)return 1;
12
+ if(!e&&!o&&!a&&n<t||a&&r&&u&&!e&&!o||c&&r&&u||!i&&u||!f)return-1}return 0}function $(n,t,r,e){var u=!r;r||(r={});for(var o=-1,i=t.length;++o<i;){var c=t[o],f=e?e(r[c],n[c],c,r,n):nt;f===nt&&(f=n[c]),u?l(r,c,f):a(r,c,f)}return r}function q(n){return F(function(t,r){var e=-1,u=r.length,o=u>1?r[u-1]:nt;for(o=n.length>3&&typeof o=="function"?(u--,o):nt,t=Object(t);++e<u;){var i=r[e];i&&n(t,i,e,o)}return t})}function D(n,t){return function(r,e){if(null==r)return r;if(!An(r))return n(r,e);for(var u=r.length,o=t?u:-1,i=Object(r);(t?o--:++o<u)&&e(i[o],o,i)!==false;);
13
+ return r}}function P(n){return function(t,r,e){for(var u=-1,o=Object(t),i=e(t),c=i.length;c--;){var f=i[n?c:++u];if(r(o[f],f,o)===false)break}return t}}function z(n){return function(){var t=arguments,r=Mt(n.prototype),e=n.apply(r,t);return Bn(e)?e:r}}function C(n){return function(t,r,e){var u=Object(t);if(!An(t)){var o=w(r,3);t=cr(t),r=function(n){return o(u[n],n,u)}}var i=n(t,r,e);return i>-1?u[o?t[i]:i]:nt}}function G(n,t,r,e){function u(){for(var t=-1,c=arguments.length,f=-1,a=e.length,l=Array(a+c),p=this&&this!==kt&&this instanceof u?i:n;++f<a;)l[f]=e[f];
14
+ for(;c--;)l[f++]=arguments[++t];return p.apply(o?r:this,l)}if(typeof n!="function")throw new TypeError(rt);var o=t&ot,i=z(n);return u}function J(n,t,r,e,u,o){var i=r&et,c=n.length,f=t.length;if(c!=f&&!(i&&f>c))return false;var a=o.get(n),l=o.get(t);if(a&&l)return a==t&&l==n;for(var p=-1,s=true,h=r&ut?[]:nt;++p<c;){var v,y=n[p],g=t[p];if(v!==nt){if(v)continue;s=false;break}if(h){if(!B(t,function(n,t){if(!un(h,t)&&(y===n||u(y,n,r,e,o)))return h.push(t)})){s=false;break}}else if(y!==g&&!u(y,g,r,e,o)){s=false;break;
15
+ }}return s}function M(n,t,r,e,u,o,i){switch(r){case st:case ht:case _t:return wn(+n,+t);case vt:return n.name==t.name&&n.message==t.message;case dt:case mt:return n==t+""}return false}function U(n,t,r,e,u,o){var i=r&et,c=cr(n),f=c.length;if(f!=cr(t).length&&!i)return false;for(var a=f;a--;){var l=c[a];if(!(i?l in t:Rt.call(t,l)))return false}var p=o.get(n),s=o.get(t);if(p&&s)return p==t&&s==n;for(var h=true,v=i;++a<f;){l=c[a];var y,g=n[l],_=t[l];if(!(y===nt?g===_||u(g,_,r,e,o):y)){h=false;break}v||(v="constructor"==l);
16
+ }if(h&&!v){var b=n.constructor,j=t.constructor;b!=j&&"constructor"in n&&"constructor"in t&&!(typeof b=="function"&&b instanceof b&&typeof j=="function"&&j instanceof j)&&(h=false)}return h}function V(n){return Kt(X(n,nt,tn),n+"")}function H(n){return Zt(n)||Yt(n)}function K(n,t){var r=typeof n;return t=null==t?ft:t,!!t&&("number"==r||"symbol"!=r&&wt.test(n))&&n>-1&&n%1==0&&n<t}function L(n,t,r){if(!Bn(r))return false;var e=typeof t;return!!("number"==e?An(r)&&K(t,r.length):"string"==e&&t in r)&&wn(r[t],n);
17
+ }function Q(n){var t=[];if(null!=n)for(var r in Object(n))t.push(r);return t}function W(n){return qt.call(n)}function X(n,t,r){return t=Jt(t===nt?n.length-1:t,0),function(){for(var e=arguments,u=-1,o=Jt(e.length-t,0),i=Array(o);++u<o;)i[u]=e[t+u];u=-1;for(var c=Array(t+1);++u<t;)c[u]=e[u];return c[t]=r(i),n.apply(this,c)}}function Y(n){return v(n,Boolean)}function Z(){var t=arguments.length;if(!t)return[];for(var r=Array(t-1),e=arguments[0],u=t;u--;)r[u-1]=arguments[u];return n(Zt(e)?S(e):[e],y(r,1));
18
+ }function nn(n,r,e){var u=null==n?0:n.length;if(!u)return-1;var o=null==e?0:rr(e);return o<0&&(o=Jt(u+o,0)),t(n,w(r,3),o)}function tn(n){return(null==n?0:n.length)?y(n,1):[]}function rn(n){return(null==n?0:n.length)?y(n,ct):[]}function en(n){return n&&n.length?n[0]:nt}function un(n,t,r){var e=null==n?0:n.length;r=typeof r=="number"?r<0?Jt(e+r,0):r:0;for(var u=(r||0)-1,o=t===t;++u<e;){var i=n[u];if(o?i===t:i!==i)return u}return-1}function on(n){var t=null==n?0:n.length;return t?n[t-1]:nt}function cn(n,t,r){
19
+ var e=null==n?0:n.length;return t=null==t?0:+t,r=r===nt?e:+r,e?T(n,t,r):[]}function fn(n){var t=c(n);return t.__chain__=true,t}function an(n,t){return t(n),n}function ln(n,t){return t(n)}function pn(){return I(this.__wrapped__,this.__actions__)}function sn(n,t,r){return t=r?nt:t,s(n,w(t))}function hn(n,t){return v(n,w(t))}function vn(n,t){return Ut(n,w(t))}function yn(n,t){return E(n,w(t))}function gn(n,t,r){return u(n,w(t),r,arguments.length<3,Ut)}function _n(n){return null==n?0:(n=An(n)?n:Gt(n),n.length);
20
+ }function bn(n,t,r){return t=r?nt:t,B(n,w(t))}function jn(n,t){var e=0;return t=w(t),E(E(n,function(n,r,u){return{value:n,index:e++,criteria:t(n,r,u)}}).sort(function(n,t){return R(n.criteria,t.criteria)||n.index-t.index}),r("value"))}function dn(n,t){var r;if(typeof t!="function")throw new TypeError(rt);return n=rr(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=nt),r}}function mn(n){if(typeof n!="function")throw new TypeError(rt);return function(){return!n.apply(this,arguments)};
21
+ }function On(n){return dn(2,n)}function xn(n){return Bn(n)?Zt(n)?S(n):$(n,Gt(n)):n}function wn(n,t){return n===t||n!==n&&t!==t}function An(n){return null!=n&&Sn(n.length)&&!Tn(n)}function En(n){return n===true||n===false||In(n)&&b(n)==st}function Nn(n){return An(n)&&(Zt(n)||Dn(n)||Tn(n.splice)||Yt(n))?!n.length:!Gt(n).length}function kn(n,t){return m(n,t)}function Fn(n){return typeof n=="number"&&Ct(n)}function Tn(n){if(!Bn(n))return false;var t=b(n);return t==yt||t==gt||t==pt||t==jt}function Sn(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=ft;
22
+ }function Bn(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function In(n){return null!=n&&typeof n=="object"}function Rn(n){return qn(n)&&n!=+n}function $n(n){return null===n}function qn(n){return typeof n=="number"||In(n)&&b(n)==_t}function Dn(n){return typeof n=="string"||!Zt(n)&&In(n)&&b(n)==mt}function Pn(n){return n===nt}function zn(n){return An(n)?n.length?S(n):[]:Un(n)}function Cn(n){return typeof n=="string"?n:null==n?"":n+""}function Gn(n,t){var r=Mt(n);return null==t?r:ur(r,t);
23
+ }function Jn(n,t){return null!=n&&Rt.call(n,t)}function Mn(n,t,r){var e=null==n?nt:n[t];return e===nt&&(e=r),Tn(e)?e.call(n):e}function Un(n){return null==n?[]:o(n,cr(n))}function Vn(n){return n=Cn(n),n&&xt.test(n)?n.replace(Ot,St):n}function Hn(n){return n}function Kn(n){return N(ur({},n))}function Ln(t,r,e){var u=cr(r),o=_(r,u);null!=e||Bn(r)&&(o.length||!u.length)||(e=r,r=t,t=this,o=_(r,cr(r)));var i=!(Bn(e)&&"chain"in e&&!e.chain),c=Tn(t);return Ut(o,function(e){var u=r[e];t[e]=u,c&&(t.prototype[e]=function(){
24
+ var r=this.__chain__;if(i||r){var e=t(this.__wrapped__);return(e.__actions__=S(this.__actions__)).push({func:u,args:arguments,thisArg:t}),e.__chain__=r,e}return u.apply(t,n([this.value()],arguments))})}),t}function Qn(){return kt._===this&&(kt._=Dt),this}function Wn(){}function Xn(n){var t=++$t;return Cn(n)+t}function Yn(n){return n&&n.length?h(n,Hn,j):nt}function Zn(n){return n&&n.length?h(n,Hn,A):nt}var nt,tt="4.18.1",rt="Expected a function",et=1,ut=2,ot=1,it=32,ct=1/0,ft=9007199254740991,at="[object Arguments]",lt="[object Array]",pt="[object AsyncFunction]",st="[object Boolean]",ht="[object Date]",vt="[object Error]",yt="[object Function]",gt="[object GeneratorFunction]",_t="[object Number]",bt="[object Object]",jt="[object Proxy]",dt="[object RegExp]",mt="[object String]",Ot=/[&<>"']/g,xt=RegExp(Ot.source),wt=/^(?:0|[1-9]\d*)$/,At={
25
+ "&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Et=typeof global=="object"&&global&&global.Object===Object&&global,Nt=typeof self=="object"&&self&&self.Object===Object&&self,kt=Et||Nt||Function("return this")(),Ft=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Tt=Ft&&typeof module=="object"&&module&&!module.nodeType&&module,St=e(At),Bt=Array.prototype,It=Object.prototype,Rt=It.hasOwnProperty,$t=0,qt=It.toString,Dt=kt._,Pt=Object.create,zt=It.propertyIsEnumerable,Ct=kt.isFinite,Gt=i(Object.keys,Object),Jt=Math.max,Mt=function(){
26
+ function n(){}return function(t){if(!Bn(t))return{};if(Pt)return Pt(t);n.prototype=t;var r=new n;return n.prototype=nt,r}}();f.prototype=Mt(c.prototype),f.prototype.constructor=f;var Ut=D(g),Vt=P(),Ht=Wn,Kt=Hn,Lt=C(nn),Qt=F(function(n,t,r){return G(n,ot|it,t,r)}),Wt=F(function(n,t){return p(n,1,t)}),Xt=F(function(n,t,r){return p(n,er(t)||0,r)}),Yt=Ht(function(){return arguments}())?Ht:function(n){return In(n)&&Rt.call(n,"callee")&&!zt.call(n,"callee")},Zt=Array.isArray,nr=d,tr=x,rr=Number,er=Number,ur=q(function(n,t){
27
+ $(t,Gt(t),n)}),or=q(function(n,t){$(t,Q(t),n)}),ir=F(function(n,t){n=Object(n);var r=-1,e=t.length,u=e>2?t[2]:nt;for(u&&L(t[0],t[1],u)&&(e=1);++r<e;)for(var o=t[r],i=fr(o),c=-1,f=i.length;++c<f;){var a=i[c],l=n[a];(l===nt||wn(l,It[a])&&!Rt.call(n,a))&&(n[a]=o[a])}return n}),cr=Gt,fr=Q,ar=V(function(n,t){return null==n?{}:k(n,t)}),lr=w;c.assignIn=or,c.before=dn,c.bind=Qt,c.chain=fn,c.compact=Y,c.concat=Z,c.create=Gn,c.defaults=ir,c.defer=Wt,c.delay=Xt,c.filter=hn,c.flatten=tn,c.flattenDeep=rn,c.iteratee=lr,
28
+ c.keys=cr,c.map=yn,c.matches=Kn,c.mixin=Ln,c.negate=mn,c.once=On,c.pick=ar,c.slice=cn,c.sortBy=jn,c.tap=an,c.thru=ln,c.toArray=zn,c.values=Un,c.extend=or,Ln(c,c),c.clone=xn,c.escape=Vn,c.every=sn,c.find=Lt,c.forEach=vn,c.has=Jn,c.head=en,c.identity=Hn,c.indexOf=un,c.isArguments=Yt,c.isArray=Zt,c.isBoolean=En,c.isDate=nr,c.isEmpty=Nn,c.isEqual=kn,c.isFinite=Fn,c.isFunction=Tn,c.isNaN=Rn,c.isNull=$n,c.isNumber=qn,c.isObject=Bn,c.isRegExp=tr,c.isString=Dn,c.isUndefined=Pn,c.last=on,c.max=Yn,c.min=Zn,
29
+ c.noConflict=Qn,c.noop=Wn,c.reduce=gn,c.result=Mn,c.size=_n,c.some=bn,c.uniqueId=Xn,c.each=vn,c.first=en,Ln(c,function(){var n={};return g(c,function(t,r){Rt.call(c.prototype,r)||(n[r]=t)}),n}(),{chain:false}),c.VERSION=tt,Ut(["pop","join","replace","reverse","split","push","shift","sort","splice","unshift"],function(n){var t=(/^(?:replace|split)$/.test(n)?String.prototype:Bt)[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|join|replace|shift)$/.test(n);c.prototype[n]=function(){var n=arguments;
30
+ if(e&&!this.__chain__){var u=this.value();return t.apply(Zt(u)?u:[],n)}return this[r](function(r){return t.apply(Zt(r)?r:[],n)})}}),c.prototype.toJSON=c.prototype.valueOf=c.prototype.value=pn,typeof define=="function"&&typeof define.amd=="object"&&define.amd?(kt._=c, define(function(){return c})):Tt?((Tt.exports=c)._=c,Ft._=c):kt._=c}).call(this);
@@ -1,3 +1,5 @@
1
+ var baseAssignValue = require('./_baseAssignValue');
2
+
1
3
  /**
2
4
  * The inverse of `_.toPairs`; this method returns an object composed
3
5
  * from key-value `pairs`.
@@ -20,7 +22,7 @@ function fromPairs(pairs) {
20
22
 
21
23
  while (++index < length) {
22
24
  var pair = pairs[index];
23
- result[pair[0]] = pair[1];
25
+ baseAssignValue(result, pair[0], pair[1]);
24
26
  }
25
27
  return result;
26
28
  }
@@ -12,7 +12,7 @@
12
12
  var undefined;
13
13
 
14
14
  /** Used as the semantic version number. */
15
- var VERSION = '4.17.23';
15
+ var VERSION = '4.18.1';
16
16
 
17
17
  /** Used as the size to enable large array optimizations. */
18
18
  var LARGE_ARRAY_SIZE = 200;
@@ -20,7 +20,8 @@
20
20
  /** Error message constants. */
21
21
  var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',
22
22
  FUNC_ERROR_TEXT = 'Expected a function',
23
- INVALID_TEMPL_VAR_ERROR_TEXT = 'Invalid `variable` option passed into `_.template`';
23
+ INVALID_TEMPL_VAR_ERROR_TEXT = 'Invalid `variable` option passed into `_.template`',
24
+ INVALID_TEMPL_IMPORTS_ERROR_TEXT = 'Invalid `imports` option passed into `_.template`';
24
25
 
25
26
  /** Used to stand-in for `undefined` hash values. */
26
27
  var HASH_UNDEFINED = '__lodash_hash_undefined__';
@@ -1752,6 +1753,10 @@
1752
1753
  * embedded Ruby (ERB) as well as ES2015 template strings. Change the
1753
1754
  * following template settings to use alternative delimiters.
1754
1755
  *
1756
+ * **Security:** See
1757
+ * [threat model](https://github.com/lodash/lodash/blob/main/threat-model.md)
1758
+ * — `_.template` is insecure and will be removed in v5.
1759
+ *
1755
1760
  * @static
1756
1761
  * @memberOf _
1757
1762
  * @type {Object}
@@ -2300,7 +2305,7 @@
2300
2305
  * @name has
2301
2306
  * @memberOf SetCache
2302
2307
  * @param {*} value The value to search for.
2303
- * @returns {number} Returns `true` if `value` is found, else `false`.
2308
+ * @returns {boolean} Returns `true` if `value` is found, else `false`.
2304
2309
  */
2305
2310
  function setCacheHas(value) {
2306
2311
  return this.__data__.has(value);
@@ -4371,7 +4376,9 @@
4371
4376
  function baseUnset(object, path) {
4372
4377
  path = castPath(path, object);
4373
4378
 
4374
- // Prevent prototype pollution, see: https://github.com/lodash/lodash/security/advisories/GHSA-xxjr-mmjv-4gpg
4379
+ // Prevent prototype pollution:
4380
+ // https://github.com/lodash/lodash/security/advisories/GHSA-xxjr-mmjv-4gpg
4381
+ // https://github.com/lodash/lodash/security/advisories/GHSA-f23m-r3pf-42rh
4375
4382
  var index = -1,
4376
4383
  length = path.length;
4377
4384
 
@@ -4379,32 +4386,17 @@
4379
4386
  return true;
4380
4387
  }
4381
4388
 
4382
- var isRootPrimitive = object == null || (typeof object !== 'object' && typeof object !== 'function');
4383
-
4384
4389
  while (++index < length) {
4385
- var key = path[index];
4386
-
4387
- // skip non-string keys (e.g., Symbols, numbers)
4388
- if (typeof key !== 'string') {
4389
- continue;
4390
- }
4390
+ var key = toKey(path[index]);
4391
4391
 
4392
4392
  // Always block "__proto__" anywhere in the path if it's not expected
4393
4393
  if (key === '__proto__' && !hasOwnProperty.call(object, '__proto__')) {
4394
4394
  return false;
4395
4395
  }
4396
4396
 
4397
- // Block "constructor.prototype" chains
4398
- if (key === 'constructor' &&
4399
- (index + 1) < length &&
4400
- typeof path[index + 1] === 'string' &&
4401
- path[index + 1] === 'prototype') {
4402
-
4403
- // Allow ONLY when the path starts at a primitive root, e.g., _.unset(0, 'constructor.prototype.a')
4404
- if (isRootPrimitive && index === 0) {
4405
- continue;
4406
- }
4407
-
4397
+ // Block constructor/prototype as non-terminal traversal keys to prevent
4398
+ // escaping the object graph into built-in constructors and prototypes.
4399
+ if ((key === 'constructor' || key === 'prototype') && index < length - 1) {
4408
4400
  return false;
4409
4401
  }
4410
4402
  }
@@ -6961,7 +6953,7 @@
6961
6953
 
6962
6954
  /**
6963
6955
  * Creates an array with all falsey values removed. The values `false`, `null`,
6964
- * `0`, `""`, `undefined`, and `NaN` are falsey.
6956
+ * `0`, `-0`, `0n`, `""`, `undefined`, and `NaN` are falsy.
6965
6957
  *
6966
6958
  * @static
6967
6959
  * @memberOf _
@@ -7500,7 +7492,7 @@
7500
7492
 
7501
7493
  while (++index < length) {
7502
7494
  var pair = pairs[index];
7503
- result[pair[0]] = pair[1];
7495
+ baseAssignValue(result, pair[0], pair[1]);
7504
7496
  }
7505
7497
  return result;
7506
7498
  }
@@ -14160,6 +14152,8 @@
14160
14152
  * **Note:** JavaScript follows the IEEE-754 standard for resolving
14161
14153
  * floating-point values which can produce unexpected results.
14162
14154
  *
14155
+ * **Note:** If `lower` is greater than `upper`, the values are swapped.
14156
+ *
14163
14157
  * @static
14164
14158
  * @memberOf _
14165
14159
  * @since 0.7.0
@@ -14173,9 +14167,16 @@
14173
14167
  * _.random(0, 5);
14174
14168
  * // => an integer between 0 and 5
14175
14169
  *
14170
+ * // when lower is greater than upper the values are swapped
14171
+ * _.random(5, 0);
14172
+ * // => an integer between 0 and 5
14173
+ *
14176
14174
  * _.random(5);
14177
14175
  * // => also an integer between 0 and 5
14178
14176
  *
14177
+ * _.random(-5);
14178
+ * // => an integer between -5 and 0
14179
+ *
14179
14180
  * _.random(5, true);
14180
14181
  * // => a floating-point number between 0 and 5
14181
14182
  *
@@ -14777,6 +14778,10 @@
14777
14778
  * properties may be accessed as free variables in the template. If a setting
14778
14779
  * object is given, it takes precedence over `_.templateSettings` values.
14779
14780
  *
14781
+ * **Security:** `_.template` is insecure and should not be used. It will be
14782
+ * removed in Lodash v5. Avoid untrusted input. See
14783
+ * [threat model](https://github.com/lodash/lodash/blob/main/threat-model.md).
14784
+ *
14780
14785
  * **Note:** In the development build `_.template` utilizes
14781
14786
  * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
14782
14787
  * for easier debugging.
@@ -14884,12 +14889,18 @@
14884
14889
  options = undefined;
14885
14890
  }
14886
14891
  string = toString(string);
14887
- options = assignInWith({}, options, settings, customDefaultsAssignIn);
14892
+ options = assignWith({}, options, settings, customDefaultsAssignIn);
14888
14893
 
14889
- var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn),
14894
+ var imports = assignWith({}, options.imports, settings.imports, customDefaultsAssignIn),
14890
14895
  importsKeys = keys(imports),
14891
14896
  importsValues = baseValues(imports, importsKeys);
14892
14897
 
14898
+ arrayEach(importsKeys, function(key) {
14899
+ if (reForbiddenIdentifierChars.test(key)) {
14900
+ throw new Error(INVALID_TEMPL_IMPORTS_ERROR_TEXT);
14901
+ }
14902
+ });
14903
+
14893
14904
  var isEscaping,
14894
14905
  isEvaluating,
14895
14906
  index = 0,