@go-avro/avro-js 0.0.54 → 0.0.55
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/client/hooks/routes.js +2 -0
- package/package.json +57 -57
|
@@ -82,6 +82,7 @@ AvroQueryClient.prototype.useCreateRoute = function () {
|
|
|
82
82
|
entityKey: 'routes',
|
|
83
83
|
id: result.id,
|
|
84
84
|
fetchPath: `/route/${result.id}`,
|
|
85
|
+
construct: (d) => new Route(d),
|
|
85
86
|
});
|
|
86
87
|
},
|
|
87
88
|
onError: (_err, _variables, context) => {
|
|
@@ -146,6 +147,7 @@ AvroQueryClient.prototype.useUpdateRoute = function () {
|
|
|
146
147
|
entityKey: 'routes',
|
|
147
148
|
id: routeId,
|
|
148
149
|
fetchPath: `/route/${routeId}`,
|
|
150
|
+
construct: (d) => new Route(d),
|
|
149
151
|
});
|
|
150
152
|
},
|
|
151
153
|
onError: (_err, variables, context) => {
|
package/package.json
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
2
|
+
"name": "@go-avro/avro-js",
|
|
3
|
+
"version": "0.0.55",
|
|
4
|
+
"description": "JS client for Avro backend integration.",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "tsc && tsc-alias",
|
|
9
|
+
"format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md,yaml,yml}\"",
|
|
10
|
+
"lint": "eslint src && prettier --check \"src/**/*.{ts,tsx,js,jsx,json,md,yaml,yml}\" && tsc --noEmit",
|
|
11
|
+
"test": "jest",
|
|
12
|
+
"prepublishOnly": "npm run lint && npm run build"
|
|
13
|
+
},
|
|
14
|
+
"type": "module",
|
|
15
|
+
"module": "./dist/index.js",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"import": "./dist/index.js",
|
|
19
|
+
"types": "./dist/index.d.ts"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://gitlab.com/go-avro/avro-js.git"
|
|
25
|
+
},
|
|
26
|
+
"keywords": [
|
|
27
|
+
"avro",
|
|
28
|
+
"http-client",
|
|
29
|
+
"xhr",
|
|
30
|
+
"token-refresh",
|
|
31
|
+
"typescript"
|
|
32
|
+
],
|
|
33
|
+
"author": "Avro <info@goavro.com>",
|
|
34
|
+
"license": "CC-BY-SA-4.0",
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@types/react": "^19.2.2",
|
|
37
|
+
"@types/uuid": "^10.0.0",
|
|
38
|
+
"@typescript-eslint/eslint-plugin": "^8.38.0",
|
|
39
|
+
"@typescript-eslint/parser": "^8.38.0",
|
|
40
|
+
"eslint": "^8.57.1",
|
|
41
|
+
"eslint-plugin-import": "^2.32.0",
|
|
42
|
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
43
|
+
"eslint-plugin-react": "^7.37.5",
|
|
44
|
+
"prettier": "^3.8.3",
|
|
45
|
+
"tsc-alias": "^1.8.16",
|
|
46
|
+
"typescript": "^5.8.3",
|
|
47
|
+
"typescript-eslint": "^8.38.0"
|
|
48
|
+
},
|
|
49
|
+
"files": [
|
|
50
|
+
"dist"
|
|
51
|
+
],
|
|
52
|
+
"publishConfig": {
|
|
53
|
+
"access": "public"
|
|
54
|
+
},
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"@tanstack/react-query": "^5.90.2",
|
|
57
|
+
"socket.io-client": "^4.8.1",
|
|
58
|
+
"uuid": "^14.0.0"
|
|
20
59
|
}
|
|
21
|
-
},
|
|
22
|
-
"repository": {
|
|
23
|
-
"type": "git",
|
|
24
|
-
"url": "git+https://gitlab.com/go-avro/avro-js.git"
|
|
25
|
-
},
|
|
26
|
-
"keywords": [
|
|
27
|
-
"avro",
|
|
28
|
-
"http-client",
|
|
29
|
-
"xhr",
|
|
30
|
-
"token-refresh",
|
|
31
|
-
"typescript"
|
|
32
|
-
],
|
|
33
|
-
"author": "Avro <info@goavro.com>",
|
|
34
|
-
"license": "CC-BY-SA-4.0",
|
|
35
|
-
"devDependencies": {
|
|
36
|
-
"@types/react": "^19.2.2",
|
|
37
|
-
"@types/uuid": "^10.0.0",
|
|
38
|
-
"@typescript-eslint/eslint-plugin": "^8.38.0",
|
|
39
|
-
"@typescript-eslint/parser": "^8.38.0",
|
|
40
|
-
"eslint": "^8.57.1",
|
|
41
|
-
"eslint-plugin-import": "^2.32.0",
|
|
42
|
-
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
43
|
-
"eslint-plugin-react": "^7.37.5",
|
|
44
|
-
"prettier": "^3.8.3",
|
|
45
|
-
"tsc-alias": "^1.8.16",
|
|
46
|
-
"typescript": "^5.8.3",
|
|
47
|
-
"typescript-eslint": "^8.38.0"
|
|
48
|
-
},
|
|
49
|
-
"files": [
|
|
50
|
-
"dist"
|
|
51
|
-
],
|
|
52
|
-
"publishConfig": {
|
|
53
|
-
"access": "public"
|
|
54
|
-
},
|
|
55
|
-
"dependencies": {
|
|
56
|
-
"@tanstack/react-query": "^5.90.2",
|
|
57
|
-
"socket.io-client": "^4.8.1",
|
|
58
|
-
"uuid": "^14.0.0"
|
|
59
|
-
}
|
|
60
60
|
}
|