From 4eb749384e83ea41fe7b28df978522ce3f974ae8 Mon Sep 17 00:00:00 2001 From: mpppk Date: Tue, 19 Nov 2024 16:50:50 +0900 Subject: [PATCH] Replace mpppk to nota --- docs/docusaurus.config.ts | 4 ++-- examples/github/github.ts | 2 +- examples/simple/withValidation.ts | 4 ++-- package.json | 4 ++-- src/fetch/index.t-test.ts | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/docusaurus.config.ts b/docs/docusaurus.config.ts index f7aabfd..d307c05 100644 --- a/docs/docusaurus.config.ts +++ b/docs/docusaurus.config.ts @@ -16,7 +16,7 @@ const config: Config = { // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. - organizationName: "mpppk", // Usually your GitHub org/user name. + organizationName: "nota", // Usually your GitHub org/user name. projectName: "typed-api-spec", // Usually your repo name. onBrokenLinks: "throw", @@ -64,7 +64,7 @@ const config: Config = { items: [ { label: "GitHub", - href: "https://github.com/mpppk/typed-api-spec", + href: "https://github.com/nota/typed-api-spec", }, ], }, diff --git a/examples/github/github.ts b/examples/github/github.ts index fdb648a..862bc93 100644 --- a/examples/github/github.ts +++ b/examples/github/github.ts @@ -40,7 +40,7 @@ const fetchT = fetch as FetchT; const main = async () => { const response = await fetchT( - `${GITHUB_API_ORIGIN}/repos/mpppk/typed-api-spec/topics?page=1`, + `${GITHUB_API_ORIGIN}/repos/nota/typed-api-spec/topics?page=1`, { headers: { Accept: "application/vnd.github+json" } }, ); if (!response.ok) { diff --git a/examples/simple/withValidation.ts b/examples/simple/withValidation.ts index d9f34c5..f14c221 100644 --- a/examples/simple/withValidation.ts +++ b/examples/simple/withValidation.ts @@ -27,7 +27,7 @@ const main = async () => { const { req: reqValidator, res: resValidator } = newZodValidator(spec); const fetchWithV = withValidation(fetch, spec, reqValidator, resValidator); const response = await fetchWithV( - `${GITHUB_API_ORIGIN}/repos/mpppk/typed-api-spec/topics?page=1`, + `${GITHUB_API_ORIGIN}/repos/nota/typed-api-spec/topics?page=1`, { headers: { Accept: "application/vnd.github+json" } }, ); if (!response.ok) { @@ -44,7 +44,7 @@ const main = async () => { const fetchWithV = withValidation(fetch, spec2, reqValidator, resValidator); try { await fetchWithV( - `${GITHUB_API_ORIGIN}/repos/mpppk/typed-api-spec/topics?page=1`, + `${GITHUB_API_ORIGIN}/repos/nota/typed-api-spec/topics?page=1`, { headers: { Accept: "application/vnd.github+json" } }, ); } catch (e: unknown) { diff --git a/package.json b/package.json index 332156c..2f9cda8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "@mpppk/typed-api-spec", - "version": "0.0.0-test37", + "name": "@nota/typed-api-spec", + "version": "0.1.0", "scripts": { "build": "tsup ./src", "watch:build": "tsup ./src --watch", diff --git a/src/fetch/index.t-test.ts b/src/fetch/index.t-test.ts index 1f2fe9f..0385607 100644 --- a/src/fetch/index.t-test.ts +++ b/src/fetch/index.t-test.ts @@ -18,7 +18,7 @@ type ValidateUrlTestCase = [ >, Expect< Equal< - ValidateUrl<{ a: string }, `/repos/mpppk/typed-api-spec/topics`>, + ValidateUrl<{ a: string }, `/repos/nota/typed-api-spec/topics`>, C.E<"query parameter required"> > >,