BREAKING CHANGE: Each plugin is expected to return an async function or a Promise returning function. The callback parameter is not passed to plugins anymore.
		
			
				
	
	
		
			15 lines
		
	
	
		
			392 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			392 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| const SemanticReleaseError = require('@semantic-release/error');
 | |
| 
 | |
| class InheritedError extends SemanticReleaseError {
 | |
|   constructor(message, code, newProperty) {
 | |
|     super(message);
 | |
|     Error.captureStackTrace(this, this.constructor);
 | |
|     this.name = this.constructor.name;
 | |
|     this.code = code;
 | |
|   }
 | |
| }
 | |
| 
 | |
| module.exports = () => {
 | |
|   throw new InheritedError('Inherited error', 'EINHERITED');
 | |
| };
 |