Skip to content

Commit f189ab6

Browse files
committed
Removed api from exports and bumped version.
1 parent 3730048 commit f189ab6

File tree

4 files changed

+3
-43
lines changed

4 files changed

+3
-43
lines changed

README.md

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -84,45 +84,6 @@ client.getAsync([FULL_PATH], {useCache: true})
8484
})
8585
```
8686

87-
88-
89-
# Outdated Readme
90-
91-
To use:
92-
93-
```javascript
94-
var api = require('kth-api-call');
95-
96-
var ApiCall = api(
97-
{
98-
host : 'www.examplehost.com',
99-
path : '/example/path'
100-
}
101-
);
102-
103-
ApiCall.request(
104-
function(data) {
105-
// Called on success
106-
// data is a JSON object with the response data
107-
},
108-
function(err) {
109-
// Called on error
110-
// err contains the error message
111-
}
112-
);
113-
```
114-
115-
The configuration parameter sent to the module can consist of the following:
116-
117-
* port : int / default: 443
118-
* method : string / default: GET
119-
* host : string / default: none / MANDATORY
120-
* path : string / default: '/'
121-
* debugMode : boolean / default: false
122-
* https : boolean / default: true
123-
* headers : object / default: undefined
124-
* json : boolean / default: false
125-
12687
## BasicAPI
12788

12889
This is a more straightforward wrapper around [request][request]. It will allow

connections.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ function setup (apisConfig, apisKeyConfig, opts) {
2929
api.connected = true
3030
return Promise.resolve(api)
3131
})
32-
32+
3333
const apisWithoutPaths = apis.filter(api => !api.paths)
3434
const remoteConnectedApis = getPathsRemote(apisWithoutPaths, opts)
35-
35+
3636
const allConnectedApis = Promise.all(remoteConnectedApis.concat(connectedApis))
3737

3838
allConnectedApis

index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
module.exports = {
2-
api: require('./api'),
32
Connections: require('./connections'),
43
oidcApi: require('./oidcApi'),
54
cachedApi: require('./cachedApi'),

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "kth-node-api-call",
3-
"version": "1.1.1",
3+
"version": "1.2.0",
44
"description": "Node.js module to make JSON calls against APIs.",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)