oneentry 1.0.112 → 1.0.114

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.
@@ -225,8 +225,10 @@ class SyncModules {
225
225
  // add timeIntervals
226
226
  if (data.attributeValues[attr].type === 'timeInterval') {
227
227
  const schedules = data.attributeValues[attr].value;
228
- const result = this._addTimeIntervalsToSchedules(schedules);
229
- data.attributeValues[attr].value = result;
228
+ if (typeof schedules === 'object' && schedules.length > 0) {
229
+ const result = this._addTimeIntervalsToSchedules(schedules);
230
+ data.attributeValues[attr].value = result;
231
+ }
230
232
  }
231
233
  }
232
234
  return {
package/package.json CHANGED
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "name": "oneentry",
3
- "version": "1.0.112",
3
+ "version": "1.0.114",
4
4
  "description": "OneEntry NPM package",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
- "type": "module",
8
7
  "files": [
9
8
  "/dist"
10
9
  ],
@@ -49,8 +48,8 @@
49
48
  "@types/eslint-config-prettier": "^6.11.3",
50
49
  "@types/jest": "^29.5.14",
51
50
  "@types/node": "^22.13.4",
52
- "@typescript-eslint/eslint-plugin": "^8.24.0",
53
- "@typescript-eslint/parser": "^8.24.0",
51
+ "@typescript-eslint/eslint-plugin": "^8.24.1",
52
+ "@typescript-eslint/parser": "^8.24.1",
54
53
  "eslint": "^8.57.1",
55
54
  "eslint-config-prettier": "^10.0.1",
56
55
  "eslint-plugin-import": "^2.31.0",