Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace mpppk to nota #140

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion examples/github/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const fetchT = fetch as FetchT<typeof GITHUB_API_ORIGIN, Spec>;

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) {
Expand Down
4 changes: 2 additions & 2 deletions examples/simple/withValidation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/fetch/index.t-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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">
>
>,
Expand Down
Loading