@kizmann/pico-js 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
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.3",
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) ) {
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
  }