prettier 1.13.6 → 1.13.7

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/bin-prettier.js CHANGED
@@ -14,7 +14,7 @@ var thirdParty__default = thirdParty['default'];
14
14
  var readline = _interopDefault(require('readline'));
15
15
 
16
16
  var name = "prettier";
17
- var version$1 = "1.13.6";
17
+ var version$1 = "1.13.7";
18
18
  var description = "Prettier is an opinionated code formatter";
19
19
  var bin = {
20
20
  "prettier": "./bin/prettier.js"
@@ -6964,7 +6964,7 @@ function resolveParser$1(opts, parsers) {
6964
6964
 
6965
6965
  try {
6966
6966
  return {
6967
- parse: eval("require")(path.resolve(process.cwd(), opts.parser)),
6967
+ parse: require(path.resolve(process.cwd(), opts.parser)),
6968
6968
  astFormat: "estree",
6969
6969
  locStart,
6970
6970
  locEnd
@@ -26720,6 +26720,11 @@ var languageVue = {
26720
26720
  printers: printers$6
26721
26721
  };
26722
26722
 
26723
+ // plugin will look for `eval("require")()` and transform to `require()` in the bundle,
26724
+ // and rewrite the paths to require from the top-level.
26725
+ // We need to list the parsers and getters so we can load them only when necessary.
26726
+
26727
+
26723
26728
  var internalPlugins = [// JS
26724
26729
  languageJs, {
26725
26730
  parsers: {
@@ -26879,7 +26884,7 @@ function loadPlugins(plugins, pluginSearchDirs) {
26879
26884
  var externalPlugins = lodash_uniqby(externalManualLoadPluginInfos.concat(externalAutoLoadPluginInfos), "requirePath").map(function (externalPluginInfo) {
26880
26885
  return Object.assign({
26881
26886
  name: externalPluginInfo.name
26882
- }, eval("require")(externalPluginInfo.requirePath));
26887
+ }, require(externalPluginInfo.requirePath));
26883
26888
  });
26884
26889
  return internalPlugins.concat(externalPlugins);
26885
26890
  }
package/index.js CHANGED
@@ -12,7 +12,7 @@ var thirdParty = require('./third-party');
12
12
  var thirdParty__default = thirdParty['default'];
13
13
 
14
14
  var name = "prettier";
15
- var version$1 = "1.13.6";
15
+ var version$1 = "1.13.7";
16
16
  var description = "Prettier is an opinionated code formatter";
17
17
  var bin = {
18
18
  "prettier": "./bin/prettier.js"
@@ -6962,7 +6962,7 @@ function resolveParser$1(opts, parsers) {
6962
6962
 
6963
6963
  try {
6964
6964
  return {
6965
- parse: eval("require")(path.resolve(process.cwd(), opts.parser)),
6965
+ parse: require(path.resolve(process.cwd(), opts.parser)),
6966
6966
  astFormat: "estree",
6967
6967
  locStart,
6968
6968
  locEnd
@@ -26718,6 +26718,11 @@ var languageVue = {
26718
26718
  printers: printers$6
26719
26719
  };
26720
26720
 
26721
+ // plugin will look for `eval("require")()` and transform to `require()` in the bundle,
26722
+ // and rewrite the paths to require from the top-level.
26723
+ // We need to list the parsers and getters so we can load them only when necessary.
26724
+
26725
+
26721
26726
  var internalPlugins = [// JS
26722
26727
  languageJs, {
26723
26728
  parsers: {
@@ -26877,7 +26882,7 @@ function loadPlugins(plugins, pluginSearchDirs) {
26877
26882
  var externalPlugins = lodash_uniqby(externalManualLoadPluginInfos.concat(externalAutoLoadPluginInfos), "requirePath").map(function (externalPluginInfo) {
26878
26883
  return Object.assign({
26879
26884
  name: externalPluginInfo.name
26880
- }, eval("require")(externalPluginInfo.requirePath));
26885
+ }, require(externalPluginInfo.requirePath));
26881
26886
  });
26882
26887
  return internalPlugins.concat(externalPlugins);
26883
26888
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prettier",
3
- "version": "1.13.6",
3
+ "version": "1.13.7",
4
4
  "description": "Prettier is an opinionated code formatter",
5
5
  "bin": "./bin-prettier.js",
6
6
  "repository": "prettier/prettier",
package/standalone.js CHANGED
@@ -5,7 +5,7 @@
5
5
  }(this, (function () { 'use strict';
6
6
 
7
7
  var name = "prettier";
8
- var version$1 = "1.13.6";
8
+ var version$1 = "1.13.7";
9
9
  var description = "Prettier is an opinionated code formatter";
10
10
  var bin = {
11
11
  "prettier": "./bin/prettier.js"
@@ -7274,7 +7274,7 @@ function resolveParser$1(opts, parsers) {
7274
7274
 
7275
7275
  try {
7276
7276
  return {
7277
- parse: eval("require")(path$4.resolve(process.cwd(), opts.parser)),
7277
+ parse: require(path$4.resolve(process.cwd(), opts.parser)),
7278
7278
  astFormat: "estree",
7279
7279
  locStart: locStart,
7280
7280
  locEnd: locEnd