@dcloudio/uni-cli-shared 3.0.0-alpha-3060920221117002 → 3.0.0-alpha-3061020221118001
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/filter.d.ts +1 -1
- package/dist/json/mp/types.d.ts +2 -2
- package/dist/logs/index.d.ts +1 -1
- package/dist/mp/template.d.ts +2 -2
- package/dist/mp/usingComponents.d.ts +1 -1
- package/dist/uni_modules.d.ts +3 -3
- package/dist/vite/features.d.ts +1 -1
- package/dist/vite/plugins/copy.d.ts +1 -1
- package/dist/vite/plugins/inject.d.ts +1 -1
- package/dist/vite/utils/plugin.d.ts +1 -1
- package/dist/watcher.d.ts +1 -1
- package/package.json +4 -4
package/dist/filter.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare function isWxs(id: string): boolean;
|
|
2
2
|
export declare function isSjs(id: string): boolean;
|
|
3
3
|
export declare function isRenderjs(id: string): boolean;
|
|
4
|
-
|
|
4
|
+
type FilterType = 'wxs' | 'renderjs' | 'sjs';
|
|
5
5
|
export declare function parseRenderjs(id: string): {
|
|
6
6
|
type: FilterType;
|
|
7
7
|
name: string;
|
package/dist/json/mp/types.d.ts
CHANGED
|
@@ -15,8 +15,8 @@ interface ShareWindowOptions {
|
|
|
15
15
|
onReachBottomDistance?: number;
|
|
16
16
|
pageOrientation?: 'portrait' | 'landscape' | 'auto';
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
type Style = 'v2' | string;
|
|
19
|
+
type RestartStrategy = 'homePage' | 'homePageAndLatestPage' | string;
|
|
20
20
|
export interface PageWindowOptions extends ShareWindowOptions {
|
|
21
21
|
component?: true;
|
|
22
22
|
disableScroll?: boolean;
|
package/dist/logs/index.d.ts
CHANGED
package/dist/mp/template.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EmittedAsset } from 'rollup';
|
|
2
2
|
import type { ElementNode } from '@vue/compiler-core';
|
|
3
|
-
|
|
3
|
+
type LazyElementFn = (node: ElementNode, context: {
|
|
4
4
|
isMiniProgramComponent(name: string): 'plugin' | 'component' | 'dynamicLib' | undefined;
|
|
5
5
|
}) => {
|
|
6
6
|
[name: string]: {
|
|
@@ -81,7 +81,7 @@ export interface MiniProgramFilterOptions {
|
|
|
81
81
|
src?: string;
|
|
82
82
|
code: string;
|
|
83
83
|
}
|
|
84
|
-
|
|
84
|
+
type GenFilterFn = (filter: MiniProgramFilterOptions, filename: string) => string | void;
|
|
85
85
|
export declare function findMiniProgramTemplateFiles(genFilter?: GenFilterFn): Record<string, string>;
|
|
86
86
|
export declare function clearMiniProgramTemplateFiles(): void;
|
|
87
87
|
export declare function addMiniProgramTemplateFile(filename: string, code: string): void;
|
package/dist/uni_modules.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
type Define = string | string[] | Record<string, string> | false;
|
|
2
|
+
type Defines = {
|
|
3
3
|
[name: string]: Define;
|
|
4
4
|
};
|
|
5
5
|
interface Exports {
|
|
6
6
|
[name: string]: Define | Defines | false;
|
|
7
7
|
}
|
|
8
8
|
export declare function parseUniExtApis(vite?: boolean): Injects;
|
|
9
|
-
|
|
9
|
+
type Injects = {
|
|
10
10
|
[name: string]: string | string[] | false;
|
|
11
11
|
};
|
|
12
12
|
/**
|
package/dist/vite/features.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { WatchOptions } from 'chokidar';
|
|
2
2
|
import type { Plugin } from 'vite';
|
|
3
3
|
import { FileWatcherOptions } from '../../watcher';
|
|
4
|
-
export
|
|
4
|
+
export type UniViteCopyPluginTarget = Omit<FileWatcherOptions, 'verbose'> & {
|
|
5
5
|
watchOptions?: WatchOptions;
|
|
6
6
|
};
|
|
7
7
|
export interface UniViteCopyPluginOptions {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Plugin } from 'vite';
|
|
2
2
|
import { FilterPattern } from '@rollup/pluginutils';
|
|
3
|
-
|
|
3
|
+
type Injectment = string | [string, string];
|
|
4
4
|
export interface InjectOptions {
|
|
5
5
|
sourceMap?: boolean;
|
|
6
6
|
callback?: (imports: Map<any, any>, mod: [string, string]) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Plugin, ResolvedConfig } from 'vite';
|
|
2
|
-
export
|
|
2
|
+
export type CreateUniViteFilterPlugin = (opts: UniViteFilterPluginOptions) => Plugin;
|
|
3
3
|
export interface UniViteFilterPluginOptions {
|
|
4
4
|
resolvedConfig: ResolvedConfig;
|
|
5
5
|
filter: (id: string) => boolean;
|
package/dist/watcher.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { FSWatcher, WatchOptions } from 'chokidar';
|
|
3
|
-
|
|
3
|
+
type FileTransform = (source: Buffer, filename: string) => void | string;
|
|
4
4
|
export interface FileWatcherOptions {
|
|
5
5
|
src: string | string[];
|
|
6
6
|
dest: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/uni-cli-shared",
|
|
3
|
-
"version": "3.0.0-alpha-
|
|
3
|
+
"version": "3.0.0-alpha-3061020221118001",
|
|
4
4
|
"description": "@dcloudio/uni-cli-shared",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"@babel/core": "^7.19.6",
|
|
26
26
|
"@babel/parser": "^7.19.6",
|
|
27
27
|
"@babel/types": "^7.20.0",
|
|
28
|
-
"@dcloudio/uni-i18n": "3.0.0-alpha-
|
|
29
|
-
"@dcloudio/uni-shared": "3.0.0-alpha-
|
|
28
|
+
"@dcloudio/uni-i18n": "3.0.0-alpha-3061020221118001",
|
|
29
|
+
"@dcloudio/uni-shared": "3.0.0-alpha-3061020221118001",
|
|
30
30
|
"@intlify/core-base": "9.1.9",
|
|
31
31
|
"@intlify/shared": "9.1.9",
|
|
32
32
|
"@intlify/vue-devtools": "9.1.9",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
},
|
|
65
65
|
"gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@dcloudio/uni-uts-v1": "3.0.0-alpha-
|
|
67
|
+
"@dcloudio/uni-uts-v1": "3.0.0-alpha-3061020221118001",
|
|
68
68
|
"@types/babel__core": "^7.1.19",
|
|
69
69
|
"@types/debug": "^4.1.7",
|
|
70
70
|
"@types/estree": "^0.0.51",
|