@koozaki/romaji-conv
Advanced tools
Comparing version 2.0.6 to 2.0.7
@@ -1,8 +0,2 @@ | ||
/*! | ||
* @name @koozaki/romaji-conv | ||
* @version 2.0.6 | ||
* @desc Convert romaji into kana | ||
* @author Kojiro Ozaki <koujirou0111@gmail.com> (https://koozaki.com/) | ||
* @see {@link https://koozaki.com/romaji-conv/} | ||
* @license MIT | ||
*/!function(e){var t={};function n(o){if(t[o])return t[o].exports;var a=t[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(o,a,function(t){return e[t]}.bind(null,a));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){var o=n(1);window.romajiConv=o},function(e,t,n){function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var a=n(2),r=n(3),i=n(4),u=a(i),y=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"string"!=typeof t)throw new TypeError('"'.concat(t,'" is not a string.'));this.someString=t,this.hiragana=this.convert(this.someString,r),this.hiragana=this.convert(this.hiragana,u),this.katakana=this.convert(this.hiragana,i)}var t,n,a;return t=e,(n=[{key:"string",value:function(){return this.someString}},{key:"convert",value:function(e,t){return Object.keys(t).reduce((function(e,n){var o=t[n],a=new RegExp(n,"gi");return e.replace(a,o)}),e)}},{key:"toHiragana",value:function(){return this.hiragana}},{key:"toKatakana",value:function(){return this.katakana}}])&&o(t.prototype,n),a&&o(t,a),e}();e.exports=function(e){return new y(e)},e.exports.toHiragana=function(e){return new y(e).toHiragana()},e.exports.toKatakana=function(e){return new y(e).toKatakana()}},function(e,t){e.exports=function(e){var t={};return Object.keys(e).forEach((function(n){var o=e[n],a=n;t[o]=a})),t}},function(e,t){e.exports={nn:"ใ",mb:"ใb",mm:"ใm",mp:"ใp",bb:"ใฃb",cc:"ใฃc",dd:"ใฃd",ff:"ใฃf",gg:"ใฃg",hh:"ใฃh",jj:"ใฃj",kk:"ใฃk",ll:"ใฃl",pp:"ใฃp",qq:"ใฃq",rr:"ใฃr",ss:"ใฃs",tt:"ใฃt",vv:"ใฃv",ww:"ใฃw",xx:"ใฃx",yy:"ใฃy",zz:"ใฃz",ltsu:"ใฃ",xtsu:"ใฃ",hwyu:"ใตใ ",vya:"ใใ",vyi:"ใใ",vyu:"ใใ ",vye:"ใใ",vyo:"ใใ",kya:"ใใ",kyi:"ใใ",kyu:"ใใ ",kye:"ใใ",kyo:"ใใ",kwa:"ใใ",kwi:"ใใ",kwu:"ใใ ",kwe:"ใใ",kwo:"ใใ",gya:"ใใ",gyi:"ใใ",gyu:"ใใ ",gye:"ใใ",gyo:"ใใ",gwa:"ใใ",gwi:"ใใ",gwu:"ใใ ",gwe:"ใใ",gwo:"ใใ",sya:"ใใ",syi:"ใใ",syu:"ใใ ",sye:"ใใ",syo:"ใใ",sha:"ใใ",shi:"ใ",shu:"ใใ ",she:"ใใ",sho:"ใใ",jya:"ใใ",jyi:"ใใ",jyu:"ใใ ",jye:"ใใ",jyo:"ใใ",zya:"ใใ",zyi:"ใใ",zyu:"ใใ ",zye:"ใใ",zyo:"ใใ",tsa:"ใคใ",tsi:"ใคใ",tsu:"ใค",tse:"ใคใ",tso:"ใคใ",tya:"ใกใ",tyi:"ใกใ",tyu:"ใกใ ",tye:"ใกใ",tyo:"ใกใ",tha:"ใฆใ",thi:"ใฆใ",thu:"ใฆใ ",the:"ใฆใ",tho:"ใฆใ",cya:"ใกใ",cyi:"ใกใ",cyu:"ใกใ ",cye:"ใกใ",cyo:"ใกใ",cha:"ใกใ",chi:"ใก",chu:"ใกใ ",che:"ใกใ",cho:"ใกใ",twa:"ใจใ",twi:"ใจใ",twu:"ใจใ ",twe:"ใจใ",two:"ใจใ",dya:"ใขใ",dyi:"ใขใ",dyu:"ใขใ ",dye:"ใขใ",dyo:"ใขใ",dha:"ใงใ",dhi:"ใงใ",dhu:"ใงใ ",dhe:"ใงใ",dho:"ใงใ",nya:"ใซใ",nyi:"ใซใ",nyu:"ใซใ ",nye:"ใซใ",nyo:"ใซใ",hya:"ใฒใ",hyi:"ใฒใ",hyu:"ใฒใ ",hye:"ใฒใ",hyo:"ใฒใ",hwa:"ใตใ",hwi:"ใตใ",hwe:"ใตใ",hwo:"ใตใ",fya:"ใตใ",fyu:"ใตใ ",fyo:"ใตใ",bya:"ใณใ",byi:"ใณใ",byu:"ใณใ ",bye:"ใณใ",byo:"ใณใ",pya:"ใดใ",pyi:"ใดใ",pyu:"ใดใ ",pye:"ใดใ",pyo:"ใดใ",mya:"ใฟใ",myi:"ใฟใ",myu:"ใฟใ ",mye:"ใฟใ",myo:"ใฟใ",rya:"ใใ",ryi:"ใใ",ryu:"ใใ ",rye:"ใใ",ryo:"ใใ",wha:"ใใ",whi:"ใใ",whu:"ใ",whe:"ใใ",who:"ใใ",ltu:"ใฃ",xtu:"ใฃ",lya:"ใ",lyi:"ใ",lyu:"ใ ",lye:"ใ",lyo:"ใ",xya:"ใ",xyi:"ใ",xyu:"ใ ",xye:"ใ",xyo:"ใ",lwa:"ใ",xwa:"ใ",ka:"ใ",ki:"ใ",ku:"ใ",ke:"ใ",ko:"ใ",sa:"ใ",si:"ใ",su:"ใ",se:"ใ",so:"ใ",ca:"ใ",ci:"ใ",cu:"ใ",ce:"ใ",co:"ใ",ta:"ใ",ti:"ใก",tu:"ใค",te:"ใฆ",to:"ใจ",na:"ใช",ni:"ใซ",nu:"ใฌ",ne:"ใญ",no:"ใฎ",ha:"ใฏ",hi:"ใฒ",hu:"ใต",he:"ใธ",ho:"ใป",ma:"ใพ",mi:"ใฟ",mu:"ใ",me:"ใ",mo:"ใ",ya:"ใ",yu:"ใ",yo:"ใ",ra:"ใ",ri:"ใ",ru:"ใ",re:"ใ",ro:"ใ",wa:"ใ",wi:"ใใ",wu:"ใ",we:"ใใ",wo:"ใ",qa:"ใใ",qi:"ใใ",qu:"ใ",qe:"ใใ",qo:"ใใ",fa:"ใตใ",fi:"ใตใ",fu:"ใต",fe:"ใตใ",fo:"ใตใ",va:"ใใ",vi:"ใใ",vu:"ใ",ve:"ใใ",vo:"ใใ",ga:"ใ",gi:"ใ",gu:"ใ",ge:"ใ",go:"ใ",za:"ใ",zi:"ใ",zu:"ใ",ze:"ใ",zo:"ใ",ja:"ใใ",ji:"ใ",ju:"ใใ ",je:"ใใ",jo:"ใใ",da:"ใ ",di:"ใข",du:"ใฅ",de:"ใง",do:"ใฉ",ba:"ใฐ",bi:"ใณ",bu:"ใถ",be:"ใน",bo:"ใผ",pa:"ใฑ",pi:"ใด",pu:"ใท",pe:"ใบ",po:"ใฝ",la:"ใ",li:"ใ",lu:"ใ ",le:"ใ",lo:"ใ",xa:"ใ",xi:"ใ",xu:"ใ ",xe:"ใ",xo:"ใ",a:"ใ",i:"ใ",u:"ใ",e:"ใ",o:"ใ",n:"ใ",0:"๏ผ",1:"๏ผ",2:"๏ผ",3:"๏ผ",4:"๏ผ",5:"๏ผ",6:"๏ผ",7:"๏ผ",8:"๏ผ",9:"๏ผ","-":"ใผ",",":"ใ","\\.":"ใ","\\!":"๏ผ","\\?":"๏ผ"}},function(e,t){e.exports={"ใ":"ใข","ใ":"ใค","ใ":"ใฆ","ใ":"ใจ","ใ":"ใช","ใ":"ใซ","ใ":"ใญ","ใ":"ใฏ","ใ":"ใฑ","ใ":"ใณ","ใ":"ใต","ใ":"ใท","ใ":"ใน","ใ":"ใป","ใ":"ใฝ","ใ":"ใฟ","ใก":"ใ","ใค":"ใ","ใฆ":"ใ","ใจ":"ใ","ใช":"ใ","ใซ":"ใ","ใฌ":"ใ","ใญ":"ใ","ใฎ":"ใ","ใฏ":"ใ","ใฒ":"ใ","ใต":"ใ","ใธ":"ใ","ใป":"ใ","ใพ":"ใ","ใฟ":"ใ","ใ":"ใ ","ใ":"ใก","ใ":"ใข","ใ":"ใค","ใ":"ใฆ","ใ":"ใจ","ใ":"ใฉ","ใ":"ใช","ใ":"ใซ","ใ":"ใฌ","ใ":"ใญ","ใ":"ใฏ","ใ":"ใฒ","ใ":"ใณ","ใ":"ใด","ใ":"ใฌ","ใ":"ใฎ","ใ":"ใฐ","ใ":"ใฒ","ใ":"ใด","ใ":"ใถ","ใ":"ใธ","ใ":"ใบ","ใ":"ใผ","ใ":"ใพ","ใ ":"ใ","ใข":"ใ","ใฅ":"ใ ","ใง":"ใ","ใฉ":"ใ","ใฐ":"ใ","ใณ":"ใ","ใถ":"ใ","ใน":"ใ","ใผ":"ใ","ใฑ":"ใ","ใด":"ใ","ใท":"ใ","ใบ":"ใ","ใฝ":"ใ","ใ":"ใก","ใ":"ใฃ","ใ ":"ใฅ","ใ":"ใง","ใ":"ใฉ","ใ":"ใฃ","ใ ":"ใฅ","ใ":"ใง","ใ":"ใฎ","ใฃ":"ใ"}}]); | ||
/*! For license information please see romaji-conv.js.LICENSE.txt */ | ||
!function(){var a,t={241:function(a,t,e){function o(a,t){for(var e=0;e<t.length;e++){var o=t[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(a,o.key,o)}}var n=e(438),i=e(887),y=e(566),u=n(y),r=function(){function a(t){if(function(a,t){if(!(a instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),"string"!=typeof t)throw new TypeError('"'.concat(t,'" is not a string.'));this.someString=t,this.hiragana=this.convert(this.someString,i),this.hiragana=this.convert(this.hiragana,u),this.katakana=this.convert(this.hiragana,y)}var t,e;return t=a,(e=[{key:"string",value:function(){return this.someString}},{key:"convert",value:function(a,t){return Object.keys(t).reduce((function(a,e){var o=t[e],n=new RegExp(e,"gi");return a.replace(n,o)}),a)}},{key:"toHiragana",value:function(){return this.hiragana}},{key:"toKatakana",value:function(){return this.katakana}}])&&o(t.prototype,e),a}();a.exports=function(a){return new r(a)},a.exports.toHiragana=function(a){return new r(a).toHiragana()},a.exports.toKatakana=function(a){return new r(a).toKatakana()}},566:function(a){a.exports={"ใ":"ใข","ใ":"ใค","ใ":"ใฆ","ใ":"ใจ","ใ":"ใช","ใ":"ใซ","ใ":"ใญ","ใ":"ใฏ","ใ":"ใฑ","ใ":"ใณ","ใ":"ใต","ใ":"ใท","ใ":"ใน","ใ":"ใป","ใ":"ใฝ","ใ":"ใฟ","ใก":"ใ","ใค":"ใ","ใฆ":"ใ","ใจ":"ใ","ใช":"ใ","ใซ":"ใ","ใฌ":"ใ","ใญ":"ใ","ใฎ":"ใ","ใฏ":"ใ","ใฒ":"ใ","ใต":"ใ","ใธ":"ใ","ใป":"ใ","ใพ":"ใ","ใฟ":"ใ","ใ":"ใ ","ใ":"ใก","ใ":"ใข","ใ":"ใค","ใ":"ใฆ","ใ":"ใจ","ใ":"ใฉ","ใ":"ใช","ใ":"ใซ","ใ":"ใฌ","ใ":"ใญ","ใ":"ใฏ","ใ":"ใฒ","ใ":"ใณ","ใ":"ใด","ใ":"ใฌ","ใ":"ใฎ","ใ":"ใฐ","ใ":"ใฒ","ใ":"ใด","ใ":"ใถ","ใ":"ใธ","ใ":"ใบ","ใ":"ใผ","ใ":"ใพ","ใ ":"ใ","ใข":"ใ","ใฅ":"ใ ","ใง":"ใ","ใฉ":"ใ","ใฐ":"ใ","ใณ":"ใ","ใถ":"ใ","ใน":"ใ","ใผ":"ใ","ใฑ":"ใ","ใด":"ใ","ใท":"ใ","ใบ":"ใ","ใฝ":"ใ","ใ":"ใก","ใ":"ใฃ","ใ ":"ใฅ","ใ":"ใง","ใ":"ใฉ","ใ":"ใฃ","ใ ":"ใฅ","ใ":"ใง","ใ":"ใฎ","ใฃ":"ใ"}},887:function(a){a.exports={nn:"ใ",mb:"ใb",mm:"ใm",mp:"ใp",bb:"ใฃb",cc:"ใฃc",dd:"ใฃd",ff:"ใฃf",gg:"ใฃg",hh:"ใฃh",jj:"ใฃj",kk:"ใฃk",ll:"ใฃl",pp:"ใฃp",qq:"ใฃq",rr:"ใฃr",ss:"ใฃs",tt:"ใฃt",vv:"ใฃv",ww:"ใฃw",xx:"ใฃx",yy:"ใฃy",zz:"ใฃz",ltsu:"ใฃ",xtsu:"ใฃ",hwyu:"ใตใ ",vya:"ใใ",vyi:"ใใ",vyu:"ใใ ",vye:"ใใ",vyo:"ใใ",kya:"ใใ",kyi:"ใใ",kyu:"ใใ ",kye:"ใใ",kyo:"ใใ",kwa:"ใใ",kwi:"ใใ",kwu:"ใใ ",kwe:"ใใ",kwo:"ใใ",gya:"ใใ",gyi:"ใใ",gyu:"ใใ ",gye:"ใใ",gyo:"ใใ",gwa:"ใใ",gwi:"ใใ",gwu:"ใใ ",gwe:"ใใ",gwo:"ใใ",sya:"ใใ",syi:"ใใ",syu:"ใใ ",sye:"ใใ",syo:"ใใ",sha:"ใใ",shi:"ใ",shu:"ใใ ",she:"ใใ",sho:"ใใ",jya:"ใใ",jyi:"ใใ",jyu:"ใใ ",jye:"ใใ",jyo:"ใใ",zya:"ใใ",zyi:"ใใ",zyu:"ใใ ",zye:"ใใ",zyo:"ใใ",tsa:"ใคใ",tsi:"ใคใ",tsu:"ใค",tse:"ใคใ",tso:"ใคใ",tya:"ใกใ",tyi:"ใกใ",tyu:"ใกใ ",tye:"ใกใ",tyo:"ใกใ",tha:"ใฆใ",thi:"ใฆใ",thu:"ใฆใ ",the:"ใฆใ",tho:"ใฆใ",cya:"ใกใ",cyi:"ใกใ",cyu:"ใกใ ",cye:"ใกใ",cyo:"ใกใ",cha:"ใกใ",chi:"ใก",chu:"ใกใ ",che:"ใกใ",cho:"ใกใ",twa:"ใจใ",twi:"ใจใ",twu:"ใจใ ",twe:"ใจใ",two:"ใจใ",dya:"ใขใ",dyi:"ใขใ",dyu:"ใขใ ",dye:"ใขใ",dyo:"ใขใ",dha:"ใงใ",dhi:"ใงใ",dhu:"ใงใ ",dhe:"ใงใ",dho:"ใงใ",nya:"ใซใ",nyi:"ใซใ",nyu:"ใซใ ",nye:"ใซใ",nyo:"ใซใ",hya:"ใฒใ",hyi:"ใฒใ",hyu:"ใฒใ ",hye:"ใฒใ",hyo:"ใฒใ",hwa:"ใตใ",hwi:"ใตใ",hwe:"ใตใ",hwo:"ใตใ",fya:"ใตใ",fyu:"ใตใ ",fyo:"ใตใ",bya:"ใณใ",byi:"ใณใ",byu:"ใณใ ",bye:"ใณใ",byo:"ใณใ",pya:"ใดใ",pyi:"ใดใ",pyu:"ใดใ ",pye:"ใดใ",pyo:"ใดใ",mya:"ใฟใ",myi:"ใฟใ",myu:"ใฟใ ",mye:"ใฟใ",myo:"ใฟใ",rya:"ใใ",ryi:"ใใ",ryu:"ใใ ",rye:"ใใ",ryo:"ใใ",wha:"ใใ",whi:"ใใ",whu:"ใ",whe:"ใใ",who:"ใใ",ltu:"ใฃ",xtu:"ใฃ",lya:"ใ",lyi:"ใ",lyu:"ใ ",lye:"ใ",lyo:"ใ",xya:"ใ",xyi:"ใ",xyu:"ใ ",xye:"ใ",xyo:"ใ",lwa:"ใ",xwa:"ใ",ka:"ใ",ki:"ใ",ku:"ใ",ke:"ใ",ko:"ใ",sa:"ใ",si:"ใ",su:"ใ",se:"ใ",so:"ใ",ca:"ใ",ci:"ใ",cu:"ใ",ce:"ใ",co:"ใ",ta:"ใ",ti:"ใก",tu:"ใค",te:"ใฆ",to:"ใจ",na:"ใช",ni:"ใซ",nu:"ใฌ",ne:"ใญ",no:"ใฎ",ha:"ใฏ",hi:"ใฒ",hu:"ใต",he:"ใธ",ho:"ใป",ma:"ใพ",mi:"ใฟ",mu:"ใ",me:"ใ",mo:"ใ",ya:"ใ",yu:"ใ",yo:"ใ",ra:"ใ",ri:"ใ",ru:"ใ",re:"ใ",ro:"ใ",wa:"ใ",wi:"ใใ",wu:"ใ",we:"ใใ",wo:"ใ",qa:"ใใ",qi:"ใใ",qu:"ใ",qe:"ใใ",qo:"ใใ",fa:"ใตใ",fi:"ใตใ",fu:"ใต",fe:"ใตใ",fo:"ใตใ",va:"ใใ",vi:"ใใ",vu:"ใ",ve:"ใใ",vo:"ใใ",ga:"ใ",gi:"ใ",gu:"ใ",ge:"ใ",go:"ใ",za:"ใ",zi:"ใ",zu:"ใ",ze:"ใ",zo:"ใ",ja:"ใใ",ji:"ใ",ju:"ใใ ",je:"ใใ",jo:"ใใ",da:"ใ ",di:"ใข",du:"ใฅ",de:"ใง",do:"ใฉ",ba:"ใฐ",bi:"ใณ",bu:"ใถ",be:"ใน",bo:"ใผ",pa:"ใฑ",pi:"ใด",pu:"ใท",pe:"ใบ",po:"ใฝ",la:"ใ",li:"ใ",lu:"ใ ",le:"ใ",lo:"ใ",xa:"ใ",xi:"ใ",xu:"ใ ",xe:"ใ",xo:"ใ",a:"ใ",i:"ใ",u:"ใ",e:"ใ",o:"ใ",n:"ใ",0:"๏ผ",1:"๏ผ",2:"๏ผ",3:"๏ผ",4:"๏ผ",5:"๏ผ",6:"๏ผ",7:"๏ผ",8:"๏ผ",9:"๏ผ","-":"ใผ",",":"ใ","\\.":"ใ","\\!":"๏ผ","\\?":"๏ผ"}},438:function(a){a.exports=function(a){var t={};return Object.keys(a).forEach((function(e){var o=a[e],n=e;t[o]=n})),t}}},e={};a=function a(o){if(e[o])return e[o].exports;var n=e[o]={exports:{}};return t[o](n,n.exports,a),n.exports}(241),window.romajiConv=a}(); |
{ | ||
"name": "@koozaki/romaji-conv", | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"description": "Convert romaji into kana", | ||
@@ -40,13 +40,13 @@ "keywords": [ | ||
"dependencies": { | ||
"commander": "^6.1.0" | ||
"commander": "^6.2.1" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.11.6", | ||
"@babel/preset-env": "^7.11.5", | ||
"babel-loader": "^8.1.0", | ||
"eslint": "^7.10.0", | ||
"jest": "^26.4.2", | ||
"@babel/core": "^7.12.10", | ||
"@babel/preset-env": "^7.12.11", | ||
"babel-loader": "^8.2.2", | ||
"eslint": "^7.17.0", | ||
"jest": "^26.6.3", | ||
"npm-run-all": "^4.1.5", | ||
"webpack": "^4.44.2", | ||
"webpack-cli": "^3.3.12" | ||
"webpack": "^5.12.2", | ||
"webpack-cli": "^4.3.1" | ||
}, | ||
@@ -53,0 +53,0 @@ "publishConfig": { |
@@ -23,3 +23,3 @@ # romaji-conv | ||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/@koozaki/romaji-conv@2.0.6/dist/romaji-conv.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@koozaki/romaji-conv@2.0.7/dist/romaji-conv.js"></script> | ||
``` | ||
@@ -26,0 +26,0 @@ |
@@ -17,2 +17,6 @@ const webpack = require('webpack'); | ||
}, | ||
target: [ | ||
'web', | ||
'es5' | ||
], | ||
module: { | ||
@@ -19,0 +23,0 @@ rules: [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23
42195
1
80
708
Updatedcommander@^6.2.1