@squarecloud/api
Version:
A NodeJS wrapper for Square Cloud API
45 lines (44 loc) • 1.63 kB
JavaScript
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
// src/services/cache/base.ts
var base_exports = {};
__export(base_exports, {
BaseCacheService: () => BaseCacheService
});
module.exports = __toCommonJS(base_exports);
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);
}
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
BaseCacheService
});
//# sourceMappingURL=base.cjs.map