@fastcampus/fastbus
Advanced tools
Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "@fastcampus/fastbus", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "fast and simple pubsub using redis", | ||
"url": "https://github.com/fastcampusgit/fastbus", | ||
"repository": "https://github.com/fastcampusgit/fastbus", | ||
"main": "index.js", | ||
"author": "iolo@fastcampus.co.kr", | ||
"license": "MIT", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.js", | ||
"scripts": { | ||
"prepare": "npm run build", | ||
"prepublishOnly": "npm run build", | ||
"lint": "eslint --ext .js --ext .ts ./src", | ||
@@ -15,17 +18,16 @@ "test": "jest --forceExit --coverage --verbose ./src", | ||
}, | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@types/jest": "^25.2.3", | ||
"@types/node": "^14.0.5", | ||
"@types/redis": "^2.8.21", | ||
"@typescript-eslint/eslint-plugin": "^3.0.0", | ||
"@typescript-eslint/parser": "^3.0.0", | ||
"eslint": "^7.1.0", | ||
"@types/jest": "^26.0.4", | ||
"@types/node": "^14.0.23", | ||
"@types/redis": "^2.8.25", | ||
"@typescript-eslint/eslint-plugin": "^3.6.1", | ||
"@typescript-eslint/parser": "^3.6.1", | ||
"eslint": "^7.4.0", | ||
"eslint-config-prettier": "^6.11.0", | ||
"eslint-plugin-prettier": "^3.1.3", | ||
"jest": "^26.0.1", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"jest": "^26.1.0", | ||
"prettier": "^2.0.5", | ||
"redis-mock": "^0.49.0", | ||
"ts-jest": "^26.0.0", | ||
"typescript": "^3.9.3" | ||
"ts-jest": "^26.1.2", | ||
"typescript": "^3.9.6" | ||
}, | ||
@@ -32,0 +34,0 @@ "dependencies": { |
@@ -5,2 +5,4 @@ # fastbus | ||
[![npm version](https://badge.fury.io/js/%40fastcampus%2Ffastbus.svg)](https://badge.fury.io/js/%40fastcampus%2Ffastbus) | ||
## Getting Started | ||
@@ -7,0 +9,0 @@ |
@@ -15,3 +15,3 @@ import Debug from 'debug'; | ||
export default class FastBus { | ||
export class FastBus { | ||
prefix: string; | ||
@@ -27,3 +27,3 @@ subscriptions: EventEmitter; | ||
// 주의: redis pub/sub 은 db(key space)를 구분하지 않음 기본 db가 아니면 토픽 이름에 db 를 포함 | ||
toChannelName(topic) { | ||
private toChannelName(topic) { | ||
return this.prefix + topic; | ||
@@ -30,0 +30,0 @@ } |
@@ -1,1 +0,1 @@ | ||
export * from './fast-bus'; | ||
export { FastBus } from './fast-bus'; |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
19925
19
395
1
40
0