Add API rate limit (#23)

This commit is contained in:
KM Koushik
2024-05-30 20:01:20 +10:00
committed by GitHub
parent d7b8a9cca6
commit 8b61223153
6 changed files with 86 additions and 45 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "unsend",
"version": "0.0.5",
"version": "0.0.6",
"description": "",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
@@ -8,7 +8,8 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "eslint . --max-warnings 0",
"build": "rm -rf dist && tsup index.ts --format esm,cjs --dts"
"build": "rm -rf dist && tsup index.ts --format esm,cjs --dts",
"publish-sdk": "pnpm run build && pnpm publish"
},
"keywords": [],
"author": "",

View File

@@ -3,7 +3,7 @@ import { cn } from "..";
export const Spinner: React.FC<
React.SVGProps<SVGSVGElement> & { innerSvgClass?: string }
> = (props) => {
> = ({ innerSvgClass, ...props }) => {
return (
<svg
version="1.1"
@@ -18,7 +18,7 @@ export const Spinner: React.FC<
<g
strokeWidth="200"
strokeLinecap="round"
className={cn("stroke-primary-foreground", props.innerSvgClass)}
className={cn("stroke-primary-foreground", innerSvgClass)}
fill="none"
id="spinner"
>