Files
shields/services/deprecation-helpers.js
Paul Melnikow a801450dd6 Move deprecation helpers to services/ (#3162)
This is currently unused, though it seems fine to keep it around.
2019-03-05 20:32:41 -06:00

14 lines
220 B
JavaScript

'use strict'
const { Deprecated } = require('.')
function enforceDeprecation(effectiveDate) {
if (Date.now() >= effectiveDate.getTime()) {
throw new Deprecated()
}
}
module.exports = {
enforceDeprecation,
}