typescript 4.8.0-dev.20220518 → 4.8.0-dev.20220521

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.
@@ -89,7 +89,7 @@ var ts;
89
89
  // The following is baselined as a literal template type without intervention
90
90
  /** The version of the TypeScript compiler release */
91
91
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
92
- ts.version = ts.versionMajorMinor + ".0-dev.20220518";
92
+ ts.version = ts.versionMajorMinor + ".0-dev.20220521";
93
93
  /* @internal */
94
94
  var Comparison;
95
95
  (function (Comparison) {
@@ -2227,6 +2227,7 @@ var ts;
2227
2227
  startsWith(candidate, prefix) &&
2228
2228
  endsWith(candidate, suffix);
2229
2229
  }
2230
+ ts.isPatternMatch = isPatternMatch;
2230
2231
  function and(f, g) {
2231
2232
  return function (arg) { return f(arg) && g(arg); };
2232
2233
  }
@@ -82605,7 +82606,7 @@ var ts;
82605
82606
  var childSymbol = getSymbolAtLocation(childNode);
82606
82607
  if (childSymbol && childSymbol === testedSymbol) {
82607
82608
  // If the test was a simple identifier, the above check is sufficient
82608
- if (ts.isIdentifier(expr)) {
82609
+ if (ts.isIdentifier(expr) || ts.isIdentifier(testedNode) && ts.isBinaryExpression(testedNode.parent)) {
82609
82610
  return true;
82610
82611
  }
82611
82612
  // Otherwise we need to ensure the symbol is called on the same target
@@ -115819,7 +115820,7 @@ var ts;
115819
115820
  };
115820
115821
  }
115821
115822
  // directoryExists
115822
- if (originalDirectoryExists && originalCreateDirectory) {
115823
+ if (originalDirectoryExists) {
115823
115824
  host.directoryExists = function (directory) {
115824
115825
  var key = toPath(directory);
115825
115826
  var value = directoryExistsCache.get(key);
@@ -115829,11 +115830,13 @@ var ts;
115829
115830
  directoryExistsCache.set(key, !!newValue);
115830
115831
  return newValue;
115831
115832
  };
115832
- host.createDirectory = function (directory) {
115833
- var key = toPath(directory);
115834
- directoryExistsCache.delete(key);
115835
- originalCreateDirectory.call(host, directory);
115836
- };
115833
+ if (originalCreateDirectory) {
115834
+ host.createDirectory = function (directory) {
115835
+ var key = toPath(directory);
115836
+ directoryExistsCache.delete(key);
115837
+ originalCreateDirectory.call(host, directory);
115838
+ };
115839
+ }
115837
115840
  }
115838
115841
  return {
115839
115842
  originalReadFile: originalReadFile,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "typescript",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "4.8.0-dev.20220518",
5
+ "version": "4.8.0-dev.20220521",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [