Parcourir la source

v 1.2.3 typo

master
peter il y a 5 ans
Parent
révision
73ed3237e6
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1
    1
      README.md
  2. 1
    1
      package.json

+ 1
- 1
README.md Voir le fichier

@@ -40,7 +40,7 @@ client.connect().then(async () => {
40 40
 
41 41
 rpclibrary offers a special type of call that can be used with callbacks. The callback **has to be the last argument** and **may be the only passed function**. 
42 42
 
43
-In order to function, some metadata has to be included in the return value of hooks. On success, the function is expected to return a `type SubscriptionResponse = { result: 'Success', uuid: string }` or in case of errors a `type ErrorResposne = { result: 'Error' }`.
43
+In order to function, some metadata has to be included in the return value of hooks. On success, the function is expected to return a `type SubscriptionResponse = { result: 'Success', uuid: string }` or in case of errors a `type ErrorResponse = { result: 'Error' }`.
44 44
 
45 45
 The uuid, as the name implies, is used to uniquely identify the callback for a given invocation and also dictates the name given to the client-side RPC. Unless you got a preferred way of generating these (e.g. using some kind of unique information important to your task) we reccomend [uuid](https://www.npmjs.com/package/uuid) for this purpose. 
46 46
 

+ 1
- 1
package.json Voir le fichier

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "name": "rpclibrary",
3
-  "version": "1.2.2",
3
+  "version": "1.2.3",
4 4
   "description": "rpclibrary is a websocket on steroids!",
5 5
   "main": "./js/Index.js",
6 6
   "repository": {

Chargement…
Annuler
Enregistrer