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

balena-register-device

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

balena-register-device - npm Package Compare versions

Comparing version 7.0.0-7-x-07c1879565f07fa35a8966f2d443b8e745d05a22 to 7.0.0-7-x-3ff55cfe6edaf25620a299f0af1193624fcf9c00

6

build/register.d.ts

@@ -69,3 +69,3 @@ import { TypedError } from 'typed-error';

*/
register: (options: {
register(options: {
userId?: number;

@@ -75,6 +75,6 @@ applicationId: number;

deviceType: string;
deviceApiKey: string;
deviceApiKey?: string;
provisioningApiKey: string;
apiEndpoint: string;
}) => Promise<any>;
}): Promise<any>;
};

@@ -81,0 +81,0 @@ export declare class ApiError extends TypedError {

@@ -74,3 +74,3 @@ "use strict";

*/
register: function (options) {
register(options) {
return tslib_1.__awaiter(this, void 0, void 0, function* () {

@@ -88,4 +88,3 @@ for (const opt of [

}
const response = yield request
.send({
const response = yield request.send({
method: 'POST',

@@ -92,0 +91,0 @@ baseUrl: options.apiEndpoint,

@@ -9,3 +9,3 @@ # Change Log

# v7.0.0
## (2020-07-03)
## (2020-07-06)

@@ -12,0 +12,0 @@ * Update to balena-request 11.x [Pagan Gazzard]

{
"name": "balena-register-device",
"version": "7.0.0-7-x-07c1879565f07fa35a8966f2d443b8e745d05a22",
"version": "7.0.0-7-x-3ff55cfe6edaf25620a299f0af1193624fcf9c00",
"description": "Balena device registration utilities",

@@ -26,3 +26,3 @@ "main": "build/register.js",

"lint": "balena-lint -e js --typescript lib tests",
"lint-fix": "balena-lint -e js --typescript --fix lib tests",
"lint-fix": "balena-lint -e ts -e js --typescript --fix lib tests",
"test-node": "npx mocha --reporter spec tests/**/*.spec.js",

@@ -39,4 +39,5 @@ "test-browser": "mockttp -c karma start",

"@balena/lint": "^5.1.0",
"balena-auth": "^4.0.1",
"balena-config-karma": "^2.3.1",
"balena-request": "^10.0.9",
"balena-request": "^11.0.0",
"chai": "^3.5.0",

@@ -57,4 +58,4 @@ "chai-as-promised": "^6.0.0",

"peerDependencies": {
"balena-request": "^11.0.0-11-x-0f67d2157ff70c8cfada7b6359ba4b58aeeacf3c"
"balena-request": "^11.0.0"
}
}
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