@christianriedl/media 1.0.228 → 1.0.229

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/iMedia.d.ts CHANGED
@@ -233,7 +233,7 @@ export interface IPhotoSelection {
233
233
  export interface IDocumentInfo {
234
234
  name: string;
235
235
  date: Date;
236
- size: number;
236
+ size?: number;
237
237
  }
238
238
  export interface IMediaService {
239
239
  mediaUrl: string;
@@ -689,7 +689,7 @@ export class MediaService {
689
689
  const res = await this.rest.getData('apimedia/documents/directories', { path: path, full: true });
690
690
  if (res && res.ok) {
691
691
  const infos = res.result;
692
- for (let i = 0; i = infos.length; i++) {
692
+ for (let i = 0; i < infos.length; i++) {
693
693
  infos[i].date = new Date(infos[i].date);
694
694
  }
695
695
  return infos;
@@ -700,7 +700,7 @@ export class MediaService {
700
700
  const res = await this.rest.getData('apimedia/documents/files', { path: path, full: true });
701
701
  if (res && res.ok) {
702
702
  const infos = res.result;
703
- for (let i = 0; i = infos.length; i++) {
703
+ for (let i = 0; i < infos.length; i++) {
704
704
  infos[i].date = new Date(infos[i].date);
705
705
  }
706
706
  return infos;
@@ -448,7 +448,7 @@ export class MediaServiceBin {
448
448
  const res = await this.rest.getData('apimedia/documents/directories', { path: path, full: true });
449
449
  if (res && res.ok) {
450
450
  const infos = res.result;
451
- for (let i = 0; i = infos.length; i++) {
451
+ for (let i = 0; i < infos.length; i++) {
452
452
  infos[i].date = new Date(infos[i].date);
453
453
  }
454
454
  return infos;
@@ -459,7 +459,7 @@ export class MediaServiceBin {
459
459
  const res = await this.rest.getData('apimedia/documents/files', { path: path, full: true });
460
460
  if (res && res.ok) {
461
461
  const infos = res.result;
462
- for (let i = 0; i = infos.length; i++) {
462
+ for (let i = 0; i < infos.length; i++) {
463
463
  infos[i].date = new Date(infos[i].date);
464
464
  }
465
465
  return infos;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@christianriedl/media",
3
- "version": "1.0.228",
3
+ "version": "1.0.229",
4
4
  "description": "RIC media interfaces",
5
5
 
6
6
  "main": "dist/index.js",