updated sys and created publi
This commit is contained in:
+15
-51
@@ -1,46 +1,33 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
{
|
||||
"raw": "http-signature@~1.1.0",
|
||||
"scope": null,
|
||||
"escapedName": "http-signature",
|
||||
"name": "http-signature",
|
||||
"rawSpec": "~1.1.0",
|
||||
"spec": ">=1.1.0 <1.2.0",
|
||||
"type": "range"
|
||||
},
|
||||
"/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/request"
|
||||
"http-signature@1.1.1",
|
||||
"/mnt/Data/bach/Documents/ola/OLA#5/ola5doc/sys"
|
||||
]
|
||||
],
|
||||
"_from": "http-signature@>=1.1.0 <1.2.0",
|
||||
"_development": true,
|
||||
"_from": "http-signature@1.1.1",
|
||||
"_id": "http-signature@1.1.1",
|
||||
"_inCache": true,
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-33LiZwZs0Kxn+3at+OE0qPvPkb8=",
|
||||
"_location": "/http-signature",
|
||||
"_nodeVersion": "0.12.9",
|
||||
"_npmUser": {
|
||||
"name": "arekinath",
|
||||
"email": "alex@cooperi.net"
|
||||
},
|
||||
"_npmVersion": "2.14.9",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"raw": "http-signature@~1.1.0",
|
||||
"scope": null,
|
||||
"escapedName": "http-signature",
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "http-signature@1.1.1",
|
||||
"name": "http-signature",
|
||||
"rawSpec": "~1.1.0",
|
||||
"spec": ">=1.1.0 <1.2.0",
|
||||
"type": "range"
|
||||
"escapedName": "http-signature",
|
||||
"rawSpec": "1.1.1",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "1.1.1"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/request"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz",
|
||||
"_shasum": "df72e267066cd0ac67fb76adf8e134a8fbcf91bf",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "http-signature@~1.1.0",
|
||||
"_where": "/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/request",
|
||||
"_spec": "1.1.1",
|
||||
"_where": "/mnt/Data/bach/Documents/ola/OLA#5/ola5doc/sys",
|
||||
"author": {
|
||||
"name": "Joyent, Inc"
|
||||
},
|
||||
@@ -71,16 +58,10 @@
|
||||
"node-uuid": "^1.4.1",
|
||||
"tap": "0.4.2"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "df72e267066cd0ac67fb76adf8e134a8fbcf91bf",
|
||||
"tarball": "https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.8",
|
||||
"npm": ">=1.3.7"
|
||||
},
|
||||
"gitHead": "74d3f35e3aa436d83723c53b01e266f448e8149a",
|
||||
"homepage": "https://github.com/joyent/node-http-signature/",
|
||||
"keywords": [
|
||||
"https",
|
||||
@@ -88,24 +69,7 @@
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "arekinath",
|
||||
"email": "alex@cooperi.net"
|
||||
},
|
||||
{
|
||||
"name": "mcavage",
|
||||
"email": "mcavage@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "pfmooney",
|
||||
"email": "patrick.f.mooney@gmail.com"
|
||||
}
|
||||
],
|
||||
"name": "http-signature",
|
||||
"optionalDependencies": {},
|
||||
"readme": "# node-http-signature\n\nnode-http-signature is a node.js library that has client and server components\nfor Joyent's [HTTP Signature Scheme](http_signing.md).\n\n## Usage\n\nNote the example below signs a request with the same key/cert used to start an\nHTTP server. This is almost certainly not what you actually want, but is just\nused to illustrate the API calls; you will need to provide your own key\nmanagement in addition to this library.\n\n### Client\n\n```js\nvar fs = require('fs');\nvar https = require('https');\nvar httpSignature = require('http-signature');\n\nvar key = fs.readFileSync('./key.pem', 'ascii');\n\nvar options = {\n host: 'localhost',\n port: 8443,\n path: '/',\n method: 'GET',\n headers: {}\n};\n\n// Adds a 'Date' header in, signs it, and adds the\n// 'Authorization' header in.\nvar req = https.request(options, function(res) {\n console.log(res.statusCode);\n});\n\n\nhttpSignature.sign(req, {\n key: key,\n keyId: './cert.pem'\n});\n\nreq.end();\n```\n\n### Server\n\n```js\nvar fs = require('fs');\nvar https = require('https');\nvar httpSignature = require('http-signature');\n\nvar options = {\n key: fs.readFileSync('./key.pem'),\n cert: fs.readFileSync('./cert.pem')\n};\n\nhttps.createServer(options, function (req, res) {\n var rc = 200;\n var parsed = httpSignature.parseRequest(req);\n var pub = fs.readFileSync(parsed.keyId, 'ascii');\n if (!httpSignature.verifySignature(parsed, pub))\n rc = 401;\n\n res.writeHead(rc);\n res.end();\n}).listen(8443);\n```\n\n## Installation\n\n npm install http-signature\n\n## License\n\nMIT.\n\n## Bugs\n\nSee <https://github.com/joyent/node-http-signature/issues>.\n",
|
||||
"readmeFilename": "README.md",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/joyent/node-http-signature.git"
|
||||
|
||||
Reference in New Issue
Block a user