@vencord-companion/ast-parser 1.1.0 → 1.1.1

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.
@@ -3,8 +3,8 @@ import { type Expression, type Identifier, type LeftHandSideExpression, type Mem
3
3
  import { type Logger } from "@vencord-companion/shared/Logger";
4
4
  import { type IPosition, Position } from "@vencord-companion/shared/Position";
5
5
  import { Range } from "@vencord-companion/shared/Range";
6
- import type { StringifiedModule } from "./StringifiedModule";
7
- import type { Functionish } from "./types";
6
+ import type { StringifiedModule } from "./StringifiedModule.js";
7
+ import type { Functionish } from "./types.js";
8
8
  export declare function setLogger(newLogger: Logger): void;
9
9
  export declare class AstParser {
10
10
  static withFormattedText(text: string): AstParser;
package/dist/AstParser.js CHANGED
@@ -11,7 +11,7 @@ import { Cache, CacheGetter } from "@vencord-companion/shared/decorators";
11
11
  import { NoopLogger } from "@vencord-companion/shared/Logger";
12
12
  import { Position } from "@vencord-companion/shared/Position";
13
13
  import { Range } from "@vencord-companion/shared/Range";
14
- import { CharCode, findParent, getTokenAtPosition, isAssignmentExpression, isEOL } from "./util";
14
+ import { CharCode, findParent, getTokenAtPosition, isAssignmentExpression, isEOL } from "./util.js";
15
15
  let logger = NoopLogger;
16
16
  export function setLogger(newLogger) {
17
17
  logger = newLogger;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./AstParser";
2
- export type * from "./types";
3
- export * from "./util";
1
+ export * from "./AstParser.js";
2
+ export type * from "./types.js";
3
+ export * from "./util.js";
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./AstParser";
2
- export * from "./util";
1
+ export * from "./AstParser.js";
2
+ export * from "./util.js";
3
3
  //# sourceMappingURL=index.js.map
package/dist/util.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { type AssignmentExpression, type AssignmentOperatorToken, type BinaryExpression, type DefaultKeyword, type Identifier, type ImportClause, type LiteralToken, type NamespaceImport, type Node, type ObjectLiteralElementLike, type ObjectLiteralExpression, type PlusToken, type PropertyAccessExpression, type SourceFile, SyntaxKind, type SyntaxList, type Token, type VariableDeclaration } from "typescript";
2
- import type { AnyFunction, AssertedType, CBAssertion, Functionish, Import, WithParent } from "./types";
2
+ import type { AnyFunction, AssertedType, CBAssertion, Functionish, Import, WithParent } from "./types.js";
3
3
  export declare const enum CharCode {
4
4
  /**
5
5
  * The `\n` character.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vencord-companion/ast-parser",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "keywords": [],
@@ -11,7 +11,7 @@
11
11
  "license": "LGPL-3.0-or-later",
12
12
  "dependencies": {
13
13
  "@sadan4/devtools-pretty-printer": "^1.0.4",
14
- "@vencord-companion/shared": "1.1.0"
14
+ "@vencord-companion/shared": "1.1.1"
15
15
  },
16
16
  "exports": {
17
17
  "./*": "./dist/*.js",
@@ -28,6 +28,6 @@
28
28
  "preversion": "mkdir .git || :",
29
29
  "bump": "npm version",
30
30
  "postversion": "rmdir .git",
31
- "build": "tsc -b"
31
+ "build": "tsc -b && tsc-alias -f"
32
32
  }
33
33
  }