pushy-me
Version:
pushy-me is a simple push notification service for Node.js
17 lines (16 loc) • 433 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ApiKey = void 0;
const is_valide_apiKey_1 = require("../utils/is-valide-apiKey");
class ApiKey {
constructor(value) {
if (!(0, is_valide_apiKey_1.isValideApiKey)(value)) {
throw new Error('Invalid API Key');
}
this.value = value;
}
get() {
return this.value;
}
}
exports.ApiKey = ApiKey;