Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

attachment-detection

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

attachment-detection - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0-0

2

lib/detector.js
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,

40

package.json
{
"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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc