Comparing version 5.0.0 to 5.0.1
@@ -1,2 +0,3 @@ | ||
declare var _default: () => void; | ||
export = _default; | ||
export declare class CookieJar { | ||
constructor(); | ||
} |
@@ -1,4 +0,8 @@ | ||
module.exports = function ToughCookie() { | ||
throw new TypeError('Cookie jars are only available on node'); | ||
}; | ||
var CookieJar = (function () { | ||
function CookieJar() { | ||
throw new TypeError('Cookie jars are only available on node'); | ||
} | ||
return CookieJar; | ||
})(); | ||
exports.CookieJar = CookieJar; | ||
//# sourceMappingURL=tough-cookie.js.map |
{ | ||
"name": "popsicle", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "Simple HTTP requests for node and the browser", | ||
@@ -5,0 +5,0 @@ "main": "dist/common.js", |
@@ -29,3 +29,2 @@ # ![Popsicle](https://cdn.rawgit.com/blakeembrey/popsicle/master/logo.svg) | ||
var popsicle = require('popsicle') | ||
// var popsicle = window.popsicle | ||
@@ -96,3 +95,3 @@ popsicle.request({ | ||
The default plugins in the browser are `[stringify(), headers(), parse()]`. Notice that unzipping and various stream parsing is not yet available in browsers. | ||
The default plugins in the browser are `[stringify(), headers(), parse()]`. Notice that unzipping and stream parsing is not available in browsers. | ||
@@ -102,4 +101,2 @@ * **withCredentials** Send cookies with CORS requests (default: `false`) | ||
**P.S.:** Need a proxy? Try using [`proxy-agent`](https://github.com/TooTallNate/node-proxy-agent) with the agent option. | ||
#### Short-hand Methods | ||
@@ -227,3 +224,3 @@ | ||
* **unzip** Automatically unzip response streams (Node only) | ||
* **concatStream** Buffer the whole stream using [concat-stream](https://www.npmjs.com/package/concat-stream) - accepts an "encoding" type (`string` (default), `buffer`, `array`, `uint8array`, `object`) (Node only) | ||
* **concatStream** Buffer the stream using [concat-stream](https://www.npmjs.com/package/concat-stream) - accepts an "encoding" type (`string` (default), `buffer`, `array`, `uint8array`, `object`) (Node only) | ||
@@ -235,3 +232,3 @@ #### Cookie Jar (Node only) | ||
```js | ||
var jar = request.jar() | ||
var jar = popsicle.jar() | ||
@@ -271,2 +268,6 @@ popsicle.request({ | ||
}) | ||
async function () { | ||
await popsicle.get('/users') | ||
} | ||
``` | ||
@@ -294,3 +295,3 @@ | ||
* **status** The HTTP response status code | ||
* **body** An object (if parsed using a plugin) or string that was the response HTTP body | ||
* **body** An object (if parsed using a plugin), string (if using concat) or stream that is the HTTP response body | ||
* **headers** An object of lower-cased keys to header values | ||
@@ -378,3 +379,3 @@ * **url** The response URL after redirects (only supported in browser with `responseURL`) | ||
``` | ||
typings install npm:popsicle --name popsicle | ||
typings install npm:popsicle --save | ||
``` | ||
@@ -381,0 +382,0 @@ |
Sorry, the diff of this file is not supported yet
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
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
170323
2121
401