@leyyo/type 1.3.7 → 1.3.8

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.
@@ -2,6 +2,7 @@ import { isEmpty, List, optCheck } from "@leyyo/common";
2
2
  import { _toElse, _toEmpty, _toRun } from "./util.js";
3
3
  import { toObjectValue } from "./to-object-value.js";
4
4
  import { InvalidMapError } from "../error/index.js";
5
+ import { isBareObject } from "../is/index.js";
5
6
  // noinspection JSUnusedGlobalSymbols
6
7
  /**
7
8
  * Convert any value to `map`
@@ -50,7 +51,7 @@ function _toMapValue(value, options) {
50
51
  return toMapValue(value[0], options);
51
52
  }
52
53
  }
53
- else if (this.lyy.is.bareObject(value)) {
54
+ else if (isBareObject(value)) {
54
55
  const map = new Map();
55
56
  const produced = toObjectValue(value, options);
56
57
  if (produced) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leyyo/type",
3
- "version": "1.3.7",
3
+ "version": "1.3.8",
4
4
  "description": "Leyyo type library",
5
5
  "keywords": [
6
6
  "type",