Socket
Socket
Sign inDemoInstall

gangway

Package Overview
Dependencies
25
Maintainers
2
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.1 to 1.4.0-rc

6

CHANGELOG.md
# Changelog
## 1.4.0
_Currently release candidate at `gangway@1.4.0-rc`._
- Added `Accept: "application/json" default header
## 1.3.1

@@ -4,0 +10,0 @@

2

package.json
{
"name": "gangway",
"version": "1.3.1",
"version": "1.4.0-rc",
"description": "A client-side API abstraction layer",

@@ -5,0 +5,0 @@ "engines": {

@@ -13,3 +13,5 @@ /**

params : undefined,
headers : {},
headers : {
'Accept': 'application/json'
},
method : 'GET',

@@ -16,0 +18,0 @@ path : '',

@@ -34,2 +34,11 @@ var ajax = require('../src/ajax')

it ('automatically adds an Accept JSON header', function (done) {
ajax({
beforeSend(ajax) {
assert.equal(ajax.header.accept, 'application/json')
done()
}
})
})
it ('can be mocked out', function(done) {

@@ -36,0 +45,0 @@ ajax({

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc