predix-uaa-client
Advanced tools
Comparing version 1.3.3 to 1.3.4
{ | ||
"name": "predix-uaa-client", | ||
"version": "1.3.3", | ||
"version": "1.3.4", | ||
"description": "Node module to get a token from UAA using client credentials or refresh tokens", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -39,4 +39,4 @@ 'use strict' | ||
expect(stub.calledOnce).to.be.true; | ||
expect(stub.calledWith(match({ uri: url }))); | ||
expect(stub.calledWith(match({ form: { grant_type: 'client_credentials' }}))); | ||
expect(stub.calledWith(match({ url }))).to.be.ok; | ||
expect(stub.calledWith(match({ form: { grant_type: 'client_credentials' }}))).to.be.ok; | ||
expect(token.access_token).to.equal('test-token'); | ||
@@ -58,4 +58,4 @@ done(); | ||
expect(stub.calledOnce).to.be.true; | ||
expect(stub.calledWith(match({ uri: url }))); | ||
expect(stub.calledWith(match({ form: { grant_type: 'client_credentials' }}))); | ||
expect(stub.calledWith(match({ url }))).to.be.ok; | ||
expect(stub.calledWith(match({ form: { grant_type: 'client_credentials' }}))).to.be.ok; | ||
expect(token.access_token).to.equal('test-token-1'); | ||
@@ -89,4 +89,4 @@ | ||
expect(stub.calledOnce).to.be.true; | ||
expect(stub.calledWith(match({ uri: url }))); | ||
expect(stub.calledWith(match({ form: { grant_type: 'client_credentials' }}))); | ||
expect(stub.calledWith(match({ url }))).to.be.ok; | ||
expect(stub.calledWith(match({ form: { grant_type: 'client_credentials' }}))).to.be.ok; | ||
expect(token.access_token).to.equal('test-token-1'); | ||
@@ -123,4 +123,4 @@ | ||
expect(stub.calledOnce).to.be.true; | ||
expect(stub.calledWith(match({ uri: url }))); | ||
expect(stub.calledWith(match({ form: { grant_type: 'client_credentials' }}))); | ||
expect(stub.calledWith(match({ url }))).to.be.ok; | ||
expect(stub.calledWith(match({ form: { grant_type: 'client_credentials' }}))).to.be.ok; | ||
expect(token.access_token).to.equal('test-token-1'); | ||
@@ -164,4 +164,4 @@ | ||
expect(stub.calledOnce).to.be.true; | ||
expect(stub.calledWith(match({ uri: url }))); | ||
expect(stub.calledWith(match({ form: { grant_type: 'client_credentials' }}))); | ||
expect(stub.calledWith(match({ url }))).to.be.ok; | ||
expect(stub.calledWith(match({ form: { grant_type: 'client_credentials' }}))).to.be.ok; | ||
expect(token.access_token).to.equal('test-token-1'); | ||
@@ -242,4 +242,4 @@ | ||
expect(stub.calledOnce).to.be.true; | ||
expect(stub.calledWith(match({ uri: url }))); | ||
expect(stub.calledWith(match({ form: { grant_type: 'client_credentials' }}))); | ||
expect(stub.calledWith(match({ url }))).to.be.ok; | ||
expect(stub.calledWith(match({ form: { grant_type: 'client_credentials' }}))).to.be.ok; | ||
expect(token.access_token).to.equal('test-token-1'); | ||
@@ -284,4 +284,4 @@ | ||
expect(stub.calledOnce).to.be.true; | ||
expect(stub.calledWith(match({ uri: url }))); | ||
expect(stub.calledWith(match({ form: { grant_type: 'refresh_token' }}))); | ||
expect(stub.calledWith(match({ url }))).to.be.ok; | ||
expect(stub.calledWith(match({ form: { grant_type: 'refresh_token' }}))).to.be.ok; | ||
expect(token.access_token).to.equal('test-token'); | ||
@@ -307,5 +307,5 @@ done(); | ||
expect(stub.calledOnce).to.be.true; | ||
expect(stub.calledWith(match({ uri: url }))); | ||
expect(stub.calledWith(match({ form: { grant_type: 'refresh_token' }}))); | ||
expect(stub.calledWith(match({ form: { refresh_token: refreshToken }}))); | ||
expect(stub.calledWith(match({ url }))).to.be.ok; | ||
expect(stub.calledWith(match({ form: { grant_type: 'refresh_token' }}))).to.be.ok; | ||
expect(stub.calledWith(match({ form: { refresh_token: refreshToken }}))).to.be.ok; | ||
expect(token.access_token).to.equal('test-token-1'); | ||
@@ -321,5 +321,5 @@ | ||
expect(stub.calledTwice).to.be.true; | ||
expect(stub.calledWith(match({ uri: url }))); | ||
expect(stub.calledWith(match({ form: { grant_type: 'refresh_token' }}))); | ||
expect(stub.calledWith(match({ form: { refresh_token: refreshToken }}))); | ||
expect(stub.calledWith(match({ url }))).to.be.ok; | ||
expect(stub.calledWith(match({ form: { grant_type: 'refresh_token' }}))).to.be.ok; | ||
expect(stub.calledWith(match({ form: { refresh_token: refreshToken }}))).to.be.ok; | ||
expect(token.access_token).to.equal('test-token-2'); | ||
@@ -394,4 +394,4 @@ done(); | ||
expect(stub.calledOnce).to.be.true; | ||
expect(stub.calledWith(match({ uri: url }))); | ||
expect(stub.calledWith(match({ form: { grant_type: 'client_credentials' }}))); | ||
expect(stub.calledWith(match({ url }))).to.be.ok; | ||
expect(stub.calledWith(match({ form: { grant_type: 'client_credentials' }}))).to.be.ok; | ||
expect(token.access_token).to.equal('test-token-1'); | ||
@@ -398,0 +398,0 @@ expect(token.token_type).to.equal('bearer'); |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
230433
7
535
2