New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

balena-errors

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

balena-errors - npm Package Compare versions

Comparing version 4.4.0-membership-error-ae5f4d09167b7c4bb98ec840ab9c9673e9326b3c to 4.4.0

10

build/errors.d.ts

@@ -123,11 +123,11 @@ /**

*
* @param {(String|Number)} membershipRole - membership role name or id
* @param {(String|Number)} applicationMembershipRole - application membership role name or id
* @return {Error} error instance
*
* @example
* throw new errors.BalenaMembershipRoleNotFound(123)
* throw new errors.BalenaApplicationMembershipRoleNotFound(123)
*/
export declare class BalenaMembershipRoleNotFound extends BalenaError {
membershipRole: string | number;
constructor(membershipRole: string | number);
export declare class BalenaApplicationMembershipRoleNotFound extends BalenaError {
applicationMembershipRole: string | number;
constructor(applicationMembershipRole: string | number);
}

@@ -134,0 +134,0 @@ /**

@@ -169,16 +169,17 @@ "use strict";

*
* @param {(String|Number)} membershipRole - membership role name or id
* @param {(String|Number)} applicationMembershipRole - application membership role name or id
* @return {Error} error instance
*
* @example
* throw new errors.BalenaMembershipRoleNotFound(123)
* throw new errors.BalenaApplicationMembershipRoleNotFound(123)
*/
class BalenaMembershipRoleNotFound extends BalenaError {
constructor(membershipRole) {
super(`Application membership role not found: ${membershipRole}`);
this.membershipRole = membershipRole;
class BalenaApplicationMembershipRoleNotFound extends BalenaError {
constructor(applicationMembershipRole) {
super(`Application membership role not found: ${applicationMembershipRole}`);
this.applicationMembershipRole = applicationMembershipRole;
}
}
exports.BalenaMembershipRoleNotFound = BalenaMembershipRoleNotFound;
BalenaMembershipRoleNotFound.prototype.code = 'BalenaMembershipRoleNotFound';
exports.BalenaApplicationMembershipRoleNotFound = BalenaApplicationMembershipRoleNotFound;
BalenaApplicationMembershipRoleNotFound.prototype.code =
'BalenaApplicationMembershipRoleNotFound';
/**

@@ -185,0 +186,0 @@ * @summary Balena image not found

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

# v4.4.0
## (2020-04-29)
## (2020-05-01)

@@ -12,0 +12,0 @@ * Add Application membership role not found error [Amit Solanki]

{
"name": "balena-errors",
"version": "4.4.0-membership-error-ae5f4d09167b7c4bb98ec840ab9c9673e9326b3c",
"version": "4.4.0",
"description": "Collection of Balena JavaScript errors",

@@ -5,0 +5,0 @@ "main": "build/errors.js",

@@ -50,4 +50,4 @@ balena-errors

* [new BalenaReleaseNotFound(release)](#new_module_errors..BalenaReleaseNotFound_new)
* [~BalenaMembershipRoleNotFound](#module_errors..BalenaMembershipRoleNotFound)
* [new BalenaMembershipRoleNotFound(membershipRole)](#new_module_errors..BalenaMembershipRoleNotFound_new)
* [~BalenaApplicationMembershipRoleNotFound](#module_errors..BalenaApplicationMembershipRoleNotFound)
* [new BalenaApplicationMembershipRoleNotFound(applicationMembershipRole)](#new_module_errors..BalenaApplicationMembershipRoleNotFound_new)
* [~BalenaImageNotFound](#module_errors..BalenaImageNotFound)

@@ -210,11 +210,11 @@ * [new BalenaImageNotFound(image)](#new_module_errors..BalenaImageNotFound_new)

```
<a name="module_errors..BalenaMembershipRoleNotFound"></a>
<a name="module_errors..BalenaApplicationMembershipRoleNotFound"></a>
### errors~BalenaMembershipRoleNotFound
### errors~BalenaApplicationMembershipRoleNotFound
**Kind**: inner class of [<code>errors</code>](#module_errors)
**Summary**: Balena application membership role not found
**Access**: public
<a name="new_module_errors..BalenaMembershipRoleNotFound_new"></a>
<a name="new_module_errors..BalenaApplicationMembershipRoleNotFound_new"></a>
#### new BalenaMembershipRoleNotFound(membershipRole)
#### new BalenaApplicationMembershipRoleNotFound(applicationMembershipRole)
**Returns**: <code>Error</code> - error instance

@@ -224,7 +224,7 @@

| --- | --- | --- |
| membershipRole | <code>String</code> \| <code>Number</code> | membership role name or id |
| applicationMembershipRole | <code>String</code> \| <code>Number</code> | application membership role name or id |
**Example**
```js
throw new errors.BalenaMembershipRoleNotFound(123)
throw new errors.BalenaApplicationMembershipRoleNotFound(123)
```

@@ -231,0 +231,0 @@ <a name="module_errors..BalenaImageNotFound"></a>

Sorry, the diff of this file is not supported yet

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