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 6.1.2-include-full-response-in-error-fd7649eccea3635061dbf61afad04a783c6586ee to 6.1.2-update-mocha-a6677fab4254f1f3a303ff4b8bdabcb3f2f631db

23

build/register.js

@@ -18,5 +18,3 @@ // Generated by CoffeeScript 1.12.7

*/
var ApiError, Promise, TypedError, randomstring,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
var Promise, randomstring;

@@ -27,5 +25,3 @@ Promise = require('bluebird');

TypedError = require('typed-error').TypedError;
/**

@@ -122,3 +118,3 @@ * @summary Creates a Balena Register Device instance

if (response.statusCode !== 201) {
throw new ApiError(response.body, response);
throw new Error(response.body);
}

@@ -129,16 +125,1 @@ }).get('body').asCallback(callback);

};
ApiError = (function(superClass) {
extend(ApiError, superClass);
function ApiError(message, response1) {
if (message == null) {
message = 'Error with API request';
}
this.response = response1;
ApiError.__super__.constructor.call(this, this.message);
}
return ApiError;
})(TypedError);

4

CHANGELOG.md

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

# v6.1.2
## (2020-05-19)
## (2020-05-20)
* Extend API exception to include full response object [Miguel Casqueira]
* Update mocha to fix node v12 deprecation warning [Thodoris Greasidis]

@@ -14,0 +14,0 @@ # v6.1.1

{
"name": "balena-register-device",
"version": "6.1.2-include-full-response-in-error-fd7649eccea3635061dbf61afad04a783c6586ee",
"version": "6.1.2-update-mocha-a6677fab4254f1f3a303ff4b8bdabcb3f2f631db",
"description": "Balena device registration utilities",

@@ -42,7 +42,7 @@ "main": "build/register.js",

"gulp-coffee": "^2.3.0",
"gulp-mocha": "^3.0.0",
"gulp-mocha": "^7.0.2",
"gulp-util": "^3.0.1",
"karma": "^1.7.0",
"lodash": "^4.0.0",
"mocha": "^3.5.0",
"mocha": "^6.2.0",
"mockttp": "^0.8.0",

@@ -49,0 +49,0 @@ "sinon": "^1.17.6"

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