Comparing version 0.6.1 to 0.6.2
@@ -150,6 +150,7 @@ import { Observable } from 'rxjs'; | ||
} | ||
return Observable.ajax.get(this.url + utterance) | ||
.do(ajaxResponse => console.log("LUIS response!", ajaxResponse)) | ||
.map(ajaxResponse => ajaxResponse.response as LuisResponse) | ||
.do(luisResponse => this.cache[utterance] = luisResponse); | ||
return Observable.fromPromise(fetch(this.url + utterance).then<LuisResponse>(response => response.json())) | ||
.do(luisResponse => { | ||
console.log("LUIS response!", luisResponse); | ||
this.cache[utterance] = luisResponse; | ||
}); | ||
} | ||
@@ -156,0 +157,0 @@ |
@@ -125,6 +125,7 @@ "use strict"; | ||
} | ||
return rxjs_1.Observable.ajax.get(this.url + utterance) | ||
.do(function (ajaxResponse) { return console.log("LUIS response!", ajaxResponse); }) | ||
.map(function (ajaxResponse) { return ajaxResponse.response; }) | ||
.do(function (luisResponse) { return _this.cache[utterance] = luisResponse; }); | ||
return rxjs_1.Observable.fromPromise(fetch(this.url + utterance).then(function (response) { return response.json(); })) | ||
.do(function (luisResponse) { | ||
console.log("LUIS response!", luisResponse); | ||
_this.cache[utterance] = luisResponse; | ||
}); | ||
}; | ||
@@ -131,0 +132,0 @@ LuisModel.prototype.match = function (match) { |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"description": "rules-based app engine", | ||
@@ -9,0 +9,0 @@ "main": "dist/prague.js", |
Sorry, the diff of this file is not supported yet
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
85290
36
1267
1