Skip to content

Commit 727dcfc

Browse files
committed
💥 Rename or remove internal modules
Some modules should not be exposed so renamed them with prefix `_` or removed.
1 parent 1ce1744 commit 727dcfc

File tree

13 files changed

+11
-14
lines changed

13 files changed

+11
-14
lines changed
File renamed without changes.

argument/flags.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { parsePattern } from "./util.ts";
1+
import { parsePattern } from "./_util.ts";
22

33
export type Flags = Record<string, string | string[] | undefined>;
44

argument/opts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { parsePattern } from "./util.ts";
1+
import { parsePattern } from "./_util.ts";
22

33
export type Opts = Record<string, string | undefined>;
44

File renamed without changes.

autocmd/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
ListOptions,
77
RemoveOptions,
88
} from "./types.ts";
9-
import { buildDefineExpr, buildRemoveExpr } from "./utils.ts";
9+
import { buildDefineExpr, buildRemoveExpr } from "./_utils.ts";
1010

1111
/**
1212
* Define an autocmd

autocmd/group.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Denops } from "../mod.ts";
22
import { execute } from "../helper/execute.ts";
33
import { AutocmdEvent, DefineOptions, RemoveOptions } from "./types.ts";
4-
import { buildDefineExpr, buildRemoveExpr } from "./utils.ts";
4+
import { buildDefineExpr, buildRemoveExpr } from "./_utils.ts";
55

66
export type GroupDefineOptions = Omit<DefineOptions, "group">;
77
export type GroupRemoveOptions = Omit<RemoveOptions, "group">;

bufname/utils.ts renamed to bufname/_utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const bufnameUnusablePattern = /["<>\|\?\*]/g;
1010
* function like:
1111
*
1212
* ```typescript
13-
* import { encode } from "./utils.ts";
13+
* import { encode } from "./_utils.ts";
1414
*
1515
* const expr = "%Hello world%";
1616
* const encoded = encode(expr.replaceAll("%", "%25"));

bufname/utils_test.ts renamed to bufname/_utils_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { assertEquals } from "https://deno.land/std@0.211.0/assert/mod.ts";
2-
import { decode, encode } from "./utils.ts";
2+
import { decode, encode } from "./_utils.ts";
33

44
Deno.test("encode does nothing on alphabet characters", () => {
55
const src = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_";

bufname/bufname.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { bufnameUnusablePattern, decode, encode } from "./utils.ts";
1+
import { bufnameUnusablePattern, decode, encode } from "./_utils.ts";
22

33
export type BufnameParams = Record<string, string | string[] | undefined>;
44

File renamed without changes.

0 commit comments

Comments
 (0)