@wix/metro-runtime
Advanced tools
Comparing version
@@ -9,3 +9,8 @@ "use strict"; | ||
[_domain.ConverterType.TO_JSON]: { | ||
transform: val => !val ? val : val.toISOString() | ||
transform: val => { | ||
if (typeof val === 'string' || !val) { | ||
return val; | ||
} | ||
return val.toISOString(); | ||
} | ||
}, | ||
@@ -12,0 +17,0 @@ [_domain.ConverterType.FROM_JSON]: { |
@@ -5,3 +5,8 @@ import { ConverterType } from '../domain'; | ||
[ConverterType.TO_JSON]: { | ||
transform: (val) => (!val ? val : val.toISOString()), | ||
transform: (val) => { | ||
if (typeof val === 'string' || !val) { | ||
return val; | ||
} | ||
return val.toISOString(); | ||
}, | ||
}, | ||
@@ -8,0 +13,0 @@ [ConverterType.FROM_JSON]: { |
{ | ||
"metro-runtime.js": "https://static.parastorage.com/services/metro-runtime/56fe6eaee8dd8982fe9dd78afcd8d515fe57e6a3b3265346c59cb8d4/metro-runtime.umd.js" | ||
"metro-runtime.js": "https://static.parastorage.com/services/metro-runtime/f7e4c3c4d667da883c44b2561f284a2791dd541b64965433256019a7/metro-runtime.umd.js" | ||
} |
{ | ||
"metro-runtime.js": "https://static.parastorage.com/services/metro-runtime/56fe6eaee8dd8982fe9dd78afcd8d515fe57e6a3b3265346c59cb8d4/metro-runtime.umd.min.js" | ||
"metro-runtime.js": "https://static.parastorage.com/services/metro-runtime/f7e4c3c4d667da883c44b2561f284a2791dd541b64965433256019a7/metro-runtime.umd.min.js" | ||
} |
{ | ||
"name": "@wix/metro-runtime", | ||
"version": "1.1928.0", | ||
"version": "1.1929.0", | ||
"license": "UNLICENSED", | ||
@@ -117,3 +117,3 @@ "author": { | ||
}, | ||
"falconPackageHash": "3d95242bcb35ad0022fdc3d5bc8addad7e61d80ce6547c42e9f8a616" | ||
"falconPackageHash": "b13d01541c93be4610bddff3bd651493afbb9896195f8f65eeef9d27" | ||
} |
@@ -7,3 +7,8 @@ import { ConverterSet, ConverterType } from '../domain'; | ||
[ConverterType.TO_JSON]: { | ||
transform: (val: Date) => (!val ? val : val.toISOString()), | ||
transform: (val: Date | string) => { | ||
if (typeof val === 'string' || !val) { | ||
return val; | ||
} | ||
return val.toISOString(); | ||
}, | ||
}, | ||
@@ -10,0 +15,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
4847718
0.01%43077
0.03%