Skip to content

Commit

Permalink
Add Encoding.version property
Browse files Browse the repository at this point in the history
  • Loading branch information
polygonplanet committed Feb 19, 2022
1 parent 9a7aa67 commit bd3d6ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"devDependencies": {
"bannerify": "^1.0.1",
"browserify": "^16.5.0",
"browserify-versionify": "^1.0.6",
"mocha": "^6.2.0",
"power-assert": "^1.6.1",
"uglify-js": "^3.6.0",
Expand All @@ -23,6 +24,11 @@
"build": "npm run compile && npm run minify",
"test": "npm run build && mocha tests/test"
},
"browserify": {
"transform": [
["browserify-versionify", { "placeholder": "__VERSION__" }]
]
},
"repository": {
"type": "git",
"url": "https://github.com/polygonplanet/encoding.js.git"
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ var KanaCaseTable = require('./kana-case-table');
var hasOwnProperty = Object.prototype.hasOwnProperty;

var Encoding = {
version: '__VERSION__',

/**
* Encoding orders
Expand Down

0 comments on commit bd3d6ef

Please sign in to comment.