mf-from-google-sheet
Advanced tools
Comparing version 2.0.6 to 2.0.7
@@ -8,3 +8,3 @@ 'use strict'; | ||
var Papa = require('papaparse'); | ||
var fetch = require('cross-fetch'); | ||
var crossFetch = require('cross-fetch'); | ||
@@ -14,8 +14,6 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var Papa__default = /*#__PURE__*/_interopDefaultLegacy(Papa); | ||
var fetch__default = /*#__PURE__*/_interopDefaultLegacy(fetch); | ||
var crossFetch__default = /*#__PURE__*/_interopDefaultLegacy(crossFetch); | ||
// eslint-disable-next-line no-shadow | ||
async function fetchText(url) { | ||
const result = await fetch__default["default"](url); | ||
const result = await crossFetch__default["default"](url); | ||
if (result.status !== 200) { | ||
@@ -22,0 +20,0 @@ throw new Error(String(result.status)); |
{ | ||
"name": "mf-from-google-sheet", | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"description": "Retrieve and format molecular formula from google sheet", | ||
@@ -24,8 +24,8 @@ "main": "lib/index.js", | ||
"cross-fetch": "^3.1.5", | ||
"mf-generator": "^2.1.0", | ||
"mf-parser": "^2.2.1", | ||
"mf-utilities": "^2.0.3", | ||
"mf-generator": "^2.1.1", | ||
"mf-parser": "^2.3.0", | ||
"mf-utilities": "^2.0.4", | ||
"papaparse": "^5.4.1" | ||
}, | ||
"gitHead": "d309de1c7a86730c8e4f0bd836896e1a16c95cb7" | ||
"gitHead": "2f92cd4423018e7dad9594565f1fae4557de0ca3" | ||
} |
@@ -1,6 +0,5 @@ | ||
// eslint-disable-next-line no-shadow | ||
import fetch from 'cross-fetch'; | ||
import crossFetch from 'cross-fetch'; | ||
export async function fetchText(url) { | ||
const result = await fetch(url); | ||
const result = await crossFetch(url); | ||
if (result.status !== 200) { | ||
@@ -7,0 +6,0 @@ throw new Error(String(result.status)); |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
0
10113
243
Updatedmf-generator@^2.1.1
Updatedmf-parser@^2.3.0
Updatedmf-utilities@^2.0.4