All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
42 lines
1.9 KiB
JavaScript
42 lines
1.9 KiB
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = exports.EDITORIAL_WORKFLOW_ERROR = void 0;
|
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
function _extendableBuiltin(cls) {
|
|
function ExtendableBuiltin() {
|
|
var instance = Reflect.construct(cls, Array.from(arguments));
|
|
Object.setPrototypeOf(instance, Object.getPrototypeOf(this));
|
|
return instance;
|
|
}
|
|
ExtendableBuiltin.prototype = Object.create(cls.prototype, {
|
|
constructor: {
|
|
value: cls,
|
|
enumerable: false,
|
|
writable: true,
|
|
configurable: true
|
|
}
|
|
});
|
|
if (Object.setPrototypeOf) {
|
|
Object.setPrototypeOf(ExtendableBuiltin, cls);
|
|
} else {
|
|
ExtendableBuiltin.__proto__ = cls;
|
|
}
|
|
return ExtendableBuiltin;
|
|
}
|
|
const EDITORIAL_WORKFLOW_ERROR = exports.EDITORIAL_WORKFLOW_ERROR = 'EDITORIAL_WORKFLOW_ERROR';
|
|
class EditorialWorkflowError extends _extendableBuiltin(Error) {
|
|
constructor(message, notUnderEditorialWorkflow) {
|
|
super(message);
|
|
_defineProperty(this, "message", void 0);
|
|
_defineProperty(this, "notUnderEditorialWorkflow", void 0);
|
|
this.message = message;
|
|
this.notUnderEditorialWorkflow = notUnderEditorialWorkflow;
|
|
this.name = EDITORIAL_WORKFLOW_ERROR;
|
|
}
|
|
}
|
|
exports.default = EditorialWorkflowError; |