attachment-detection
Advanced tools
Comparing version 0.1.1 to 0.2.0-0
var _detect = function(link, handlers, callback) { | ||
var handler, index = 0, result = { | ||
link: link, | ||
match: false, | ||
type: undefined | ||
@@ -18,2 +19,3 @@ }; | ||
callback(result); | ||
return; | ||
} | ||
@@ -20,0 +22,0 @@ |
@@ -10,2 +10,3 @@ var request = require('request'), | ||
done({ | ||
match: true, | ||
link: link, | ||
@@ -12,0 +13,0 @@ type: 'image', |
@@ -57,2 +57,3 @@ var request = require('request'), | ||
done({ | ||
match: true, | ||
link: link, | ||
@@ -59,0 +60,0 @@ type: 'link', |
@@ -23,2 +23,3 @@ var request = require('request'), | ||
done({ | ||
match: true, | ||
link: link, | ||
@@ -25,0 +26,0 @@ id: id, |
{ | ||
"name": "attachment-detection", | ||
"version": "0.1.1", | ||
"dependencies": { | ||
"request": "2.10.0", | ||
"cheerio": "0.9.2" | ||
}, | ||
"devDependencies": { | ||
"buster": "0.6.2" | ||
}, | ||
"optionalDependencies": {}, | ||
"engines": { | ||
"node": "*" | ||
}, | ||
"author": "Greenwood", | ||
"description": "Attactment detection for youtube, images and links", | ||
"main": "./lib/index.js", | ||
"scripts": { | ||
"test": "./node_modules/.bin/buster-test" | ||
} | ||
} | ||
"name": "attachment-detection", | ||
"version": "0.2.0-0", | ||
"dependencies": { | ||
"request": "2.10.0", | ||
"cheerio": "0.9.2" | ||
}, | ||
"devDependencies": { | ||
"buster": "*" | ||
}, | ||
"optionalDependencies": {}, | ||
"engines": { | ||
"node": "*" | ||
}, | ||
"author": "Greenwood", | ||
"description": "Attactment detection for youtube, images and links", | ||
"main": "./lib/index.js", | ||
"scripts": { | ||
"test": "./node_modules/.bin/buster-test" | ||
} | ||
} |
10378
255