From df536f672fef02578e51d10b3e65e850b4c29503 Mon Sep 17 00:00:00 2001 From: Pagan Gazzard Date: Wed, 24 Dec 2014 15:39:57 +0000 Subject: [PATCH] Update to pinejs-client-js v0.3.1 --- package.json | 2 +- src/application.coffee | 5 +++-- src/bootstrap.coffee | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index d638b46a..3fefd13e 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "ping": "0.1.8", "pubnub": "~3.6.4", "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", "tty.js": "~0.2.13", "typed-error": "~0.1.0" diff --git a/src/application.coffee b/src/application.coffee index 501efb8c..ef944406 100644 --- a/src/application.coffee +++ b/src/application.coffee @@ -7,7 +7,7 @@ config = require './config' dockerUtils = require './docker-utils' PUBNUB = require 'pubnub' Promise = require 'bluebird' -PlatformAPI = require 'resin-platform-api/request' +PlatformAPI = require 'pinejs-client-js/request' utils = require './utils' tty = require './lib/tty' @@ -197,7 +197,8 @@ exports.update = update = -> 'commit' ] filter: - 'device/uuid': uuid + device: + uuid: uuid customOptions: apikey: apiKey ) diff --git a/src/bootstrap.coffee b/src/bootstrap.coffee index 82bfb025..af3e2613 100644 --- a/src/bootstrap.coffee +++ b/src/bootstrap.coffee @@ -5,7 +5,7 @@ knex = require './db' utils = require './utils' crypto = require 'crypto' config = require './config' -PlatformAPI = require 'resin-platform-api/request' +PlatformAPI = require 'pinejs-client-js/request' vpn = require './lib/vpn' PLATFORM_ENDPOINT = url.resolve(config.apiEndpoint, '/ewa/') @@ -26,7 +26,7 @@ registerDevice = (apiKey, userId, applicationId, deviceType, uuid) -> user: userId application: applicationId uuid: uuid - 'device_type': deviceType + device_type: deviceType customOptions: apikey: apiKey ).then ->