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

@dotcom-tool-kit/error

Package Overview
Dependencies
Maintainers
2
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dotcom-tool-kit/error - npm Package Compare versions

Comparing version 1.0.0-beta.30 to 1.0.0-beta.31

13

lib/index.d.ts

@@ -5,2 +5,15 @@ export declare class ToolKitError extends Error {

}
export interface ConflictingTask {
task: string;
plugin: string;
}
export interface HookTaskConflict {
hook: string;
conflictingTasks: ConflictingTask[];
}
export declare class ToolKitConflictError extends ToolKitError {
conflicts: HookTaskConflict[];
constructor(message: string, conflicts: HookTaskConflict[]);
}
export declare function hasToolKitConflicts(error: unknown): error is ToolKitConflictError;
//# sourceMappingURL=index.d.ts.map

13

lib/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ToolKitError = void 0;
exports.hasToolKitConflicts = exports.ToolKitConflictError = exports.ToolKitError = void 0;
class ToolKitError extends Error {
}
exports.ToolKitError = ToolKitError;
class ToolKitConflictError extends ToolKitError {
constructor(message, conflicts) {
super(message);
this.conflicts = conflicts;
}
}
exports.ToolKitConflictError = ToolKitConflictError;
function hasToolKitConflicts(error) {
return error instanceof ToolKitConflictError && error.conflicts.length > 0;
}
exports.hasToolKitConflicts = hasToolKitConflicts;

2

package.json
{
"name": "@dotcom-tool-kit/error",
"version": "1.0.0-beta.30",
"version": "1.0.0-beta.31",
"description": "",

@@ -5,0 +5,0 @@ "main": "lib",

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