@kinevolution/appwrite-functions-shared-utils 0.1.56 → 0.1.57

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/utils.d.ts CHANGED
@@ -88,4 +88,5 @@ export type Response<T> = {
88
88
  error: string;
89
89
  };
90
90
  export declare const formatResponse: <T>(res: any, response: Response<T>, error?: (message: string) => void) => any;
91
+ export declare const getUniqueValues: (values: string[]) => string[];
91
92
  export {};
package/dist/utils.js CHANGED
@@ -133,3 +133,4 @@ export const formatResponse = (res, response, error) => {
133
133
  error(response.error);
134
134
  return res.json(response, response.success ? 200 : 500);
135
135
  };
136
+ export const getUniqueValues = (values) => [...new Set(values)];
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.1.56",
6
+ "version": "0.1.57",
7
7
  "license": "ISC",
8
8
  "author": "Nicolas Forêt <nicolas4@gmail.com>",
9
9
  "description": "Shared utilities for Appwrite functions",