freshbooks-classic
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
78224
1241