Comparing version 1.1.1 to 1.2.0
@@ -0,1 +1,2 @@ | ||
var Promise = require('native-or-bluebird'); | ||
var common_1 = require('./common'); | ||
@@ -2,0 +3,0 @@ var index_1 = require('./plugins/index'); |
@@ -8,2 +8,3 @@ var http_1 = require('http'); | ||
var get_headers_1 = require('get-headers'); | ||
var Promise = require('native-or-bluebird'); | ||
var common_1 = require('./common'); | ||
@@ -10,0 +11,0 @@ var index_1 = require('./plugins/index'); |
@@ -8,2 +8,3 @@ function __export(m) { | ||
var zlib_1 = require('zlib'); | ||
var Promise = require('native-or-bluebird'); | ||
__export(require('./common')); | ||
@@ -10,0 +11,0 @@ var common_2 = require('./common'); |
@@ -0,1 +1,2 @@ | ||
import Promise = require('native-or-bluebird'); | ||
import Base, { BaseOptions, Headers } from './base'; | ||
@@ -2,0 +3,0 @@ import Response, { ResponseOptions } from './response'; |
@@ -8,2 +8,3 @@ var __extends = (this && this.__extends) || function (d, b) { | ||
var extend = require('xtend'); | ||
var Promise = require('native-or-bluebird'); | ||
var base_1 = require('./base'); | ||
@@ -10,0 +11,0 @@ var response_1 = require('./response'); |
{ | ||
"name": "popsicle", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "Simple HTTP requests for node and the browser", | ||
@@ -22,3 +22,3 @@ "main": "dist/lib/index.js", | ||
"build-ts": "tsc", | ||
"build-browser": "browserify . -s popsicle > popsicle.js", | ||
"build-browser": "browserify . -s popsicle --external bluebird > popsicle.js", | ||
"build": "rm -rf dist && npm run build-ts && npm run build-browser && npm run build-size", | ||
@@ -82,2 +82,3 @@ "build-size": "du -h popsicle.js", | ||
"methods": "^1.1.1", | ||
"native-or-bluebird": "^1.2.0", | ||
"through2": "^2.0.0", | ||
@@ -84,0 +85,0 @@ "tough-cookie": "^2.0.0", |
@@ -26,19 +26,2 @@ # ![Popsicle](https://cdn.rawgit.com/blakeembrey/popsicle/master/logo.svg) | ||
You will need a [promise polyfill](https://github.com/jakearchibald/es6-promise) for older browsers and node <= `0.11.12`. | ||
```bash | ||
npm install es6-promise --save | ||
bower install es6-promise --save | ||
``` | ||
Apply the polyfill. | ||
```js | ||
// Node and browserify: | ||
require('es6-promise').polyfill() | ||
// Browsers: | ||
window.ES6Promise.polyfill() | ||
``` | ||
## Usage | ||
@@ -45,0 +28,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
93970
1095
10
365
+ Addednative-or-bluebird@^1.2.0
+ Addednative-or-bluebird@1.2.0(transitive)