Skip to content
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

feat: create src folder and move all codebase inside #47

Merged
merged 1 commit into from
May 3, 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
2 changes: 1 addition & 1 deletion import_map.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"imports": {
"@pkg/": "./",
"@pkg/": "./src/",
"@deps": "./deps.ts",

"selenium-webdriver": "npm:selenium-webdriver",
Expand Down
4 changes: 1 addition & 3 deletions mod.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import driver from '@pkg/driver.ts'
import * as assert from 'assert'
import type { TDrowserBuilder } from '@pkg/types.ts'

export { assert, driver, TDrowserBuilder }
export { driver }
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 5 additions & 1 deletion types.ts → src/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { ThenableWebDriver } from '@pkg/deps.ts'
import { assert } from '@deps'
import type { ThenableWebDriver } from '@deps'

type AssertFunction = keyof typeof assert

Expand Down Expand Up @@ -53,3 +53,7 @@ export type TAssertFunction = (
export type TAssertError = {
name: string
}

export type TIsValidHttpUrlParams = {
url: string
}
4 changes: 1 addition & 3 deletions utils.ts → src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
type TIsValidHttpUrlParams = {
url: string
}
import { TIsValidHttpUrlParams } from '@pkg/types.ts'

const isValidHttpUrl = ({ url }: TIsValidHttpUrlParams): boolean => {
try {
Expand Down
Loading