@jclind/ingredient-parser 1.0.11 → 1.0.13

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.
@@ -0,0 +1,2 @@
1
+ export declare const mongoHttp: import("axios").AxiosInstance;
2
+ export declare const spoonacularHttp: import("axios").AxiosInstance;
@@ -0,0 +1,4 @@
1
+ export declare const checkIngredient: (name: string) => Promise<import("axios").AxiosResponse<any, any>>;
2
+ export declare const searchIngredient: (name: string, spoonacularAPIKey: any) => Promise<any>;
3
+ export declare const getIngredientInformation: (ingrId: number, spoonacularAPIKey: any) => Promise<any>;
4
+ export declare const setMongoDBIngrData: (data: any) => Promise<void>;
@@ -0,0 +1 @@
1
+ export declare const calculatePrice: (quantity: number, unit: string, price: number) => number | null;
@@ -0,0 +1,4 @@
1
+ export declare const editIngredientString: (ingrStr: string) => {
2
+ formattedIngrName: string;
3
+ comment: string;
4
+ };
@@ -0,0 +1 @@
1
+ export declare function getIngredientInfo(ingrName: string, spoonacularAPIKey: string): Promise<any>;
@@ -0,0 +1 @@
1
+ export declare function getSpoonacularIngrData(name: string, spoonacularAPIKey: string): Promise<any>;
@@ -0,0 +1,3 @@
1
+ import { IngredientResponse } from '../../types.js';
2
+ declare const ingredientParser: (ingrString: string, spoonacularAPIKey: string) => Promise<IngredientResponse>;
3
+ export default ingredientParser;
@@ -0,0 +1,3 @@
1
+ import ingredientParser from './funcs/ingredientParser.js';
2
+ import { ParsedIngredient as ParsedIngredientType, IngredientData as IngredientDataType, IngredientResponse as IngredientResponseType } from '../types.js';
3
+ export { ingredientParser, ParsedIngredientType, IngredientDataType, IngredientResponseType, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jclind/ingredient-parser",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "description": "Parses given sentence including ingredient information and attemps to return quantity, measurement and ingredient data",
5
5
  "keywords": [
6
6
  "recipe",
@@ -33,7 +33,10 @@
33
33
  "convert-units": "^2.3.4",
34
34
  "dotenv": "^16.0.3",
35
35
  "parse-ingredient": "^0.6.0",
36
- "recipe-ingredient-parser-v3": "^1.2.18",
36
+ "recipe-ingredient-parser-v3": "^1.2.18"
37
+ },
38
+ "devDependencies": {
39
+ "@types/node": "^18.11.18",
37
40
  "typescript": "^4.9.4"
38
41
  }
39
42
  }