@rnaga/wp-node
Version:
👉 **[View Full Documentation at rnaga.github.io/wp-node →](https://rnaga.github.io/wp-node/)**
55 lines (54 loc) • 1.94 kB
JavaScript
;
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Vars = void 0;
const component_1 = require("../decorators/component");
let Vars = class Vars {
static globalMap = new Map();
map = new Map();
get TABLES_MS_CURRENT_INDEX() {
return this.map.get("TABLES_MS_CURRENT_INDEX") ?? 0;
}
set TABLES_MS_CURRENT_INDEX(index) {
this.map.set("TABLES_MS_CURRENT_INDEX", index);
}
get DOING_AUTOSAVE() {
return this.map.get("DOING_AUTOSAVE") ?? false;
}
set DOING_AUTOSAVE(save) {
this.map.set("DOING_AUTOSAVE", save);
}
get CONTEXT() {
return this.map.get("CONTEXT");
}
set CONTEXT(context) {
this.map.set("CONTEXT", context);
}
get USER_ROLES() {
return this.map.get("USER_ROLES");
}
set USER_ROLES(roles) {
this.map.set("USER_ROLES", roles);
}
set TZ_IDENTIFIER(tz) {
this.map.set("TZ_IDENTIFIER", tz);
}
get TZ_IDENTIFIER() {
return this.map.get("TZ_IDENTIFIER") ?? "Etc/GMT";
}
set TIME_OFFSET_MINUTES(offset) {
this.map.set("TIME_OFFSET_MINUTES", offset);
}
get TIME_OFFSET_MINUTES() {
return this.map.get("TIME_OFFSET_MINUTES") ?? 0;
}
};
exports.Vars = Vars;
exports.Vars = Vars = __decorate([
(0, component_1.component)()
], Vars);