Skip to content
This repository was archived by the owner on Jan 25, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
109 changes: 68 additions & 41 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,71 @@
{
"_from": "git://github.com/sparwelt/amazon-associate.git#master",
"_id": "amazon-associate@0.3.2",
"_inBundle": false,
"_location": "/amazon-associate",
"_phantomChildren": {},
"_requested": {
"type": "git",
"raw": "amazon-associate@git://github.com/sparwelt/amazon-associate.git#master",
"name": "amazon-associate",
"description": "amazon-associate is a simple interface to amazon associate reports for nodejs",
"version": "0.3.1",
"keywords": ["amazon", "associate", "report"],
"homepage": "http://github.com/snd/amazon-associate",
"author": {
"name": "Maximilian Krüger",
"email": "kruemaxi@gmail.com",
"url": "http://github.com/snd"
},
"bugs": {
"url": "http://github.com/snd/amazon-associate/issues",
"email": "kruemaxi@gmail.com"
},
"repository": {
"type": "git",
"url": "git://github.com/snd/amazon-associate.git"
},
"licenses": {
"type": "MIT",
"url": "git://github.com/snd/amazon-associate/LICENSE"
},
"engines": {
"node": ">=0.8.5"
},
"dependencies": {
"underscore": "1.5.1",
"moment": "2.1.0",
"sax": "0.5.5"
},
"devDependencies": {
"coffee-script": "1.6.3",
"nodeunit": "0.8"
},
"main": "src/amazon",
"scripts": {
"prepublish": "coffee --bare --compile --output src src/*.coffee",
"postpublish": "rm src/*.js",
"pretest": "coffee --bare --compile --output src src/*.coffee && coffee --bare --compile --output test test/*.coffee",
"posttest": "rm src/*.js && rm test/*.js",
"test": "nodeunit test/*.js"
}
"escapedName": "amazon-associate",
"rawSpec": "git://github.com/sparwelt/amazon-associate.git#master",
"saveSpec": "git://github.com/sparwelt/amazon-associate.git#master",
"fetchSpec": "git://github.com/sparwelt/amazon-associate.git",
"gitCommittish": "master"
},
"_requiredBy": [
"/"
],
"_resolved": "git://github.com/sparwelt/amazon-associate.git#f68bdbf9f855ba2e4006e92e3e30c431fc13d64e",
"_spec": "amazon-associate@git://github.com/sparwelt/amazon-associate.git#master",
"_where": "/home/pawel/Work/workspace-js/bi-affiliate",
"author": {
"name": "Maximilian Krüger",
"email": "kruemaxi@gmail.com",
"url": "http://github.com/snd"
},
"bugs": {
"url": "http://github.com/snd/amazon-associate/issues",
"email": "kruemaxi@gmail.com"
},
"bundleDependencies": false,
"dependencies": {
"moment": "2.20.1",
"sax": "1.2.4",
"underscore": "1.8.3"
},
"deprecated": false,
"description": "amazon-associate is a simple interface to amazon associate reports for nodejs",
"devDependencies": {
"coffeescript": "^2.3.1",
"nodeunit": "0.11.2"
},
"engines": {
"node": ">=0.8.5"
},
"homepage": "http://github.com/snd/amazon-associate",
"keywords": [
"amazon",
"associate",
"report"
],
"licenses": {
"type": "MIT",
"url": "git://github.com/snd/amazon-associate/LICENSE"
},
"main": "src/amazon",
"name": "amazon-associate",
"repository": {
"type": "git",
"url": "git://github.com/snd/amazon-associate.git"
},
"scripts": {
"postpublish": "rm src/*.js",
"posttest": "rm src/*.js && rm test/*.js",
"prepublish": "coffee --bare --compile --output src src/*.coffee",
"pretest": "coffee --bare --compile --output src src/*.coffee && coffee --bare --compile --output test test/*.coffee",
"test": "nodeunit test/*.js"
},
"version": "0.3.2"
}
2 changes: 1 addition & 1 deletion src/client.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ module.exports = class
@debug 'redirect location', parsedUrl

@request _.extend({}, parsedUrl, {
https: parsedUrl.protocol is 'https'
https: parsedUrl.protocol is 'https' || parsedUrl.protocol.includes 'https'
state: options.state
unzip: options.unzip
}), cb
Expand Down
1 change: 1 addition & 0 deletions src/item-parser.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ sax = require 'sax'

module.exports = class extends EventEmitter
constructor: ->
super()
@items = []
@mode = 'search-item-list'

Expand Down
1 change: 1 addition & 0 deletions src/report-parser.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ sax = require 'sax'

module.exports = class extends EventEmitter
constructor: ->
super()
@reports = []
@report = {}
@mode = 'search-table-head-end'
Expand Down
1 change: 1 addition & 0 deletions src/unzipping-response-decorator.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ zlib = require 'zlib'
module.exports = class extends EventEmitter

constructor: (res) ->
super()
@statusCode = res.statusCode
@httpVersion = res.httpVersion
@headers = res.headers
Expand Down