Comparing version 1.0.16 to 1.0.17
@@ -72,4 +72,6 @@ const csvWriter = require('csv-write-stream'); | ||
console.log("Name: " + name); | ||
console.log(name.toString() === clientIdentifier.toString()); | ||
var id = row.clientId; | ||
if (name === clientIdentifier || id === clientIdentifier) { | ||
if (name.toString() === clientIdentifier.toString() || | ||
id.toString() === clientIdentifier.toString()) { | ||
return JSON.stringify(createClientConfig(row)); | ||
@@ -79,5 +81,5 @@ } | ||
.on('end', function (data) { | ||
console.log('No more data in file.'); | ||
console.info('No more data in file.'); | ||
}); | ||
console.log("Client config " + clientIdentifier + " not found."); | ||
console.info("Client config " + clientIdentifier + " not found."); | ||
return JSON.stringify({}); | ||
@@ -92,8 +94,6 @@ } | ||
.on('data', function (row) { | ||
console.log("Name: " + row.name); | ||
listOfClientConfig.push(createClientConfig(row)); | ||
console.log(listOfClientConfig); | ||
}) | ||
.on('end', function (data) { | ||
console.log('No more data in file.'); | ||
console.info('No more data in file.'); | ||
}); | ||
@@ -100,0 +100,0 @@ return JSON.stringify(listOfClientConfig); |
{ | ||
"name": "coaclient", | ||
"version": "1.0.16", | ||
"version": "1.0.17", | ||
"description": "Custom Node.js library for manage CourseraOAuth2 API tokens", | ||
@@ -5,0 +5,0 @@ "main": "coaclient", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12441