pragma-schema
Advanced tools
Comparing version 1.0.57 to 1.0.58
{ | ||
"name": "pragma-schema", | ||
"version": "1.0.57", | ||
"version": "1.0.58", | ||
"description": "utility for building pragma schema structures", | ||
@@ -5,0 +5,0 @@ "main": "commonjs/src/schema.js", |
@@ -42,5 +42,6 @@ class IdObject { | ||
export class Lookup extends IdObject { | ||
constructor(id, name, perspective, template, remote) { | ||
constructor(id, name, title, perspective, template, remote) { | ||
super(id); | ||
this.name = name; | ||
this.title = title; | ||
this.mapping = {}; | ||
@@ -110,5 +111,5 @@ this.perspective = perspective; | ||
add(name, perspective, template, remote) { | ||
add(name, title, perspective, template, remote) { | ||
const id = this.length + 1; | ||
const itemToAdd = new Lookup(id, name, perspective, template, remote); | ||
const itemToAdd = new Lookup(id, name, title, perspective, template, remote); | ||
this.push(itemToAdd); | ||
@@ -115,0 +116,0 @@ return itemToAdd; |
15757
493