@vuepress/utils 2.0.0-beta.25 → 2.0.0-beta.33

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.
@@ -5,7 +5,7 @@ const shared_1 = require("@vuepress/shared");
5
5
  /**
6
6
  * Check if a module is esm with `export default`
7
7
  */
8
- const hasExportDefault = (mod) => shared_1.isPlainObject(mod) &&
8
+ const hasExportDefault = (mod) => (0, shared_1.isPlainObject)(mod) &&
9
9
  !!mod.__esModule &&
10
10
  Object.prototype.hasOwnProperty.call(mod, 'default');
11
11
  exports.hasExportDefault = hasExportDefault;
package/lib/logger.js CHANGED
@@ -23,7 +23,7 @@ const error = (...args) => {
23
23
  };
24
24
  exports.error = error;
25
25
  const createError = (message) => {
26
- exports.error(message);
26
+ (0, exports.error)(message);
27
27
  return new Error(message);
28
28
  };
29
29
  exports.createError = createError;
package/lib/renderHead.js CHANGED
@@ -6,7 +6,7 @@ const renderHeadAttrs_1 = require("./renderHeadAttrs");
6
6
  * Render head config to string
7
7
  */
8
8
  const renderHead = ([tag, attrs, innerHTML = '',]) => {
9
- const openTag = `<${tag}${renderHeadAttrs_1.renderHeadAttrs(attrs)}>`;
9
+ const openTag = `<${tag}${(0, renderHeadAttrs_1.renderHeadAttrs)(attrs)}>`;
10
10
  if (tag === 'link' || tag === 'meta' || tag === 'base') {
11
11
  return openTag;
12
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/utils",
3
- "version": "2.0.0-beta.25",
3
+ "version": "2.0.0-beta.33",
4
4
  "description": "Utils package of VuePress",
5
5
  "keywords": [
6
6
  "vuepress",
@@ -27,11 +27,11 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@types/debug": "^4.1.7",
30
- "@types/fs-extra": "^9.0.12",
30
+ "@types/fs-extra": "^9.0.13",
31
31
  "@types/hash-sum": "^1.0.0",
32
- "@vuepress/shared": "2.0.0-beta.25",
32
+ "@vuepress/shared": "2.0.0-beta.33",
33
33
  "chalk": "^4.1.2",
34
- "debug": "^4.3.2",
34
+ "debug": "^4.3.3",
35
35
  "fs-extra": "^10.0.0",
36
36
  "globby": "^11.0.4",
37
37
  "hash-sum": "^2.0.0",
@@ -41,5 +41,5 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "76ce5e52b07de75cf1f40a57ef3b6a682e44fce7"
44
+ "gitHead": "0934a5d6685922e0dc6391622b00a3b89140492c"
45
45
  }