@microsoft/bf-lu
Advanced tools
Comparing version 4.10.0-dev.20200719.7816875 to 4.10.0-dev.20200720.88a2a42
@@ -7,3 +7,2 @@ "use strict"; | ||
const LUSectionTypes = require('../utils/enums/lusectiontypes'); | ||
const { cloneDeepWith, cloneDeep, isFunction } = require('lodash'); | ||
class SectionOperator { | ||
@@ -14,6 +13,3 @@ /** | ||
constructor(luresource) { | ||
const { Sections, Errors, Content } = cloneDeepWith(luresource, (value) => { | ||
return isFunction(value) ? undfined : cloneDeep(value); | ||
}); | ||
this.Luresource = new LUResource(Sections, Content, Errors); | ||
this.Luresource = JSON.parse(JSON.stringify(luresource)); | ||
} | ||
@@ -38,5 +34,2 @@ // After CRUD, section Ids will keep same unless you change section name. | ||
luParser.extractSectionBody(this.Luresource.Sections, this.Luresource.Content); | ||
if (this.Luresource.hashATNConfig) { | ||
console.log('----------------------------'); | ||
} | ||
return this.Luresource; | ||
@@ -70,5 +63,2 @@ } | ||
luParser.extractSectionBody(this.Luresource.Sections, this.Luresource.Content); | ||
if (this.Luresource.hashATNConfig) { | ||
console.log('----------------------------'); | ||
} | ||
return this.Luresource; | ||
@@ -91,5 +81,2 @@ } | ||
luParser.extractSectionBody(this.Luresource.Sections, this.Luresource.Content); | ||
if (this.Luresource.hashATNConfig) { | ||
console.log('----------------------------'); | ||
} | ||
return this.Luresource; | ||
@@ -123,5 +110,2 @@ } | ||
luParser.extractSectionBody(this.Luresource.Sections, this.Luresource.Content); | ||
if (this.Luresource.hashATNConfig) { | ||
console.log('----------------------------'); | ||
} | ||
return this.Luresource; | ||
@@ -128,0 +112,0 @@ } |
{ | ||
"name": "@microsoft/bf-lu", | ||
"version": "4.10.0-dev.20200719.7816875", | ||
"version": "4.10.0-dev.20200720.88a2a42", | ||
"author": "Microsoft", | ||
@@ -5,0 +5,0 @@ "bugs": "https://github.com/microsoft/botframework-cli/issues", |
826280
18465