@telefonica/luis-cli
Advanced tools
Comparing version 1.0.6 to 1.0.7
"use strict"; | ||
const logger = require('logops'); | ||
const _ = require('lodash'); | ||
const logger = require("logops"); | ||
const _ = require("lodash"); | ||
const request = require('request-promise-native'); | ||
@@ -69,3 +69,3 @@ class LuisClient { | ||
let _baseRequest = this._baseRequest; | ||
let promise = Promise.resolve(); | ||
let promise = Promise.resolve(null); | ||
_.chunk(apiExamples, 100).forEach(chunk => { | ||
@@ -81,3 +81,3 @@ promise = promise.then(() => performRequest(chunk)); | ||
return { | ||
utteranceText: result.value.UtteranceText, | ||
utteranceText: result.value ? result.value.UtteranceText : null, | ||
has_error: result.has_error, | ||
@@ -84,0 +84,0 @@ error: result.error |
@@ -1,7 +0,7 @@ | ||
import { LuisClient, Luis } from './luis-api-client'; | ||
import { Luis } from './luis-api-client'; | ||
export declare class LuisApp { | ||
_appId: any; | ||
_subscriptionId: any; | ||
_luisClient: LuisClient; | ||
PAGE_SIZE: number; | ||
private _appId; | ||
private _subscriptionId; | ||
private _luisClient; | ||
private PAGE_SIZE; | ||
constructor(appId: string, subscriptionId: string); | ||
@@ -8,0 +8,0 @@ export(): Promise<Object>; |
"use strict"; | ||
const logger = require('logops'); | ||
const luis_api_client_1 = require('./luis-api-client'); | ||
const logger = require("logops"); | ||
const luis_api_client_1 = require("./luis-api-client"); | ||
class LuisApp { | ||
@@ -34,3 +34,3 @@ constructor(appId, subscriptionId) { | ||
}) | ||
.then(newAppId => { | ||
.then((newAppId) => { | ||
logger.debug('Initiating training...'); | ||
@@ -37,0 +37,0 @@ return this._luisClient.startTraining(newAppId); |
"use strict"; | ||
const luis_app_1 = require('./luis-app'); | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
const commander = require('commander'); | ||
const logger = require('logops'); | ||
const luis_app_1 = require("./luis-app"); | ||
const fs = require("fs"); | ||
const path = require("path"); | ||
const commander = require("commander"); | ||
const logger = require("logops"); | ||
const cli = commander | ||
@@ -8,0 +8,0 @@ .option('-e, --export [filename]', 'Export application to JSON file. You need to specify an appid.') |
{ | ||
"name": "@telefonica/luis-cli", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "CLI for Microsoft LUIS API", | ||
"license": "UNLICENSED", | ||
"license": "Apache-2.0", | ||
"repository": "https://github.com/Telefonica/yot-bot", | ||
@@ -14,6 +14,2 @@ "author": "TDAF <tdaf@tid.es>", | ||
], | ||
"files": [ | ||
"lib", | ||
"bin" | ||
], | ||
"scripts": { | ||
@@ -31,3 +27,3 @@ "build": "npm run clean && npm run compile", | ||
"lodash": "^4.16.2", | ||
"logops": "^1.0.6", | ||
"logops": "^1.0.7", | ||
"request": "^2.74.0", | ||
@@ -42,5 +38,5 @@ "request-promise-native": "^1.0.3" | ||
"nsp": "^2.6.1", | ||
"shx": "^0.1.4", | ||
"tslint": "^3.14.0", | ||
"typescript": "^2.0.0" | ||
"shx": "^0.2.1", | ||
"tslint": "^4.0.2", | ||
"typescript": "^2.1.0" | ||
}, | ||
@@ -47,0 +43,0 @@ "engines": { |
@@ -33,1 +33,17 @@ # Luis Command-line Interface | ||
``` | ||
## LICENSE | ||
Copyright 2016 [Telefónica I+D](http://www.tid.es) | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Explicitly Unlicensed Item
License(Experimental) Something was found which is explicitly marked as unlicensed.
Found 1 instance in 1 package
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
73022
18
0
0
0
100
1081
48
Updatedlogops@^1.0.7