diff --git a/package-lock.json b/package-lock.json index 9fd083f..e859d11 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.1.0", "license": "MIT", "dependencies": { - "@warrantdev/warrant-js": "^1.0.0" + "@warrantdev/warrant-js": "^1.1.0" }, "devDependencies": { "@types/react": "^17.0.11", @@ -162,9 +162,9 @@ "dev": true }, "node_modules/@warrantdev/warrant-js": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@warrantdev/warrant-js/-/warrant-js-1.0.0.tgz", - "integrity": "sha512-+Yv1mhwSm0y+S5qwIXN7isDcEVIxL1UkCykK1G7uQORHvRO5KC9j7SQ5GSubPVuw81Q+idPIY8BNEA3YWhnxNg==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@warrantdev/warrant-js/-/warrant-js-1.1.0.tgz", + "integrity": "sha512-51HvxS9Fz7r4XO5wFi5fVpx+UBOFCcvdKT14uLliL+pwszsIxYtUlJnUE6uzhWCy5HvRI5Vs8l5hwi0gDVLkqw==", "dependencies": { "axios": "^0.21.2" } @@ -804,9 +804,9 @@ } }, "node_modules/follow-redirects": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.1.tgz", - "integrity": "sha512-HWqDgT7ZEkqRzBvc2s64vSZ/hfOceEol3ac/7tKwzuvEyWx3/4UegXh5oBOIotkGsObyk3xznnSRVADBgWSQVg==", + "version": "1.15.2", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", + "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==", "funding": [ { "type": "individual", @@ -2265,9 +2265,9 @@ "dev": true }, "@warrantdev/warrant-js": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@warrantdev/warrant-js/-/warrant-js-1.0.0.tgz", - "integrity": "sha512-+Yv1mhwSm0y+S5qwIXN7isDcEVIxL1UkCykK1G7uQORHvRO5KC9j7SQ5GSubPVuw81Q+idPIY8BNEA3YWhnxNg==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@warrantdev/warrant-js/-/warrant-js-1.1.0.tgz", + "integrity": "sha512-51HvxS9Fz7r4XO5wFi5fVpx+UBOFCcvdKT14uLliL+pwszsIxYtUlJnUE6uzhWCy5HvRI5Vs8l5hwi0gDVLkqw==", "requires": { "axios": "^0.21.2" } @@ -2789,9 +2789,9 @@ } }, "follow-redirects": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.1.tgz", - "integrity": "sha512-HWqDgT7ZEkqRzBvc2s64vSZ/hfOceEol3ac/7tKwzuvEyWx3/4UegXh5oBOIotkGsObyk3xznnSRVADBgWSQVg==" + "version": "1.15.2", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", + "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==" }, "fs.realpath": { "version": "1.0.0", diff --git a/package.json b/package.json index 3d2dc02..cfa9f8a 100644 --- a/package.json +++ b/package.json @@ -48,6 +48,6 @@ "react-router-dom": "^5.2.0" }, "dependencies": { - "@warrantdev/warrant-js": "^1.0.0" + "@warrantdev/warrant-js": "^1.1.0" } } diff --git a/src/ProtectedComponent.tsx b/src/ProtectedComponent.tsx index 18af767..e9bd8fe 100644 --- a/src/ProtectedComponent.tsx +++ b/src/ProtectedComponent.tsx @@ -3,7 +3,7 @@ import { WarrantCheck } from "@warrantdev/warrant-js"; import useWarrant from "./useWarrant"; export interface ProtectedComponentProps extends WarrantCheck { - children: React.ReactChildren; + children: React.ReactNode; } const ProtectedComponent: React.FunctionComponent = ({ op, warrants, children }) => {