Skip to content

Commit b87c063

Browse files
Merge pull request #670 from watson-developer-cloud/backwards-compatibility
fix(NLU): Added backwards compatibility for version date constants
2 parents 795084f + 23f6990 commit b87c063

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

auth.js.enc

0 Bytes
Binary file not shown.

natural-language-understanding/v1.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ import extend = require('extend');
1818
import GeneratedNaturalLanguageUnderstandingV1 = require('./v1-generated');
1919

2020
class NaturalLanguageUnderstandingV1 extends GeneratedNaturalLanguageUnderstandingV1 {
21+
static VERSION_DATE_2016_01_23: string = '2016-01-23';
22+
static VERSION_DATE_2017_02_27: string = '2017-02-27';
23+
2124
constructor(options) {
2225
// For backward compatibility, allow version to be passed in version_date.
2326
const _options = extend({}, options);

0 commit comments

Comments
 (0)