orange-orm 5.4.0 → 5.4.1
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/dist/index.browser.mjs
CHANGED
|
@@ -5835,8 +5835,10 @@ function requireNewDecode$4 () {
|
|
|
5835
5835
|
value = decodeCore(context, value);
|
|
5836
5836
|
if (value === null)
|
|
5837
5837
|
return value;
|
|
5838
|
-
else if (typeof value === 'string')
|
|
5839
|
-
|
|
5838
|
+
else if (typeof value === 'string') {
|
|
5839
|
+
var iso = value.replace(' ', 'T').replace(' ', '');
|
|
5840
|
+
return iso.replace(/(T\d{2}:\d{2}:\d{2}(?:\.\d+)?[+-]\d{2})$/, '$1:00');
|
|
5841
|
+
}
|
|
5840
5842
|
return dateToISOString(value);
|
|
5841
5843
|
};
|
|
5842
5844
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -5836,8 +5836,10 @@ function requireNewDecode$4 () {
|
|
|
5836
5836
|
value = decodeCore(context, value);
|
|
5837
5837
|
if (value === null)
|
|
5838
5838
|
return value;
|
|
5839
|
-
else if (typeof value === 'string')
|
|
5840
|
-
|
|
5839
|
+
else if (typeof value === 'string') {
|
|
5840
|
+
var iso = value.replace(' ', 'T').replace(' ', '');
|
|
5841
|
+
return iso.replace(/(T\d{2}:\d{2}:\d{2}(?:\.\d+)?[+-]\d{2})$/, '$1:00');
|
|
5842
|
+
}
|
|
5841
5843
|
return dateToISOString(value);
|
|
5842
5844
|
};
|
|
5843
5845
|
}
|
package/docs/changelog.md
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
## Changelog
|
|
2
|
+
__5.4.1__
|
|
3
|
+
Fix dateWithTimeZone() column (PostgreSQL timestamptz) decodes to a non-standard string. [#195](https://github.com/alfateam/orange-orm/issues/195)
|
|
2
4
|
__5.4.0__
|
|
3
5
|
Support for `Select for update` and `skip locked`. [#193](https://github.com/alfateam/orange-orm/issues/193)
|
|
4
6
|
__5.3.6__
|
package/package.json
CHANGED
|
@@ -8,10 +8,12 @@ function _new(column) {
|
|
|
8
8
|
value = decodeCore(context, value);
|
|
9
9
|
if (value === null)
|
|
10
10
|
return value;
|
|
11
|
-
else if (typeof value === 'string')
|
|
12
|
-
|
|
11
|
+
else if (typeof value === 'string') {
|
|
12
|
+
var iso = value.replace(' ', 'T').replace(' ', '');
|
|
13
|
+
return iso.replace(/(T\d{2}:\d{2}:\d{2}(?:\.\d+)?[+-]\d{2})$/, '$1:00');
|
|
14
|
+
}
|
|
13
15
|
return dateToISOString(value);
|
|
14
16
|
};
|
|
15
17
|
}
|
|
16
18
|
|
|
17
|
-
module.exports = _new;
|
|
19
|
+
module.exports = _new;
|