Skip to content
This repository was archived by the owner on May 28, 2024. It is now read-only.

Commit 73a761d

Browse files
committed
Dont import full lodash/ramda dependencies
1 parent b572c7b commit 73a761d

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "deskbookers",
3-
"version": "5.2.3",
3+
"version": "5.2.4",
44
"description": "Deskbookers API JavaScript SDK",
55
"main": "dist/index.js",
66
"scripts": {

src/resources/Resource.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { signer, formatArgs, phpJsonEncode } from '../utils/requests'
22
import platform from 'platform'
3-
import { get, includes, isEmpty } from 'lodash'
3+
import get from 'lodash/get'
4+
import includes from 'lodash/includes'
5+
import isEmpty from 'lodash/isEmpty'
46
import {
57
DeskbookersError,
68
InvalidResponseError

src/resources/account/Preferences.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Resource from '../Resource'
2-
import { pickAll } from 'ramda'
2+
import pickAll from 'ramda/src/pickAll'
33

44
// Construct Map from object
55
const constructMap = o => {

src/utils/requests.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { parse } from 'url'
33
import { stringify } from 'qs'
44
import jsonEncode from 'json_encode'
55
import urlencode from 'deskbookers-phpurlencode'
6-
import { includes, isEmpty } from 'lodash'
6+
import includes from 'lodash/includes'
7+
import isEmpty from 'lodash/isEmpty'
78

89
export const signer = ({ publicKey, privateKey }, url, options, args) => {
910
// Prepare vars

test/payments.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
import dotenv from 'dotenv'
3-
import { get } from 'lodash'
3+
import get from 'lodash/get'
44
import 'fetch-everywhere'
55
import test from 'ava'
66
import Deskbookers from '../src'

0 commit comments

Comments
 (0)