nuxt-glorious 1.3.2 → 1.3.3

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/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "nuxt-glorious",
3
3
  "configKey": "glorious",
4
- "version": "1.3.2"
4
+ "version": "1.3.3"
5
5
  }
@@ -1,5 +1,6 @@
1
1
  declare const _default: () => {
2
2
  debounce: (callback: () => void, delay: number) => void;
3
3
  numbersWithSeparateSamePrice: (value: String) => string;
4
+ compressImage: (file: any, MAX_WIDTH?: number, MAX_HEIGHT?: number, QUALITY?: number) => Promise<Blob>;
4
5
  };
5
6
  export default _default;
@@ -1,4 +1,5 @@
1
1
  import { GloriousStore } from "../stores/GloriousStore.mjs";
2
+ import compressImage from "../../core/compressImage";
2
3
  const numbersWithSeparateSamePrice = (value) => {
3
4
  if (typeof value === "undefined") return "";
4
5
  let nStr = value.match(/\d+/g)?.join("") + "";
@@ -23,6 +24,7 @@ const debounce = (callback, delay) => {
23
24
  export default () => {
24
25
  return {
25
26
  debounce,
26
- numbersWithSeparateSamePrice
27
+ numbersWithSeparateSamePrice,
28
+ compressImage
27
29
  };
28
30
  };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.3.2",
2
+ "version": "1.3.3",
3
3
  "name": "nuxt-glorious",
4
4
  "description": "This package provides many things needed by a project, including server requests and authentication, SEO and other requirements of a project.",
5
5
  "repository": "sajadhzj/nuxt-glorious",