diff --git a/.travis.yml b/.travis.yml index f2809b7..a45fef8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,6 +35,7 @@ matrix: env: TZ="America/Mexico_City" FMTS=misc before_install: + - "npm config set strict-ssl false" - "npm install -g npm@4.3.0" - "npm install -g mocha@2.x voc" - "npm install blanket" diff --git a/demos/database/README.md b/demos/database/README.md index c2ad665..8ac5939 100644 --- a/demos/database/README.md +++ b/demos/database/README.md @@ -325,6 +325,8 @@ const aoa = XLSX.utils.sheet_to_json(ws); await db.collection('coll').insertMany(aoa, {ordered: true}); ``` + + #### Firebase [`firebase-server`](https://www.npmjs.com/package/firebase-server) is a simple @@ -335,6 +337,4 @@ Firebase deployment when plugging in the database connection info. The entire workbook object is persisted, a few cells are changed, and the stored data is dumped and exported to XLSX. - - [![Analytics](https://ga-beacon.appspot.com/UA-36810333-1/SheetJS/js-xlsx?pixel)](https://github.com/SheetJS/js-xlsx) diff --git a/demos/database/SheetJSMongo.js b/demos/database/SheetJSMongo.js index 06036f9..23c78c7 100644 --- a/demos/database/SheetJSMongo.js +++ b/demos/database/SheetJSMongo.js @@ -1,7 +1,7 @@ /* xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */ /* eslint-env node */ var XLSX = require("xlsx"); - + async function book_append_mongo(wb, coll, name) { const aoo = await coll.find({}).toArray(); aoo.forEach((x) => delete x._id);