nuxt-precognition 0.0.4 → 0.0.5

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 CHANGED
@@ -16,7 +16,7 @@ Find and replace all on all files (CMD+SHIFT+F):
16
16
 
17
17
  This is a new version of [nuxt-laravel-precognition](https://www.npmjs.com/package/nuxt-laravel-precognition). It offers same features, but being not dependent on Laravel.
18
18
 
19
- Instead of supporting only _$fetch_ and _Laravel_, it works with simple promises, targetting any backend that implements the base Precognition protocol. These promises will receive the form `payload` and protocol `Headers`.
19
+ Instead of supporting only _$fetch_ and _Laravel_, it works with simple promises, targeting any backend that implements the base Precognition protocol. These promises will receive the form `payload` and protocol `Headers`.
20
20
 
21
21
  #### Example
22
22
  ```ts
@@ -31,7 +31,7 @@ const form = useForm(
31
31
  )
32
32
  ```
33
33
 
34
- This module comes with native __Nitro__ integration, but will work with other backend as weel, even properly configured _aws lambda_.
34
+ This module comes with native __Nitro__ integration, but will work with other backend as well, even properly configured _aws lambda_.
35
35
  It supports any validation library (_who said [__Zod__](https://zod.dev/)??_) server or client side. You will need only to configure specific `Error parsers`.
36
36
 
37
37
  - [✨  Release Notes](/CHANGELOG.md)
@@ -92,7 +92,7 @@ export default defineNuxtPlugin(() => {
92
92
  ```
93
93
  From now on, everytime the `useForm` will catch the error, it will run our parses, and capture and assign any validation errors.
94
94
 
95
- If you want to reuse same options over multiple pages, you can create your __custom composable__ by `useForm.create` factory function.
95
+ If you want to reuse the same options over multiple pages, you can create your __custom composable__ by `useForm.create` factory function.
96
96
 
97
97
  ### How about server side
98
98
  Same idea, creating a nitro plugin:
@@ -124,7 +124,7 @@ export default defineNitroPlugin((nitroApp) => {
124
124
  })
125
125
  })
126
126
  ```
127
- If you don't like hooking on every requests, you can create you custom eventHandler by `definePrecognitiveEventHandler.create` factory function.
127
+ If you don't like hooking on every request, you can create your custom eventHandler by `definePrecognitiveEventHandler.create` factory function.
128
128
 
129
129
  Make your validation logic inside the `onRequest` handler of the `definePrecognitiveEventHandler`.
130
130
 
package/dist/module.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "nuxt-precognition",
3
3
  "configKey": "precognition",
4
4
  "compatibility": {
5
- "nuxt": "^3.9.0"
5
+ "nuxt": ">=3.9.0"
6
6
  },
7
- "version": "0.0.4"
7
+ "version": "0.0.5"
8
8
  }
package/dist/module.mjs CHANGED
@@ -6,7 +6,7 @@ const module = defineNuxtModule({
6
6
  name: "nuxt-precognition",
7
7
  configKey: "precognition",
8
8
  compatibility: {
9
- nuxt: "^3.9.0"
9
+ nuxt: ">=3.9.0"
10
10
  }
11
11
  },
12
12
  // Default configuration options of the Nuxt module
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-precognition",
3
3
  "type": "module",
4
- "version": "0.0.4",
4
+ "version": "0.0.5",
5
5
  "description": "Nuxt module implementing Precognition protocol (inspired by official Laravel Precognition) for backend precognitive validation.",
6
6
  "author": {
7
7
  "name": "sot1986",