Update to pinejs-client-js v0.3.1

This commit is contained in:
Pagan Gazzard 2014-12-24 15:39:57 +00:00 committed by Pablo Carranza Vélez
parent fe05824429
commit df536f672f
3 changed files with 6 additions and 5 deletions

View File

@ -21,7 +21,7 @@
"ping": "0.1.8", "ping": "0.1.8",
"pubnub": "~3.6.4", "pubnub": "~3.6.4",
"request": "~2.22.0", "request": "~2.22.0",
"resin-platform-api": "git+ssh://git@bitbucket.org:rulemotion/resin-platform-api.git#v0.2.7", "pinejs-client-js": "git+ssh://git@bitbucket.org:rulemotion/pinejs-client-js.git#v0.3.1",
"sqlite3": "~2.1.19", "sqlite3": "~2.1.19",
"tty.js": "~0.2.13", "tty.js": "~0.2.13",
"typed-error": "~0.1.0" "typed-error": "~0.1.0"

View File

@ -7,7 +7,7 @@ config = require './config'
dockerUtils = require './docker-utils' dockerUtils = require './docker-utils'
PUBNUB = require 'pubnub' PUBNUB = require 'pubnub'
Promise = require 'bluebird' Promise = require 'bluebird'
PlatformAPI = require 'resin-platform-api/request' PlatformAPI = require 'pinejs-client-js/request'
utils = require './utils' utils = require './utils'
tty = require './lib/tty' tty = require './lib/tty'
@ -197,7 +197,8 @@ exports.update = update = ->
'commit' 'commit'
] ]
filter: filter:
'device/uuid': uuid device:
uuid: uuid
customOptions: customOptions:
apikey: apiKey apikey: apiKey
) )

View File

@ -5,7 +5,7 @@ knex = require './db'
utils = require './utils' utils = require './utils'
crypto = require 'crypto' crypto = require 'crypto'
config = require './config' config = require './config'
PlatformAPI = require 'resin-platform-api/request' PlatformAPI = require 'pinejs-client-js/request'
vpn = require './lib/vpn' vpn = require './lib/vpn'
PLATFORM_ENDPOINT = url.resolve(config.apiEndpoint, '/ewa/') PLATFORM_ENDPOINT = url.resolve(config.apiEndpoint, '/ewa/')
@ -26,7 +26,7 @@ registerDevice = (apiKey, userId, applicationId, deviceType, uuid) ->
user: userId user: userId
application: applicationId application: applicationId
uuid: uuid uuid: uuid
'device_type': deviceType device_type: deviceType
customOptions: customOptions:
apikey: apiKey apikey: apiKey
).then -> ).then ->