typescript 5.2.0-dev.20230716 → 5.2.0-dev.20230718

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
@@ -18,7 +18,7 @@ and limitations under the License.
18
18
 
19
19
  // src/compiler/corePublic.ts
20
20
  var versionMajorMinor = "5.2";
21
- var version = `${versionMajorMinor}.0-dev.20230716`;
21
+ var version = `${versionMajorMinor}.0-dev.20230718`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -23887,7 +23887,7 @@ var addDisposableResourceHelper = {
23887
23887
  text: `
23888
23888
  var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {
23889
23889
  if (value !== null && value !== void 0) {
23890
- if (typeof value !== "object") throw new TypeError("Object expected.");
23890
+ if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
23891
23891
  var dispose;
23892
23892
  if (async) {
23893
23893
  if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
package/lib/tsserver.js CHANGED
@@ -2327,7 +2327,7 @@ module.exports = __toCommonJS(server_exports);
2327
2327
 
2328
2328
  // src/compiler/corePublic.ts
2329
2329
  var versionMajorMinor = "5.2";
2330
- var version = `${versionMajorMinor}.0-dev.20230716`;
2330
+ var version = `${versionMajorMinor}.0-dev.20230718`;
2331
2331
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2332
2332
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2333
2333
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -28151,7 +28151,7 @@ var addDisposableResourceHelper = {
28151
28151
  text: `
28152
28152
  var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {
28153
28153
  if (value !== null && value !== void 0) {
28154
- if (typeof value !== "object") throw new TypeError("Object expected.");
28154
+ if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
28155
28155
  var dispose;
28156
28156
  if (async) {
28157
28157
  if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
@@ -138062,7 +138062,7 @@ function getInliningInfo(file, startPosition, tryWithReferenceToken, program) {
138062
138062
  if (!isIdentifier(token)) {
138063
138063
  return void 0;
138064
138064
  }
138065
- if (isInitializedVariable(parent2) && isVariableDeclarationInVariableStatement(parent2)) {
138065
+ if (isInitializedVariable(parent2) && isVariableDeclarationInVariableStatement(parent2) && isIdentifier(parent2.name)) {
138066
138066
  if (((_a = checker.getMergedSymbol(parent2.symbol).declarations) == null ? void 0 : _a.length) !== 1) {
138067
138067
  return { error: getLocaleSpecificMessage(Diagnostics.Variables_with_multiple_declarations_cannot_be_inlined) };
138068
138068
  }
@@ -35,7 +35,7 @@ var ts = (() => {
35
35
  "src/compiler/corePublic.ts"() {
36
36
  "use strict";
37
37
  versionMajorMinor = "5.2";
38
- version = `${versionMajorMinor}.0-dev.20230716`;
38
+ version = `${versionMajorMinor}.0-dev.20230718`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -26029,7 +26029,7 @@ ${lanes.join("\n")}
26029
26029
  text: `
26030
26030
  var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {
26031
26031
  if (value !== null && value !== void 0) {
26032
- if (typeof value !== "object") throw new TypeError("Object expected.");
26032
+ if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
26033
26033
  var dispose;
26034
26034
  if (async) {
26035
26035
  if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
@@ -136400,7 +136400,7 @@ ${lanes.join("\n")}
136400
136400
  if (!isIdentifier(token)) {
136401
136401
  return void 0;
136402
136402
  }
136403
- if (isInitializedVariable(parent2) && isVariableDeclarationInVariableStatement(parent2)) {
136403
+ if (isInitializedVariable(parent2) && isVariableDeclarationInVariableStatement(parent2) && isIdentifier(parent2.name)) {
136404
136404
  if (((_a = checker.getMergedSymbol(parent2.symbol).declarations) == null ? void 0 : _a.length) !== 1) {
136405
136405
  return { error: getLocaleSpecificMessage(Diagnostics.Variables_with_multiple_declarations_cannot_be_inlined) };
136406
136406
  }
package/lib/typescript.js CHANGED
@@ -35,7 +35,7 @@ var ts = (() => {
35
35
  "src/compiler/corePublic.ts"() {
36
36
  "use strict";
37
37
  versionMajorMinor = "5.2";
38
- version = `${versionMajorMinor}.0-dev.20230716`;
38
+ version = `${versionMajorMinor}.0-dev.20230718`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -26029,7 +26029,7 @@ ${lanes.join("\n")}
26029
26029
  text: `
26030
26030
  var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {
26031
26031
  if (value !== null && value !== void 0) {
26032
- if (typeof value !== "object") throw new TypeError("Object expected.");
26032
+ if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
26033
26033
  var dispose;
26034
26034
  if (async) {
26035
26035
  if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
@@ -136415,7 +136415,7 @@ ${lanes.join("\n")}
136415
136415
  if (!isIdentifier(token)) {
136416
136416
  return void 0;
136417
136417
  }
136418
- if (isInitializedVariable(parent2) && isVariableDeclarationInVariableStatement(parent2)) {
136418
+ if (isInitializedVariable(parent2) && isVariableDeclarationInVariableStatement(parent2) && isIdentifier(parent2.name)) {
136419
136419
  if (((_a = checker.getMergedSymbol(parent2.symbol).declarations) == null ? void 0 : _a.length) !== 1) {
136420
136420
  return { error: getLocaleSpecificMessage(Diagnostics.Variables_with_multiple_declarations_cannot_be_inlined) };
136421
136421
  }
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
54
54
 
55
55
  // src/compiler/corePublic.ts
56
56
  var versionMajorMinor = "5.2";
57
- var version = `${versionMajorMinor}.0-dev.20230716`;
57
+ var version = `${versionMajorMinor}.0-dev.20230718`;
58
58
 
59
59
  // src/compiler/core.ts
60
60
  var emptyArray = [];
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": "5.2.0-dev.20230716",
5
+ "version": "5.2.0-dev.20230718",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -113,5 +113,5 @@
113
113
  "node": "20.1.0",
114
114
  "npm": "8.19.4"
115
115
  },
116
- "gitHead": "94f03cf0c6eb5cb3a391e817db9c9a7bb9f1de6c"
116
+ "gitHead": "4879087bef68e24ec2f7c98d83d70a88a5cc18c4"
117
117
  }