@apiverve/recipe 1.1.10 → 1.1.12
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/README.md +3 -3
- package/examples/basic.js +1 -1
- package/index.d.ts +13 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -59,7 +59,7 @@ Using the API is simple. All you have to do is make a request. The API will retu
|
|
|
59
59
|
|
|
60
60
|
```javascript
|
|
61
61
|
var query = {
|
|
62
|
-
name: "
|
|
62
|
+
name: "cake"
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
api.execute(query, function (error, data) {
|
|
@@ -79,7 +79,7 @@ You can also use promises to make requests. The API returns a promise that you c
|
|
|
79
79
|
|
|
80
80
|
```javascript
|
|
81
81
|
var query = {
|
|
82
|
-
name: "
|
|
82
|
+
name: "cake"
|
|
83
83
|
};
|
|
84
84
|
|
|
85
85
|
api.execute(query)
|
|
@@ -100,7 +100,7 @@ You can also use async/await to make requests. The API returns a promise that yo
|
|
|
100
100
|
```javascript
|
|
101
101
|
async function makeRequest() {
|
|
102
102
|
var query = {
|
|
103
|
-
name: "
|
|
103
|
+
name: "cake"
|
|
104
104
|
};
|
|
105
105
|
|
|
106
106
|
try {
|
package/examples/basic.js
CHANGED
package/index.d.ts
CHANGED
|
@@ -7,10 +7,22 @@ declare module '@apiverve/recipe' {
|
|
|
7
7
|
export interface recipeResponse {
|
|
8
8
|
status: string;
|
|
9
9
|
error: string | null;
|
|
10
|
-
data:
|
|
10
|
+
data: RecipesData;
|
|
11
11
|
code?: number;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
|
|
15
|
+
interface RecipesData {
|
|
16
|
+
count: number;
|
|
17
|
+
recipes: Recipe[];
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface Recipe {
|
|
21
|
+
instructions: string;
|
|
22
|
+
name: string;
|
|
23
|
+
ingredients: string[];
|
|
24
|
+
}
|
|
25
|
+
|
|
14
26
|
export default class recipeWrapper {
|
|
15
27
|
constructor(options: recipeOptions);
|
|
16
28
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apiverve/recipe",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.12",
|
|
4
4
|
"description": "Recipes is a simple tool for getting recipe information. It returns information on various recipes.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
},
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
|
-
"url": "git+https://github.com/apiverve/recipe-
|
|
13
|
+
"url": "git+https://github.com/apiverve/recipe-api.git",
|
|
14
|
+
"directory": "npm"
|
|
14
15
|
},
|
|
15
16
|
"keywords": [
|
|
16
17
|
"recipes", "recipes api", "recipes tool", "recipes software", "recipes service"
|
|
@@ -18,7 +19,7 @@
|
|
|
18
19
|
"author": "APIVerve <hello@apiverve.com> (http://apiverve.com/)",
|
|
19
20
|
"license": "MIT",
|
|
20
21
|
"bugs": {
|
|
21
|
-
"url": "https://github.com/apiverve/recipe-
|
|
22
|
+
"url": "https://github.com/apiverve/recipe-api/issues"
|
|
22
23
|
},
|
|
23
24
|
"homepage": "https://apiverve.com/marketplace/recipe?utm_source=npm",
|
|
24
25
|
"devDependencies": {
|