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

freshbooks-classic

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

freshbooks-classic - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

12

lib/utils/xml.js

@@ -10,4 +10,2 @@ "use strict";

var _lodash = _interopRequireDefault(require("lodash"));
var _xml2jsParser = require("xml2js-parser");

@@ -27,2 +25,10 @@

const transform = _fp.default.transform.convert({
cap: false,
curry: false,
fixed: true,
immutable: false,
rearg: false
});
const BOOL_REGEXP = /^(?:true|false)$/i;

@@ -67,3 +73,3 @@ const PARSE_OPTIONS = {

const cleanup = a => _lodash.default.transform(a, (result, value, key) => {
const cleanup = a => transform(a, (result, value, key) => {
if (_fp.default.isArray(value)) {

@@ -70,0 +76,0 @@ result[key] = _fp.default.map(cleanup, value);

{
"name": "freshbooks-classic",
"description": "FreshBooks Classic API wrapper",
"version": "0.0.4",
"version": "0.0.5",
"author": "Leonardo Dino",

@@ -6,0 +6,0 @@ "scripts": {

import _ from 'lodash/fp'
import lodash from 'lodash'
import {parseStringSync} from 'xml2js-parser'
import xmlbuilder from 'xmlbuilder'
const transform = _.transform.convert({
cap: false,
curry: false,
fixed: true,
immutable: false,
rearg: false,
})
const BOOL_REGEXP = /^(?:true|false)$/i

@@ -44,3 +51,3 @@ const PARSE_OPTIONS = {

const cleanup = a => lodash.transform(a, (result, value, key) => {
const cleanup = a => transform(a, (result, value, key) => {
if(_.isArray(value)){

@@ -47,0 +54,0 @@ result[key] = _.map(cleanup, value)

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