sfdx-git-delta
Version:
Generate the sfdx content in source format and destructive change from two git commits
34 lines • 991 B
JavaScript
import { LABEL_DECOMPOSED_SUFFIX } from '../constant/metadataConstants.js';
import InFileHandler from './inFileHandler.js';
import StandardHandler from './standardHandler.js';
export default class CustomLabelHandler extends InFileHandler {
async handleAddition() {
if (this._isDecomposed()) {
await StandardHandler.prototype.handleAddition.apply(this);
}
else {
await super.handleAddition();
}
}
_shouldTreatDeletionAsDeletion() {
return this._isDecomposed();
}
_getQualifiedName() {
return '';
}
_delegateFileCopy() {
return this._isDecomposed();
}
_isProcessable() {
return true;
}
_shouldTreatContainerType() {
// There is no container / parent type for Contained CustomLabels
return false;
}
_isDecomposed() {
return this.ext === LABEL_DECOMPOSED_SUFFIX;
}
}
//# sourceMappingURL=customLabelHandler.js.map
;