@cloudscape-design/collection-hooks
Advanced tools
Comparing version 1.0.32 to 1.0.33
@@ -15,3 +15,3 @@ "use strict"; | ||
var pageIndex = currentPageIndex !== null && currentPageIndex !== void 0 ? currentPageIndex : 1; | ||
if (pageIndex < 1 || pageIndex > pagesCount) { | ||
if (pageIndex < 1 || pageIndex > pagesCount || Number.isNaN(pageIndex)) { | ||
pageIndex = 1; | ||
@@ -18,0 +18,0 @@ } |
@@ -12,3 +12,3 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
var pageIndex = currentPageIndex !== null && currentPageIndex !== void 0 ? currentPageIndex : 1; | ||
if (pageIndex < 1 || pageIndex > pagesCount) { | ||
if (pageIndex < 1 || pageIndex > pagesCount || Number.isNaN(pageIndex)) { | ||
pageIndex = 1; | ||
@@ -15,0 +15,0 @@ } |
{ | ||
"commit": "3c73594b5264978eb9ae60dee4296cec08480a5e" | ||
"commit": "9bb96d5d9e6027fe2f148cdf9263e8efc30ba1eb" | ||
} |
@@ -1,1 +0,1 @@ | ||
{"bugs":{"url":"https://github.com/cloudscape-design/collection-hooks/issues"},"bundleDependencies":false,"deprecated":false,"description":"## ⚠️ This is a generated artifact package and should be treated as **READ-ONLY**.","exports":{".":{"require":"./dist/cjs/index.js","default":"./dist/mjs/index.js"},"./operations":{"require":"./dist/cjs/operations.js","default":"./dist/mjs/operations.js"}},"files":["dist","operations.js","operations.d.ts","package.json","README.md","internal"],"homepage":"https://cloudscape.design","jest":{"preset":"ts-jest","resolver":"jest-ts-webcompat-resolver","collectCoverage":true,"collectCoverageFrom":["src/**","!**/__tests__/**"],"globals":{"ts-jest":{"tsconfig":"tsconfig.unit.json"}},"testRegex":"/__tests__/.*\\.test\\.tsx?$"},"lint-staged":{"*.{js,jsx,ts,tsx}":["eslint --fix"]},"main":"./dist/cjs/index.js","module":"./dist/mjs/index.js","name":"@cloudscape-design/collection-hooks","peerDependencies":{"react":"^16.8.0 || ^17.0.0 || ^18.0.0"},"repository":{"type":"git","url":"git+https://github.com/cloudscape-design/collection-hooks.git"},"type":"module","version":"1.0.32","license":"Apache-2.0"} | ||
{"bugs":{"url":"https://github.com/cloudscape-design/collection-hooks/issues"},"bundleDependencies":false,"deprecated":false,"description":"## ⚠️ This is a generated artifact package and should be treated as **READ-ONLY**.","exports":{".":{"require":"./dist/cjs/index.js","default":"./dist/mjs/index.js"},"./operations":{"require":"./dist/cjs/operations.js","default":"./dist/mjs/operations.js"}},"files":["dist","operations.js","operations.d.ts","package.json","README.md","internal"],"homepage":"https://cloudscape.design","jest":{"preset":"ts-jest","resolver":"jest-ts-webcompat-resolver","collectCoverage":true,"collectCoverageFrom":["src/**","!**/__tests__/**"],"globals":{"ts-jest":{"tsconfig":"tsconfig.unit.json"}},"testRegex":"/__tests__/.*\\.test\\.tsx?$"},"lint-staged":{"*.{js,jsx,ts,tsx}":["eslint --fix"]},"main":"./dist/cjs/index.js","module":"./dist/mjs/index.js","name":"@cloudscape-design/collection-hooks","peerDependencies":{"react":"^16.8.0 || ^17.0.0 || ^18.0.0"},"repository":{"type":"git","url":"git+https://github.com/cloudscape-design/collection-hooks.git"},"type":"module","version":"1.0.33","license":"Apache-2.0"} |
86780