@squarecloud/api
Version:
A NodeJS wrapper for Square Cloud API
44 lines (42 loc) • 1.09 kB
JavaScript
var __defProp = Object.defineProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
// src/services/cache/base.ts
var BaseCacheService = class {
constructor() {
__publicField(this, "cache");
}
set(key, value) {
Reflect.set(this.cache, key, value);
}
get(key) {
return this.cache[key];
}
remove(key) {
Reflect.set(this.cache, key, void 0);
}
};
// src/services/cache/application.ts
var ApplicationCacheService = class extends BaseCacheService {
constructor() {
super(...arguments);
__publicField(this, "cache", {
status: void 0,
backups: void 0,
logs: void 0
});
}
get status() {
return this.cache.status;
}
get backups() {
return this.cache.backups;
}
get logs() {
return this.cache.logs;
}
};
export {
ApplicationCacheService
};
//# sourceMappingURL=application.js.map