Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions api/restClient/fetchClient.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
var fetch = require('node-fetch');
var logger = require('../../logger/logger').Logger;

const X_EAUTH_CLIENT_HEADER = "X-Eauth-Client";
const X_EAUTH_TOKEN_HEADER = "X-Api-Token";
const X_EAUTH_IDENTITY_HEADER = "X-Api-Identity";
const MAX_RETRIES = 5;
const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args));

// this function returns the base common request
// configuration required to hit the api
Expand Down
2 changes: 1 addition & 1 deletion logger/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var Logger = {
wlogger: null,
initialize: function(logPath) {
// while testing, log only to file, leaving stdout free for unit test status messages
this.wlogger = new (winston.Logger)({
this.wlogger = winston.createLogger({
transports: [
new (winston.transports.File)({ filename: path.join(logPath, 'codealike.log') })
]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codealike/codealike-core",
"version": "0.0.32",
"version": "0.0.33-SNAPSHOT",
"description": "Codealike core",
"main": "codealike.js",
"scripts": {
Expand Down