@qqi/log 1.1.3 → 1.1.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/cjs/util.js CHANGED
@@ -13,7 +13,7 @@ var aTypeOfJs = require('a-type-of-js');
13
13
  * @copyright 2026 ©️ MrMudBean
14
14
  * @since 2026-01-28 03:11
15
15
  * @version 1.0.1
16
- * @lastModified 2026-01-28 04:34
16
+ * @lastModified 2026-02-03 15:07
17
17
  */
18
18
  var typeList = [
19
19
  false,
@@ -45,9 +45,9 @@ function parseOption(options) {
45
45
  return result;
46
46
  }
47
47
  if (aTypeOfJs.isString(options.name)) {
48
- result.name = options.name.trim().replace(/\s+/g, '_');
49
- return result;
48
+ options.name = options.name.trim().replace(/\s+/g, '_');
50
49
  }
50
+ options.fold = Boolean(options.fold);
51
51
  return options;
52
52
  }
53
53
  /**
@@ -431,6 +431,7 @@ declare const _default: ({
431
431
  HTMLFormElement: false;
432
432
  HTMLFrameElement: false;
433
433
  HTMLFrameSetElement: false;
434
+ HTMLGeolocationElement: false;
434
435
  HTMLHeadElement: false;
435
436
  HTMLHeadingElement: false;
436
437
  HTMLHRElement: false;
@@ -1179,6 +1180,7 @@ declare const _default: ({
1179
1180
  XRView: false;
1180
1181
  XRViewerPose: false;
1181
1182
  XRViewport: false;
1183
+ XRVisibilityMaskChangeEvent: false;
1182
1184
  XRWebGLBinding: false;
1183
1185
  XRWebGLDepthInformation: false;
1184
1186
  XRWebGLLayer: false;
@@ -11,7 +11,7 @@ declare namespace _default {
11
11
  exports: string;
12
12
  dir: string;
13
13
  }[];
14
- let external: (id: string) => boolean;
14
+ let external: (id: string, parentId: string | undefined, isHandle: boolean) => boolean;
15
15
  let plugins: import("rollup").Plugin<any>[];
16
16
  }
17
17
  export default _default;
@@ -8,7 +8,7 @@ declare namespace _default {
8
8
  let exports: string;
9
9
  let dir: string;
10
10
  }
11
- let external: (id: string) => boolean;
11
+ let external: (id: string, parentId: string | undefined, isHandle: boolean) => boolean;
12
12
  let plugins: import("rollup").Plugin<any>[];
13
13
  }
14
14
  export default _default;
package/es/src/util.d.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  * @copyright 2026 ©️ MrMudBean
9
9
  * @since 2026-01-28 03:11
10
10
  * @version 1.0.1
11
- * @lastModified 2026-01-28 04:34
11
+ * @lastModified 2026-02-03 15:07
12
12
  */
13
13
  import { DevLogType } from '@qqi/log';
14
14
  import { DogOptions } from './type';
package/es/util.js CHANGED
@@ -11,7 +11,7 @@ import { isUndefined, isBoolean, isString } from 'a-type-of-js';
11
11
  * @copyright 2026 ©️ MrMudBean
12
12
  * @since 2026-01-28 03:11
13
13
  * @version 1.0.1
14
- * @lastModified 2026-01-28 04:34
14
+ * @lastModified 2026-02-03 15:07
15
15
  */
16
16
  var typeList = [
17
17
  false,
@@ -43,9 +43,9 @@ function parseOption(options) {
43
43
  return result;
44
44
  }
45
45
  if (isString(options.name)) {
46
- result.name = options.name.trim().replace(/\s+/g, '_');
47
- return result;
46
+ options.name = options.name.trim().replace(/\s+/g, '_');
48
47
  }
48
+ options.fold = Boolean(options.fold);
49
49
  return options;
50
50
  }
51
51
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "type": "module",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "name": "@qqi/log",
5
5
  "main": "cjs/index.js",
6
6
  "module": "es/index.js",