@kizmann/pico-js 0.5.2 → 0.5.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kizmann/pico-js",
3
- "version": "0.5.2",
3
+ "version": "0.5.4",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "private": false,
@@ -103,7 +103,7 @@ export class Any
103
103
 
104
104
  static number(val, fallback = NaN)
105
105
  {
106
- let res = typeof val.toString === 'undefined' ?
106
+ let res = ! val || typeof val.toString === 'undefined' ?
107
107
  String(val) : val.toString();
108
108
 
109
109
  if ( ! Any.isString(res) ) {
@@ -127,7 +127,7 @@ export class Any
127
127
 
128
128
  static integer(val)
129
129
  {
130
- let res = typeof val.toString === 'undefined' ?
130
+ let res = ! val || typeof val.toString === 'undefined' ?
131
131
  String(val) : val.toString();
132
132
 
133
133
  if ( ! Any.isString(res) ) {
@@ -122,6 +122,10 @@ export class Arr
122
122
  {
123
123
  return Any.keys(arr).filter((key) => {
124
124
 
125
+ if ( typeof filter === "undefined" ) {
126
+ return ! Any.isEmpty(arr[key]);
127
+ }
128
+
125
129
  if ( Any.isFunction(filter) ) {
126
130
  return filter.call({}, arr[key], key);
127
131
  }
package/webservy.json CHANGED
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "hostname": "pico-js.local",
3
- "webroot": "/",
4
- "engine": "apache",
3
+ "webroot": "",
4
+ "engine": "httpd",
5
+ "type": "default",
6
+ "proxy": "",
5
7
  "version": "php-8.2.8"
6
8
  }