Skip to content

Commit 4794c85

Browse files
committed
Fix failing test, rename types file
1 parent 0165a5f commit 4794c85

39 files changed

+44
-44
lines changed

scripts/copy-umd-file.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if (to === undefined) {
1414

1515
const umdAbsolutePath = resolve(
1616
dirname(fileURLToPath(import.meta.url)),
17-
join("..", pkg.jsdelivr),
17+
join("..", pkg.main),
1818
);
1919

20-
await copyFile(umdAbsolutePath, join(to, basename(pkg.jsdelivr)));
20+
await copyFile(umdAbsolutePath, join(to, basename(pkg.main)));

src/batch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type {
44
BatchesQuery,
55
BatchesResults,
66
BatchesResultsObject,
7-
} from "./types/types.js";
7+
} from "./types.js";
88
import { HttpRequests, toQueryParams } from "./http-requests.js";
99

1010
class Batch {

src/enqueued-task.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { EnqueuedTaskObject } from "./types/types.js";
1+
import type { EnqueuedTaskObject } from "./types.js";
22

33
class EnqueuedTask {
44
taskUid: EnqueuedTaskObject["taskUid"];

src/errors/meilisearch-api-error.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { MeiliSearchErrorResponse } from "../types/types.js";
1+
import type { MeiliSearchErrorResponse } from "../types.js";
22
import { MeiliSearchError } from "./meilisearch-error.js";
33

44
export class MeiliSearchApiError extends MeiliSearchError {

src/http-requests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Config, EnqueuedTaskObject } from "./types/types.js";
1+
import type { Config, EnqueuedTaskObject } from "./types.js";
22
import { PACKAGE_VERSION } from "./package-version.js";
33

44
import {

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export * from "./types/types.js";
1+
export * from "./types.js";
22
export * from "./errors/index.js";
33
export * from "./indexes.js";
44
export * from "./enqueued-task.js";

src/indexes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ import type {
5555
LocalizedAttributes,
5656
UpdateDocumentsByFunctionOptions,
5757
PrefixSearch,
58-
} from "./types/types.js";
58+
} from "./types.js";
5959
import { removeUndefinedFromObject } from "./utils.js";
6060
import { HttpRequests } from "./http-requests.js";
6161
import { Task, TaskClient } from "./task.js";

src/meilisearch.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ import type {
3232
BatchesResults,
3333
BatchesQuery,
3434
MultiSearchResponseOrSearchResponse,
35-
} from "./types/types.js";
36-
import { ErrorStatusCode } from "./types/types.js";
35+
} from "./types.js";
36+
import { ErrorStatusCode } from "./types.js";
3737
import { HttpRequests } from "./http-requests.js";
3838
import { TaskClient, type Task } from "./task.js";
3939
import { EnqueuedTask } from "./enqueued-task.js";

src/task.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import type {
88
CancelTasksQuery,
99
TasksResultsObject,
1010
DeleteTasksQuery,
11-
} from "./types/types.js";
12-
import { TaskStatus } from "./types/types.js";
11+
} from "./types.js";
12+
import { TaskStatus } from "./types.js";
1313
import { HttpRequests, toQueryParams } from "./http-requests.js";
1414
import { sleep } from "./utils.js";
1515
import { EnqueuedTask } from "./enqueued-task.js";

src/token.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { webcrypto } from "node:crypto";
22
import type {
33
TenantTokenGeneratorOptions,
44
TokenSearchRules,
5-
} from "./types/types.js";
5+
} from "./types.js";
66

77
function getOptionsWithDefaults(options: TenantTokenGeneratorOptions) {
88
const {

0 commit comments

Comments
 (0)