Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@teko-builder/utils

Package Overview
Dependencies
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@teko-builder/utils - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

10

dist/index.es.js

@@ -162,3 +162,3 @@ import pino from 'pino';

logger.error(err);
return err.response ? err.response : { code: 404 };
return err;
}

@@ -177,5 +177,11 @@ };

const sheet1 = doc.sheetsByIndex[0];
if (!sheet1.headerValues) {
await sheet1.loadHeaderRow();
const headers = sheet1.headerValues;
if (!headers) {
await sheet1.setHeaderRow(Object.keys(body));
}
else {
const newHeaders = Object.keys(body).filter((el) => !headers.includes(el));
await sheet1.setHeaderRow([...headers, ...newHeaders]);
}
const validData = Object.values(body).filter(Boolean).length >= 1;

@@ -182,0 +188,0 @@ if (validData) {

@@ -171,3 +171,3 @@ 'use strict';

logger.error(err);
return err.response ? err.response : { code: 404 };
return err;
}

@@ -186,5 +186,11 @@ };

const sheet1 = doc.sheetsByIndex[0];
if (!sheet1.headerValues) {
await sheet1.loadHeaderRow();
const headers = sheet1.headerValues;
if (!headers) {
await sheet1.setHeaderRow(Object.keys(body));
}
else {
const newHeaders = Object.keys(body).filter((el) => !headers.includes(el));
await sheet1.setHeaderRow([...headers, ...newHeaders]);
}
const validData = Object.values(body).filter(Boolean).length >= 1;

@@ -191,0 +197,0 @@ if (validData) {

2

package.json
{
"name": "@teko-builder/utils",
"version": "0.1.4",
"version": "0.1.5",
"description": "Utility functions",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -0,0 +0,0 @@ {

Sorry, the diff of this file is not supported yet

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