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

@changesets/errors

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@changesets/errors - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

8

CHANGELOG.md
# @changesets/errors
## 0.1.2
### Patch Changes
- [`8f0a1ef`](https://github.com/atlassian/changesets/commit/8f0a1ef327563512f471677ef0ca99d30da009c0) [#183](https://github.com/atlassian/changesets/pull/183) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Add `InternalError` for errors which are unexpected and if they occur, an issue should be opened. The CLI catches the error and logs a link for users to open an issue with the error and versions of Node and Changesets filled in
* [`8f0a1ef`](https://github.com/atlassian/changesets/commit/8f0a1ef327563512f471677ef0ca99d30da009c0) [#183](https://github.com/atlassian/changesets/pull/183) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Add `PreExitButNotInPreModeError` and `PreEnterButInPreModeError`
## 0.1.1

@@ -4,0 +12,0 @@

@@ -12,1 +12,10 @@ import ExtendableError from "extendable-error";

}
export declare class PreExitButNotInPreModeError extends ExtendableError {
constructor();
}
export declare class PreEnterButInPreModeError extends ExtendableError {
constructor();
}
export declare class InternalError extends ExtendableError {
constructor(message: string);
}

@@ -24,5 +24,26 @@ 'use strict';

}
class PreExitButNotInPreModeError extends ExtendableError {
constructor() {
super("pre mode cannot be exited when not in pre mode");
}
}
class PreEnterButInPreModeError extends ExtendableError {
constructor() {
super("pre mode cannot be entered when in pre mode");
}
}
class InternalError extends ExtendableError {
constructor(message) {
super(message);
}
}
exports.ExitError = ExitError;
exports.GitError = GitError;
exports.InternalError = InternalError;
exports.PreEnterButInPreModeError = PreEnterButInPreModeError;
exports.PreExitButNotInPreModeError = PreExitButNotInPreModeError;
exports.ValidationError = ValidationError;

22

dist/errors.cjs.prod.js

@@ -27,2 +27,22 @@ "use strict";

exports.ExitError = ExitError, exports.GitError = GitError, exports.ValidationError = ValidationError;
class PreExitButNotInPreModeError extends ExtendableError {
constructor() {
super("pre mode cannot be exited when not in pre mode");
}
}
class PreEnterButInPreModeError extends ExtendableError {
constructor() {
super("pre mode cannot be entered when in pre mode");
}
}
class InternalError extends ExtendableError {
constructor(message) {
super(message);
}
}
exports.ExitError = ExitError, exports.GitError = GitError, exports.InternalError = InternalError,
exports.PreEnterButInPreModeError = PreEnterButInPreModeError, exports.PreExitButNotInPreModeError = PreExitButNotInPreModeError,
exports.ValidationError = ValidationError;

@@ -18,3 +18,21 @@ import ExtendableError from 'extendable-error';

}
class PreExitButNotInPreModeError extends ExtendableError {
constructor() {
super("pre mode cannot be exited when not in pre mode");
}
export { ExitError, GitError, ValidationError };
}
class PreEnterButInPreModeError extends ExtendableError {
constructor() {
super("pre mode cannot be entered when in pre mode");
}
}
class InternalError extends ExtendableError {
constructor(message) {
super(message);
}
}
export { ExitError, GitError, InternalError, PreEnterButInPreModeError, PreExitButNotInPreModeError, ValidationError };

2

package.json
{
"name": "@changesets/errors",
"version": "0.1.1",
"version": "0.1.2",
"description": "Error classes for @changesets",

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

@@ -20,1 +20,19 @@ import ExtendableError from "extendable-error";

}
export class PreExitButNotInPreModeError extends ExtendableError {
constructor() {
super("pre mode cannot be exited when not in pre mode");
}
}
export class PreEnterButInPreModeError extends ExtendableError {
constructor() {
super("pre mode cannot be entered when in pre mode");
}
}
export class InternalError extends ExtendableError {
constructor(message: string) {
super(message);
}
}
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