Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
static generatePDRD(err) {
return pvl.jsToPVL(
new pvl.models.PVLRoot()
.add('MESSAGE_TYPE', new pvl.models.PVLTextString('SHORTPDRD'))
.add('DISPOSITION', new pvl.models.PVLTextString(err.message))
);
}
static generatePAN() {
return pvl.jsToPVL(
new pvl.models.PVLRoot()
.add('MESSAGE_TYPE', new pvl.models.PVLTextString('SHORTPAN'))
.add('DISPOSITION', new pvl.models.PVLTextString('SUCCESSFUL'))
.add('TIME_STAMP', new pvl.models.PVLDateTime(new Date()))
);
}
static generatePDRD(err) {
return pvl.jsToPVL(
new pvl.models.PVLRoot()
.add('MESSAGE_TYPE', new pvl.models.PVLTextString('SHORTPDRD'))
.add('DISPOSITION', new pvl.models.PVLTextString(err.message))
);
}
static generatePAN() {
return pvl.jsToPVL(
new pvl.models.PVLRoot()
.add('MESSAGE_TYPE', new pvl.models.PVLTextString('SHORTPAN'))
.add('DISPOSITION', new pvl.models.PVLTextString('SUCCESSFUL'))
.add('TIME_STAMP', new pvl.models.PVLDateTime(new Date()))
);
}