@vuepress/utils 2.0.0-beta.23 → 2.0.0-beta.28

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/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import * as debug from 'debug';
2
1
  import * as chalk from 'chalk';
2
+ import * as debug from 'debug';
3
3
  import * as globby from 'globby';
4
- import * as ora from 'ora';
5
4
  import hash = require('hash-sum');
5
+ import * as ora from 'ora';
6
6
  export { debug, chalk, globby, hash, ora };
7
7
  export * as fs from 'fs-extra';
8
8
  export * as path from 'upath';
package/lib/index.js CHANGED
@@ -11,16 +11,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports.path = exports.fs = exports.ora = exports.hash = exports.globby = exports.chalk = exports.debug = void 0;
14
- const debug = require("debug");
15
- exports.debug = debug;
16
14
  const chalk = require("chalk");
17
15
  exports.chalk = chalk;
16
+ const debug = require("debug");
17
+ exports.debug = debug;
18
18
  const globby = require("globby");
19
19
  exports.globby = globby;
20
- const ora = require("ora");
21
- exports.ora = ora;
22
20
  const hash = require("hash-sum");
23
21
  exports.hash = hash;
22
+ const ora = require("ora");
23
+ exports.ora = ora;
24
24
  exports.fs = require("fs-extra");
25
25
  exports.path = require("upath");
26
26
  __exportStar(require("./hasExportDefault"), exports);
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.23",
3
+ "version": "2.0.0-beta.28",
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.23",
32
+ "@vuepress/shared": "2.0.0-beta.28",
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": "a8fde04c51473d9b7aef1a49550f9c8f3483b645"
44
+ "gitHead": "71c34816a79263c7dcba3ff0c103e264abdbf0d2"
45
45
  }