niwaringo/moji

npmパッケージの更新

Opened this issue · 2 comments

2017年9月4日現在発行されているmoji@0.5.1は動作しません。

yarn add moji
# ├─ moji@0.5.1

nvm use 0
# Now using node v0.12.13 (npm v2.15.0)

node
require('moji')('test').convert('HEtoZE')
# TypeError: Cannot read property 'start' of undefined
#     at Moji._mojisyuType (/Users/59naga/Downloads/hoge/node_modules/moji/src/moji.core.js:184:16)
#     at Moji.convert (/Users/59naga/Downloads/hoge/node_modules/moji/src/moji.core.js:32:14)
#     at repl:1:25
#     at REPLServer.defaultEval (repl.js:132:27)
#     at bound (domain.js:291:14)
#     at REPLServer.runBound [as eval] (domain.js:304:12)
#     at REPLServer.<anonymous> (repl.js:279:12)
#     at REPLServer.emit (events.js:107:17)
#     at REPLServer.Interface._onLine (readline.js:214:10)
#     at REPLServer.Interface._line (readline.js:553:8)

現在のレポジトリ a1511d1 を直接npm installする場合は動作します。

npm install https://github.com/niwaringo/moji
# moji@1.2.0 node_modules/moji

node
require('moji')('test').convert('HEtoZE')
# { _str: 'test',
# ...

npmパッケージの更新をお願い致します。

Any update on this?

npmにv1.2.0のアップお願いします。