From 681f9efd7620f16d006ea0dc02cc121ef8b3e368 Mon Sep 17 00:00:00 2001 From: sup39 Date: Wed, 29 Apr 2020 23:04:29 +0900 Subject: [PATCH] move supmiku39 to sup39 --- README.md | 8 ++++---- package.json | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 9bf0b12..dddc6c1 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ This tool assumes you use **koa router** for server and **axios** for client. ## How to use this tool? ### 0. Install it ``` -yarn add -D @supmiku39/api-ts-gen +yarn add -D @sup39/api-ts-gen ``` Also, install the dependencies that generated code will use. ``` @@ -154,7 +154,7 @@ where the `path`, `query`, `header`, `cookie` is a object whose key is the `name ``` import api from '#api/ClientAPI'; -// import {FullDate} from '@supmiku39/api-ts-gen/utils'; +// import {FullDate} from '@sup39/api-ts-gen/utils'; // import {SchemaA} from '#api/schemas'; // ... @@ -178,9 +178,9 @@ api.$baseURL = '/same/as/the/prefix/in/server'; If the format is `string` `date`, you should use `FullDate` instead of `Date`. `FullDate` is a wrapper of `Date`, which implements `.toString()`, `.toJSON()` and `.valueOf()` to make it more convenience to convert it to String or JSON. -Import `FullDate` class from `@supmiku39/api-ts-gen/utils`. +Import `FullDate` class from `@sup39/api-ts-gen/utils`. ``` -import {FullDate} from '@supmiku39/api-ts-gen/utils'; +import {FullDate} from '@sup39/api-ts-gen/utils'; // initialization new FullDate(new Date()); // from a Date instance diff --git a/package.json b/package.json index 5c1ab9b..991fa60 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "@supmiku39/api-ts-gen", - "version": "2.0.2", + "name": "@sup39/api-ts-gen", + "version": "2.0.2-a", "description": "OpenAPI code generator for TypeScript", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -9,10 +9,10 @@ "build": "tsc", "lint": "eslint lib bin --ext ts --ext js" }, - "author": "supmiku39", + "author": "sup39", "license": "MIT", "repository": { - "url": "https://github.com/supmiku39/api-ts-gen", + "url": "https://github.com/sup39/api-ts-gen", "type": "git" }, "keywords": [