@vixoniccom/news-internal 0.4.13-beta.15 → 0.4.13-beta.16
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/CHANGELOG.md +2 -0
- package/build.zip +0 -0
- package/configuration/index.ts +1 -13
- package/configuration.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.4.13-beta.16](https://bitbucket.org/rexmas_cl/news-internal/compare/v0.4.13-beta.15...v0.4.13-beta.16) (2023-05-26)
|
|
6
|
+
|
|
5
7
|
### [0.4.13-beta.15](https://bitbucket.org/rexmas_cl/news-internal/compare/v0.4.13-beta.14...v0.4.13-beta.15) (2023-05-26)
|
|
6
8
|
|
|
7
9
|
### [0.4.13-beta.14](https://bitbucket.org/rexmas_cl/news-internal/compare/v0.4.13-beta.13...v0.4.13-beta.14) (2023-05-19)
|
package/build.zip
CHANGED
|
Binary file
|
package/configuration/index.ts
CHANGED
|
@@ -106,19 +106,7 @@ const newsList = new List({
|
|
|
106
106
|
})
|
|
107
107
|
|
|
108
108
|
export const configuration: Configuration = new Configuration({
|
|
109
|
-
durationFormula: `(function() {
|
|
110
|
-
let news = {{news}};
|
|
111
|
-
if (!news) return undefined;
|
|
112
|
-
let currentDate = new Date();
|
|
113
|
-
let time = news.reduce(function (accumulatedTime, newsItem) {
|
|
114
|
-
let expirationDate = new Date(newsItem.option.expirationDate);
|
|
115
|
-
if (expirationDate <= currentDate) return accumulatedTime;
|
|
116
|
-
let newsItemTime = newsItem.number || 5;
|
|
117
|
-
return accumulatedTime + newsItemTime;
|
|
118
|
-
}, 0);
|
|
119
|
-
return time;
|
|
120
|
-
})()
|
|
121
|
-
`,
|
|
109
|
+
durationFormula: `(_values.news && _values.news.filter(function(newsItem) { return new Date(newsItem.expirationDate) > new Date(); }).length || 1) * (_values.showTime || 10)`,
|
|
122
110
|
schema: [
|
|
123
111
|
newsList,
|
|
124
112
|
appereanceGroup
|
package/configuration.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"durationFormula": "(
|
|
2
|
+
"durationFormula": "(_values.news && _values.news.filter(function(newsItem) { return new Date(newsItem.expirationDate) > new Date(); }).length || 1) * (_values.showTime || 10)",
|
|
3
3
|
"schema": [
|
|
4
4
|
{
|
|
5
5
|
"id": "news",
|