From 12019385916226e2543b4f2d727b5b7c3548813f Mon Sep 17 00:00:00 2001 From: storycraft Date: Sat, 12 Sep 2020 18:58:30 +0900 Subject: [PATCH] say hello to npm again --- package.json | 7 ++----- readme.md | 15 ++++++++------- src/kakao-api.ts | 1 + 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 6fcc42d6..64f4a44b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "@storycraft/node-kakao", - "version": "3.1.0-preview.0", + "name": "node-kakao", + "version": "3.1.0", "description": "Loco protocol compatible library", "main": "dist/index.js", "scripts": { @@ -16,9 +16,6 @@ "email": "storycraft@pancake.sh", "url": "https://pancake.sh" }, - "publishConfig": { - "registry": "https://npm.pkg.github.com/" - }, "license": "MIT", "devDependencies": { "@types/bson": "^4.0.0", diff --git a/readme.md b/readme.md index f61b68b1..78eaaf3b 100644 --- a/readme.md +++ b/readme.md @@ -1,3 +1,4 @@ +[![npm version](https://badge.fury.io/js/node-kakao.svg)](https://www.npmjs.com/package/node-kakao) # NodeKakao - Loco protocol compatible library Note: this implemention can stop working anytime. @@ -17,7 +18,7 @@ Client can act differently unlike official client. Abusing this client can cause Common code ```typescript -import { TalkClient, LoginError } from '@storycraft/node-kakao'; +import { TalkClient, LoginError } from 'node-kakao'; let client = new TalkClient('TEST_CLIENT', 'random base64 device id'); @@ -32,7 +33,7 @@ client.login('123456789@email.com', '123456') ```typescript -import { Chat, ChatMention } from '@storycraft/node-kakao'; +import { Chat, ChatMention } from 'node-kakao'; client.on('message', (chat: Chat) => { let userInfo = chat.Channel.getUserInfo(chat.Sender); @@ -50,7 +51,7 @@ client.on('message', (chat: Chat) => { ```typescript -import { Chat, ChatType } from '@storycraft/node-kakao'; +import { Chat, ChatType } from 'node-kakao'; import * as fs from 'fs'; client.on('message', (chat: Chat) => { @@ -75,7 +76,7 @@ client.on('message', (chat: Chat) => { ```typescript -import { Chat, SharpAttachment } from '@storycraft/node-kakao'; +import { Chat, SharpAttachment } from 'node-kakao'; client.on('message', (chat: Chat) => { let userInfo = chat.Channel.getUserInfo(chat.Sender); @@ -90,11 +91,11 @@ client.on('message', (chat: Chat) => { }); ``` -### join message +### Join message ```typescript -import { ChatChannel, ChatUser, FeedChat, OpenJoinFeed, InviteFeed } from '@storycraft/node-kakao'; +import { ChatChannel, ChatUser, FeedChat, OpenJoinFeed, InviteFeed } from 'node-kakao'; client.on('user_join', (channel: ChatChannel, user: ChatUser, feed?: FeedChat) => { let info = channel.getUserInfo(user); @@ -108,7 +109,7 @@ client.on('user_join', (channel: ChatChannel, user: ChatUser, feed?: FeedChat