UNPKG

@autobe/agent

Version:

AI backend server code generator

35 lines 904 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AutoBeJsonSchemaCollection = void 0; class AutoBeJsonSchemaCollection { constructor(all, local) { this.all = all; this.local = local; } assign(other) { for (const [key, value] of Object.entries(other)) { if (value === undefined) continue; this.set(key, value); } } get(key) { return this.all[key]; } set(key, value) { this.local[key] = value; this.all[key] = value; } delete(key) { delete this.local[key]; delete this.all[key]; } has(key) { return this.all[key] !== undefined; } get schemas() { return this.all; } } exports.AutoBeJsonSchemaCollection = AutoBeJsonSchemaCollection; //# sourceMappingURL=AutoBeJsonSchemaCollection.js.map