{"name":"request-light","version":"0.7.0","description":"Lightweight request library. Promise based, with proxy support.","main":"./lib/node/main.js","browser":{"./lib/node/main.js":"./lib/browser/main.js"},"typings":"./api","author":{"name":"Microsoft Corporation"},"repository":{"type":"git","url":"git+https://github.com/microsoft/node-request-light.git"},"license":"MIT","bugs":{"url":"https://github.com/microsoft/node-request-light/issues"},"devDependencies":{"http-proxy-agent":"^5.0.0","https-proxy-agent":"^5.0.1","vscode-nls":"^5.2.0","typescript":"^4.9.4","@types/node":"16.x","vscode-jsonrpc":"^5.0.0","rimraf":"^4.1.1","ts-loader":"^9.4.2","webpack":"^5.75.0","webpack-cli":"^5.0.1","ava":"^5.1.1","proxy":"^1.0.2"},"scripts":{"compile":"webpack","watch":"webpack --watch","bundle":"webpack --mode production --devtool hidden-source-map","prepack":"npm run clean && npm run bundle && tsc -p ./src/test/ && ava ./lib/test/test.js","clean":"rimraf lib","test":"npm run compile && tsc -p ./src/test/ && ava ./lib/test/test.js"},"homepage":"https://github.com/microsoft/node-request-light#readme","_id":"request-light@0.7.0","_integrity":"sha512-lMbBMrDoxgsyO+yB3sDcrDuX85yYt7sS8BfQd11jtbW/z5ZWgLZRcEGLsLoYw7I0WSUGQBs8CC8ScIxkTX1+6Q==","_resolved":"/mnt/vss/_work/1/request-light/request-light-0.7.0.tgz","_from":"file:request-light-0.7.0.tgz","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-lMbBMrDoxgsyO+yB3sDcrDuX85yYt7sS8BfQd11jtbW/z5ZWgLZRcEGLsLoYw7I0WSUGQBs8CC8ScIxkTX1+6Q==","shasum":"885628bb2f8040c26401ebf258ec51c4ae98ac2a","tarball":"http://registry-npm.ywwl.com/request-light/download/request-light-0.7.0.tgz","fileCount":8,"unpackedSize":35235,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDhQI6o0L83H9ZZeTiqejsndwKg6tqUwN18y/E7kP1nVAiEAyH64Mm39+HS795DfMka+be8df6QqTBHFvOqptLEIZvQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjztmKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpYEg//ZS+XXIUmWoiS5u+hJPYLW8AX5lQmbm6ZMGtYTt3slvIYIdAe\r\n9wd0R6MvUl3cMll5ph1OqTSelet8V8IJo+D7vKic8esW8Z3jcsM4noyqLEU1\r\nXTlARNFCW7QZAfQQuE2/yVqFQPnxv5By+FMts/v7TjoMVXtiGMdggLrf24nm\r\nU8hBAaCaeawzHDRV24wVI+uRrhV5aUP2bGbcqzOExTDwjjc70Howevm9Ah9J\r\nGyjQOD9RoUYVPu2WmgEnGc4X7pW29kwPn0Rv+9rDSQCgxvBbtT1Dpv2OWv1a\r\ndBFJbysljcncVDbkaLSGDecjKFkIUDhYFetlyc+di8uxFI7LSW9wblWeMPnw\r\n9GBRxnJRE+WUIgyqT1pOPQ9RjlCY+I6o7njuwg6Qk9NIKkYK3DatCv4iExAk\r\nqyWJVZwHpp8vj/1YzsVlVJEiWFiwrMkL0fKWi9dDxMckqWI4LgLxU857fdKx\r\nMindlYKRSSmQ+82WCkkpjK/ewc/gCxNJF+/X+zFko4H+iTQ88CTmt0jog5T/\r\nfWhVcZ3fcgkAisge7EQpb1z05fWT0DeqoKZZEIUuLWD4uMserVklRKym9O6U\r\nMPvaw4R/WOXEzbmfv85xFthjwjH0d42O9CnzGNhhA+yfuemcq4Oo+UDKtVmE\r\nljn1hRBXkbTYv5CBHG4lcRtrMvams3s0bPU=\r\n=FJxi\r\n-----END PGP SIGNATURE-----\r\n","size":12422,"noattachment":false,"key":"/request-light/-/request-light-0.7.0.tgz"},"_npmUser":{"name":"vscode-bot","email":"vscode-bot-npm@microsoft.com"},"directories":{},"maintainers":[{"name":"alexandrudima","email":"alexdima@microsoft.com"},{"name":"joaomoreno.ms","email":"joao.moreno@microsoft.com"},{"name":"kaimaetzel","email":"kamaet@microsoft.com"},{"name":"sbatten","email":"steven.m.batten@outlook.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"},{"name":"lszomoru","email":"lszomoru@microsoft.com"},{"name":"vscode-bot","email":"vscode-bot-npm@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request-light_0.7.0_1674500490298_0.5713697927138139"},"_hasShrinkwrap":false,"readme":"# request-light\n\n\n[![npm Package](https://img.shields.io/npm/v/request-light.svg?style=flat-square)](https://www.npmjs.org/package/request-light)\n[![NPM Downloads](https://img.shields.io/npm/dm/request-light.svg)](https://npmjs.org/package/request-light)\n[![Build Status](https://github.com/microsoft/node-request-light/workflows/Tests/badge.svg)](https://github.com/microsoft/node-request-light/workflows/Tests)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nA lightweight request library intended to be used by VSCode extensions.\n- NodeJS and browser main entry points\n- proxy support: Use `configure` or `HTTP_PROXY` and `HTTPS_PROXY` env variables to configure the HTTP proxy addresses.\n\n```ts\nimport { xhr, XHRResponse, getErrorStatusDescription } from 'request-light';\n\nconst headers = { 'Accept-Encoding': 'gzip, deflate' };\nreturn xhr({ url: url, followRedirects: 5, headers }).then(response => {\n    return response.responseText;\n}, (error: XHRResponse) => {\n    throw new Error(error.responseText || getErrorStatusDescription(error.status) || error.toString());\n});\n```\n","publish_time":1674500490553,"_cnpm_publish_time":1674500490553,"dist-tags":{"latest":"0.8.0"}}