{"_id":"@blackpaw/second-life-http-headers","_rev":"4-efb2a4234676ff1c1edb70db26fc56df","name":"@blackpaw/second-life-http-headers","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"author":{"name":"Sophie-Jeanne la Douce","email":"sophie.jeanne.la.douce@gmail.com","url":"https://github.com/strawberryangel"},"description":"HTTP headers produced by LSL's llHttpRequest(). Not associated with or endorsed by Linden Labs.","devDependencies":{"@types/node":"^7.0.5","rimraf":"^2.6.2","typescript":"^2.7.2"},"license":"MIT","main":"dist/index.js","name":"@blackpaw/second-life-http-headers","scripts":{"install":"tsc","make":"rimraf dist && tsc","test":"echo \"Error: no test specified\" && exit 1"},"typings":"dist/index","version":"1.0.0","gitHead":"f2a91111d51845a8fcf637bf72e97aa7b77eb068","_id":"@blackpaw/second-life-http-headers@1.0.0","_npmVersion":"5.5.1","_nodeVersion":"9.1.0","_npmUser":{"name":"strawberryangel","email":"sophie.jeanne.la.douce@gmail.com"},"dist":{"integrity":"sha512-XzsTTgdqnrecryFBfnAX8t8h2ApQ+aH4CZNfAsy/o9p8/NORv+V3jnRyeP2G0smT4XMtCvn8QITXeFH7khIv3g==","shasum":"af8db4723a6e7636d2b14e48cd0c19b16536d880","tarball":"https://registry.npmjs.org/@blackpaw/second-life-http-headers/-/second-life-http-headers-1.0.0.tgz","fileCount":18,"unpackedSize":16526,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrnrTi9m2L2Z6IlmqFzgOJnczyx4OLooj43CaY7qBa0gIgeQdW3hPZhEbaPoa/BGOAnJoPvD110czPiWIjAVUB6lE="}]},"maintainers":[{"name":"happycatsmiles","email":"happycatsmiles@protonmail.com"},{"name":"strawberryangel","email":"sophie.jeanne.la.douce@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/second-life-http-headers_1.0.0_1519019609525_0.9822310590473751"},"_hasShrinkwrap":false},"1.0.1":{"author":{"name":"Sophie-Jeanne la Douce","email":"sophie.jeanne.la.douce@gmail.com","url":"https://github.com/strawberryangel"},"description":"HTTP headers produced by LSL's llHttpRequest(). Not associated with or endorsed by Linden Labs.","devDependencies":{"@types/node":"^7.0.5","rimraf":"^2.6.2","typescript":"^2.7.2"},"license":"MIT","main":"dist/index.js","name":"@blackpaw/second-life-http-headers","scripts":{"install":"tsc","make":"rimraf dist && tsc","test":"echo \"Error: no test specified\" && exit 1"},"typings":"dist/index","private":false,"version":"1.0.1","gitHead":"f2a91111d51845a8fcf637bf72e97aa7b77eb068","_id":"@blackpaw/second-life-http-headers@1.0.1","_npmVersion":"5.5.1","_nodeVersion":"9.1.0","_npmUser":{"name":"strawberryangel","email":"sophie.jeanne.la.douce@gmail.com"},"dist":{"integrity":"sha512-UwhaRcUGzGnmzDfH1sumbus+y7NF4vb6hcysA4Rk16FR58uYsU0gBTNVQEY/VYohPXcTOLHowB+S7AoFdRDcYA==","shasum":"ab37899e434d3aecd8af4cd6869846c8ded99d84","tarball":"https://registry.npmjs.org/@blackpaw/second-life-http-headers/-/second-life-http-headers-1.0.1.tgz","fileCount":18,"unpackedSize":16549,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFOwU/ByGcMek4ODsRZ+oQQYvx1xKoFzlEnhRMKkDp0lAiEAvp4hBpaG7DV28yg9DIknpnYf0Ea64yEfEPxu6YfDSSY="}]},"maintainers":[{"name":"happycatsmiles","email":"happycatsmiles@protonmail.com"},{"name":"strawberryangel","email":"sophie.jeanne.la.douce@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/second-life-http-headers_1.0.1_1519019838221_0.19069393382453081"},"_hasShrinkwrap":false},"1.0.2":{"author":{"name":"Sophie-Jeanne la Douce","email":"sophie.jeanne.la.douce@gmail.com","url":"https://github.com/strawberryangel"},"description":"HTTP headers produced by LSL's llHttpRequest(). Not associated with or endorsed by Linden Labs.","bugs":{"url":"https://github.com/strawberryangel/second-life-http-headers/issues"},"devDependencies":{"@types/node":"^7.0.5","rimraf":"^2.6.2","typescript":"^2.7.2"},"license":"MIT","main":"dist/index.js","name":"@blackpaw/second-life-http-headers","repository":{"type":"git","url":"git+ssh://git@github.com/strawberryangel/second-life-http-headers.git"},"scripts":{"make":"rimraf dist && tsc","test":"echo \"Error: no test specified\" && exit 1"},"typings":"dist/index","version":"1.0.2","gitHead":"af136a8ff1cbeb2225062ff68170e84a4928bfa3","homepage":"https://github.com/strawberryangel/second-life-http-headers#readme","_id":"@blackpaw/second-life-http-headers@1.0.2","_npmVersion":"5.5.1","_nodeVersion":"9.1.0","_npmUser":{"name":"strawberryangel","email":"sophie.jeanne.la.douce@gmail.com"},"dist":{"integrity":"sha512-XYuvCC6zXTKfaZL4U7Ox3v6AQVNQEeb481RHepdZPQUuHKQIf3lUOF5NsJyUvGuL1tasjL+JmAzoOFwBwkOwhw==","shasum":"2b7b1c3b3afebc8f1aa02b1f341a4b0c3fba340b","tarball":"https://registry.npmjs.org/@blackpaw/second-life-http-headers/-/second-life-http-headers-1.0.2.tgz","fileCount":18,"unpackedSize":16721,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTaNAR679i5N4K7gA9qu6w589n6DMfO1+f/rWnmD3j1gIgL1iC60Z0MjHHX/nM2kb1NKrDfPr1bstXa29S+B6f5MM="}]},"maintainers":[{"name":"happycatsmiles","email":"happycatsmiles@protonmail.com"},{"name":"strawberryangel","email":"sophie.jeanne.la.douce@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/second-life-http-headers_1.0.2_1519020482133_0.5863256109107171"},"_hasShrinkwrap":false}},"time":{"created":"2018-02-19T05:53:29.525Z","1.0.0":"2018-02-19T05:53:29.661Z","modified":"2022-04-04T19:21:01.033Z","1.0.1":"2018-02-19T05:57:18.290Z","1.0.2":"2018-02-19T06:08:02.273Z"},"maintainers":[{"name":"happycatsmiles","email":"happycatsmiles@protonmail.com"},{"name":"strawberryangel","email":"sophie.jeanne.la.douce@gmail.com"}],"description":"HTTP headers produced by LSL's llHttpRequest(). Not associated with or endorsed by Linden Labs.","author":{"name":"Sophie-Jeanne la Douce","email":"sophie.jeanne.la.douce@gmail.com","url":"https://github.com/strawberryangel"},"license":"MIT","readme":"# @blackpaw/second-life-http-headers\r\n\r\nSimple support for your Express programs\r\nto parse headers \r\nthat come from LSL scripts in SecondLife.\r\n\r\nNone of this is endorsed by LindenLabs.\r\n\r\n\r\n## parseSecondLifeHeaders\r\n\r\nTypescript Declaration\r\n\r\n```typescript\r\nfunction parseSecondLifeHeaders(req: any, allowIncomplete = true): SecondLifeHttpHeaders | null\r\n```\r\n\r\nThis function receives an Express\r\nRequest object in `req`.\r\n\r\n`allowIncomplete` is an optional parameter. \r\nBy default this is `true`,\r\nwhich will fill in the headers\r\nand not bother checking if any are missing.\r\n\r\nIf `false` is passed in, \r\nthe parser will return `null`\r\nin the case that any of the expected \r\nheaders are missing. \r\n\r\n## `SecondLifeHeaders`\r\n\r\nThis contains the following definition: \r\n\r\n```typescript\r\nclass SecondLifeHttpHeaders {\r\n    localPosition: Vector\r\n    localRotation: Rotation\r\n    localVelocity: Vector\r\n\r\n    objectKey: string\r\n    objectName: string\r\n\r\n    ownerKey: string\r\n    ownerName: string\r\n\r\n    region: string\r\n    shard: string\r\n}\r\n```\r\n\r\nwhere `Vector` represents an \r\n[LSL Vector](http://wiki.secondlife.com/wiki/Vector) \r\nas\r\n\r\n```typescript\r\nclass Vector {\r\n    x: number;\r\n    y: number;\r\n    z: number;\r\n}\r\n```\r\n\r\nand `Rotation` represents \r\n[LSL Rotation](http://wiki.secondlife.com/wiki/Rotation) \r\nas\r\n\r\n```typescript\r\nclass Rotation {\r\n    x: number;\r\n    y: number;\r\n    z: number;\r\n    s: number;\r\n}\r\n```\r\n\r\n\r\n## Versions\r\n\r\n### 1.0.2\r\n\r\nFix package.json problems. \r\n","readmeFilename":"README.md","homepage":"https://github.com/strawberryangel/second-life-http-headers#readme","repository":{"type":"git","url":"git+ssh://git@github.com/strawberryangel/second-life-http-headers.git"},"bugs":{"url":"https://github.com/strawberryangel/second-life-http-headers/issues"}}