silgi 0.3.3 → 0.3.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/dist/cli/config.d.mts +1 -1
- package/dist/cli/config.d.ts +1 -1
- package/dist/cli/index.mjs +21 -2
- package/dist/ecosystem/nuxt/runtime/composables/useFetch.d.ts +10 -0
- package/dist/ecosystem/nuxt/runtime/composables/useFetch.mjs +7 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/shared/{silgi.Bv3UrLx7.d.mts → silgi.ClpvycKI.d.mts} +1 -0
- package/dist/shared/{silgi.Bv3UrLx7.d.ts → silgi.ClpvycKI.d.ts} +1 -0
- package/package.json +21 -2
package/dist/cli/config.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as unstorage from 'unstorage';
|
|
2
2
|
import * as net from 'net';
|
|
3
3
|
import * as consola from 'consola';
|
|
4
|
-
import { D as DeepPartial, S as SilgiOptions, a as SilgiModuleOptions } from '../shared/silgi.
|
|
4
|
+
import { D as DeepPartial, S as SilgiOptions, a as SilgiModuleOptions } from '../shared/silgi.ClpvycKI.mjs';
|
|
5
5
|
import 'hookable';
|
|
6
6
|
import 'ignore';
|
|
7
7
|
import '@standard-schema/spec';
|
package/dist/cli/config.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as unstorage from 'unstorage';
|
|
2
2
|
import * as net from 'net';
|
|
3
3
|
import * as consola from 'consola';
|
|
4
|
-
import { D as DeepPartial, S as SilgiOptions, a as SilgiModuleOptions } from '../shared/silgi.
|
|
4
|
+
import { D as DeepPartial, S as SilgiOptions, a as SilgiModuleOptions } from '../shared/silgi.ClpvycKI.js';
|
|
5
5
|
import 'hookable';
|
|
6
6
|
import 'ignore';
|
|
7
7
|
import '@standard-schema/spec';
|
package/dist/cli/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import consola from 'consola';
|
|
|
3
3
|
|
|
4
4
|
const name = "silgi";
|
|
5
5
|
const type = "module";
|
|
6
|
-
const version = "0.3.
|
|
6
|
+
const version = "0.3.5";
|
|
7
7
|
const packageManager = "pnpm@9.15.1";
|
|
8
8
|
const sideEffects = false;
|
|
9
9
|
const exports = {
|
|
@@ -25,6 +25,10 @@ const exports = {
|
|
|
25
25
|
types: "./dist/ecosystem/nitro/runtime/*",
|
|
26
26
|
"import": "./dist/ecosystem/nitro/runtime/*"
|
|
27
27
|
},
|
|
28
|
+
"./ecosystem/nuxt/runtime/*": {
|
|
29
|
+
types: "./dist/ecosystem/nuxt/runtime/*",
|
|
30
|
+
"import": "./dist/ecosystem/nuxt/runtime/*"
|
|
31
|
+
},
|
|
28
32
|
"./nuxt": {
|
|
29
33
|
types: "./dist/ecosystem/nuxt/module.d.mts",
|
|
30
34
|
"import": "./dist/ecosystem/nuxt/module.mjs"
|
|
@@ -42,6 +46,12 @@ const typesVersions = {
|
|
|
42
46
|
],
|
|
43
47
|
config: [
|
|
44
48
|
"./dist/cli/config"
|
|
49
|
+
],
|
|
50
|
+
"ecosystem/nuxt/runtime/*": [
|
|
51
|
+
"./dist/ecosystem/nuxt/runtime/*"
|
|
52
|
+
],
|
|
53
|
+
"ecosystem/nitro/runtime/*": [
|
|
54
|
+
"./dist/ecosystem/nitro/runtime/*"
|
|
45
55
|
]
|
|
46
56
|
}
|
|
47
57
|
};
|
|
@@ -69,6 +79,8 @@ const scripts = {
|
|
|
69
79
|
};
|
|
70
80
|
const peerDependencies = {
|
|
71
81
|
"@nuxt/kit": "^3.15.3",
|
|
82
|
+
nitropack: "^2.10.4",
|
|
83
|
+
nuxt: "^3.15.3",
|
|
72
84
|
typescript: "^5.7.3",
|
|
73
85
|
zod: "^3.24.1"
|
|
74
86
|
};
|
|
@@ -76,6 +88,12 @@ const peerDependenciesMeta = {
|
|
|
76
88
|
"@nuxt/kit": {
|
|
77
89
|
optional: true
|
|
78
90
|
},
|
|
91
|
+
nitropack: {
|
|
92
|
+
optional: true
|
|
93
|
+
},
|
|
94
|
+
nuxt: {
|
|
95
|
+
optional: true
|
|
96
|
+
},
|
|
79
97
|
zod: {
|
|
80
98
|
optional: true
|
|
81
99
|
}
|
|
@@ -98,7 +116,6 @@ const dependencies = {
|
|
|
98
116
|
jiti: "^2.4.2",
|
|
99
117
|
klona: "^2.0.6",
|
|
100
118
|
mlly: "^1.7.4",
|
|
101
|
-
nitropack: "^2.10.4",
|
|
102
119
|
ofetch: "^1.4.1",
|
|
103
120
|
pathe: "^2.0.2",
|
|
104
121
|
"pkg-types": "^1.3.1",
|
|
@@ -117,6 +134,8 @@ const devDependencies = {
|
|
|
117
134
|
"@nuxt/kit": "^3.15.3",
|
|
118
135
|
"@types/node": "^22.10.7",
|
|
119
136
|
"@types/semver": "^7.5.8",
|
|
137
|
+
nitropack: "^2.10.4",
|
|
138
|
+
nuxt: "^3.15.3",
|
|
120
139
|
unbuild: "^3.3.1",
|
|
121
140
|
vitest: "^3.0.3",
|
|
122
141
|
zod: "^3.24.1"
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { SilgiRouterTypes } from '../../../../src/types/global';
|
|
2
|
+
import { type UseFetchOptions } from 'nuxt/app';
|
|
3
|
+
export declare function useSilgiFetch<Route extends keyof SilgiRouterTypes, Method extends Extract<keyof SilgiRouterTypes[Route], string>>(url: Route | (() => Route), options?: Omit<UseFetchOptions<SilgiRouterTypes[Route][Method] extends {
|
|
4
|
+
output: any;
|
|
5
|
+
} ? SilgiRouterTypes[Route][Method]['output'] : any, any, any, any, Route>, 'method' | 'body'> & {
|
|
6
|
+
method?: Method;
|
|
7
|
+
body?: SilgiRouterTypes[Route][Method] extends {
|
|
8
|
+
input: any;
|
|
9
|
+
} ? SilgiRouterTypes[Route][Method]['input'] : never;
|
|
10
|
+
}): import("nuxt/app").AsyncData<any, import("ofetch").FetchError<any> | null>;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as SilgiConfig, c as SilgiHelper, d as SilgiRouterTypes, M as ModuleOptions, e as ModuleDefinition, f as SilgiModule, B as BaseSchemaType, g as SilgiServiceInterface, h as DefaultNamespaces, i as Silgi, j as SilgiOperation, k as MergedSilgiSchema, l as ServiceType, m as SilgiSchema, R as RequiredServiceType, n as SilgiModuleShared } from './shared/silgi.
|
|
2
|
-
export { F as Awaitable, G as CreateScope, D as DeepPartial, C as DefaultHooks, A as DefaultMethods, E as ExtendShared, u as ExtractInputFromURI, v as ExtractOutputFromURI, w as ExtractRouterParamsFromURI, s as SilgiDefaultShared, o as SilgiEvent, z as SilgiHook, p as SilgiModuleMethods, a as SilgiModuleOptions, q as SilgiModules, r as SilgiNamespaces, S as SilgiOptions, x as SilgiStorageBase, t as SilgiURIs, U as URIsTypes, y as silgi } from './shared/silgi.
|
|
1
|
+
import { b as SilgiConfig, c as SilgiHelper, d as SilgiRouterTypes, M as ModuleOptions, e as ModuleDefinition, f as SilgiModule, B as BaseSchemaType, g as SilgiServiceInterface, h as DefaultNamespaces, i as Silgi, j as SilgiOperation, k as MergedSilgiSchema, l as ServiceType, m as SilgiSchema, R as RequiredServiceType, n as SilgiModuleShared } from './shared/silgi.ClpvycKI.mjs';
|
|
2
|
+
export { F as Awaitable, G as CreateScope, D as DeepPartial, C as DefaultHooks, A as DefaultMethods, E as ExtendShared, u as ExtractInputFromURI, v as ExtractOutputFromURI, w as ExtractRouterParamsFromURI, s as SilgiDefaultShared, o as SilgiEvent, z as SilgiHook, p as SilgiModuleMethods, a as SilgiModuleOptions, q as SilgiModules, r as SilgiNamespaces, S as SilgiOptions, x as SilgiStorageBase, t as SilgiURIs, U as URIsTypes, y as silgi } from './shared/silgi.ClpvycKI.mjs';
|
|
3
3
|
import { FetchOptions } from 'ofetch';
|
|
4
4
|
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
5
5
|
import * as unctx_index from 'unctx/index';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as SilgiConfig, c as SilgiHelper, d as SilgiRouterTypes, M as ModuleOptions, e as ModuleDefinition, f as SilgiModule, B as BaseSchemaType, g as SilgiServiceInterface, h as DefaultNamespaces, i as Silgi, j as SilgiOperation, k as MergedSilgiSchema, l as ServiceType, m as SilgiSchema, R as RequiredServiceType, n as SilgiModuleShared } from './shared/silgi.
|
|
2
|
-
export { F as Awaitable, G as CreateScope, D as DeepPartial, C as DefaultHooks, A as DefaultMethods, E as ExtendShared, u as ExtractInputFromURI, v as ExtractOutputFromURI, w as ExtractRouterParamsFromURI, s as SilgiDefaultShared, o as SilgiEvent, z as SilgiHook, p as SilgiModuleMethods, a as SilgiModuleOptions, q as SilgiModules, r as SilgiNamespaces, S as SilgiOptions, x as SilgiStorageBase, t as SilgiURIs, U as URIsTypes, y as silgi } from './shared/silgi.
|
|
1
|
+
import { b as SilgiConfig, c as SilgiHelper, d as SilgiRouterTypes, M as ModuleOptions, e as ModuleDefinition, f as SilgiModule, B as BaseSchemaType, g as SilgiServiceInterface, h as DefaultNamespaces, i as Silgi, j as SilgiOperation, k as MergedSilgiSchema, l as ServiceType, m as SilgiSchema, R as RequiredServiceType, n as SilgiModuleShared } from './shared/silgi.ClpvycKI.js';
|
|
2
|
+
export { F as Awaitable, G as CreateScope, D as DeepPartial, C as DefaultHooks, A as DefaultMethods, E as ExtendShared, u as ExtractInputFromURI, v as ExtractOutputFromURI, w as ExtractRouterParamsFromURI, s as SilgiDefaultShared, o as SilgiEvent, z as SilgiHook, p as SilgiModuleMethods, a as SilgiModuleOptions, q as SilgiModules, r as SilgiNamespaces, S as SilgiOptions, x as SilgiStorageBase, t as SilgiURIs, U as URIsTypes, y as silgi } from './shared/silgi.ClpvycKI.js';
|
|
3
3
|
import { FetchOptions } from 'ofetch';
|
|
4
4
|
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
5
5
|
import * as unctx_index from 'unctx/index';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "silgi",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.5",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
@@ -22,6 +22,10 @@
|
|
|
22
22
|
"types": "./dist/ecosystem/nitro/runtime/*",
|
|
23
23
|
"import": "./dist/ecosystem/nitro/runtime/*"
|
|
24
24
|
},
|
|
25
|
+
"./ecosystem/nuxt/runtime/*": {
|
|
26
|
+
"types": "./dist/ecosystem/nuxt/runtime/*",
|
|
27
|
+
"import": "./dist/ecosystem/nuxt/runtime/*"
|
|
28
|
+
},
|
|
25
29
|
"./nuxt": {
|
|
26
30
|
"types": "./dist/ecosystem/nuxt/module.d.mts",
|
|
27
31
|
"import": "./dist/ecosystem/nuxt/module.mjs"
|
|
@@ -39,6 +43,12 @@
|
|
|
39
43
|
],
|
|
40
44
|
"config": [
|
|
41
45
|
"./dist/cli/config"
|
|
46
|
+
],
|
|
47
|
+
"ecosystem/nuxt/runtime/*": [
|
|
48
|
+
"./dist/ecosystem/nuxt/runtime/*"
|
|
49
|
+
],
|
|
50
|
+
"ecosystem/nitro/runtime/*": [
|
|
51
|
+
"./dist/ecosystem/nitro/runtime/*"
|
|
42
52
|
]
|
|
43
53
|
}
|
|
44
54
|
},
|
|
@@ -52,6 +62,8 @@
|
|
|
52
62
|
],
|
|
53
63
|
"peerDependencies": {
|
|
54
64
|
"@nuxt/kit": "^3.15.3",
|
|
65
|
+
"nitropack": "^2.10.4",
|
|
66
|
+
"nuxt": "^3.15.3",
|
|
55
67
|
"typescript": "^5.7.3",
|
|
56
68
|
"zod": "^3.24.1"
|
|
57
69
|
},
|
|
@@ -59,6 +71,12 @@
|
|
|
59
71
|
"@nuxt/kit": {
|
|
60
72
|
"optional": true
|
|
61
73
|
},
|
|
74
|
+
"nitropack": {
|
|
75
|
+
"optional": true
|
|
76
|
+
},
|
|
77
|
+
"nuxt": {
|
|
78
|
+
"optional": true
|
|
79
|
+
},
|
|
62
80
|
"zod": {
|
|
63
81
|
"optional": true
|
|
64
82
|
}
|
|
@@ -81,7 +99,6 @@
|
|
|
81
99
|
"jiti": "^2.4.2",
|
|
82
100
|
"klona": "^2.0.6",
|
|
83
101
|
"mlly": "^1.7.4",
|
|
84
|
-
"nitropack": "^2.10.4",
|
|
85
102
|
"ofetch": "^1.4.1",
|
|
86
103
|
"pathe": "^2.0.2",
|
|
87
104
|
"pkg-types": "^1.3.1",
|
|
@@ -100,6 +117,8 @@
|
|
|
100
117
|
"@nuxt/kit": "^3.15.3",
|
|
101
118
|
"@types/node": "^22.10.7",
|
|
102
119
|
"@types/semver": "^7.5.8",
|
|
120
|
+
"nitropack": "^2.10.4",
|
|
121
|
+
"nuxt": "^3.15.3",
|
|
103
122
|
"unbuild": "^3.3.1",
|
|
104
123
|
"vitest": "^3.0.3",
|
|
105
124
|
"zod": "^3.24.1"
|