@wix/metro-runtime
Advanced tools
Comparing version 1.1493.0 to 1.1494.0
@@ -9,6 +9,6 @@ "use strict"; | ||
[_domain.ConverterType.TO_JSON]: { | ||
transform: val => val.toISOString() | ||
transform: val => val == null ? void 0 : val.toISOString() | ||
}, | ||
[_domain.ConverterType.FROM_JSON]: { | ||
transform: val => new Date(val) | ||
transform: val => val ? new Date(val) : undefined | ||
} | ||
@@ -15,0 +15,0 @@ }; |
@@ -7,8 +7,8 @@ var _a; | ||
_a[ConverterType.TO_JSON] = { | ||
transform: function (val) { return val.toISOString(); }, | ||
transform: function (val) { return val === null || val === void 0 ? void 0 : val.toISOString(); }, | ||
}, | ||
_a[ConverterType.FROM_JSON] = { | ||
transform: function (val) { return new Date(val); }, | ||
transform: function (val) { return (val ? new Date(val) : undefined); }, | ||
}, | ||
_a); | ||
//# sourceMappingURL=timestamp.js.map |
{ | ||
"metro-runtime.js": "https://static.parastorage.com/services/metro-runtime/c31037b17dbf79630833257f51f7641cb609b4af5591957dbbc16e74/metro-runtime.umd.js" | ||
"metro-runtime.js": "https://static.parastorage.com/services/metro-runtime/7e18dca23ee67a31f2019049442244d63a97339fb4b208648024fb4d/metro-runtime.umd.js" | ||
} |
{ | ||
"metro-runtime.js": "https://static.parastorage.com/services/metro-runtime/c31037b17dbf79630833257f51f7641cb609b4af5591957dbbc16e74/metro-runtime.umd.min.js" | ||
"metro-runtime.js": "https://static.parastorage.com/services/metro-runtime/7e18dca23ee67a31f2019049442244d63a97339fb4b208648024fb4d/metro-runtime.umd.min.js" | ||
} |
{ | ||
"name": "@wix/metro-runtime", | ||
"version": "1.1493.0", | ||
"version": "1.1494.0", | ||
"license": "UNLICENSED", | ||
@@ -82,3 +82,3 @@ "author": { | ||
}, | ||
"falconPackageHash": "24a9880e2828948744a7f9369852c3c34c777deee4c0ba4f9b48ee48" | ||
"falconPackageHash": "6e394a401a7b6da28a9d81d6f0df442ef5fc4a9cd8aefce16cb1e79c" | ||
} |
@@ -7,8 +7,8 @@ import { ConverterSet, ConverterType } from '../domain'; | ||
[ConverterType.TO_JSON]: { | ||
transform: (val: Date) => val.toISOString(), | ||
transform: (val: Date) => val?.toISOString(), | ||
}, | ||
[ConverterType.FROM_JSON]: { | ||
transform: (val: string) => new Date(val), | ||
transform: (val: string) => (val ? new Date(val) : undefined), | ||
}, | ||
}; |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4209219