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.9 to 0.0.10

lib/api/terms.js

5

lib/index.js

@@ -35,3 +35,6 @@ "use strict";

// this.tax = require('./api/tax')({http})
// this.timeEntry = require('./api/time-entry')({http})
this.terms = require('./api/terms')({
http
}); // this.timeEntry = require('./api/time-entry')({http})
}

@@ -38,0 +41,0 @@

2

package.json
{
"name": "freshbooks-classic",
"description": "FreshBooks Classic API wrapper",
"version": "0.0.9",
"version": "0.0.10",
"author": "Leonardo Dino",

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

@@ -61,2 +61,3 @@ # freshbooks-classic

- [ ] `FreshBooks.tax`
- [x] `FreshBooks.terms`
- [ ] `FreshBooks.timeEntry`

@@ -63,0 +64,0 @@ - [ ] cleanup excess obscurity

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

// this.tax = require('./api/tax')({http})
this.terms = require('./api/terms')({http})
// this.timeEntry = require('./api/time-entry')({http})

@@ -24,0 +25,0 @@ }

@@ -7,5 +7,5 @@ import _ from 'lodash'

let client_id = null
let email = 'freshbooks-classic@dispostable.com'
let first_name = 'abc'
let last_name = 'xyz'
const email = 'freshbooks-classic@dispostable.com'
const first_name = 'abc'
const last_name = 'xyz'

@@ -97,5 +97,9 @@ test.serial('create', async t => {

t.true(result, 'returns true')
const fn = () => client.get({client_id})
const e = await t.throws(fn, `'client_id' not found. Client is deleted.`)
t.is(e.code, 50010)
})
test.serial('throw failures', async t => {
test('throw failures', async t => {
const {client} = new FreshBooks(url, token)

@@ -102,0 +106,0 @@ await Promise.all([

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