utilitas 1999.1.13 → 1999.1.14

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.
package/lib/manifest.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  const manifest = {
2
2
  "name": "utilitas",
3
3
  "description": "Just another common utility for JavaScript.",
4
- "version": "1999.1.13",
4
+ "version": "1999.1.14",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",
package/lib/utilitas.mjs CHANGED
@@ -741,9 +741,11 @@ const getFuncParams = (func) => {
741
741
 
742
742
  const analyzeModule = (obj) => {
743
743
  assertModule(obj);
744
- const [keys, result] = [Object.getOwnPropertyNames(obj), {}];
744
+ const [keys, result] = [Object.getOwnPropertyNames(obj).filter(
745
+ x => !['INSTRUCTIONS', 'MODELS'].includes(x)
746
+ ), {}];
745
747
  keys.sort();
746
- keys.filter(x => x !== 'INSTRUCTIONS').map(key => result[key] = {
748
+ keys.map(key => result[key] = {
747
749
  type: getType(obj[key]), ...Function.isFunction(obj[key])
748
750
  ? { params: getFuncParams(obj[key]) }
749
751
  : { value: ensureString(obj[key]) }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "utilitas",
3
3
  "description": "Just another common utility for JavaScript.",
4
- "version": "1999.1.13",
4
+ "version": "1999.1.14",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",