@oardi/ts-utils 0.0.26 → 0.0.29

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.
@@ -9,6 +9,7 @@ export declare enum BrowserType {
9
9
  chrome = "chrome",
10
10
  iOsSafari = "iOsSafari",
11
11
  edgiOs = "edgiOs",
12
- headlessChrome = "headlessChrome"
12
+ headlessChrome = "headlessChrome",
13
+ nodejs = "nodejs"
13
14
  }
14
15
  //# sourceMappingURL=browser-type.enum.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"browser-type.enum.d.ts","sourceRoot":"","sources":["../../../../lib/helpers/browser/browser-type.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACtB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,EAAE,OAAO;IACT,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,cAAc,mBAAmB;CACjC"}
1
+ {"version":3,"file":"browser-type.enum.d.ts","sourceRoot":"","sources":["../../../../lib/helpers/browser/browser-type.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACtB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,EAAE,OAAO;IACT,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,cAAc,mBAAmB;IACjC,MAAM,WAAW;CACjB"}
@@ -11,6 +11,7 @@ export declare class BrowserHelper {
11
11
  static isIOsSafari(userAgentLower: string): boolean;
12
12
  static isEdgiOs(userAgentLower: string): boolean;
13
13
  static isHeadlessChrome(userAgentLower: string): boolean;
14
- getCurrentBrowser(): BrowserType;
14
+ static isNode(userAgentLower: string): boolean;
15
+ static getCurrentBrowser(): BrowserType;
15
16
  }
16
17
  //# sourceMappingURL=browser.helper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"browser.helper.d.ts","sourceRoot":"","sources":["../../../../lib/helpers/browser/browser.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,qBAAa,aAAa;IACzB,MAAM,CAAC,OAAO,IAAI,OAAO;IASzB,MAAM,CAAC,SAAS,IAAI,OAAO;IAI3B,MAAM,CAAC,QAAQ,IAAI,OAAO;IAU1B,MAAM,CAAC,MAAM,IAAI,OAAO;IAKxB,MAAM,CAAC,IAAI,IAAI,OAAO;IAKtB,MAAM,CAAC,KAAK,IAAI,OAAO;IAKvB,MAAM,CAAC,UAAU,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO;IAIlD,MAAM,CAAC,QAAQ,IAAI,OAAO;IAa1B,MAAM,CAAC,WAAW,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO;IAWnD,MAAM,CAAC,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO;IAIhD,MAAM,CAAC,gBAAgB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO;IAIjD,iBAAiB,IAAI,WAAW;CAiBvC"}
1
+ {"version":3,"file":"browser.helper.d.ts","sourceRoot":"","sources":["../../../../lib/helpers/browser/browser.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,qBAAa,aAAa;IACzB,MAAM,CAAC,OAAO,IAAI,OAAO;IASzB,MAAM,CAAC,SAAS,IAAI,OAAO;IAI3B,MAAM,CAAC,QAAQ,IAAI,OAAO;IAU1B,MAAM,CAAC,MAAM,IAAI,OAAO;IAKxB,MAAM,CAAC,IAAI,IAAI,OAAO;IAKtB,MAAM,CAAC,KAAK,IAAI,OAAO;IAKvB,MAAM,CAAC,UAAU,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO;IAIlD,MAAM,CAAC,QAAQ,IAAI,OAAO;IAa1B,MAAM,CAAC,WAAW,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO;IAWnD,MAAM,CAAC,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO;IAIhD,MAAM,CAAC,gBAAgB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO;IAIxD,MAAM,CAAC,MAAM,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO;IAI9C,MAAM,CAAC,iBAAiB,IAAI,WAAW;CAmBvC"}
@@ -0,0 +1,4 @@
1
+ export declare class CanvasHelper {
2
+ static toBlob(canvas: HTMLCanvasElement, format: string, isJpeg?: boolean, quality?: number): Promise<Blob>;
3
+ }
4
+ //# sourceMappingURL=canvas.helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"canvas.helper.d.ts","sourceRoot":"","sources":["../../../lib/helpers/canvas.helper.ts"],"names":[],"mappings":"AAAA,qBAAa,YAAY;IACxB,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAE,OAAe,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAYlH"}
@@ -1,6 +1,6 @@
1
1
  export type SaveSource = Blob | ArrayBuffer | Uint8Array | string;
2
2
  export interface SaveOptions {
3
- mimeType?: string; /** MIME-Type, falls `source` kein Blob ist (z. B. "application/pdf") */
3
+ mimeType?: string /** MIME-Type, falls `source` kein Blob ist (z. B. "application/pdf") */;
4
4
  showSaveFilePicker?: boolean;
5
5
  }
6
6
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"download.helper.d.ts","sourceRoot":"","sources":["../../../lib/helpers/download.helper.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,WAAW,GAAG,UAAU,GAAG,MAAM,CAAC;AAElE,MAAM,WAAW,WAAW;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC,CAAC,wEAAwE;IAC3F,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;;;;;GAMG;AACH,wBAAsB,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAyDvG"}
1
+ {"version":3,"file":"download.helper.d.ts","sourceRoot":"","sources":["../../../lib/helpers/download.helper.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,WAAW,GAAG,UAAU,GAAG,MAAM,CAAC;AAElE,MAAM,WAAW,WAAW;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC,wEAAwE,CAAC;IAC3F,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;;;;;GAMG;AACH,wBAAsB,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAyDvG"}
@@ -0,0 +1,10 @@
1
+ export declare class ImageHelper {
2
+ static load(file: File): Promise<HTMLImageElement>;
3
+ static resize(img: HTMLImageElement, targetWidth: number, targetHeight: number): IImageResizeResult;
4
+ }
5
+ export interface IImageResizeResult {
6
+ canvas: HTMLCanvasElement;
7
+ width: number;
8
+ height: number;
9
+ }
10
+ //# sourceMappingURL=image.helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image.helper.d.ts","sourceRoot":"","sources":["../../../lib/helpers/image.helper.ts"],"names":[],"mappings":"AAAA,qBAAa,WAAW;IACvB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,gBAAgB,CAAC;IASlD,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,kBAAkB;CAoBnG;AAED,MAAM,WAAW,kBAAkB;IAClC,MAAM,EAAE,iBAAiB,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CACf"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oardi/ts-utils",
3
- "version": "0.0.26",
3
+ "version": "0.0.29",
4
4
  "description": "utility services, types",
5
5
  "main": "index.cjs.js",
6
6
  "module": "index.es.js",