Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sencrop-js-api-client

Package Overview
Dependencies
Maintainers
3
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sencrop-js-api-client - npm Package Compare versions

Comparing version 1.22.0 to 2.0.0

19

CHANGELOG.md

@@ -0,1 +1,20 @@

# [2.0.0](https://github.com/sencrop/sencrop-js-api-client/compare/v1.22.0...v2.0.0) (2019-07-12)
### Bug Fixes
* **test:** fix tests ([9570061](https://github.com/sencrop/sencrop-js-api-client/commit/9570061))
### Features
* **multi_organisations:** add new endpoint for multi-organisations ([25e42e8](https://github.com/sencrop/sencrop-js-api-client/commit/25e42e8))
### BREAKING CHANGES
* **multi_organisations:** user endpoint are replaced by organisation/user endpoints
# [1.22.0](https://github.com/sencrop/sencrop-js-api-client/compare/v1.21.0...v1.22.0) (2019-03-19)

@@ -2,0 +21,0 @@

5

dist/index.test.js

@@ -96,3 +96,3 @@ 'use strict';

encodedQueryParams: true
}).put('/v1/users/902/devices/1B28C5', {
}).put('/v1/organisations/1/devices/1B28C5', {
contents: {

@@ -117,3 +117,4 @@ serial: '1B28C5',

}, ['content-type', 'application/json', 'Transaction-Id', '13', 'Date', 'Thu, 27 Jul 2017 14:23:57 GMT', 'Connection', 'close', 'Transfer-Encoding', 'chunked']);
return API.putUserDevice({
return API.putOrganisationDevice({
organisationId: 1,
userId: 902,

@@ -120,0 +121,0 @@ deviceId: '1B28C5',

2

package.json
{
"name": "sencrop-js-api-client",
"version": "1.22.0",
"version": "2.0.0",
"description": "The Sencrop JavaScript API client",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -141,3 +141,3 @@ 'use strict';

})
.put('/v1/users/902/devices/1B28C5', {
.put('/v1/organisations/1/devices/1B28C5', {
contents: {

@@ -179,3 +179,4 @@ serial: '1B28C5',

return API.putUserDevice({
return API.putOrganisationDevice({
organisationId: 1,
userId: 902,

@@ -182,0 +183,0 @@ deviceId: '1B28C5',

@@ -175,3 +175,4 @@ 'use strict';

it('should work', done => {
const promise = API.putUserDevice({
const promise = API.putOrganisationDevice({
organisationId: 1,
userId: 902,

@@ -178,0 +179,0 @@ deviceId: '1B28C5',

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 too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc