Skip to content

Commit

Permalink
🆕 first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Ammar Dodin committed Nov 9, 2017
1 parent 1556092 commit ca01ae3
Show file tree
Hide file tree
Showing 32 changed files with 608 additions and 298 deletions.
14 changes: 2 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,10 @@ node_js:
- 6
- stable
script:
- tsc # use the tsconfig.json to transpile specified service-files
- npm test
- npm run doc
after_success:
- scripts/jsdoc/publish.sh
- scripts/create_semver_tag.sh
before_install:
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && openssl aes-256-cbc -K $encrypted_cb4d3d070e32_key
-iv $encrypted_cb4d3d070e32_iv -in auth.js.enc -out test/resources/auth.js -d ||
true'
deploy:
provider: npm
email: [email protected]
api_key:
secure: SWmOXKulWp2sDEpt/0/Ad6DqZzgjFRLNxJbN5xyIZfkr2Z5SItSiewQn0A+Q0vd2Ug1lZNsF1dOcp9HDWSUE44PHRzjdSH498djI2iNbVdPMaMYQkE6dAnixHOxPbW3rzFWlS+LUPWjEmaeTAH2TkpfjxJURng7iUrrmS3HRLvU=
on:
tags: true
repo: watson-developer-cloud/node-sdk
- npm install -g typescript
2 changes: 1 addition & 1 deletion alchemy-data-news/v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
'use strict';

const extend = require('extend');
const requestFactory = require('../lib/requestwrapper');
const requestFactory = require('../lib/requestwrapper').createRequest;
const util = require('util');
const BaseServiceAlchemy = require('../lib/base_service_alchemy');
const errorFormatter = require('../lib/alchemy_error_formatter');
Expand Down
2 changes: 1 addition & 1 deletion alchemy-language/v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
const extend = require('extend');
const util = require('util');
const BaseServiceAlchemy = require('../lib/base_service_alchemy');
const requestFactory = require('../lib/requestwrapper');
const requestFactory = require('../lib/requestwrapper').createRequest;
// IMPORTANT:
// Due to the current design, the URL must be the last key on each endpoint or
// it could inadvertently clobber a url query param in the users request.
Expand Down
4 changes: 2 additions & 2 deletions authorization/v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@

'use strict';

const requestFactory = require('../lib/requestwrapper');
const requestFactory = require('../lib/requestwrapper').createRequest;
const url = require('url');
const util = require('util');
const BaseService = require('../lib/base_service');
const BaseService = require('../lib/base_service').BaseService;

/**
* Authorization Service
Expand Down
4 changes: 2 additions & 2 deletions conversation/v1-experimental.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@

'use strict';

const requestFactory = require('../lib/requestwrapper');
const requestFactory = require('../lib/requestwrapper').createRequest;
const pick = require('object.pick');
const util = require('util');
const BaseService = require('../lib/base_service');
const BaseService = require('../lib/base_service').BaseService;

/**
*
Expand Down
4 changes: 2 additions & 2 deletions conversation/v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@

'use strict';

const requestFactory = require('../lib/requestwrapper');
const requestFactory = require('../lib/requestwrapper').createRequest;
const pick = require('object.pick');
const util = require('util');
const BaseService = require('../lib/base_service');
const BaseService = require('../lib/base_service').BaseService;

/**
*
Expand Down
4 changes: 2 additions & 2 deletions dialog/v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
'use strict';

const extend = require('extend');
const requestFactory = require('../lib/requestwrapper');
const requestFactory = require('../lib/requestwrapper').createRequest;
const pick = require('object.pick');
const omit = require('object.omit');
const isStream = require('isstream');
const util = require('util');
const BaseService = require('../lib/base_service');
const BaseService = require('../lib/base_service').BaseService;

/**
*
Expand Down
4 changes: 2 additions & 2 deletions discovery/v1-experimental.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
'use strict';

const util = require('util');
const requestFactory = require('../lib/requestwrapper');
const BaseService = require('../lib/base_service');
const requestFactory = require('../lib/requestwrapper').createRequest;
const BaseService = require('../lib/base_service').BaseService;
const pick = require('object.pick');

/**
Expand Down
4 changes: 2 additions & 2 deletions discovery/v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
'use strict';

const util = require('util');
const requestFactory = require('../lib/requestwrapper');
const BaseService = require('../lib/base_service');
const requestFactory = require('../lib/requestwrapper').createRequest;
const BaseService = require('../lib/base_service').BaseService;
const pick = require('object.pick');
const isStream = require('isstream');

Expand Down
4 changes: 2 additions & 2 deletions document-conversion/v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@

'use strict';

const requestFactory = require('../lib/requestwrapper');
const requestFactory = require('../lib/requestwrapper').createRequest;
const isStream = require('isstream');
const omit = require('object.omit');
const util = require('util');
const BaseService = require('../lib/base_service');
const BaseService = require('../lib/base_service').BaseService;

/**
* Document Conversion service
Expand Down
4 changes: 2 additions & 2 deletions language-translation/v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@

'use strict';

const requestFactory = require('../lib/requestwrapper');
const requestFactory = require('../lib/requestwrapper').createRequest;
const extend = require('extend');
const pick = require('object.pick');
const isStream = require('isstream');
const helper = require('../lib/helper');
const util = require('util');
const BaseService = require('../lib/base_service');
const BaseService = require('../lib/base_service').BaseService;

/**
*
Expand Down
4 changes: 2 additions & 2 deletions language-translator/v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@

'use strict';

const requestFactory = require('../lib/requestwrapper');
const requestFactory = require('../lib/requestwrapper').createRequest;
const extend = require('extend');
const pick = require('object.pick');
const isStream = require('isstream');
const helper = require('../lib/helper');
const util = require('util');
const BaseService = require('../lib/base_service');
const BaseService = require('../lib/base_service').BaseService;

/**
*
Expand Down
131 changes: 0 additions & 131 deletions lib/base_service.js

This file was deleted.

Loading

0 comments on commit ca01ae3

Please sign in to comment.