Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removing the dependency for the outdated "base64" module, using Buffe…

…r objects instead.
  • Loading branch information...
commit 599b4cbb7ae3f5ca258232e0ec3e01bdf60b22b9 1 parent cd68abc
Edward Medvedev authored
Showing with 2 additions and 4 deletions.
  1. +1 −2  package.json
  2. +1 −2  src/rpc_client.coffee
View
3  package.json
@@ -1,6 +1,6 @@
{
"name": "kyoto-client",
- "version": "0.4.0",
+ "version": "0.4.1",
"description": "Client for Kyoto Tycoon",
"homepage": "http://kyoto-client.org/",
"author": "Wesley Moore <wes@wezm.net> (http://www.wezm.net/)",
@@ -32,7 +32,6 @@
},
"engines": "node >= 0.4.1",
"dependencies": {
- "base64": "~2.0.0",
"csv": "~0.0.3"
},
"devDependencies": {
View
3  src/rpc_client.coffee
@@ -2,7 +2,6 @@
csv = require 'csv'
assert = require 'assert'
http = require 'http'
-base64 = require 'base64'
class RpcClient
constructor: (@port, @host) ->
@@ -44,7 +43,7 @@ class RpcClient
decodeURIComponent(col) for col in row
when 'B'
tsv.transform (row, index) ->
- base64.decode(col) for col in row
+ new Buffer(col, 'base64').toString('utf8') for col in row
# Quoted-printable is never selected by the server
# when 'Q'
# throw new Error("Quoted-printable encoding is not implemented")
Please sign in to comment.
Something went wrong with that request. Please try again.