particle-api-js
Advanced tools
Comparing version 7.1.1 to 7.2.0
# changelog | ||
## 7.2.0 - 22 Mar 2018 | ||
* Support changing user's username(i.e., email) and password [PR #84](https://github.com/particle-iot/particle-api-js/pull/84) | ||
## 7.1.1 - 13 Feb 2018 | ||
@@ -4,0 +7,0 @@ * Fix country parameter for activate sim [PR #81](https://github.com/particle-iot/particle-api-js/pull/81) |
{ | ||
"name": "particle-api-js", | ||
"version": "7.1.1", | ||
"version": "7.2.0", | ||
"description": "Particle API Client", | ||
@@ -5,0 +5,0 @@ "main": "lib/Particle.js", |
@@ -10,5 +10,4 @@ # Releasing a new version | ||
- `npm publish` | ||
- Travis will run `npm publish` if the build passes. | ||
- Create a release on GitHub with the notes from the `CHANGELOG.md` | ||
@@ -160,3 +160,3 @@ import should from 'should'; // monkeypatch the world~!1 | ||
}); | ||
describe('.createCustomer', () => { | ||
describe('.createCustomer', () => { | ||
it('sends client ID and secret', () => { | ||
@@ -1093,2 +1093,36 @@ let clientApi = new Particle({ | ||
}); | ||
describe('.changeUsername', () => { | ||
it('generates request', () => { | ||
return api.changeUsername({ auth: 'X', currentPassword: 'blabla', username: 'john@skul.ly' }).then((results) => { | ||
results.should.eql({ | ||
method: 'put', | ||
uri: '/v1/user', | ||
auth: 'X', | ||
context: {}, | ||
data: { | ||
current_password: 'blabla', | ||
username: 'john@skul.ly' | ||
} | ||
}); | ||
}); | ||
}); | ||
}); | ||
describe('.changeUserPassword', () => { | ||
it('generates request', () => { | ||
return api.changeUserPassword({ auth: 'X', currentPassword: 'blabla', password: 'blabla2' }).then((results) => { | ||
results.should.eql({ | ||
method: 'put', | ||
uri: '/v1/user', | ||
auth: 'X', | ||
context: {}, | ||
data: { | ||
current_password: 'blabla', | ||
password: 'blabla2' | ||
} | ||
}); | ||
}); | ||
}); | ||
}); | ||
describe('.listSIMs', () => { | ||
@@ -1095,0 +1129,0 @@ describe('user scope', () => { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
6883
8
7
1394725
48