Skip to content

Commit 47ca78b

Browse files
committed
Add isEmptyObject() helper
- Add github auto releases for release-it
1 parent ecd78bd commit 47ca78b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.release-it.js

+3
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@ module.exports = {
33
'@release-it/keep-a-changelog': {
44
addVersionUrl: true,
55
},
6+
github: {
7+
release: true,
8+
},
69
},
710
};

src/far-fetch-helper.js

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ export default class FarFetchHelper {
1010
return Object.prototype.toString.call(value) === '[object Object]';
1111
}
1212

13+
static isEmptyObject(value) {
14+
return this.isPlainObject(value) && Object.keys(value).length === 0;
15+
}
16+
1317
/**
1418
* Checks if string is an absolute URL.
1519
* Credit: https://github.com/sindresorhus/is-absolute-url

0 commit comments

Comments
 (0)