@accordproject/concerto-core 2.1.1-20220527104109 → 2.2.0
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/lib/datetimeutil.js +0 -3
- package/package.json +4 -4
- package/umd/concerto.js +1 -1
- package/umd/concerto.js.LICENSE.txt +1 -1
package/lib/datetimeutil.js
CHANGED
|
@@ -35,9 +35,6 @@ function setCurrentTime(currentTime, utcOffset) {
|
|
|
35
35
|
// Default UTC offset to local time
|
|
36
36
|
const utcOffsetResolved = typeof utcOffset === 'number' ? utcOffset : dayjs().utcOffset();
|
|
37
37
|
const currentTimeUTC = currentTime ? dayjs.utc(currentTime) : dayjs().utc();
|
|
38
|
-
if (!currentTimeUTC.isValid()) {
|
|
39
|
-
throw new Error(`Current time '${currentTime}' is not in standard UTC format`);
|
|
40
|
-
}
|
|
41
38
|
const currentTimeResolved = currentTimeUTC.utcOffset(utcOffsetResolved);
|
|
42
39
|
if (!currentTimeResolved.isValid()) {
|
|
43
40
|
throw new Error(`Cannot set current time to '${currentTime}' with UTC offset '${utcOffset}'`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@accordproject/concerto-core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Core Implementation for the Concerto Modeling Language",
|
|
5
5
|
"homepage": "https://github.com/accordproject/concerto",
|
|
6
6
|
"engines": {
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
"yargs": "17.3.1"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@accordproject/concerto-cto": "2.
|
|
69
|
-
"@accordproject/concerto-metamodel": "2.
|
|
70
|
-
"@accordproject/concerto-util": "2.
|
|
68
|
+
"@accordproject/concerto-cto": "2.2.0",
|
|
69
|
+
"@accordproject/concerto-metamodel": "2.2.0",
|
|
70
|
+
"@accordproject/concerto-util": "2.2.0",
|
|
71
71
|
"dayjs": "1.10.8",
|
|
72
72
|
"debug": "4.3.1",
|
|
73
73
|
"lorem-ipsum": "2.0.3",
|