@vixoniccom/news-internal 0.4.13-beta.15 → 0.4.13-beta.17

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 CHANGED
@@ -2,6 +2,10 @@
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.17](https://bitbucket.org/rexmas_cl/news-internal/compare/v0.4.13-beta.16...v0.4.13-beta.17) (2023-05-29)
6
+
7
+ ### [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)
8
+
5
9
  ### [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
10
 
7
11
  ### [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
@@ -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() || !isNaN(newsItem.expirationDate) ; }).length || 0) * (_values.showTime || 10)`,
122
110
  schema: [
123
111
  newsList,
124
112
  appereanceGroup
@@ -1,5 +1,5 @@
1
1
  {
2
- "durationFormula": "(function() {\n let news = {{news}};\n if (!news) return undefined;\n let currentDate = new Date();\n let time = news.reduce(function (accumulatedTime, newsItem) {\n let expirationDate = new Date(newsItem.option.expirationDate);\n if (expirationDate <= currentDate) return accumulatedTime;\n let newsItemTime = newsItem.number || 5;\n return accumulatedTime + newsItemTime;\n }, 0);\n return time;\n })()\n ",
2
+ "durationFormula": "(_values.news && _values.news.filter(function(newsItem) { return new Date(newsItem.expirationDate) > new Date() || !isNaN(newsItem.expirationDate) ; }).length || 0) * (_values.showTime || 10)",
3
3
  "schema": [
4
4
  {
5
5
  "id": "news",
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "author": {
8
8
  "name": ""
9
9
  },
10
- "version": "0.4.13-beta.15",
10
+ "version": "0.4.13-beta.17",
11
11
  "scripts": {
12
12
  "prepublishOnly": "vixonic-module-packager --mode=build",
13
13
  "watch": "vixonic-module-packager --mode=watch",