@ezeep/ezeep-js 1.0.216 → 1.0.217

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.
@@ -33139,9 +33139,13 @@ let EzpPrinting = class {
33139
33139
  }
33140
33140
  /** Watchers */
33141
33141
  watchFileData(newValue, oldValue) {
33142
+ console.log(newValue);
33142
33143
  if (newValue !== oldValue && newValue.length > 0) {
33143
- const uint8array = new TextEncoder().encode(newValue);
33144
- this.file = new File([uint8array], this.filename, { type: 'application/pdf' });
33144
+ let array = new Uint8Array(newValue.length);
33145
+ for (let i = 0; i < newValue.length; i++) {
33146
+ array[i] = newValue.charCodeAt(i);
33147
+ }
33148
+ this.file = new File([array], this.filename);
33145
33149
  }
33146
33150
  }
33147
33151
  watchFilename(newValue, oldValue) {
@@ -27,9 +27,13 @@ export class EzpPrinting {
27
27
  }
28
28
  /** Watchers */
29
29
  watchFileData(newValue, oldValue) {
30
+ console.log(newValue);
30
31
  if (newValue !== oldValue && newValue.length > 0) {
31
- const uint8array = new TextEncoder().encode(newValue);
32
- this.file = new File([uint8array], this.filename, { type: 'application/pdf' });
32
+ let array = new Uint8Array(newValue.length);
33
+ for (let i = 0; i < newValue.length; i++) {
34
+ array[i] = newValue.charCodeAt(i);
35
+ }
36
+ this.file = new File([array], this.filename);
33
37
  }
34
38
  }
35
39
  watchFilename(newValue, oldValue) {
@@ -33164,9 +33164,13 @@ let EzpPrinting$1 = class extends HTMLElement {
33164
33164
  }
33165
33165
  /** Watchers */
33166
33166
  watchFileData(newValue, oldValue) {
33167
+ console.log(newValue);
33167
33168
  if (newValue !== oldValue && newValue.length > 0) {
33168
- const uint8array = new TextEncoder().encode(newValue);
33169
- this.file = new File([uint8array], this.filename, { type: 'application/pdf' });
33169
+ let array = new Uint8Array(newValue.length);
33170
+ for (let i = 0; i < newValue.length; i++) {
33171
+ array[i] = newValue.charCodeAt(i);
33172
+ }
33173
+ this.file = new File([array], this.filename);
33170
33174
  }
33171
33175
  }
33172
33176
  watchFilename(newValue, oldValue) {
@@ -33135,9 +33135,13 @@ let EzpPrinting = class {
33135
33135
  }
33136
33136
  /** Watchers */
33137
33137
  watchFileData(newValue, oldValue) {
33138
+ console.log(newValue);
33138
33139
  if (newValue !== oldValue && newValue.length > 0) {
33139
- const uint8array = new TextEncoder().encode(newValue);
33140
- this.file = new File([uint8array], this.filename, { type: 'application/pdf' });
33140
+ let array = new Uint8Array(newValue.length);
33141
+ for (let i = 0; i < newValue.length; i++) {
33142
+ array[i] = newValue.charCodeAt(i);
33143
+ }
33144
+ this.file = new File([array], this.filename);
33141
33145
  }
33142
33146
  }
33143
33147
  watchFilename(newValue, oldValue) {