Skip to content

Commit 244b562

Browse files
Merge pull request #686 from watson-developer-cloud/fix-travis
Fix travis
2 parents 9913e1c + 256208d commit 244b562

File tree

7 files changed

+6827
-1096
lines changed

7 files changed

+6827
-1096
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ node_js:
55
- 6
66
- stable
77
before_install:
8-
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && openssl aes-256-cbc -K $encrypted_7f9951a7b27b_key
8+
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && openssl aes-256-cbc -K $encrypted_7f9951a7b27b_key
99
-iv $encrypted_7f9951a7b27b_iv -in auth.js.enc -out test/resources/auth.js -d ||
1010
true'
1111
- npm install -g typescript
1212
script:
1313
- tsc
14-
- npm test-travis
14+
- npm run test-travis
1515
- sh scripts/typedoc/generate_typedoc.sh
1616
after_success:
1717
- npm run report-coverage

auth.js.enc

0 Bytes
Binary file not shown.

language-translator/v2-generated.ts

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -137,43 +137,6 @@ class LanguageTranslatorV2 extends BaseService {
137137
return this.createRequest(parameters, _callback);
138138
};
139139

140-
/**
141-
* Identify language. as plain
142-
*
143-
* Identifies the language of the input text.
144-
*
145-
* @param {Object} params - The parameters to send to the service.
146-
* @param {string} params.text - Input text in UTF-8 format.
147-
* @param {Object} [params.headers] - Custom request headers
148-
* @param {Function} [callback] - The callback that handles the response.
149-
* @returns {NodeJS.ReadableStream|void}
150-
*/
151-
public identifyAsPlain(params: LanguageTranslatorV2.IdentifyAsPlainParams, callback?: LanguageTranslatorV2.Callback<LanguageTranslatorV2.IdentifiedLanguages>): NodeJS.ReadableStream | void {
152-
const _params = extend({}, params);
153-
const _callback = (callback) ? callback : () => { /* noop */ };
154-
const requiredParams = ['text'];
155-
const missingParams = getMissingParams(_params, requiredParams);
156-
if (missingParams) {
157-
return _callback(missingParams);
158-
}
159-
const body = _params.text;
160-
const parameters = {
161-
options: {
162-
url: '/v2/identify',
163-
method: 'POST',
164-
json: false,
165-
body,
166-
},
167-
defaultOptions: extend(true, {}, this._options, {
168-
headers: extend(true, {
169-
'Accept': 'text/plain',
170-
'Content-Type': 'text/plain',
171-
}, _params.headers),
172-
}),
173-
};
174-
return this.createRequest(parameters, _callback);
175-
};
176-
177140
/**
178141
* List identifiable languages.
179142
*
@@ -423,13 +386,6 @@ namespace LanguageTranslatorV2 {
423386
headers?: Object;
424387
}
425388

426-
/** Parameters for the `identifyAsPlain` operation. */
427-
export interface IdentifyAsPlainParams {
428-
/** Input text in UTF-8 format. */
429-
text: string;
430-
headers?: Object;
431-
}
432-
433389
/** Parameters for the `listIdentifiableLanguages` operation. */
434390
export interface ListIdentifiableLanguagesParams {
435391
headers?: Object;

0 commit comments

Comments
 (0)