@vercel/static-build 1.1.7 → 1.2.0

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.
@@ -21,14 +21,12 @@ function _interopNamespace(e) {
21
21
  var d = Object.getOwnPropertyDescriptor(e, k);
22
22
  Object.defineProperty(n, k, d.get ? d : {
23
23
  enumerable: true,
24
- get: function () {
25
- return e[k];
26
- }
24
+ get: function () { return e[k]; }
27
25
  });
28
26
  }
29
27
  });
30
28
  }
31
- n['default'] = e;
29
+ n["default"] = e;
32
30
  return Object.freeze(n);
33
31
  }
34
32
 
@@ -851,7 +849,7 @@ class BrowserRuntime {
851
849
  return "\n";
852
850
  }
853
851
  getPathMatchesPattern(path, pattern) {
854
- return minimatch__default['default'](path, pattern);
852
+ return minimatch__default["default"](path, pattern);
855
853
  }
856
854
  }
857
855
  class BrowserRuntimePath {
@@ -997,7 +995,7 @@ class NodeRuntime {
997
995
  return os__namespace.EOL;
998
996
  }
999
997
  getPathMatchesPattern(path, pattern) {
1000
- return minimatch__default['default'](path, pattern);
998
+ return minimatch__default["default"](path, pattern);
1001
999
  }
1002
1000
  }
