@papillonbits/library 0.38.0 → 0.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
File without changes
|
|
File without changes
|
package/object/index.js
CHANGED
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.deepCloneObject = deepCloneObject;
|
|
9
|
+
exports.isEmptyObject = isEmptyObject;
|
|
9
10
|
|
|
10
11
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
11
12
|
|
|
@@ -15,4 +16,12 @@ function deepCloneObject(obj) {
|
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
return JSON.parse(JSON.stringify(obj));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function isEmptyObject(obj) {
|
|
22
|
+
for (var prop in obj) {
|
|
23
|
+
if (obj.hasOwnProperty(prop)) return false;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return true;
|
|
18
27
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@papillonbits/library",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.40.0",
|
|
4
4
|
"description": "Papillon Bits Library",
|
|
5
5
|
"homepage": "https://github.com/papillonbits/papillonbits/tree/master/packages/library",
|
|
6
6
|
"repository": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"boolean/",
|
|
18
18
|
"browser/",
|
|
19
19
|
"date/",
|
|
20
|
-
"eslint/",
|
|
20
|
+
"eslint-config/",
|
|
21
21
|
"event/",
|
|
22
22
|
"hooks/",
|
|
23
23
|
"number/",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"build-acceptance": "npm run build",
|
|
40
40
|
"build-release": "npm run build"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "f14928bdeddb03fe37ed6213034044b54654e10c"
|
|
43
43
|
}
|