Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

popsicle

Package Overview
Dependencies
Maintainers
1
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

popsicle - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

5

dist/browser/tough-cookie.d.ts

@@ -1,2 +0,3 @@

declare var _default: () => void;
export = _default;
export declare class CookieJar {
constructor();
}

10

dist/browser/tough-cookie.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc