@data-client/rest 0.12.8 → 0.13.4
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 +1 -1
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ const getTodo = new RestEndpoint({
|
|
|
25
25
|
});
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
[RestEndpoint](https://dataclient.io/rest/api/RestEndpoint) infers [path-to-
|
|
28
|
+
[RestEndpoint](https://dataclient.io/rest/api/RestEndpoint) infers [path-to-regexp](https://github.com/pillarjs/path-to-regexp#compile-reverse-path-to-regexp)
|
|
29
29
|
argument types, enabling enforcement of function calls
|
|
30
30
|
|
|
31
31
|
```typescript
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@data-client/rest",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.4",
|
|
4
4
|
"description": "Endpoints for REST APIs",
|
|
5
5
|
"homepage": "https://dataclient.io/rest",
|
|
6
6
|
"repository": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"resource",
|
|
23
23
|
"typescript",
|
|
24
24
|
"HTTP",
|
|
25
|
-
"path-to-
|
|
25
|
+
"path-to-regexp",
|
|
26
26
|
"path template",
|
|
27
27
|
"data fetching",
|
|
28
28
|
"data cache",
|
|
@@ -37,7 +37,9 @@
|
|
|
37
37
|
"ios",
|
|
38
38
|
"android",
|
|
39
39
|
"web",
|
|
40
|
-
"json"
|
|
40
|
+
"json",
|
|
41
|
+
"async",
|
|
42
|
+
"promise"
|
|
41
43
|
],
|
|
42
44
|
"sideEffects": false,
|
|
43
45
|
"main": "dist/index.js",
|
|
@@ -129,12 +131,11 @@
|
|
|
129
131
|
"license": "Apache-2.0",
|
|
130
132
|
"dependencies": {
|
|
131
133
|
"@babel/runtime": "^7.17.0",
|
|
132
|
-
"@data-client/endpoint": "^0.
|
|
134
|
+
"@data-client/endpoint": "^0.13.4",
|
|
133
135
|
"path-to-regexp": "^6.2.1"
|
|
134
136
|
},
|
|
135
137
|
"devDependencies": {
|
|
136
138
|
"@anansi/browserslist-config": "^1.4.2",
|
|
137
|
-
"@types/node": "^20.0.0"
|
|
138
|
-
"@types/path-to-regexp": "^1.7.0"
|
|
139
|
+
"@types/node": "^20.0.0"
|
|
139
140
|
}
|
|
140
141
|
}
|