Skip to content

fix(deno-udd): Deal with Breaking Changes in @core/unknownutil #186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion browser/dom/edit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { press } from "./press.ts";
import { getLineCount } from "./node.ts";
import { range } from "../../range.ts";
import { textInput } from "./dom.ts";
import { isArray, isNumber, isString } from "@core/unknownutil";
import { isArray } from "@core/unknownutil/is/array";
import { isNumber } from "@core/unknownutil/is/number";
import { isString } from "@core/unknownutil/is/string";
import { delay } from "@std/async/delay";

export const undo = (count = 1): void => {
Expand Down
7 changes: 5 additions & 2 deletions browser/dom/node.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { isNumber, isString, isUndefined } from "@core/unknownutil";
import { ensure, isArray } from "@core/unknownutil";
import { isArray } from "@core/unknownutil/is/array";
import { isNumber } from "@core/unknownutil/is/number";
import { isString } from "@core/unknownutil/is/string";
import { ensure } from "@core/unknownutil/ensure";
import { isUndefined } from "@core/unknownutil/is/undefined";
import { getCachedLines } from "./getCachedLines.ts";
import { takeInternalLines } from "./takeInternalLines.ts";
import type { BaseLine, Line } from "@cosense/types/userscript";
Expand Down
11 changes: 5 additions & 6 deletions rest/parseHTTPError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ import type {
SessionError,
} from "@cosense/types/rest";
import type { Maybe } from "option-t/maybe";
import {
isArrayOf,
isLiteralOneOf,
isRecord,
isString,
} from "@core/unknownutil";
import { isArrayOf } from "@core/unknownutil/is/array-of";
import { isLiteralOneOf } from "@core/unknownutil/is/literal-one-of";
import { isRecord } from "@core/unknownutil/is/record";
import { isString } from "@core/unknownutil/is/string";

import type { HTTPError } from "./responseIntoResult.ts";

export interface RESTfullAPIErrorMap {
Expand Down
2 changes: 1 addition & 1 deletion text.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isString } from "@core/unknownutil";
import { isString } from "@core/unknownutil/is/string";

/** インデント数を数える */
export const getIndentCount = (text: string): number =>
Expand Down