New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mf-from-google-sheet

Package Overview
Dependencies
Maintainers
1
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mf-from-google-sheet - npm Package Compare versions

Comparing version

to
0.5.0

src/__tests__/mfFromGoogleSheet.js

9

package.json

@@ -6,3 +6,3 @@ {

},
"version": "0.4.3",
"version": "0.5.0",
"description": "Retrieve and format molecular formula from google sheet",

@@ -25,7 +25,8 @@ "main": "src/index.js",

"dependencies": {
"mf-generator": "^0.4.3",
"mf-parser": "^0.4.3",
"mf-generator": "^0.5.0",
"mf-parser": "^0.5.0",
"papaparse": "^4.3.6",
"request-promise": "^4.2.2"
"request": "^2.83.0",
"request-promise-native": "^1.0.5"
}
}

@@ -8,3 +8,7 @@ 'use strict';

async function getReferenceList(url, urlReferences) {
async function mfFromGoogleSheet(url, options = {}) {
let {
urlReferences
} = options;
if (urlReferences) {

@@ -29,3 +33,3 @@ let results = await Promise.all([

var fields = parsed.meta.fields;
var infoFields = fields.filter(a => !['mf', 'modif', 'ESI', 'MALDI', 'positive', 'negative'].includes(a));
var infoFields = fields.filter((a) => !['mf', 'modif', 'ESI', 'MALDI', 'positive', 'negative'].includes(a));
var formulas = parsed.data;

@@ -115,3 +119,3 @@

module.exports = getReferenceList;
module.exports = mfFromGoogleSheet;
'use strict';
const request = require('request-promise');
const request = require('request-promise-native');
module.exports = async function fetchText(url) {
return request(url);
module.exports = function fetchText(url) {
return request(url).promise();
};