Comparing version 0.0.1 to 0.1.0
59
index.js
var http = require('http'); | ||
if (http.METHODS) { | ||
module.exports = http.METHODS.map(function(method){ | ||
return method.toLowerCase(); | ||
}); | ||
return; | ||
} | ||
module.exports = [ | ||
'get' | ||
, 'post' | ||
, 'put' | ||
, 'head' | ||
, 'delete' | ||
, 'options' | ||
, 'trace' | ||
, 'copy' | ||
, 'lock' | ||
, 'mkcol' | ||
, 'move' | ||
, 'propfind' | ||
, 'proppatch' | ||
, 'unlock' | ||
, 'report' | ||
, 'mkactivity' | ||
, 'checkout' | ||
, 'merge' | ||
, 'm-search' | ||
, 'notify' | ||
, 'subscribe' | ||
, 'unsubscribe' | ||
, 'patch' | ||
]; | ||
'get', | ||
'post', | ||
'put', | ||
'head', | ||
'delete', | ||
'options', | ||
'trace', | ||
'copy', | ||
'lock', | ||
'mkcol', | ||
'move', | ||
'propfind', | ||
'proppatch', | ||
'unlock', | ||
'report', | ||
'mkactivity', | ||
'checkout', | ||
'merge', | ||
'm-search', | ||
'notify', | ||
'subscribe', | ||
'unsubscribe', | ||
'patch', | ||
'search' | ||
]; |
{ | ||
"name": "methods", | ||
"version": "0.0.1", | ||
"version": "0.1.0", | ||
"description": "HTTP methods that node supports", | ||
@@ -13,4 +13,7 @@ "main": "index.js", | ||
], | ||
"author": "TJ Holowaychuk", | ||
"license": "MIT" | ||
"author": { | ||
"name": "TJ Holowaychuk" | ||
}, | ||
"license": "MIT", | ||
"repository": { "type": "git", "url": "git://github.com/visionmedia/node-methods.git" } | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
1000
4
33
0
5
0
0
2