uni-oaview 1.5.0 → 1.5.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/index.d.ts CHANGED
@@ -319,11 +319,6 @@ declare function useCookieTempFileUrl(url: string): {
319
319
  tempUrl: _mp_rt1_vue___Ref<string>;
320
320
  };
321
321
 
322
- /** 插件配置选项 */
323
- interface PluginOptions {
324
- /** 是否启用启动参数日志上报,默认 true */
325
- enableLaunchLog?: boolean;
326
- }
327
322
  declare const plugin: Plugin;
328
323
  /**
329
324
  * 向客户端获取数据
@@ -334,4 +329,4 @@ declare const plugin: Plugin;
334
329
  */
335
330
  declare function getDataByApp(eventName: string, params: Record<string, any>, immediate?: boolean): Promise<any>;
336
331
 
337
- export { CreateModalReturn, Message, MessageBox, ModalBaseEvents, ModalCloseReason, ModalHeaderEvents, ModalHeaderOptions, ModalOptions, PluginOptions, RouteMethodName, VersionCheckRuntimeOptions, VersionCheckRuntimeState, VersionCheckSource, VersionCheckTriggerContext, closeAllModals, compareVersions, createDebounceFn, createModal, createVersionCheckRuntime, plugin as default, getAppVersion, getDataByApp, getTempFilePathForCookie, isCurrentVersionHigher, sendLaunchAppParamsLog, useCookieTempFileUrl, versionCheckRuntime };
332
+ export { CreateModalReturn, Message, MessageBox, ModalBaseEvents, ModalCloseReason, ModalHeaderEvents, ModalHeaderOptions, ModalOptions, RouteMethodName, VersionCheckRuntimeOptions, VersionCheckRuntimeState, VersionCheckSource, VersionCheckTriggerContext, closeAllModals, compareVersions, createDebounceFn, createModal, createVersionCheckRuntime, plugin as default, getAppVersion, getDataByApp, getTempFilePathForCookie, isCurrentVersionHigher, sendLaunchAppParamsLog, useCookieTempFileUrl, versionCheckRuntime };
package/dist/index.esm.js CHANGED
@@ -3909,18 +3909,9 @@ function useCookieTempFileUrl(url) {
3909
3909
  }
3910
3910
 
3911
3911
  var install = function install(app) {
3912
- for (var _len = arguments.length, options = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
3913
- options[_key - 1] = arguments[_key];
3914
- }
3915
- var _options$ = options[0],
3916
- _options$2 = _options$ === void 0 ? {} : _options$,
3917
- _options$2$enableLaun = _options$2.enableLaunchLog,
3918
- enableLaunchLog = _options$2$enableLaun === void 0 ? true : _options$2$enableLaun;
3919
3912
  app.mixin({
3920
3913
  onLaunch: function onLaunch(params) {
3921
- if (enableLaunchLog) {
3922
- sendLaunchAppParamsLog(params);
3923
- }
3914
+ sendLaunchAppParamsLog(params);
3924
3915
  }
3925
3916
  });
3926
3917
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uni-oaview",
3
- "version": "1.5.00",
3
+ "version": "1.5.01",
4
4
  "description": "uniapp小程序组件库",
5
5
  "main": "dist/index.esm.js",
6
6
  "typings": "dist/index.d.ts",
@@ -51,7 +51,7 @@
51
51
  "rollup-plugin-typescript2": "^0.27.2",
52
52
  "rollup-plugin-vue": "^6.0.0",
53
53
  "typescript": "^4.0.2",
54
- "uniapp-log-sdk": "^1.7.1"
54
+ "uniapp-log-sdk": "^1.7.2"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "@dcloudio/uni-ui": "^1.5.11",
package/src/index.ts CHANGED
@@ -4,20 +4,10 @@ import { sendLaunchAppParamsLog } from './utils';
4
4
  export * from './utils';
5
5
  export * from './composables';
6
6
 
7
- /** 插件配置选项 */
8
- export interface PluginOptions {
9
- /** 是否启用启动参数日志上报,默认 true */
10
- enableLaunchLog?: boolean;
11
- }
12
-
13
- const install = (app: App, ...options: any[]) => {
14
- const [{ enableLaunchLog = true } = {}] = options;
15
-
7
+ const install = (app: App) => {
16
8
  app.mixin({
17
9
  onLaunch(params: any) {
18
- if (enableLaunchLog) {
19
- sendLaunchAppParamsLog(params);
20
- }
10
+ sendLaunchAppParamsLog(params);
21
11
  },
22
12
  });
23
13
  };