aws-sdk-wrap
Advanced tools
Comparing version 12.0.1 to 12.0.2
@@ -0,1 +1,3 @@ | ||
import assert from 'assert'; | ||
export default ({ | ||
@@ -73,3 +75,5 @@ call, | ||
const idx = week * WEEK_PERIODS + period; | ||
results.push([timestamps[idx], values[idx]]); | ||
if (idx < timestamps.length && idx < values.length) { | ||
results.push([timestamps[idx], values[idx]]); | ||
} | ||
} | ||
@@ -85,3 +89,6 @@ } | ||
for (let period = 0; period <= LOOK_AHEAD_PERIODS; period += 1) { | ||
max = Math.max(max, results[week * (LOOK_AHEAD_PERIODS + 1) + period][1]); | ||
const i = week * (LOOK_AHEAD_PERIODS + 1) + period; | ||
if (i < results.length) { | ||
max = Math.max(max, results[i][1]); | ||
} | ||
} | ||
@@ -143,2 +150,3 @@ const fact = factor(idx); | ||
const desiredConcurrency = computeDesiredConcurrency(Timestamps, Values); | ||
assert(Number.isSafeInteger(desiredConcurrency), desiredConcurrency); | ||
@@ -145,0 +153,0 @@ await updateProvisionedConcurrency(functionName, desiredConcurrency, aliasName); |
{ | ||
"name": "aws-sdk-wrap", | ||
"type": "module", | ||
"version": "12.0.1", | ||
"version": "12.0.2", | ||
"description": "Wrapper around aws-sdk", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
79653
1842