pragma-schema
Advanced tools
Comparing version 2022.5.2-6 to 2022.5.2-7
{ | ||
"name": "pragma-schema", | ||
"version": "2022.5.2-6", | ||
"version": "2022.5.2-7", | ||
"description": "utility for building pragma schema structures", | ||
@@ -5,0 +5,0 @@ "main": "commonjs/src/schemajs", |
@@ -213,12 +213,5 @@ class IdObject { | ||
<<<<<<< HEAD | ||
add(id, name) { | ||
const templateId = id == undefined ? this.length : id; | ||
const templateName = name == undefined ? `template ${templateId}` : name; | ||
const itemToAdd = new Template(templateId, templateName); | ||
======= | ||
add(id) { | ||
const templateId = this.length > 0 ? (Math.max(...this.map(item => item.id)) + 1) : 0; | ||
const itemToAdd = new Template(templateId); | ||
>>>>>>> develop | ||
this.push(itemToAdd); | ||
@@ -225,0 +218,0 @@ return itemToAdd; |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
16948
509