@inertiajs/core 2.2.2 → 2.2.4
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/index.esm.js +25 -18
- package/dist/index.esm.js.map +2 -2
- package/dist/index.js +25 -18
- package/dist/index.js.map +2 -2
- package/package.json +4 -2
- package/types/types.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inertiajs/core",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "A framework for creating server-driven single page apps.",
|
|
6
6
|
"contributors": [
|
|
@@ -63,7 +63,9 @@
|
|
|
63
63
|
"build": "pnpm clean && ./build.js && tsc",
|
|
64
64
|
"build:with-deps": "./build.js --with-deps",
|
|
65
65
|
"clean": "rm -rf types && rm -rf dist",
|
|
66
|
-
"dev": "
|
|
66
|
+
"dev": "pnpx concurrently -c \"#ffcf00,#3178c6\" \"pnpm dev:build\" \"pnpm dev:types\" --names build,types",
|
|
67
|
+
"dev:build": "./build.js --watch",
|
|
68
|
+
"dev:types": "tsc --watch --preserveWatchOutput",
|
|
67
69
|
"es2020-check": "pnpm build:with-deps && es-check es2020 \"dist/index.esm.js\" --checkFeatures --module --noCache --verbose"
|
|
68
70
|
}
|
|
69
71
|
}
|
package/types/types.d.ts
CHANGED
|
@@ -282,7 +282,7 @@ export type PrefetchOptions = {
|
|
|
282
282
|
cacheFor: CacheForOption | CacheForOption[];
|
|
283
283
|
cacheTags: string | string[];
|
|
284
284
|
};
|
|
285
|
-
export interface LinkComponentBaseProps extends Partial<Pick<Visit<RequestPayload>, 'data' | 'method' | 'replace' | 'preserveScroll' | 'preserveState' | 'only' | 'except' | 'headers' | 'queryStringArrayFormat' | 'async'> & Omit<VisitCallbacks, 'onCancelToken'> & {
|
|
285
|
+
export interface LinkComponentBaseProps extends Partial<Pick<Visit<RequestPayload>, 'data' | 'method' | 'replace' | 'preserveScroll' | 'preserveState' | 'preserveUrl' | 'only' | 'except' | 'headers' | 'queryStringArrayFormat' | 'async'> & Omit<VisitCallbacks, 'onCancelToken'> & {
|
|
286
286
|
href: string | UrlMethodPair;
|
|
287
287
|
onCancelToken: (cancelToken: import('axios').CancelTokenSource) => void;
|
|
288
288
|
prefetch: boolean | LinkPrefetchOption | LinkPrefetchOption[];
|