@regle/nuxt 0.4.4 → 0.4.6-beta.1
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/module.json +2 -2
- package/dist/module.mjs +4 -12
- package/package.json +5 -5
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
import { defineNuxtModule,
|
|
1
|
+
import { defineNuxtModule, addImportsSources } from '@nuxt/kit';
|
|
2
|
+
import { createRequire } from 'module';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
// -- Unbuild CommonJS Shims --
|
|
6
|
-
import __cjs_url__ from 'url';
|
|
7
|
-
import __cjs_path__ from 'path';
|
|
8
|
-
import __cjs_mod__ from 'module';
|
|
9
|
-
const __filename = __cjs_url__.fileURLToPath(import.meta.url);
|
|
10
|
-
const __dirname = __cjs_path__.dirname(__filename);
|
|
11
|
-
const require = __cjs_mod__.createRequire(import.meta.url);
|
|
12
4
|
const module = defineNuxtModule({
|
|
13
5
|
meta: {
|
|
14
6
|
name: "regle",
|
|
@@ -16,7 +8,7 @@ const module = defineNuxtModule({
|
|
|
16
8
|
},
|
|
17
9
|
defaults: {},
|
|
18
10
|
async setup(_options, _nuxt) {
|
|
19
|
-
|
|
11
|
+
createRequire(import.meta.url);
|
|
20
12
|
addImportsSources({
|
|
21
13
|
from: "@regle/core",
|
|
22
14
|
imports: ["useRegle", "createRule", "defineRegleConfig", "inferRules"]
|
|
@@ -26,7 +18,7 @@ const module = defineNuxtModule({
|
|
|
26
18
|
imports: ["ruleHelpers", "withAsync", "withMessage", "withParams", "withTooltip"]
|
|
27
19
|
});
|
|
28
20
|
try {
|
|
29
|
-
const regleZod =
|
|
21
|
+
const regleZod = await import('@regle/zod');
|
|
30
22
|
if (regleZod) {
|
|
31
23
|
addImportsSources({
|
|
32
24
|
from: "@regle/zod",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regle/nuxt",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.6-beta.1",
|
|
4
4
|
"description": "Regle nuxt module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@nuxt/kit": "3.14.1592",
|
|
21
21
|
"@nuxt/schema": "3.14.1592",
|
|
22
|
-
"@regle/
|
|
23
|
-
"@regle/
|
|
22
|
+
"@regle/rules": "0.4.6-beta.1",
|
|
23
|
+
"@regle/core": "0.4.6-beta.1"
|
|
24
24
|
},
|
|
25
25
|
"optionalDependencies": {
|
|
26
|
-
"@regle/zod": "0.4.
|
|
26
|
+
"@regle/zod": "0.4.6-beta.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@nuxt/devtools": "1.6.3",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"vue": "3.5.13",
|
|
47
47
|
"vue-eslint-parser": "9.4.3",
|
|
48
48
|
"vue-tsc": "2.1.10",
|
|
49
|
-
"
|
|
49
|
+
"unbuild": "3.0.1"
|
|
50
50
|
},
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|