Skip to content
This repository has been archived by the owner on Dec 17, 2018. It is now read-only.

Commit

Permalink
#5 fix issue with buffertools.indexOf
Browse files Browse the repository at this point in the history
  • Loading branch information
radekstepan committed Feb 27, 2015
1 parent 5ca818d commit aaf48ce
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 28 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v0.12.0
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env node
require('coffee-script');
require('coffee-script/register');
module.exports = require('./src/grabber.coffee');
49 changes: 24 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
{
"name": "nzb-grabber-js",
"version": "0.1.2",
"keywords": [ "nzb", "usenet", "grabber", "leecher", "download", "nntp", "yenc" ],
"author": "Radek <[email protected]>",
"dependencies": {
"coffee-script": "1.6.2",
"async": "~0.2.9",
"buffer-crc32": "~0.2.1",
"buffertools": "1.1.1",
"xml2js": "~0.2.7",
"node-logging": "0.1.6",
"watchr": "2.4.3"
},
"devDependencies": {
"mocha": "1.8.1"
},
"scripts": {
"test": "./node_modules/.bin/mocha --compilers coffee:coffee-script --reporter spec --ui exports --timeout 5000 --slow 2000 --bail"
},
"repository": {
"type": "git",
"url": "https://github.com/radekstepan/nzb-grabber-js.git"
},
"readmeFilename": "README.md",
"main": "./index.js"
"name": "nzb-grabber-js",
"version": "0.1.3",
"keywords": [ "nzb", "usenet", "grabber", "leecher", "download", "nntp", "yenc" ],
"author": "Radek <[email protected]>",
"dependencies": {
"coffee-script": "~1.9.1",
"async": "~0.9.0",
"buffer-crc32": "~0.2.5",
"buffertools": "~2.1.2",
"xml2js": "~0.4.5",
"node-logging": "0.1.6",
"watchr": "~2.4.13"
},
"devDependencies": {
"mocha": "~2.1.0"
},
"scripts": {
"test": "./node_modules/.bin/mocha --compilers coffee:coffee-script/register --reporter spec --ui exports --timeout 5000 --slow 2000 --bail"
},
"repository": {
"type": "git",
"url": "https://github.com/radekstepan/nzb-grabber-js.git"
},
"main": "./index.js"
}
4 changes: 2 additions & 2 deletions src/nntp.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ id = 0
# A single conenction worker.
class NNTPWorker

# Our worker is state. Offline/Ready/Busy
# Our worker's state. Offline/Ready/Busy
state: 'OFFLINE'

# Last error to have happened on our worker.
Expand Down Expand Up @@ -150,7 +150,7 @@ class NNTPWorker
# Remove headers and the trailing dot on input.
removeHeaders = (input) ->
length = input.length
input.slice input.indexOf('\r\n\r\n') + 4, length - 3
input.slice buffertools.indexOf(input, '\r\n\r\n') + 4, length - 3

# What mode are we in?
switch @mode
Expand Down

0 comments on commit aaf48ce

Please sign in to comment.