1003
1001
  class NodeRuntimePath {
@@ -1058,11 +1056,11 @@ class NodeRuntimeFileSystem {
1058
1056
  }
1059
1057
  mkdir(dirPath) {
1060
1058
  return __awaiter(this, void 0, void 0, function* () {
1061
- yield mkdirp__default['default'](dirPath);
1059
+ yield mkdirp__default["default"](dirPath);
1062
1060
  });
1063
1061
  }
1064
1062
  mkdirSync(dirPath) {
1065
- mkdirp__default['default'].sync(dirPath);
1063
+ mkdirp__default["default"].sync(dirPath);
1066
1064
  }
1067
1065
  move(srcPath, destPath) {
1068
1066
  return new Promise((resolve, reject) => {
@@ -1133,13 +1131,13 @@ class NodeRuntimeFileSystem {
1133
1131
  return path__namespace.resolve();
1134
1132
  }
1135
1133
  glob(patterns) {
1136
- return fastGlob__default['default'](patterns, {
1134
+ return fastGlob__default["default"](patterns, {
1137
1135
  cwd: this.getCurrentDirectory(),
1138
1136
  absolute: true,
1139
1137
  });
1140
1138
  }
1141
1139
  globSync(patterns) {
1142
- return fastGlob__default['default'].sync(patterns, {
1140
+ return fastGlob__default["default"].sync(patterns, {
1143
1141
  cwd: this.getCurrentDirectory(),
1144
1142
  absolute: true,
1145
1143
  });
@@ -2828,87 +2826,59 @@ function getCompilerOptionsFromTsConfig(filePath, options = {}) {
2828
2826
 
2829
2827
  Object.defineProperty(exports, 'DiagnosticCategory', {
2830
2828
  enumerable: true,
2831
- get: function () {
2832
- return ts.DiagnosticCategory;
2833
- }
2829
+ get: function () { return ts.DiagnosticCategory; }
2834
2830
  });
2835
2831
  Object.defineProperty(exports, 'EmitHint', {
2836
2832
  enumerable: true,
2837
- get: function () {
2838
- return ts.EmitHint;
2839
- }
2833
+ get: function () { return ts.EmitHint; }
2840
2834
  });
2841
2835
  Object.defineProperty(exports, 'LanguageVariant', {
2842
2836
  enumerable: true,
2843
- get: function () {
2844
- return ts.LanguageVariant;
2845
- }
2837
+ get: function () { return ts.LanguageVariant; }
2846
2838
  });
2847
2839
  Object.defineProperty(exports, 'ModuleKind', {
2848
2840
  enumerable: true,
2849
- get: function () {
2850
- return ts.ModuleKind;
2851
- }
2841
+ get: function () { return ts.ModuleKind; }
2852
2842
  });
2853
2843
  Object.defineProperty(exports, 'ModuleResolutionKind', {
2854
2844
  enumerable: true,
2855
- get: function () {
2856
- return ts.ModuleResolutionKind;
2857
- }
2845
+ get: function () { return ts.ModuleResolutionKind; }
2858
2846
  });
2859
2847
  Object.defineProperty(exports, 'NewLineKind', {
2860
2848
  enumerable: true,
2861
- get: function () {
2862
- return ts.NewLineKind;
2863
- }
2849
+ get: function () { return ts.NewLineKind; }
2864
2850
  });
2865
2851
  Object.defineProperty(exports, 'NodeFlags', {
2866
2852
  enumerable: true,
2867
- get: function () {
2868
- return ts.NodeFlags;
2869
- }
2853
+ get: function () { return ts.NodeFlags; }
2870
2854
  });
2871
2855
  Object.defineProperty(exports, 'ObjectFlags', {
2872
2856
  enumerable: true,
2873
- get: function () {
2874
- return ts.ObjectFlags;
2875
- }
2857
+ get: function () { return ts.ObjectFlags; }
2876
2858
  });
2877
2859
  Object.defineProperty(exports, 'ScriptKind', {
2878
2860
  enumerable: true,
2879
- get: function () {
2880
- return ts.ScriptKind;
2881
- }
2861
+ get: function () { return ts.ScriptKind; }
2882
2862
  });
2883
2863
  Object.defineProperty(exports, 'ScriptTarget', {
2884
2864
  enumerable: true,
2885
- get: function () {
2886
- return ts.ScriptTarget;
2887
- }
2865
+ get: function () { return ts.ScriptTarget; }
2888
2866
  });
2889
2867
  Object.defineProperty(exports, 'SymbolFlags', {
2890
2868
  enumerable: true,
2891
- get: function () {
2892
- return ts.SymbolFlags;
2893
- }
2869
+ get: function () { return ts.SymbolFlags; }
2894
2870
  });
2895
2871
  Object.defineProperty(exports, 'SyntaxKind', {
2896
2872
  enumerable: true,
2897
- get: function () {
2898
- return ts.SyntaxKind;
2899
- }
2873
+ get: function () { return ts.SyntaxKind; }
2900
2874
  });
2901
2875
  Object.defineProperty(exports, 'TypeFlags', {
2902
2876
  enumerable: true,
2903
- get: function () {
2904
- return ts.TypeFlags;
2905
- }
2877
+ get: function () { return ts.TypeFlags; }
2906
2878
  });
2907
2879
  Object.defineProperty(exports, 'TypeFormatFlags', {
2908
2880
  enumerable: true,
2909
- get: function () {
2910
- return ts.TypeFormatFlags;
2911
- }
2881
+ get: function () { return ts.TypeFormatFlags; }
2912
2882
  });
2913
2883
  exports.ts = ts__namespace;
2914
2884
  exports.ArrayUtils = ArrayUtils;
@@ -294,7 +294,7 @@ var ts;
294
294
  // The following is baselined as a literal template type without intervention
295
295
  /** The version of the TypeScript compiler release */
296
296
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
297
- ts.version = "4.4.2";
297
+ ts.version = "4.4.4";
298
298
  /* @internal */
299
299
  var Comparison;
300
300
  (function (Comparison) {
@@ -118221,6 +118221,10 @@ var ts;
118221
118221
  });
118222
118222
  parsedConfigs = undefined;
118223
118223
  }
118224
+ if (packageJsonMap) {
118225
+ ts.clearMap(packageJsonMap, ts.closeFileWatcher);
118226
+ packageJsonMap = undefined;
118227
+ }
118224
118228
  }
118225
118229
  function getCurrentBuilderProgram() {
118226
118230
  return builderProgram;
@@ -119313,11 +119317,11 @@ var ts;
119313
119317
  (_b = state.typeReferenceDirectiveResolutionCache) === null || _b === void 0 ? void 0 : _b.update(config.options);
119314
119318
  // Create program
119315
119319
  program = host.createProgram(config.fileNames, config.options, compilerHost, getOldProgram(state, projectPath, config), ts.getConfigFileParsingDiagnostics(config), config.projectReferences);
119316
- state.lastCachedPackageJsonLookups.set(projectPath, state.moduleResolutionCache && ts.map(state.moduleResolutionCache.getPackageJsonInfoCache().entries(), function (_a) {
119317
- var path = _a[0], data = _a[1];
119318
- return [state.host.realpath ? toPath(state, state.host.realpath(path)) : path, data];
119319
- }));
119320
119320
  if (state.watch) {
119321
+ state.lastCachedPackageJsonLookups.set(projectPath, state.moduleResolutionCache && ts.map(state.moduleResolutionCache.getPackageJsonInfoCache().entries(), function (_a) {
119322
+ var path = _a[0], data = _a[1];
119323
+ return [state.host.realpath && data ? toPath(state, state.host.realpath(path)) : path, data];
119324
+ }));
119321
119325
  state.builderPrograms.set(projectPath, program);
119322
119326
  }
119323
119327
  step++;
@@ -127284,13 +127288,16 @@ var ts;
127284
127288
  case 204 /* PropertyAccessExpression */:
127285
127289
  propertyAccessToConvert = parent;
127286
127290
  node = propertyAccessToConvert.expression;
127287
- if ((ts.isCallExpression(node) || ts.isFunctionLike(node)) &&
127288
- node.end === contextToken.pos &&
127289
- node.getChildCount(sourceFile) &&
127290
- ts.last(node.getChildren(sourceFile)).kind !== 21 /* CloseParenToken */) {
127291
+ var leftmostAccessExpression = ts.getLeftmostAccessExpression(propertyAccessToConvert);
127292
+ if (ts.nodeIsMissing(leftmostAccessExpression) ||
127293
+ ((ts.isCallExpression(node) || ts.isFunctionLike(node)) &&
127294
+ node.end === contextToken.pos &&
127295
+ node.getChildCount(sourceFile) &&
127296
+ ts.last(node.getChildren(sourceFile)).kind !== 21 /* CloseParenToken */)) {
127291
127297
  // This is likely dot from incorrectly parsed expression and user is starting to write spread
127292
127298
  // eg: Math.min(./**/)
127293
127299
  // const x = function (./**/) {}
127300
+ // ({./**/})
127294
127301
  return undefined;
127295
127302
  }
127296
127303
  break;