@nuxt/bridge-edge 3.0.0-28039440.0f91db9 → 3.0.0-28051135.ca0f5c5
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/chunks/vite.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { resolve, join, isAbsolute } from 'pathe';
|
|
|
2
2
|
import { logger, isIgnored } from '@nuxt/kit';
|
|
3
3
|
import { findExports, sanitizeFilePath } from 'mlly';
|
|
4
4
|
import { joinURL, withoutLeadingSlash, withTrailingSlash } from 'ufo';
|
|
5
|
-
import { i as isCSS, p as prepareManifests, h as hashId, u as uniq, g as generateDevSSRManifest, d as distDir, a as pkgDir } from '../shared/bridge-edge.
|
|
5
|
+
import { i as isCSS, p as prepareManifests, h as hashId, u as uniq, g as generateDevSSRManifest, d as distDir, a as pkgDir } from '../shared/bridge-edge.ba77d38f.mjs';
|
|
6
6
|
import createVuePlugin from '@vitejs/plugin-vue2';
|
|
7
7
|
import { getPort } from 'get-port-please';
|
|
8
8
|
import { defineEventHandler } from 'h3';
|
package/dist/module.mjs
CHANGED
package/dist/runtime/app.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import type { Context as NuxtContext } from '@nuxt/types';
|
|
1
2
|
import type { Hookable } from 'hookable';
|
|
2
3
|
import type { Vue } from 'vue/types/vue';
|
|
3
4
|
import type { ComponentOptions } from 'vue';
|
|
5
|
+
import type { Route } from 'vue-router';
|
|
4
6
|
import { defineComponent } from './composables';
|
|
5
7
|
export declare const isVue2 = true;
|
|
6
8
|
export declare const isVue3 = false;
|
|
@@ -28,8 +30,11 @@ export interface RuntimeNuxtHooks {
|
|
|
28
30
|
'meta:register': (metaRenderers: any[]) => void | Promise<void>;
|
|
29
31
|
'vue:setup': () => void;
|
|
30
32
|
}
|
|
33
|
+
export interface Nuxt2Context extends Omit<NuxtContext, 'from'> {
|
|
34
|
+
from: Route;
|
|
35
|
+
}
|
|
31
36
|
export interface NuxtAppCompat {
|
|
32
|
-
nuxt2Context:
|
|
37
|
+
nuxt2Context: Nuxt2Context;
|
|
33
38
|
vue2App: ComponentOptions<Vue>;
|
|
34
39
|
vueApp: VueAppCompat;
|
|
35
40
|
globalName: string;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { ref } from 'vue';
|
|
1
|
+
import { ComputedRef, ref } from 'vue';
|
|
2
|
+
import type { Route } from 'vue-router';
|
|
3
|
+
import type { Nuxt2Context } from './app';
|
|
2
4
|
export { computed, customRef, del, effectScope, getCurrentInstance, getCurrentScope, h, inject, isReactive, isReadonly, isRef, markRaw, nextTick, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, provide, reactive, readonly, set, shallowReactive, shallowReadonly, shallowRef, toRaw, toRef, toRefs, triggerRef, unref, useAttrs, useCssModule, useCssModule as useCSSModule, useSlots, version, watch, watchEffect, watchPostEffect, watchSyncEffect } from 'vue';
|
|
3
5
|
export { ref };
|
|
4
6
|
export declare const createApp: () => () => never;
|
|
@@ -21,69 +23,18 @@ export declare const shallowSsrRef: (value: any, key: any) => import("vue").Ref<
|
|
|
21
23
|
export declare const ssrPromise: (value: any, key: any) => Promise<any>;
|
|
22
24
|
export declare const onGlobalSetup: (fn: any) => void;
|
|
23
25
|
export declare const useAsync: (cb: any, key: any) => import("vue").Ref<unknown>;
|
|
24
|
-
|
|
25
|
-
route:
|
|
26
|
-
query:
|
|
27
|
-
from:
|
|
28
|
-
params:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
$parent: import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>> | null;
|
|
32
|
-
$root: import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>;
|
|
33
|
-
$children: import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>[];
|
|
34
|
-
$options: import("vue").ComponentOptions<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, import("vue/types/options").DefaultData<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>>, import("vue/types/options").DefaultMethods<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>>, import("vue/types/options").DefaultComputed, import("vue/types/options").PropsDefinition<import("vue/types/options").DefaultProps>, import("vue/types/options").DefaultProps, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, import("@nuxt/types/app/vue").DefaultAsyncData<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>>>;
|
|
35
|
-
$emit: (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>;
|
|
36
|
-
$el: Element;
|
|
37
|
-
$refs: {
|
|
38
|
-
[key: string]: Element | import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>> | (Element | import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>)[] | undefined;
|
|
39
|
-
};
|
|
40
|
-
$slots: {
|
|
41
|
-
[key: string]: import("vue").VNode[] | undefined;
|
|
42
|
-
};
|
|
43
|
-
$scopedSlots: {
|
|
44
|
-
[key: string]: import("vue/types/vnode").NormalizedScopedSlot | undefined;
|
|
45
|
-
};
|
|
46
|
-
$isServer: boolean;
|
|
47
|
-
$ssrContext: any;
|
|
48
|
-
$vnode: import("vue").VNode;
|
|
49
|
-
$attrs: Record<string, string>;
|
|
50
|
-
$listeners: Record<string, Function | Function[]>;
|
|
51
|
-
$mount(elementOrSelector?: string | Element | undefined, hydrating?: boolean | undefined): import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>;
|
|
52
|
-
$forceUpdate(): void;
|
|
53
|
-
$destroy(): void;
|
|
54
|
-
$set: {
|
|
55
|
-
<T>(object: object, key: string | number, value: T): T;
|
|
56
|
-
<T_1>(array: T_1[], key: number, value: T_1): T_1;
|
|
57
|
-
};
|
|
58
|
-
$delete: {
|
|
59
|
-
(object: object, key: string | number): void;
|
|
60
|
-
<T_2>(array: T_2[], key: number): void;
|
|
61
|
-
};
|
|
62
|
-
$watch(expOrFn: string, callback: (this: import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, n: any, o: any) => void, options?: import("vue").WatchOptions | undefined): () => void;
|
|
63
|
-
$watch<T_3>(expOrFn: (this: import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>) => T_3, callback: (this: import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, n: T_3, o: T_3) => void, options?: import("vue").WatchOptions | undefined): () => void;
|
|
64
|
-
$on(event: string | string[], callback: Function): import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>;
|
|
65
|
-
$once(event: string | string[], callback: Function): import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>;
|
|
66
|
-
$off(event?: string | string[] | undefined, callback?: Function | undefined): import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>;
|
|
67
|
-
$nextTick: typeof import("vue").nextTick;
|
|
68
|
-
$createElement: import("vue").CreateElement;
|
|
69
|
-
$meta(): import("vue-meta").VueMetaPlugin;
|
|
70
|
-
$router: import("vue-router").default;
|
|
71
|
-
$route: import("vue-router").Route;
|
|
72
|
-
$store: import("vuex/types/index").Store<any>;
|
|
73
|
-
$config: import("@nuxt/types/config/runtime").NuxtRuntimeConfig;
|
|
74
|
-
$nuxt: import("@nuxt/types/app").NuxtApp;
|
|
75
|
-
$fetch(): void | Promise<void>;
|
|
76
|
-
$fetchState: {
|
|
77
|
-
error: Error | null;
|
|
78
|
-
pending: boolean;
|
|
79
|
-
timestamp: number;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
26
|
+
interface UseContextReturn extends Omit<Nuxt2Context, 'from' | 'route' | 'query' | 'params'> {
|
|
27
|
+
route: ComputedRef<Route>;
|
|
28
|
+
query: ComputedRef<Route['query']>;
|
|
29
|
+
from: ComputedRef<Route>;
|
|
30
|
+
params: ComputedRef<Route['params']>;
|
|
31
|
+
}
|
|
32
|
+
export declare const useContext: () => UseContextReturn;
|
|
82
33
|
export declare const defineComponent: (options: any) => any;
|
|
83
34
|
export declare const useMeta: (init: any) => any;
|
|
84
35
|
export declare const wrapProperty: (property: any, makeComputed?: boolean) => () => any;
|
|
85
36
|
export declare const useRouter: () => import("vue-router").default;
|
|
86
|
-
export declare const useRoute: () =>
|
|
37
|
+
export declare const useRoute: () => Route;
|
|
87
38
|
export declare const useStore: () => import("vuex/types/index").Store<any>;
|
|
88
39
|
export declare const useFetch: (callback: any) => {
|
|
89
40
|
fetch: () => void | Promise<void>;
|
|
@@ -677,7 +677,7 @@ async function setupAppBridge(_options) {
|
|
|
677
677
|
nuxt.hook("builder:generateApp", () => builder.generateRoutesAndFiles());
|
|
678
678
|
});
|
|
679
679
|
nuxt.options.build.transpile.push("vuex");
|
|
680
|
-
nuxt.options.build.transpile.push("h3", "iron-webcrypto");
|
|
680
|
+
nuxt.options.build.transpile.push("h3", "iron-webcrypto", "ohash");
|
|
681
681
|
nuxt.options.fetch.server = false;
|
|
682
682
|
nuxt.options.fetch.client = false;
|
|
683
683
|
const components = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/bridge-edge",
|
|
3
|
-
"version": "3.0.0-
|
|
3
|
+
"version": "3.0.0-28051135.ca0f5c5",
|
|
4
4
|
"repository": "nuxt/bridge",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -19,21 +19,21 @@
|
|
|
19
19
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
|
|
20
20
|
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
|
|
21
21
|
"@babel/plugin-transform-typescript": "^7.21.3",
|
|
22
|
-
"@nuxt/bridge-schema": "npm:@nuxt/bridge-schema-edge@3.0.0-
|
|
23
|
-
"@nuxt/devalue": "^2.0.
|
|
24
|
-
"@nuxt/kit": "3.4.
|
|
22
|
+
"@nuxt/bridge-schema": "npm:@nuxt/bridge-schema-edge@3.0.0-28051135.ca0f5c5",
|
|
23
|
+
"@nuxt/devalue": "^2.0.2",
|
|
24
|
+
"@nuxt/kit": "3.4.3",
|
|
25
25
|
"@nuxt/postcss8": "^1.1.3",
|
|
26
|
-
"@nuxt/schema": "3.4.
|
|
26
|
+
"@nuxt/schema": "3.4.3",
|
|
27
27
|
"@nuxt/ui-templates": "^1.1.1",
|
|
28
|
-
"@vitejs/plugin-legacy": "^4.0.
|
|
28
|
+
"@vitejs/plugin-legacy": "^4.0.3",
|
|
29
29
|
"@vitejs/plugin-vue2": "^2.2.0",
|
|
30
30
|
"acorn": "^8.8.2",
|
|
31
31
|
"cookie-es": "^0.5.0",
|
|
32
32
|
"defu": "^6.1.2",
|
|
33
33
|
"destr": "^1.2.2",
|
|
34
|
-
"enhanced-resolve": "^5.
|
|
34
|
+
"enhanced-resolve": "^5.13.0",
|
|
35
35
|
"escape-string-regexp": "^5.0.0",
|
|
36
|
-
"estree-walker": "^
|
|
36
|
+
"estree-walker": "^3.0.3",
|
|
37
37
|
"externality": "^1.0.0",
|
|
38
38
|
"fs-extra": "^10.1.0",
|
|
39
39
|
"get-port-please": "^3.0.1",
|
|
@@ -45,26 +45,26 @@
|
|
|
45
45
|
"mlly": "^1.2.0",
|
|
46
46
|
"nitropack": "^2.3.3",
|
|
47
47
|
"node-fetch": "^3.3.1",
|
|
48
|
-
"nuxi": "3.4.
|
|
48
|
+
"nuxi": "3.4.3",
|
|
49
49
|
"ofetch": "^1.0.1",
|
|
50
|
-
"ohash": "^1.
|
|
50
|
+
"ohash": "^1.1.2",
|
|
51
51
|
"pathe": "^1.1.0",
|
|
52
52
|
"perfect-debounce": "^0.1.3",
|
|
53
|
-
"postcss": "^8.4.
|
|
53
|
+
"postcss": "^8.4.23",
|
|
54
54
|
"postcss-import": "^15.1.0",
|
|
55
55
|
"postcss-import-resolver": "^2.0.0",
|
|
56
56
|
"postcss-preset-env": "^8.3.2",
|
|
57
57
|
"postcss-url": "^10.1.3",
|
|
58
58
|
"scule": "^1.0.0",
|
|
59
|
-
"semver": "^7.
|
|
59
|
+
"semver": "^7.5.0",
|
|
60
60
|
"std-env": "^3.3.2",
|
|
61
|
-
"terser": "^5.
|
|
61
|
+
"terser": "^5.17.1",
|
|
62
62
|
"ufo": "^1.1.1",
|
|
63
|
-
"unctx": "^2.
|
|
63
|
+
"unctx": "^2.3.0",
|
|
64
64
|
"unimport": "^3.0.6",
|
|
65
65
|
"unplugin": "^1.3.1",
|
|
66
66
|
"untyped": "^1.3.2",
|
|
67
|
-
"vite": "~4.
|
|
67
|
+
"vite": "~4.3.4",
|
|
68
68
|
"vue-bundle-renderer": "^1.0.3"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
@@ -74,16 +74,24 @@
|
|
|
74
74
|
"@types/fs-extra": "^9.0.13",
|
|
75
75
|
"@types/hash-sum": "^1.0.0",
|
|
76
76
|
"@types/node-fetch": "^3.0.2",
|
|
77
|
-
"@vueuse/head": "^1.1.
|
|
77
|
+
"@vueuse/head": "^1.1.26",
|
|
78
78
|
"nuxt": "^2.16.2",
|
|
79
79
|
"unbuild": "1.2.1",
|
|
80
80
|
"vue": "^2.7.14",
|
|
81
81
|
"vue-router": "^3.6.5"
|
|
82
82
|
},
|
|
83
|
+
"peerDependencies": {
|
|
84
|
+
"@nuxt/types": "^2.16.3"
|
|
85
|
+
},
|
|
86
|
+
"peerDependenciesMeta": {
|
|
87
|
+
"@nuxt/types": {
|
|
88
|
+
"optional": true
|
|
89
|
+
}
|
|
90
|
+
},
|
|
83
91
|
"engines": {
|
|
84
92
|
"node": "^14.16.0 || ^16.11.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
85
93
|
},
|
|
86
|
-
"packageManager": "pnpm@8.
|
|
94
|
+
"packageManager": "pnpm@8.4.0",
|
|
87
95
|
"_name": "@nuxt/bridge",
|
|
88
96
|
"scripts": {
|
|
89
97
|
"build": "pnpm prepack"
|