public-google-sheets-parser
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -11,3 +11,3 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } | ||
const isBrowser = typeof require === 'undefined'; | ||
const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined'; | ||
const fetch = isBrowser ? | ||
@@ -141,3 +141,3 @@ /* istanbul ignore next */ | ||
if (isBrowser) { | ||
if (isBrowser && !module) { | ||
window.PublicGoogleSheetsParser = PublicGoogleSheetsParser; | ||
@@ -144,0 +144,0 @@ } else { |
{ | ||
"name": "public-google-sheets-parser", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "Get JSONArray from public google sheets with using only spreadsheetId", | ||
@@ -5,0 +5,0 @@ "scripts": { |
# Public Google Sheets Parser | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
[](https://github.com/fureweb-com) | ||
[](https://img.shields.io/github/checks-status/fureweb-com/public-google-sheets-parser/main) | ||
[](https://www.npmjs.com/package/public-google-sheets-parser) | ||
[](https://codecov.io/gh/fureweb-com/public-google-sheets-parser) | ||
[](https://github.com/fureweb-com/public-google-sheets-parser/blob/main/LICENSE) | ||
[](https://standardjs.com) | ||
[](https://hits.seeyoufarm.com) | ||
[](https://github.com/fureweb-com/public-google-sheets-parser/stargazers) | ||
[](https://www.npmjs.com/package/public-google-sheets-parser) | ||
[](https://www.jsdelivr.com/package/npm/public-google-sheets-parser) | ||
@@ -14,0 +14,0 @@  |
@@ -1,2 +0,2 @@ | ||
const isBrowser = typeof require === 'undefined' | ||
const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined'; | ||
const fetch = isBrowser ? /* istanbul ignore next */window.fetch : require('../src/fetch') | ||
@@ -99,3 +99,3 @@ | ||
/* istanbul ignore next */ | ||
if (isBrowser) { | ||
if (isBrowser && !module) { | ||
window.PublicGoogleSheetsParser = PublicGoogleSheetsParser | ||
@@ -102,0 +102,0 @@ } else { |
839388