Skip to content
This repository was archived by the owner on Jul 19, 2022. It is now read-only.

Commit 5a6c8f5

Browse files
committed
chore: upgrade lodash package
1 parent 61a347d commit 5a6c8f5

File tree

5 files changed

+12
-19
lines changed

5 files changed

+12
-19
lines changed

lib/general.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module.exports = {
2525
);
2626
}
2727

28-
if (!_.include(ALLOWED_SIZES, size)) {
28+
if (!_.includes(ALLOWED_SIZES, size)) {
2929
size = null;
3030
}
3131

lib/transport.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,12 +238,12 @@ module.exports = {
238238
req = request[method](url);
239239

240240
if (options && options.basicAuth) {
241-
req = _.compose(
241+
req = _.flowRight(
242242
this._addRequestData.bind(this, data, method),
243243
this._setOptions.bind(this, options || {})
244244
)(req);
245245
} else {
246-
req = _.compose(
246+
req = _.flowRight(
247247
this._addRequestData.bind(this, data, method),
248248
this._addHeaders.bind(this),
249249
this._addCORS.bind(this),
@@ -274,7 +274,7 @@ module.exports = {
274274
var url = new URI(this.apiURL).path("/file").toString();
275275
var req;
276276

277-
if (!_.include(["server", "password"], this.authType)) {
277+
if (!_.includes(["server", "password"], this.authType)) {
278278
return new Promise(function (resolve, reject) {
279279
reject(
280280
new PodioErrors.PodioError(
@@ -289,7 +289,7 @@ module.exports = {
289289
.attach("source", filePath)
290290
.field("filename", fileName);
291291

292-
req = _.compose(this._addHeaders.bind(this), this._addCORS.bind(this))(req);
292+
req = _.flowRight(this._addHeaders.bind(this), this._addCORS.bind(this))(req);
293293

294294
return new Promise(
295295
function (resolve, reject) {

package-lock.json

Lines changed: 4 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@purple/podio-js",
3-
"version": "1.6.5",
3+
"version": "1.6.6",
44
"description": "Podio Platform JavaScript SDK for NodeJS and the browser",
55
"main": "lib/index",
66
"scripts": {
@@ -40,7 +40,7 @@
4040
"urijs": "1.19.2",
4141
"es6-promise": "3.1.2",
4242
"faye": "1.2.3",
43-
"lodash": "3.10.1",
43+
"lodash": "4.17.21",
4444
"superagent": "8.0.9"
4545
}
4646
}

test/general.spec.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
var general = require('../lib/general');
22
var PodioErrors = require('../lib/PodioErrors');
33
var sinon = require('sinon');
4-
var _ = require('lodash');
54

65
describe('general', function() {
76

@@ -45,4 +44,4 @@ describe('general', function() {
4544

4645
});
4746

48-
});
47+
});

0 commit comments

Comments
 (0)