Socket
Socket
Sign inDemoInstall

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.11 to 0.0.12

lib/api/languages.js

5

lib/Endpoint.js

@@ -50,2 +50,3 @@ "use strict";

paginate,
options: defaultOptions,
result = _fp.default.identity

@@ -91,2 +92,6 @@ } = {}, actionSchema) => {

if (defaultOptions) {
options = _objectSpread({}, defaultOptions, options);
}
(0, _params.spread)(_schema, options)($root);

@@ -93,0 +98,0 @@ const response = yield post($xml.end(), {

6

lib/index.js

@@ -28,4 +28,6 @@ "use strict";

http
}); // this.language = require('./api/language')({http})
// this.payment = require('./api/payment')({http})
});
this.languages = require('./api/languages')({
http
}); // this.payment = require('./api/payment')({http})
// this.project = require('./api/project')({http})

@@ -32,0 +34,0 @@ // this.recurring = require('./api/recurring')({http})

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

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

@@ -54,3 +54,3 @@ # freshbooks-classic

- [ ] `FreshBooks.item`
- [ ] `FreshBooks.language`
- [x] `FreshBooks.languages`
- [ ] `FreshBooks.payment`

@@ -57,0 +57,0 @@ - [ ] `FreshBooks.project`

@@ -17,3 +17,3 @@ import _ from 'lodash/fp'

setMethod(BaseClass, {schema: baseSchema, select: baseSelect, key: baseKey}){
return (action, {required, wrap, schema, select, raw, paginate, result = _.identity} = {}, actionSchema) => {
return (action, {required, wrap, schema, select, raw, paginate, options: defaultOptions, result = _.identity} = {}, actionSchema) => {
if(this.__freezed) return

@@ -48,2 +48,5 @@ const {post, name} = this

}
if(defaultOptions){
options = {...defaultOptions, ...options}
}
spread(_schema, options)($root)

@@ -50,0 +53,0 @@ const response = await post($xml.end(), {raw})

@@ -15,3 +15,3 @@ import FreshBooksFetch from './utils/fetch'

this.item = require('./api/item')({http})
// this.language = require('./api/language')({http})
this.languages = require('./api/languages')({http})
// this.payment = require('./api/payment')({http})

@@ -18,0 +18,0 @@ // this.project = require('./api/project')({http})

Sorry, the diff of this file is not supported yet

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