balena-register-device
Advanced tools
Comparing version 7.0.0-7-x-07c1879565f07fa35a8966f2d443b8e745d05a22 to 7.0.0-7-x-3ff55cfe6edaf25620a299f0af1193624fcf9c00
@@ -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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
0
29886
11
198