Socket
Socket
Sign inDemoInstall

nodus-ponens

Package Overview
Dependencies
164
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.3 to 1.3.4

2

displayHeader.js

@@ -25,3 +25,3 @@ // --------------------------------------------------------------------------------------------------

console.log(" Designed by Sangeet Khemlani")
console.log(" Copyright (C) 2017 Naval Research Laboratory")
console.log(" Copyright (C) 2019 Naval Research Laboratory")
console.log(" Navy Center of Applied Research in Artificial Intelligence")

@@ -28,0 +28,0 @@ console.log(" https://www.nrl.navy.mil/itd/aic/\n")

@@ -6,3 +6,3 @@ // --------------------------------------------------------------------------------------------------

// Designed by Sangeet Khemlani
// Copyright (C) 2016 Naval Research Laboratory
// Copyright (C) 2019 Naval Research Laboratory
// Navy Center of Applied Research in Artificial Intelligence

@@ -50,2 +50,3 @@ // https://www.nrl.navy.mil/itd/aic/

np["app"] = require('express')();
np["session"] = require('express-session');
np["http"] = require('http').Server(np.app);

@@ -136,3 +137,3 @@ np["staticDirectory"] = staticDirectory;

}
var logData = require("./logData")(np.dataDirectory + "/incomplete", sess.sessdata);
sess.sessdata.CurrentStimulus++;

@@ -139,0 +140,0 @@ if(currentStimulus+1 >= sess.sessdata.Stimuli.length)

@@ -8,3 +8,3 @@ // --------------------------------------------------------------------------------------------------

function logData(dataDirectory, sessionData) {
function logData(dataDirectory, sessionData, append=true) {
var experimentData = sessionData;

@@ -29,4 +29,5 @@ var stimuliData = experimentData.Stimuli;

hasCSVColumnTitle: header, eol:"\n" });
if(header) header = false;
fs.appendFileSync(fileName, stimulusCSV);
if (header) header = false;
if (overwrite) fs.writeFileSync(fileName, stimulusCSV);
else fs.appendFileSync(fileName, stimulusCSV);
});

@@ -33,0 +34,0 @@ }

{
"name": "nodus-ponens",
"version": "1.3.3",
"version": "1.3.4",
"description": "A light, full-stack framework for running high-level reasoning and cognitive science experiments in Node.js.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -5,4 +5,5 @@ # nodus-ponens

## Bux fixes
## Bug fixes
* Added ability to save incomplete data
* Added compatibility for Windows line-endings (caught by J. Korman)

@@ -69,2 +70,2 @@ * Added new fn, hideProblem(), in showStimuli

(c) 2018 Sangeet Khemlani, http://www.khemlani.net/, Creative Commons License.
(c) 2019 Sangeet Khemlani, http://www.khemlani.net/, Creative Commons License.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc