Commit Graph

48 Commits

Author SHA1 Message Date
8eaae0b86a Give encode/decode functions more descriptive names
- `encode()`: Renamed to `int_to_base58()`.
- `decode()`: Renamed to `base58_to_int()`.
- Maintain aliases of old function names for backwards compatibility.
2018-11-18 22:17:56 +00:00
35dd6f57a1 Merge pull request #6 from mccanney/backport
Update for newer ES features
2018-11-18 21:37:38 +00:00
David McCanney
2fa51650b8 Update version number
- Update version number to 2.0.0 since changes affect backwards
  compatibility with node v4.
- Update Travis config to allow node module caching.
2018-09-28 23:07:30 +01:00
David McCanney
8fe37d2db5 Update the test configuration
- Add additional node versions for Travis to test.
- Change var to const in mocha JS file.
2018-09-28 22:45:13 +01:00
David McCanney
8aef7a5081 Add package lock file
- Add the package-lock.json file to the repository to ensure consistent
  builds.
2018-09-28 22:25:49 +01:00
David McCanney
39a0f67e35 Update the dependencies versions
- Require node 6 at a minimum to support the newer ES features.  Node
  version functionality determined via https://node.green.
- Update dev dependencies to their latest versions.  Mocha 3.4 relied
  on a version of growl with a known vulnerability.
- Fix the keywords section, this field is actually an array.
- Update eslint syntax to ES6.
2018-09-28 22:00:52 +01:00
David McCanney
deb7b6892c Update the readme
- Change var to const in the usage guidelines.
2018-09-28 21:40:14 +01:00
David McCanney
47c42ff4a5 Update to newer ES features
- Change var to const and let.
- Change arrays to spread syntax.
- Change to arrow functions.
2018-09-28 21:35:26 +01:00
637ec5c6da Merge pull request #5 from jimeh/lint-using-prettier
Lint using prettier
2017-08-20 19:28:40 +01:00
5f6cc4c169 Use prettier for linting and code formatting via eslint 2017-08-20 19:23:27 +01:00
ffc71e6c1a Remove git hooks
While it's a good idea to ensure you don't commit or push anything
broken, I believe that it should come down developer dicipline. Cause
preventing commits if tests or linting fails, can and does get in the
way of legitimate work, specially on non-master branches.
2017-08-20 19:20:27 +01:00
9be24ba511 Merge pull request #4 from jimeh/lint-using-semistandard
Lint using semistandard
2017-07-09 19:46:37 +01:00
51d70572b1 Lint using semistandard 2017-07-09 19:41:48 +01:00
96b27b9505 Clean up test/.eslintrc.js 2017-07-09 19:30:50 +01:00
ed8cbd3fa2 Update Makefile 2017-07-09 19:30:03 +01:00
4154044541 Bump version to 1.0.1 v1.0.1 2017-07-09 18:11:31 +01:00
9edf3f1a2c Use soft-tabs instead of tabs, minor whitespace cleanup 2017-07-09 18:10:01 +01:00
bc11e0f8d7 Fix Makefile 2017-07-09 18:09:25 +01:00
29c8ef258a Merge pull request #3 from louisbuchbinder/vanillajs
remove large or negative number vulnerability
2017-07-09 17:35:05 +01:00
louisbuchbinder
e029a93cf3 added tests 2017-07-09 09:23:17 -07:00
louisbuchbinder
280b2a7461 remove large or negative number vulnerability 2017-07-09 09:16:52 -07:00
786abf351e Merge pull request #2 from louisbuchbinder/vanillajs
refactor to vanilla js
2017-07-08 17:33:26 +01:00
louisbuchbinder
4ff09a0d77 refactor to vanilla js 2017-07-08 09:03:31 -07:00
12ce0b0d69 It is probably best to install coffeescript with npm 2012-07-11 09:30:06 +01:00
6648b8668d Update test with slightly cleaner and safer code 2012-05-08 03:58:11 +01:00
950311347c Bump version to 0.1.0 v0.1.0 2012-04-19 23:28:55 +01:00
be04fd0d49 Fix incorrect repository URL in package.json 2012-04-19 23:28:44 +01:00
33ae17b282 Enable string value to be passed to Base58.encode() 2012-04-19 23:25:56 +01:00
b45ca698b1 Tweak markdown in readme 2012-04-19 23:14:17 +01:00
f7e5594dc1 Bump version to 0.0.2 v0.0.2 2012-04-19 23:11:14 +01:00
2235cafbc0 Fix typo in error thrown by Base58.decode() 2012-04-19 23:10:07 +01:00
0dbaf8676d Ensure encode throws an error if receiving anything else than a integer 2012-04-19 23:09:10 +01:00
04918a627c Rename internal Base58 class to Base58Builder 2012-04-19 23:08:05 +01:00
8b81397bf3 Small tweak to readme 2012-04-18 11:35:29 +01:00
9200b9df11 Properly define node.js version, and reorganize package.json a bit v0.0.1 2012-04-16 22:47:56 +01:00
83b54987b2 Fix Javascript example in readme 2012-04-16 14:02:16 +01:00
f13ab0058c Update phone Makefile targets 2012-04-16 11:10:34 +01:00
de424e457c Reorder info in package.json so it makes a bit more sense 2012-04-16 09:09:21 +01:00
40388a0c28 Add travis-ci build status image to readme 2012-04-16 09:04:45 +01:00
0eec21473e Update package.json formatting, and add license details 2012-04-16 09:04:27 +01:00
882f8df884 Update package.json 2012-04-16 08:50:50 +01:00
fa8c5db9ed Require the root of the project in the test 2012-04-16 08:42:03 +01:00
5a59fb7720 Fix a typo in readme 2012-04-16 08:41:30 +01:00
174711a0bc Update Makefile to auto-build *.js file before tests and such 2012-04-16 08:41:17 +01:00
450212f4b2 Remove built *.js file from repo 2012-04-16 08:40:42 +01:00
bc868d4160 Fix typo in readme 2012-04-16 08:08:39 +01:00
7872259dcb Add Travis-CI config 2012-04-16 08:08:04 +01:00
ea136a08ff Initial import 2012-04-16 08:06:57 +01:00