chore: remove unused dep

This commit is contained in:
Bereket Engida
2024-10-11 09:48:39 +03:00
parent 499fdd139c
commit f6872c563f
6 changed files with 1 additions and 59 deletions

View File

@@ -225,7 +225,7 @@ export const contents: Content[] = [
href: "/docs/concepts/rate-limit",
},
{
title: "Session Management",
title: "Sessions",
href: "/docs/concepts/session-management",
icon: () => (
<svg

View File

@@ -75,7 +75,6 @@
"vue": "^3.5.0"
},
"dependencies": {
"@antfu/ni": "^0.23.0",
"@babel/preset-react": "^7.24.7",
"@babel/preset-typescript": "^7.24.7",
"@better-fetch/fetch": "^1.1.9",
@@ -101,12 +100,10 @@
"dotenv": "^16.4.5",
"execa": "^9.4.0",
"jose": "^5.7.0",
"js-base64": "^3.7.7",
"kysely": "^0.27.4",
"nanoid": "^5.0.7",
"nanoquery": "^1.3.0",
"nanostores": "^0.11.2",
"oauth4webapi": "^2.12.0",
"ora": "^8.0.1",
"oslo": "^1.2.1",
"prompts": "^2.4.2",

View File

@@ -1,13 +0,0 @@
import { detect } from "@antfu/ni";
export async function getPackageManager(
targetDir: string,
): Promise<"yarn" | "pnpm" | "bun" | "npm"> {
const packageManager = await detect({ programmatic: true, cwd: targetDir });
if (packageManager === "yarn@berry") return "yarn";
if (packageManager === "pnpm@6") return "pnpm";
if (packageManager === "bun") return "bun";
return packageManager ?? "npm";
}

View File

@@ -1,21 +0,0 @@
import ora from "ora";
import prompts from "prompts";
import { getPackageManager } from "./get-package-manager";
import { execa } from "execa";
export async function installDependency(pkgName: string) {
const { install } = await prompts({
name: "install",
type: "confirm",
message: `The package "${pkgName}" is required. Do you want to install it?`,
});
if (install) {
const spinner = ora(`Installing ${pkgName}...`).start();
const packageManager = await getPackageManager(process.cwd());
await execa(packageManager, [
packageManager === "npm" ? "install" : "add",
"pg",
]);
spinner.succeed("pg installed successfully");
}
}

View File

@@ -110,7 +110,6 @@ describe("crossSubdomainCookies", () => {
{
onResponse(context) {
const setCookie = context.response.headers.get("set-cookie");
console.log({ setCookie });
expect(setCookie).not.toContain("Domain=.example.com");
expect(setCookie).not.toContain("SameSite=None");
},

20
pnpm-lock.yaml generated
View File

@@ -1429,9 +1429,6 @@ importers:
packages/better-auth:
dependencies:
'@antfu/ni':
specifier: ^0.23.0
version: 0.23.0
'@babel/preset-react':
specifier: ^7.24.7
version: 7.24.7(@babel/core@7.25.2)
@@ -1507,9 +1504,6 @@ importers:
jose:
specifier: ^5.7.0
version: 5.9.3
js-base64:
specifier: ^3.7.7
version: 3.7.7
kysely:
specifier: ^0.27.4
version: 0.27.4
@@ -1522,9 +1516,6 @@ importers:
nanostores:
specifier: ^0.11.2
version: 0.11.3
oauth4webapi:
specifier: ^2.12.0
version: 2.17.0
ora:
specifier: ^8.0.1
version: 8.1.0
@@ -1615,10 +1606,6 @@ packages:
resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==}
engines: {node: '>=6.0.0'}
'@antfu/ni@0.23.0':
resolution: {integrity: sha512-R5/GkA3PfGewAXLzz6lN5XagunF6PKeDtWt8dbZQXvHfebLS0qEczV+Azg/d+tKgSh6kRBpxvu8oSjARdPtw0A==}
hasBin: true
'@antfu/utils@0.7.10':
resolution: {integrity: sha512-+562v9k4aI80m1+VuMHehNJWLOFjBnXn3tdOitzD0il5b7smkSBal4+a3oKiQTbrwMmN/TBUMDvbdoWDehgOww==}
@@ -10972,9 +10959,6 @@ packages:
engines: {node: ^14.16.0 || >=16.10.0}
hasBin: true
oauth4webapi@2.17.0:
resolution: {integrity: sha512-lbC0Z7uzAFNFyzEYRIC+pkSVvDHJTbEW+dYlSBAlCYDe6RxUkJ26bClhk8ocBZip1wfI9uKTe0fm4Ib4RHn6uQ==}
object-assign@4.1.1:
resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}
engines: {node: '>=0.10.0'}
@@ -14374,8 +14358,6 @@ snapshots:
'@jridgewell/gen-mapping': 0.3.5
'@jridgewell/trace-mapping': 0.3.25
'@antfu/ni@0.23.0': {}
'@antfu/utils@0.7.10': {}
'@ark-ui/solid@3.13.0(solid-js@1.9.1)':
@@ -26989,8 +26971,6 @@ snapshots:
pkg-types: 1.2.0
ufo: 1.5.4
oauth4webapi@2.17.0: {}
object-assign@4.1.1: {}
object-hash@3.0.0: {}