Comparing version 2.2.0 to 2.2.1
@@ -48,3 +48,3 @@ var request = require('request'); | ||
if (err) return callback(err); | ||
if (response.headers['content-type'] === 'application/json') { | ||
if (response.headers['content-type'].indexOf('application/json') === 0) { // jshint ignore:line | ||
try { | ||
@@ -51,0 +51,0 @@ body = JSON.parse(body); |
@@ -14,3 +14,3 @@ { | ||
"keywords": "fastly, api, client", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"homepage": "https://github.com/thisandagain/fastly", | ||
@@ -26,7 +26,7 @@ "repository": { | ||
"dependencies": { | ||
"request": "~2.79.0" | ||
"request": "~2.88.0" | ||
}, | ||
"devDependencies": { | ||
"jshint": "~2.5.0", | ||
"tap": "~0.3.3" | ||
"jshint": "2.9.6", | ||
"tap": "12.0.1" | ||
}, | ||
@@ -33,0 +33,0 @@ "optionalDependencies": {}, |
@@ -34,3 +34,3 @@ ## fastly | ||
<td><pre lang="javascript"><code>fastly.purge('host.com', '/index.html', callback);</code></pre></td> | ||
<td><a href="https://www.fastly.com/docs/api/purge">Link</a></td> | ||
<td><a href="https://docs.fastly.com/api/purge">Link</a></td> | ||
</tr> | ||
@@ -40,3 +40,3 @@ <tr> | ||
<td><pre lang="javascript"><code>fastly.purgeAll('myServiceId', callback);</code></pre></td> | ||
<td><a href="https://www.fastly.com/docs/api/purge">Link</a></td> | ||
<td><a href="https://docs.fastly.com/api/purge">Link</a></td> | ||
</tr> | ||
@@ -46,3 +46,3 @@ <tr> | ||
<td><pre lang="javascript"><code>fastly.purgeKey('myServiceId', 'key', callback);</code></pre></td> | ||
<td><a href="https://www.fastly.com/docs/api/purge">Link</a></td> | ||
<td><a href="https://docs.fastly.com/api/purge">Link</a></td> | ||
</tr> | ||
@@ -52,3 +52,3 @@ <tr> | ||
<td><pre lang="javascript"><code>fastly.softPurgeKey('myServiceId', 'key', callback);</code></pre></td> | ||
<td><a href="https://www.fastly.com/docs/api/purge">Link</a></td> | ||
<td><a href="https://docs.fastly.com/api/purge">Link</a></td> | ||
</tr> | ||
@@ -58,3 +58,3 @@ <tr> | ||
<td><pre lang="javascript"><code>fastly.stats('myServiceId', callback);</code></pre></td> | ||
<td><a href="https://www.fastly.com/docs/api/stats">Link</a></td> | ||
<td><a href="https://docs.fastly.com/api/stats">Link</a></td> | ||
</tr> | ||
@@ -61,0 +61,0 @@ <tr> |
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
9459
8
+ Addedajv@6.12.6(transitive)
+ Addedaws-sign2@0.7.0(transitive)
+ Addedcaseless@0.12.0(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedform-data@2.3.3(transitive)
+ Addedhar-schema@2.0.0(transitive)
+ Addedhar-validator@5.1.5(transitive)
+ Addedhttp-signature@1.2.0(transitive)
+ Addedjson-schema-traverse@0.4.1(transitive)
+ Addedoauth-sign@0.9.0(transitive)
+ Addedperformance-now@2.1.0(transitive)
+ Addedpsl@1.15.0(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedqs@6.5.3(transitive)
+ Addedrequest@2.88.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedtough-cookie@2.5.0(transitive)
+ Addedtunnel-agent@0.6.0(transitive)
+ Addeduri-js@4.4.1(transitive)
- Removedansi-regex@2.1.1(transitive)
- Removedansi-styles@2.2.1(transitive)
- Removedassert-plus@0.2.0(transitive)
- Removedaws-sign2@0.6.0(transitive)
- Removedboom@2.10.1(transitive)
- Removedcaseless@0.11.0(transitive)
- Removedchalk@1.1.3(transitive)
- Removedcommander@2.20.3(transitive)
- Removedcryptiles@2.0.5(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedform-data@2.1.4(transitive)
- Removedgenerate-function@2.3.1(transitive)
- Removedgenerate-object-property@1.2.0(transitive)
- Removedhar-validator@2.0.6(transitive)
- Removedhas-ansi@2.0.0(transitive)
- Removedhawk@3.1.3(transitive)
- Removedhoek@2.16.3(transitive)
- Removedhttp-signature@1.1.1(transitive)
- Removedis-my-ip-valid@1.0.1(transitive)
- Removedis-my-json-valid@2.20.6(transitive)
- Removedis-property@1.0.2(transitive)
- Removedjsonpointer@5.0.1(transitive)
- Removedoauth-sign@0.8.2(transitive)
- Removedpinkie@2.0.4(transitive)
- Removedpinkie-promise@2.0.1(transitive)
- Removedpunycode@1.4.1(transitive)
- Removedqs@6.3.3(transitive)
- Removedrequest@2.79.0(transitive)
- Removedsntp@1.0.9(transitive)
- Removedstringstream@0.0.6(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedsupports-color@2.0.0(transitive)
- Removedtough-cookie@2.3.4(transitive)
- Removedtunnel-agent@0.4.3(transitive)
- Removedxtend@4.0.2(transitive)
Updatedrequest@~2.88.0