File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 "devDependencies" : {
1111 "bannerify" : " ^1.0.1" ,
1212 "browserify" : " ^16.5.0" ,
13+ "browserify-versionify" : " ^1.0.6" ,
1314 "mocha" : " ^6.2.0" ,
1415 "power-assert" : " ^1.6.1" ,
1516 "uglify-js" : " ^3.6.0" ,
2324 "build" : " npm run compile && npm run minify" ,
2425 "test" : " npm run build && mocha tests/test"
2526 },
27+ "browserify" : {
28+ "transform" : [
29+ [" browserify-versionify" , { "placeholder" : " __VERSION__" }]
30+ ]
31+ },
2632 "repository" : {
2733 "type" : " git" ,
2834 "url" : " https://github.com/polygonplanet/encoding.js.git"
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ var KanaCaseTable = require('./kana-case-table');
77var hasOwnProperty = Object . prototype . hasOwnProperty ;
88
99var Encoding = {
10+ version : '__VERSION__' ,
1011
1112 /**
1213 * Encoding orders
You can’t perform that action at this time.
0 commit comments