@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.
- package/.jsii +12 -12
- package/cdkamibuilder/go.mod +1 -1
- package/cdkamibuilder/jsii/jsii.go +2 -2
- package/cdkamibuilder/version +1 -1
- package/lib/ImagePipeline/ImagePipeline.js +1 -1
- package/lib/Lambdas/CheckStateMachineStatus/CheckStateMachineStatus-function.js +1 -1
- package/lib/Lambdas/StartStateMachine/StartStateMachine-function.js +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/BundleInstanceCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-ec2/package.json +6 -6
- package/node_modules/@aws-sdk/client-ecs/README.md +91 -7
- package/node_modules/@aws-sdk/client-ecs/dist-cjs/index.js +530 -33
- package/node_modules/@aws-sdk/client-ecs/dist-cjs/models/errors.js +37 -11
- package/node_modules/@aws-sdk/client-ecs/dist-cjs/schemas/schemas_0.js +508 -100
- package/node_modules/@aws-sdk/client-ecs/dist-es/ECS.js +34 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/commands/CreateDaemonCommand.js +16 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/commands/DeleteDaemonCommand.js +16 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/commands/DeleteDaemonTaskDefinitionCommand.js +16 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/commands/DescribeDaemonCommand.js +16 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/commands/DescribeDaemonDeploymentsCommand.js +16 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/commands/DescribeDaemonRevisionsCommand.js +16 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/commands/DescribeDaemonTaskDefinitionCommand.js +16 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/commands/ListDaemonDeploymentsCommand.js +16 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/commands/ListDaemonTaskDefinitionsCommand.js +16 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/commands/ListDaemonsCommand.js +16 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/commands/RegisterDaemonTaskDefinitionCommand.js +16 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/commands/UpdateDaemonCommand.js +16 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/commands/index.js +12 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/models/enums.js +72 -33
- package/node_modules/@aws-sdk/client-ecs/dist-es/models/errors.js +32 -8
- package/node_modules/@aws-sdk/client-ecs/dist-es/models/models_1.js +1 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/schemas/schemas_0.js +500 -93
- package/node_modules/@aws-sdk/client-ecs/dist-es/waiters/index.js +5 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/waiters/waitForDaemonActive.js +40 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/waiters/waitForDaemonDeploymentStopped.js +54 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/waiters/waitForDaemonDeploymentSuccessful.js +99 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/waiters/waitForDaemonTaskDefinitionActive.js +49 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/waiters/waitForDaemonTaskDefinitionDeleted.js +31 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ECS.d.ts +116 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ECSClient.d.ts +14 -2
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/CreateDaemonCommand.d.ts +150 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/CreateTaskSetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DeleteDaemonCommand.d.ts +121 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DeleteDaemonTaskDefinitionCommand.d.ts +101 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DeleteTaskDefinitionsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DeleteTaskSetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DeregisterContainerInstanceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DeregisterTaskDefinitionCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeContainerInstancesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeDaemonCommand.d.ts +148 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeDaemonDeploymentsCommand.d.ts +229 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeDaemonRevisionsCommand.d.ts +155 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeDaemonTaskDefinitionCommand.d.ts +286 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeTaskDefinitionCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeTaskSetsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeTasksCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/GetTaskProtectionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/ListDaemonDeploymentsCommand.d.ts +145 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/ListDaemonTaskDefinitionsCommand.d.ts +129 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/ListDaemonsCommand.d.ts +133 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/ListTaskDefinitionsCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/ListTasksCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/RegisterContainerInstanceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/RegisterDaemonTaskDefinitionCommand.d.ts +277 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/RegisterTaskDefinitionCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/RunTaskCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/StartTaskCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/StopTaskCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/UpdateContainerAgentCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/UpdateContainerInstancesStateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/UpdateDaemonCommand.d.ts +149 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/UpdateTaskProtectionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/UpdateTaskSetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/index.d.ts +12 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/models/enums.d.ts +155 -60
- package/node_modules/@aws-sdk/client-ecs/dist-types/models/errors.d.ts +32 -8
- package/node_modules/@aws-sdk/client-ecs/dist-types/models/models_0.d.ts +2630 -2613
- package/node_modules/@aws-sdk/client-ecs/dist-types/models/models_1.d.ts +1245 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/schemas/schemas_0.d.ts +58 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/ECS.d.ts +251 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/ECSClient.d.ts +72 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/CreateDaemonCommand.d.ts +47 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/CreateTaskSetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/DeleteDaemonCommand.d.ts +47 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/DeleteDaemonTaskDefinitionCommand.d.ts +51 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/DeleteTaskSetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/DescribeDaemonCommand.d.ts +50 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/DescribeDaemonDeploymentsCommand.d.ts +51 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/DescribeDaemonRevisionsCommand.d.ts +51 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/DescribeDaemonTaskDefinitionCommand.d.ts +51 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/DescribeTaskSetsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/DescribeTasksCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/GetTaskProtectionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/ListDaemonDeploymentsCommand.d.ts +51 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/ListDaemonTaskDefinitionsCommand.d.ts +51 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/ListDaemonsCommand.d.ts +47 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/ListTaskDefinitionsCommand.d.ts +2 -4
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/RegisterDaemonTaskDefinitionCommand.d.ts +51 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/RegisterTaskDefinitionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/RunTaskCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/StartTaskCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/StopTaskCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/UpdateDaemonCommand.d.ts +47 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/UpdateTaskProtectionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/UpdateTaskSetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/index.d.ts +12 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/models/enums.d.ts +92 -40
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/models/errors.d.ts +21 -7
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/models/models_0.d.ts +338 -324
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/models/models_1.d.ts +322 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/schemas/schemas_0.d.ts +58 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/waiters/index.d.ts +5 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/waiters/waitForDaemonActive.d.ts +11 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/waiters/waitForDaemonDeploymentStopped.d.ts +11 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/waiters/waitForDaemonDeploymentSuccessful.d.ts +11 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/waiters/waitForDaemonTaskDefinitionActive.d.ts +11 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/waiters/waitForDaemonTaskDefinitionDeleted.d.ts +11 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/waiters/index.d.ts +5 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/waiters/waitForDaemonActive.d.ts +14 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/waiters/waitForDaemonDeploymentStopped.d.ts +14 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/waiters/waitForDaemonDeploymentSuccessful.d.ts +14 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/waiters/waitForDaemonTaskDefinitionActive.d.ts +14 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/waiters/waitForDaemonTaskDefinitionDeleted.d.ts +14 -0
- package/node_modules/@aws-sdk/client-ecs/package.json +6 -6
- package/node_modules/@aws-sdk/client-kms/package.json +6 -6
- package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/ListBucketMetricsConfigurationsCommand.js +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketInventoryConfigurationCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketMetricsConfigurationCommand.d.ts +39 -8
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketMetricsConfigurationCommand.d.ts +39 -8
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListBucketMetricsConfigurationsCommand.d.ts +39 -8
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +39 -8
- package/node_modules/@aws-sdk/client-s3/dist-types/models/models_0.d.ts +51 -0
- package/node_modules/@aws-sdk/client-s3/package.json +7 -7
- package/node_modules/@aws-sdk/client-secrets-manager/package.json +6 -6
- package/node_modules/@aws-sdk/client-sfn/package.json +6 -6
- package/node_modules/@aws-sdk/client-sns/package.json +6 -6
- package/node_modules/@aws-sdk/client-sqs/package.json +6 -6
- package/node_modules/@aws-sdk/client-ssm/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-login/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-node/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
- package/node_modules/@aws-sdk/nested-clients/package.json +5 -5
- package/node_modules/@aws-sdk/token-providers/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@smithy/middleware-retry/package.json +2 -2
- package/node_modules/@smithy/util-retry/dist-cjs/index.js +9 -7
- package/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js +9 -7
- package/node_modules/@smithy/util-retry/dist-types/DefaultRateLimiter.d.ts +71 -1
- package/node_modules/@smithy/util-retry/dist-types/ts3.4/DefaultRateLimiter.d.ts +71 -1
- package/node_modules/@smithy/util-retry/package.json +1 -1
- package/node_modules/lodash/README.md +2 -2
- package/node_modules/lodash/_baseOrderBy.js +1 -1
- package/node_modules/lodash/_baseUnset.js +7 -20
- package/node_modules/lodash/_setCacheHas.js +1 -1
- package/node_modules/lodash/compact.js +1 -1
- package/node_modules/lodash/core.js +3 -3
- package/node_modules/lodash/core.min.js +26 -25
- package/node_modules/lodash/fromPairs.js +3 -1
- package/node_modules/lodash/lodash.js +38 -27
- package/node_modules/lodash/lodash.min.js +125 -129
- package/node_modules/lodash/package.json +4 -2
- package/node_modules/lodash/random.js +9 -0
- package/node_modules/lodash/template.js +16 -4
- package/node_modules/lodash/templateSettings.js +4 -0
- 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
|
-
|
|
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,4 +1,4 @@
|
|
|
1
|
-
# lodash v4.
|
|
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.
|
|
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.
|
|
@@ -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
|
|
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
|
|
47
|
-
|
|
48
|
-
|
|
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 {
|
|
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,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Lodash (Custom Build) <https://lodash.com/>
|
|
4
|
-
* Build: `lodash core -o ./
|
|
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.
|
|
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
|
|
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 ./
|
|
4
|
+
* Build: `lodash core --repo lodash/lodash#4.18.1 -o ./core.js`
|
|
5
5
|
*/
|
|
6
|
-
;(function(){function n(n){return
|
|
7
|
-
return setTimeout(function(){n.apply(
|
|
8
|
-
}function
|
|
9
|
-
return n[0]==t});if(
|
|
10
|
-
|
|
11
|
-
}function
|
|
12
|
-
}}return r}function
|
|
13
|
-
|
|
14
|
-
}var
|
|
15
|
-
function(
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
+
"&":"&","<":"<",">":">",'"':""","'":"'"},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
|
|
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.
|
|
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 {
|
|
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
|
|
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
|
|
4398
|
-
|
|
4399
|
-
|
|
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
|
|
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
|
|
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 =
|
|
14892
|
+
options = assignWith({}, options, settings, customDefaultsAssignIn);
|
|
14888
14893
|
|
|
14889
|
-
var imports =
|
|
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,
|