typescript 4.6.0-dev.20220112 → 4.6.0-dev.20220113

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/lib/tsc.js CHANGED
@@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
69
69
  var ts;
70
70
  (function (ts) {
71
71
  ts.versionMajorMinor = "4.6";
72
- ts.version = ts.versionMajorMinor + ".0-dev.20220112";
72
+ ts.version = ts.versionMajorMinor + ".0-dev.20220113";
73
73
  var NativeCollections;
74
74
  (function (NativeCollections) {
75
75
  function tryGetNativeMap() {
@@ -75918,6 +75918,7 @@ var ts;
75918
75918
  case 176:
75919
75919
  case 133:
75920
75920
  return factory.createIdentifier("Boolean");
75921
+ case 197:
75921
75922
  case 149:
75922
75923
  return factory.createIdentifier("String");
75923
75924
  case 147:
@@ -99106,7 +99107,7 @@ var ts;
99106
99107
  function getPathRelativeToRootDirs(path, rootDirs, getCanonicalFileName) {
99107
99108
  return ts.firstDefined(rootDirs, function (rootDir) {
99108
99109
  var relativePath = getRelativePathIfInDirectory(path, rootDir, getCanonicalFileName);
99109
- return isPathRelativeToParent(relativePath) ? undefined : relativePath;
99110
+ return relativePath !== undefined && isPathRelativeToParent(relativePath) ? undefined : relativePath;
99110
99111
  });
99111
99112
  }
99112
99113
  function removeExtensionAndIndexPostFix(fileName, ending, options) {
package/lib/tsserver.js CHANGED
@@ -100,7 +100,7 @@ var ts;
100
100
  // The following is baselined as a literal template type without intervention
101
101
  /** The version of the TypeScript compiler release */
102
102
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
103
- ts.version = ts.versionMajorMinor + ".0-dev.20220112";
103
+ ts.version = ts.versionMajorMinor + ".0-dev.20220113";
104
104
  /* @internal */
105
105
  var Comparison;
106
106
  (function (Comparison) {
@@ -90599,6 +90599,7 @@ var ts;
90599
90599
  case 176 /* TypePredicate */:
90600
90600
  case 133 /* BooleanKeyword */:
90601
90601
  return factory.createIdentifier("Boolean");
90602
+ case 197 /* TemplateLiteralType */:
90602
90603
  case 149 /* StringKeyword */:
90603
90604
  return factory.createIdentifier("String");
90604
90605
  case 147 /* ObjectKeyword */:
@@ -119946,8 +119947,8 @@ var ts;
119946
119947
  }
119947
119948
  function getPathRelativeToRootDirs(path, rootDirs, getCanonicalFileName) {
119948
119949
  return ts.firstDefined(rootDirs, function (rootDir) {
119949
- var relativePath = getRelativePathIfInDirectory(path, rootDir, getCanonicalFileName); // TODO: GH#18217
119950
- return isPathRelativeToParent(relativePath) ? undefined : relativePath;
119950
+ var relativePath = getRelativePathIfInDirectory(path, rootDir, getCanonicalFileName);
119951
+ return relativePath !== undefined && isPathRelativeToParent(relativePath) ? undefined : relativePath;
119951
119952
  });
119952
119953
  }
119953
119954
  function removeExtensionAndIndexPostFix(fileName, ending, options) {
@@ -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 = ts.versionMajorMinor + ".0-dev.20220112";
297
+ ts.version = ts.versionMajorMinor + ".0-dev.20220113";
298
298
  /* @internal */
299
299
  var Comparison;
300
300
  (function (Comparison) {
@@ -90793,6 +90793,7 @@ var ts;
90793
90793
  case 176 /* TypePredicate */:
90794
90794
  case 133 /* BooleanKeyword */:
90795
90795
  return factory.createIdentifier("Boolean");
90796
+ case 197 /* TemplateLiteralType */:
90796
90797
  case 149 /* StringKeyword */:
90797
90798
  return factory.createIdentifier("String");
90798
90799
  case 147 /* ObjectKeyword */:
@@ -120140,8 +120141,8 @@ var ts;
120140
120141
  }
120141
120142
  function getPathRelativeToRootDirs(path, rootDirs, getCanonicalFileName) {
120142
120143
  return ts.firstDefined(rootDirs, function (rootDir) {
120143
- var relativePath = getRelativePathIfInDirectory(path, rootDir, getCanonicalFileName); // TODO: GH#18217
120144
- return isPathRelativeToParent(relativePath) ? undefined : relativePath;
120144
+ var relativePath = getRelativePathIfInDirectory(path, rootDir, getCanonicalFileName);
120145
+ return relativePath !== undefined && isPathRelativeToParent(relativePath) ? undefined : relativePath;
120145
120146
  });
120146
120147
  }
120147
120148
  function removeExtensionAndIndexPostFix(fileName, ending, options) {
package/lib/typescript.js CHANGED
@@ -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 = ts.versionMajorMinor + ".0-dev.20220112";
297
+ ts.version = ts.versionMajorMinor + ".0-dev.20220113";
298
298
  /* @internal */
299
299
  var Comparison;
300
300
  (function (Comparison) {
@@ -90793,6 +90793,7 @@ var ts;
90793
90793
  case 176 /* TypePredicate */:
90794
90794
  case 133 /* BooleanKeyword */:
90795
90795
  return factory.createIdentifier("Boolean");
90796
+ case 197 /* TemplateLiteralType */:
90796
90797
  case 149 /* StringKeyword */:
90797
90798
  return factory.createIdentifier("String");
90798
90799
  case 147 /* ObjectKeyword */:
@@ -120140,8 +120141,8 @@ var ts;
120140
120141
  }
120141
120142
  function getPathRelativeToRootDirs(path, rootDirs, getCanonicalFileName) {
120142
120143
  return ts.firstDefined(rootDirs, function (rootDir) {
120143
- var relativePath = getRelativePathIfInDirectory(path, rootDir, getCanonicalFileName); // TODO: GH#18217
120144
- return isPathRelativeToParent(relativePath) ? undefined : relativePath;
120144
+ var relativePath = getRelativePathIfInDirectory(path, rootDir, getCanonicalFileName);
120145
+ return relativePath !== undefined && isPathRelativeToParent(relativePath) ? undefined : relativePath;
120145
120146
  });
120146
120147
  }
120147
120148
  function removeExtensionAndIndexPostFix(fileName, ending, options) {
@@ -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 = ts.versionMajorMinor + ".0-dev.20220112";
297
+ ts.version = ts.versionMajorMinor + ".0-dev.20220113";
298
298
  /* @internal */
299
299
  var Comparison;
300
300
  (function (Comparison) {
@@ -90793,6 +90793,7 @@ var ts;
90793
90793
  case 176 /* TypePredicate */:
90794
90794
  case 133 /* BooleanKeyword */:
90795
90795
  return factory.createIdentifier("Boolean");
90796
+ case 197 /* TemplateLiteralType */:
90796
90797
  case 149 /* StringKeyword */:
90797
90798
  return factory.createIdentifier("String");
90798
90799
  case 147 /* ObjectKeyword */:
@@ -120140,8 +120141,8 @@ var ts;
120140
120141
  }
120141
120142
  function getPathRelativeToRootDirs(path, rootDirs, getCanonicalFileName) {
120142
120143
  return ts.firstDefined(rootDirs, function (rootDir) {
120143
- var relativePath = getRelativePathIfInDirectory(path, rootDir, getCanonicalFileName); // TODO: GH#18217
120144
- return isPathRelativeToParent(relativePath) ? undefined : relativePath;
120144
+ var relativePath = getRelativePathIfInDirectory(path, rootDir, getCanonicalFileName);
120145
+ return relativePath !== undefined && isPathRelativeToParent(relativePath) ? undefined : relativePath;
120145
120146
  });
120146
120147
  }
120147
120148
  function removeExtensionAndIndexPostFix(fileName, ending, options) {
@@ -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.20220112";
92
+ ts.version = ts.versionMajorMinor + ".0-dev.20220113";
93
93
  /* @internal */
94
94
  var Comparison;
95
95
  (function (Comparison) {
@@ -90588,6 +90588,7 @@ var ts;
90588
90588
  case 176 /* TypePredicate */:
90589
90589
  case 133 /* BooleanKeyword */:
90590
90590
  return factory.createIdentifier("Boolean");
90591
+ case 197 /* TemplateLiteralType */:
90591
90592
  case 149 /* StringKeyword */:
90592
90593
  return factory.createIdentifier("String");
90593
90594
  case 147 /* ObjectKeyword */:
@@ -119935,8 +119936,8 @@ var ts;
119935
119936
  }
119936
119937
  function getPathRelativeToRootDirs(path, rootDirs, getCanonicalFileName) {
119937
119938
  return ts.firstDefined(rootDirs, function (rootDir) {
119938
- var relativePath = getRelativePathIfInDirectory(path, rootDir, getCanonicalFileName); // TODO: GH#18217
119939
- return isPathRelativeToParent(relativePath) ? undefined : relativePath;
119939
+ var relativePath = getRelativePathIfInDirectory(path, rootDir, getCanonicalFileName);
119940
+ return relativePath !== undefined && isPathRelativeToParent(relativePath) ? undefined : relativePath;
119940
119941
  });
119941
119942
  }
119942
119943
  function removeExtensionAndIndexPostFix(fileName, ending, options) {
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.6.0-dev.20220112",
5
+ "version": "4.6.0-dev.20220113",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [