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

object-to-google-spreadsheet

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-to-google-spreadsheet - npm Package Compare versions

Comparing version 1.0.11 to 1.0.12

__tests__/main.js

15

index.js
const ArrayToGoogleSheets = require('array-to-google-sheets');
const jsonToGssFormat = (obj, rowName, prop, a1, sort) => {
function jsonToGssFormat(obj, rowName, prop, a1, sort) {

@@ -27,12 +27,17 @@ // instantiating the set of the fields names

// check if input is array, stringifies accordingly
const b = inp => inp instanceof Array ? inp.join(", ") : inp;
// check if input is array, stringify accordingly
function b(inp) {
return inp instanceof Array ? inp.join(", ") : inp;
}
// catch and throw error
const er = (cond, msg) => {
function er(cond, msg) {
if (cond) throw new Error(msg);
};
// clean input out of invalid string charchters
const c = inp => typeof inp == 'string' ? inp.replace(/[\u0000-\u001f]/g,'') : inp;
function c(inp) {
return typeof inp == 'string' ? inp.replace(/[\u0000-\u001f]/g,'') : inp;
}

@@ -39,0 +44,0 @@ module.exports = class {

{
"name": "object-to-google-spreadsheet",
"version": "1.0.11",
"description": "Push an array of unstructured data objects into a Google spreadsheet",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ehab180hb/object-to-google-spreadsheet.git"
},
"keywords": [
"google",
"spreadsheets"
],
"author": "Ehab Khaireldin",
"license": "MIT",
"bugs": {
"url": "https://github.com/ehab180hb/object-to-google-spreadsheet/issues"
},
"homepage": "https://github.com/ehab180hb/object-to-google-spreadsheet#readme",
"dependencies": {
"array-to-google-sheets": "^1.0.0"
}
"name": "object-to-google-spreadsheet",
"version": "1.0.12",
"description": "Push an array of unstructured data objects into a Google spreadsheet",
"main": "index.js",
"scripts": {
"test": "jest"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ehab180hb/object-to-google-spreadsheet.git"
},
"keywords": [
"google",
"spreadsheets"
],
"author": "Ehab Khaireldin",
"license": "MIT",
"bugs": {
"url": "https://github.com/ehab180hb/object-to-google-spreadsheet/issues"
},
"homepage": "https://github.com/ehab180hb/object-to-google-spreadsheet#readme",
"dependencies": {
"array-to-google-sheets": "^1.0.0"
},
"devDependencies": {
"chai": "^4.1.2",
"jest": "^22.4.2",
"rewire": "^3.0.2"
}
}

@@ -59,3 +59,3 @@ Quickly publish a set of unstructured JSON objects into a Google spreadsheet that you specify.

}
})();
})();
```

@@ -62,0 +62,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc