@changesets/errors
Advanced tools
Comparing version 0.1.1 to 0.1.2
# @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; |
@@ -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 }; |
{ | ||
"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); | ||
} | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
7497
178
1