Skip to content

Commit

Permalink
support dora@0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
soda-x committed Mar 10, 2016
1 parent 175e9cf commit 55a8e86
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

---

## 0.2.0

- feat: support dora@0.3

## 0.1.1

- fix: usage
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dora-plugin-qrcode",
"version": "0.1.1",
"version": "0.2.0",
"repository": {
"type": "git",
"url": "https://github.com/dora-js/dora-plugin-qrcode"
Expand All @@ -19,6 +19,7 @@
"lint"
],
"dependencies": {
"internal-ip": "^1.2.0",
"qrcode-terminal": "^0.10.0"
},
"devDependencies": {
Expand All @@ -29,7 +30,7 @@
"babel-preset-es2015": "~6.1.18",
"babel-preset-stage-0": "~6.1.18",
"coveralls": "^2.11.6",
"dora": "~0.2.2",
"dora": "0.3.x",
"eslint": "~1.9.0",
"eslint-config-airbnb": "~1.0.0",
"expect": "^1.13.4",
Expand Down
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { setErrorLevel, generate } from 'qrcode-terminal';
import { getHref } from './util';

const localIP = require('internal-ip')();

export default {
'server.after'() {
const { log, localIP, query } = this;
const { log, query } = this;
const href = getHref(query, localIP);

setErrorLevel('Q');
Expand Down

0 comments on commit 55a8e86

Please sign in to comment.