repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/services/headerDownloadableLinks.service.ts
packages/hoppscotch-selfhost-web/src/services/headerDownloadableLinks.service.ts
import { Service } from "dioc" import { computed, markRaw, Ref, ref } from "vue" import { installPWA, pwaDefferedPrompt } from "@hoppscotch/common/modules/pwa" import IconGlobe from "~icons/lucide/globe" import IconCLI from "~icons/lucide/square-terminal" import IconApple from "~icons/hopp/apple" import IconWindows fro...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/kernel/store.ts
packages/hoppscotch-selfhost-web/src/kernel/store.ts
import type { StorageOptions, StoreError, StoreEvents, StoreEventEmitter, } from "@hoppscotch/kernel" import * as E from "fp-ts/Either" import { getModule } from "." import { getKernelMode } from "@hoppscotch/kernel" const STORE_PATH = "hoppscotch-unified.store" // These are only defined functions if in deskt...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/kernel/io.ts
packages/hoppscotch-selfhost-web/src/kernel/io.ts
import type { SaveFileWithDialogOptions, OpenExternalLinkOptions, SaveFileResponse, OpenExternalLinkResponse, EventCallback, UnlistenFn, } from "@hoppscotch/kernel" import { getModule } from "." export const Io = (() => { const module = () => getModule("io") return { saveFileWithDialog: ( op...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/kernel/index.ts
packages/hoppscotch-selfhost-web/src/kernel/index.ts
import { KernelAPI } from "@hoppscotch/kernel" export { Io } from "./io" export { Relay } from "./relay" export { Store } from "./store" export const getModule = <K extends keyof KernelAPI>( name: K ): NonNullable<KernelAPI[K]> => { const kernel = window.__KERNEL__ if (!kernel?.[name]) throw new Error(`Kernel $...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/kernel/relay.ts
packages/hoppscotch-selfhost-web/src/kernel/relay.ts
import type { RelayRequest, RelayRequestEvents, RelayError, RelayResponse, RelayEventEmitter, } from "@hoppscotch/kernel" import * as E from "fp-ts/Either" import { getModule } from "." export const Relay = (() => { const module = () => getModule("relay") return { capabilities: () => module().capabi...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/lib/sync/mapper.ts
packages/hoppscotch-selfhost-web/src/lib/sync/mapper.ts
export const createMapper = < LocalIDType extends string | number, BackendIDType extends string | number, >() => { const backendIDByLocalIDMap = new Map< LocalIDType, BackendIDType | undefined >() const localIDByBackendIDMap = new Map< BackendIDType, LocalIDType | undefined >() return { ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/lib/sync/index.ts
packages/hoppscotch-selfhost-web/src/lib/sync/index.ts
import { Observable } from "rxjs" import DispatchingStore from "@hoppscotch/common/newstore/DispatchingStore" export type DispatchersOf<T extends DispatchingStore<any, any>> = T extends DispatchingStore<any, infer U> ? U extends Record<infer D, any> ? D : never : never export type StoreSyncDefin...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/auth/desktop/api.ts
packages/hoppscotch-selfhost-web/src/platform/auth/desktop/api.ts
import { runMutation } from "@helpers/backend/GQLClient" import axios from "axios" import * as E from "fp-ts/Either" import { z } from "zod" import { UpdateUserDisplayNameDocument, UpdateUserDisplayNameMutation, UpdateUserDisplayNameMutationVariables, } from "@app/api/generated/graphql" const expectedAllowedProv...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/auth/desktop/index.ts
packages/hoppscotch-selfhost-web/src/platform/auth/desktop/index.ts
import * as E from "fp-ts/Either" import { BehaviorSubject, Subject } from "rxjs" import { Ref, ref, watch } from "vue" import { content } from "@hoppscotch/kernel" import { Io } from "@hoppscotch/common/kernel/io" import { listen } from "@tauri-apps/api/event" import { getService } from "@hoppscotch/common/modules/...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/auth/web/api.ts
packages/hoppscotch-selfhost-web/src/platform/auth/web/api.ts
import { runMutation } from "@helpers/backend/GQLClient" import axios from "axios" import * as E from "fp-ts/Either" import { z } from "zod" import { UpdateUserDisplayNameDocument, UpdateUserDisplayNameMutation, UpdateUserDisplayNameMutationVariables, } from "@app/api/generated/graphql" const expectedAllowedProv...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/auth/web/index.ts
packages/hoppscotch-selfhost-web/src/platform/auth/web/index.ts
import * as E from "fp-ts/Either" import axios from "axios" import { BehaviorSubject, Subject } from "rxjs" import { Ref, ref, watch } from "vue" import { getService } from "@hoppscotch/common/modules/dioc" import { AuthEvent, AuthPlatformDef, HoppUser, } from "@hoppscotch/common/platform/auth" import { Persiste...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/settings/desktop/sync.ts
packages/hoppscotch-selfhost-web/src/platform/settings/desktop/sync.ts
import { settingsStore } from "@hoppscotch/common/newstore/settings" import { getSyncInitFunction, type StoreSyncDefinitionOf } from "@app/lib/sync" import { updateUserSettings } from "./api" export const settingsSyncDefinition: StoreSyncDefinitionOf< typeof settingsStore > = { toggleSetting() { updateUserSe...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/settings/desktop/api.ts
packages/hoppscotch-selfhost-web/src/platform/settings/desktop/api.ts
import { runGQLQuery, runGQLSubscription, runMutation, } from "@helpers/backend/GQLClient" import { CreateUserSettingsDocument, CreateUserSettingsMutation, CreateUserSettingsMutationVariables, GetUserSettingsDocument, GetUserSettingsQuery, GetUserSettingsQueryVariables, UpdateUserSettingsDocument, ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/settings/desktop/index.ts
packages/hoppscotch-selfhost-web/src/platform/settings/desktop/index.ts
import { SettingsPlatformDef } from "@hoppscotch/common/platform/settings" import { settingsSyncer } from "./sync" import { authEvents$, def as platformAuth } from "@app/platform/auth/desktop" import { createUserSettings, getUserSettings, runUserSettingsUpdatedSubscription, } from "./api" import * as E from "fp-t...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/settings/web/sync.ts
packages/hoppscotch-selfhost-web/src/platform/settings/web/sync.ts
import { settingsStore } from "@hoppscotch/common/newstore/settings" import { getSyncInitFunction, type StoreSyncDefinitionOf } from "@app/lib/sync" import { updateUserSettings } from "./api" export const settingsSyncDefinition: StoreSyncDefinitionOf< typeof settingsStore > = { toggleSetting() { updateUserSe...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/settings/web/api.ts
packages/hoppscotch-selfhost-web/src/platform/settings/web/api.ts
import { runGQLQuery, runGQLSubscription, runMutation, } from "@helpers/backend/GQLClient" import { CreateUserSettingsDocument, CreateUserSettingsMutation, CreateUserSettingsMutationVariables, GetUserSettingsDocument, GetUserSettingsQuery, GetUserSettingsQueryVariables, UpdateUserSettingsDocument, ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/settings/web/index.ts
packages/hoppscotch-selfhost-web/src/platform/settings/web/index.ts
import { SettingsPlatformDef } from "@hoppscotch/common/platform/settings" import { settingsSyncer } from "./sync" import { authEvents$, def as platformAuth } from "@app/platform/auth/web" import { createUserSettings, getUserSettings, runUserSettingsUpdatedSubscription, } from "./api" import * as E from "fp-ts/Ei...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/infra/infra.platform.ts
packages/hoppscotch-selfhost-web/src/platform/infra/infra.platform.ts
import { runGQLQuery } from "@hoppscotch/common/helpers/backend/GQLClient" import { InfraPlatformDef } from "@hoppscotch/common/platform/infra" import { GetSmtpStatusDocument } from "@app/api/generated/graphql" import * as E from "fp-ts/Either" const getSMTPStatus = () => { return runGQLQuery({ query: GetSmtpSta...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/history/desktop/sync.ts
packages/hoppscotch-selfhost-web/src/platform/history/desktop/sync.ts
import { graphqlHistoryStore, removeDuplicateRestHistoryEntry, removeDuplicateGraphqlHistoryEntry, restHistoryStore, } from "@hoppscotch/common/newstore/history" import { getSettingSubject, settingsStore, } from "@hoppscotch/common/newstore/settings" import { getSyncInitFunction, type StoreSyncDefinitionOf...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/history/desktop/api.ts
packages/hoppscotch-selfhost-web/src/platform/history/desktop/api.ts
import { runMutation, runGQLQuery, runGQLSubscription, } from "@helpers/backend/GQLClient" import { CreateUserHistoryDocument, CreateUserHistoryMutation, CreateUserHistoryMutationVariables, DeleteAllUserHistoryDocument, DeleteAllUserHistoryMutation, DeleteAllUserHistoryMutationVariables, GetRestUse...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/history/desktop/index.ts
packages/hoppscotch-selfhost-web/src/platform/history/desktop/index.ts
import { authEvents$, def as platformAuth } from "@app/platform/auth/desktop" import { restHistoryStore, RESTHistoryEntry, setRESTHistoryEntries, addRESTHistoryEntry, toggleRESTHistoryEntryStar, deleteRESTHistoryEntry, clearRESTHistory, setGraphqlHistoryEntries, GQLHistoryEntry, addGraphqlHistoryEnt...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/history/web/sync.ts
packages/hoppscotch-selfhost-web/src/platform/history/web/sync.ts
import { graphqlHistoryStore, removeDuplicateRestHistoryEntry, removeDuplicateGraphqlHistoryEntry, restHistoryStore, } from "@hoppscotch/common/newstore/history" import { getSettingSubject, settingsStore, } from "@hoppscotch/common/newstore/settings" import { getSyncInitFunction, type StoreSyncDefinitionOf...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/history/web/api.ts
packages/hoppscotch-selfhost-web/src/platform/history/web/api.ts
import { runMutation, runGQLQuery, runGQLSubscription, } from "@helpers/backend/GQLClient" import { CreateUserHistoryDocument, CreateUserHistoryMutation, CreateUserHistoryMutationVariables, DeleteAllUserHistoryDocument, DeleteAllUserHistoryMutation, DeleteAllUserHistoryMutationVariables, GetRestUse...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/history/web/index.ts
packages/hoppscotch-selfhost-web/src/platform/history/web/index.ts
import { authEvents$, def as platformAuth } from "@app/platform/auth/web" import { restHistoryStore, RESTHistoryEntry, setRESTHistoryEntries, addRESTHistoryEntry, toggleRESTHistoryEntryStar, deleteRESTHistoryEntry, clearRESTHistory, setGraphqlHistoryEntries, GQLHistoryEntry, addGraphqlHistoryEntry, ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/collections/desktop/import.ts
packages/hoppscotch-selfhost-web/src/platform/collections/desktop/import.ts
export { importToPersonalWorkspace } from "../web/import"
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/collections/desktop/sync.ts
packages/hoppscotch-selfhost-web/src/platform/collections/desktop/sync.ts
import { graphqlCollectionStore, navigateToFolderWithIndexPath, removeDuplicateRESTCollectionOrFolder, restCollectionStore, } from "@hoppscotch/common/newstore/collections" import { getSettingSubject, settingsStore, } from "@hoppscotch/common/newstore/settings" import { generateUniqueRefId, HoppCollect...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/collections/desktop/api.ts
packages/hoppscotch-selfhost-web/src/platform/collections/desktop/api.ts
import { CreateGqlChildUserCollectionDocument, CreateGqlChildUserCollectionMutation, CreateGqlChildUserCollectionMutationVariables, CreateGqlRootUserCollectionDocument, CreateGqlRootUserCollectionMutation, CreateGqlRootUserCollectionMutationVariables, CreateGqlUserRequestDocument, CreateGqlUserRequestMu...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/collections/desktop/gqlCollections.sync.ts
packages/hoppscotch-selfhost-web/src/platform/collections/desktop/gqlCollections.sync.ts
import { graphqlCollectionStore, navigateToFolderWithIndexPath, removeDuplicateGraphqlCollectionOrFolder, } from "@hoppscotch/common/newstore/collections" import { getSettingSubject, settingsStore, } from "@hoppscotch/common/newstore/settings" import { generateUniqueRefId, HoppCollection, HoppRESTReque...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/collections/desktop/index.ts
packages/hoppscotch-selfhost-web/src/platform/collections/desktop/index.ts
import { CollectionsPlatformDef } from "@hoppscotch/common/platform/collections" import { authEvents$, def as platformAuth } from "@app/platform/auth/desktop" import { runDispatchWithOutSyncing } from "@app/lib/sync" import { exportUserCollectionsToJSON, runUserChildCollectionSortedSubscription, runUserCollectio...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
true
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/collections/web/import.ts
packages/hoppscotch-selfhost-web/src/platform/collections/web/import.ts
import { ReqType } from "@hoppscotch/common/helpers/backend/graphql" import { appendGraphqlCollections, appendRESTCollections, } from "@hoppscotch/common/newstore/collections" import { CollectionDataProps } from "@hoppscotch/common/helpers/backend/helpers" import { HoppCollection } from "@hoppscotch/data" import * ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/collections/web/sync.ts
packages/hoppscotch-selfhost-web/src/platform/collections/web/sync.ts
import { graphqlCollectionStore, navigateToFolderWithIndexPath, removeDuplicateRESTCollectionOrFolder, restCollectionStore, } from "@hoppscotch/common/newstore/collections" import { getSettingSubject, settingsStore, } from "@hoppscotch/common/newstore/settings" import { generateUniqueRefId, HoppCollect...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/collections/web/api.ts
packages/hoppscotch-selfhost-web/src/platform/collections/web/api.ts
import { CreateGqlChildUserCollectionDocument, CreateGqlChildUserCollectionMutation, CreateGqlChildUserCollectionMutationVariables, CreateGqlRootUserCollectionDocument, CreateGqlRootUserCollectionMutation, CreateGqlRootUserCollectionMutationVariables, CreateGqlUserRequestDocument, CreateGqlUserRequestMu...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/collections/web/gqlCollections.sync.ts
packages/hoppscotch-selfhost-web/src/platform/collections/web/gqlCollections.sync.ts
import { graphqlCollectionStore, navigateToFolderWithIndexPath, removeDuplicateGraphqlCollectionOrFolder, } from "@hoppscotch/common/newstore/collections" import { getSettingSubject, settingsStore, } from "@hoppscotch/common/newstore/settings" import { generateUniqueRefId, HoppCollection, HoppRESTReque...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/collections/web/index.ts
packages/hoppscotch-selfhost-web/src/platform/collections/web/index.ts
import { CollectionsPlatformDef } from "@hoppscotch/common/platform/collections" import { authEvents$, def as platformAuth } from "@app/platform/auth/web" import { runDispatchWithOutSyncing } from "@app/lib/sync" import { exportUserCollectionsToJSON, runUserChildCollectionSortedSubscription, runUserCollectionCre...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
true
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/environments/desktop/sync.ts
packages/hoppscotch-selfhost-web/src/platform/environments/desktop/sync.ts
import { environmentsStore, getGlobalVariableID, removeDuplicateEntry, } from "@hoppscotch/common/newstore/environments" import { getSettingSubject, settingsStore, } from "@hoppscotch/common/newstore/settings" import { getSyncInitFunction, type StoreSyncDefinitionOf } from "@app/lib/sync" import * as E from...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/environments/desktop/api.ts
packages/hoppscotch-selfhost-web/src/platform/environments/desktop/api.ts
import { runMutation, runGQLQuery, runGQLSubscription, } from "@helpers/backend/GQLClient" import { CreateUserEnvironmentDocument, CreateUserEnvironmentMutation, CreateUserEnvironmentMutationVariables, UpdateUserEnvironmentMutation, UpdateUserEnvironmentMutationVariables, UpdateUserEnvironmentDocumen...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/environments/desktop/index.ts
packages/hoppscotch-selfhost-web/src/platform/environments/desktop/index.ts
import { authEvents$, def as platformAuth } from "@app/platform/auth/desktop" import { entityReference } from "verzod" import { createEnvironment, deleteEnvironment, environmentsStore, getLocalIndexByEnvironmentID, replaceEnvironments, setGlobalEnvID, setGlobalEnvVariables, updateEnvironment, } from "@...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/environments/web/sync.ts
packages/hoppscotch-selfhost-web/src/platform/environments/web/sync.ts
import { environmentsStore, getGlobalVariableID, removeDuplicateEntry, } from "@hoppscotch/common/newstore/environments" import { getSettingSubject, settingsStore, } from "@hoppscotch/common/newstore/settings" import { getSyncInitFunction, type StoreSyncDefinitionOf } from "@app/lib/sync" import * as E from...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/environments/web/api.ts
packages/hoppscotch-selfhost-web/src/platform/environments/web/api.ts
import { runMutation, runGQLQuery, runGQLSubscription, } from "@helpers/backend/GQLClient" import { CreateUserEnvironmentDocument, CreateUserEnvironmentMutation, CreateUserEnvironmentMutationVariables, UpdateUserEnvironmentMutation, UpdateUserEnvironmentMutationVariables, UpdateUserEnvironmentDocumen...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/environments/web/index.ts
packages/hoppscotch-selfhost-web/src/platform/environments/web/index.ts
import * as E from "fp-ts/Either" import { entityReference } from "verzod" import { createEnvironment, deleteEnvironment, environmentsStore, getLocalIndexByEnvironmentID, replaceEnvironments, setGlobalEnvID, setGlobalEnvVariables, updateEnvironment, } from "@hoppscotch/common/newstore/environments" imp...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/instance/desktop/index.ts
packages/hoppscotch-selfhost-web/src/platform/instance/desktop/index.ts
import { pipe } from "fp-ts/function" import * as E from "fp-ts/Either" import * as A from "fp-ts/Array" import * as Ord from "fp-ts/Ord" import * as N from "fp-ts/number" import * as TE from "fp-ts/TaskEither" import * as O from "fp-ts/Option" import { map } from "rxjs/operators" import { download, load, close,...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
true
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/platform/instance/web/index.ts
packages/hoppscotch-selfhost-web/src/platform/instance/web/index.ts
import { Service } from "dioc" import { Observable, of } from "rxjs" import { Instance, ConnectionState, OperationResult, InstanceKind, InstancePlatformDef, } from "@hoppscotch/common/src/platform/instance" import { getService } from "@hoppscotch/common/modules/dioc" export class WebInstanceService extend...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-agent/vite.config.ts
packages/hoppscotch-agent/vite.config.ts
import { defineConfig } from "vite"; import vue from "@vitejs/plugin-vue"; import tailwindcss from 'tailwindcss'; import autoprefixer from 'autoprefixer'; import path from 'path'; import Icons from "unplugin-icons/vite"; import IconsResolver from 'unplugin-icons/resolver'; import Components from 'unplugin-vue-component...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-agent/src/main.ts
packages/hoppscotch-agent/src/main.ts
import { createApp } from 'vue' import App from './App.vue' import './index.css' import { plugin as HoppUI } from "@hoppscotch/ui" import "@hoppscotch/ui/themes.css" import "@hoppscotch/ui/style.css" createApp(App) .use(HoppUI) .mount('#app')
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-agent/src/vite-env.d.ts
packages/hoppscotch-agent/src/vite-env.d.ts
/// <reference types="vite/client" /> declare module "*.vue" { import type { DefineComponent } from "vue"; const component: DefineComponent<{}, {}, any>; export default component; }
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/vitest.config.ts
packages/hoppscotch-cli/vitest.config.ts
import { defineConfig } from "vitest/config"; export default defineConfig({ test: { environment: "node", setupFiles: ["./setupFiles.ts"], include: ["**/src/__tests__/**/**/*.{test,spec}.ts"], exclude: [ "**/node_modules/**", "**/dist/**", "**/src/__tests__/functions/**/*.ts", ],...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/setupFiles.ts
packages/hoppscotch-cli/setupFiles.ts
// Vitest doesn't work without globals // Ref: https://github.com/relmify/jest-fp-ts/issues/11 import decodeMatchers from "@relmify/jest-fp-ts/dist/decodeMatchers"; import eitherMatchers from "@relmify/jest-fp-ts/dist/eitherMatchers"; import optionMatchers from "@relmify/jest-fp-ts/dist/optionMatchers"; import theseMa...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/tsup.config.ts
packages/hoppscotch-cli/tsup.config.ts
import { defineConfig } from "tsup"; export default defineConfig({ entry: ["./src/index.ts"], outDir: "./dist/", format: ["esm"], platform: "node", sourcemap: true, bundle: true, target: "esnext", skipNodeModulesBundle: false, esbuildOptions(options) { options.bundle = true; }, clean: true, }...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/index.ts
packages/hoppscotch-cli/src/index.ts
import chalk from "chalk"; import { Command } from "commander"; import * as E from "fp-ts/Either"; import { version } from "../package.json"; import { test } from "./commands/test"; import { handleError } from "./handlers/error"; const accent = chalk.greenBright; /** * * Program Default Configuration */ const CLI_...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/options/test/delay.ts
packages/hoppscotch-cli/src/options/test/delay.ts
import { error } from "../../types/errors"; export function parseDelayOption(delay: string): number { const maybeInt = Number.parseInt(delay); if (!Number.isNaN(maybeInt)) { return maybeInt; } else { throw error({ code: "INVALID_ARGUMENT", data: "Expected '-d, --delay' value to be number", ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/options/test/env.ts
packages/hoppscotch-cli/src/options/test/env.ts
import { Environment, NonSecretEnvironment } from "@hoppscotch/data"; import { entityReference } from "verzod"; import { z } from "zod"; import { TestCmdEnvironmentOptions } from "../../types/commands"; import { error } from "../../types/errors"; import { HoppEnvKeyPairObject, HoppEnvPair, HoppEnvs, } from "../....
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/commands/test.ts
packages/hoppscotch-cli/src/commands/test.ts
import fs from "fs"; import { isSafeInteger } from "lodash-es"; import Papa from "papaparse"; import path from "path"; import { handleError } from "../handlers/error"; import { parseDelayOption } from "../options/test/delay"; import { parseEnvsData } from "../options/test/env"; import { IterationDataItem } from "../ty...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/interfaces/response.ts
packages/hoppscotch-cli/src/interfaces/response.ts
import { TestResponse } from "@hoppscotch/js-sandbox"; import { Method } from "axios"; import { ExpectResult } from "../types/response"; import { HoppEnvs } from "../types/request"; import { HoppRESTRequest } from "@hoppscotch/data"; /** * Defines column headers for table stream used to write table * data on stdout....
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/interfaces/request.ts
packages/hoppscotch-cli/src/interfaces/request.ts
import { AxiosPromise, AxiosRequestConfig } from "axios"; import { HoppRESTRequest } from "@hoppscotch/data"; /** * Provides definition to object returned by createRequest. * @property {function} request Axios request promise, executed to get axios * response promise. * @property {string} path Path of request with...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/utils/collections.ts
packages/hoppscotch-cli/src/utils/collections.ts
import { HoppCollection, HoppRESTRequest } from "@hoppscotch/data"; import chalk from "chalk"; import { log } from "console"; import * as A from "fp-ts/Array"; import { pipe } from "fp-ts/function"; import { round } from "lodash-es"; import { CollectionRunnerParam } from "../types/collections"; import { CollectionQu...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/utils/mutators.ts
packages/hoppscotch-cli/src/utils/mutators.ts
import { Environment, HoppCollection, HoppRESTRequest } from "@hoppscotch/data"; import fs from "fs/promises"; import { entityReference } from "verzod"; import { z } from "zod"; import { TestCmdCollectionOptions } from "../types/commands"; import { error } from "../types/errors"; import { FormDataEntry } from "../type...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/utils/test.ts
packages/hoppscotch-cli/src/utils/test.ts
import { HoppRESTRequest } from "@hoppscotch/data"; import { TestDescriptor } from "@hoppscotch/js-sandbox"; import { runTestScript } from "@hoppscotch/js-sandbox/node"; import * as A from "fp-ts/Array"; import * as RA from "fp-ts/ReadonlyArray"; import * as T from "fp-ts/Task"; import * as TE from "fp-ts/TaskEither"; ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/utils/checks.ts
packages/hoppscotch-cli/src/utils/checks.ts
import { CommanderError } from "commander"; import { HoppCLIError, HoppErrnoException } from "../types/errors"; /** * Determines whether an object has a property with given name. * @param target Object to be checked for given property. * @param prop Property to be checked in target object. * @returns True, if prop...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/utils/display.ts
packages/hoppscotch-cli/src/utils/display.ts
import chalk from "chalk"; import { groupEnd, group, log } from "console"; import { handleError } from "../handlers/error"; import { RequestConfig } from "../interfaces/request"; import { RequestRunnerResponse, TestReport } from "../interfaces/response"; import { HoppCLIError } from "../types/errors"; import { PreReq...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/utils/constants.ts
packages/hoppscotch-cli/src/utils/constants.ts
import { ResponseErrorPair } from "../interfaces/response"; export const responseErrors: ResponseErrorPair = { 501: "REQUEST NOT SUPPORTED", 408: "NETWORK TIMEOUT", 400: "BAD REQUEST", } as const; /** * Default decimal precision to round-off calculated HRTime time in seconds. */ export const DEFAULT_DURATION_...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/utils/getters.ts
packages/hoppscotch-cli/src/utils/getters.ts
import { EnvironmentVariable, HoppCollectionVariable, HoppRESTHeader, HoppRESTParam, HoppRESTRequestVariables, parseTemplateStringE, } from "@hoppscotch/data"; import axios, { AxiosError } from "axios"; import chalk from "chalk"; import * as A from "fp-ts/Array"; import * as E from "fp-ts/Either"; import * ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/utils/workspace-access.ts
packages/hoppscotch-cli/src/utils/workspace-access.ts
import { CollectionSchemaVersion, Environment, EnvironmentSchemaVersion, HoppCollection, HoppCollectionVariable, HoppRESTAuth, HoppRESTHeaders, HoppRESTRequest, } from "@hoppscotch/data"; import { HoppEnvPair } from "../types/request"; export interface WorkspaceEnvironment { id: string; teamID: st...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/utils/hopp-fetch.ts
packages/hoppscotch-cli/src/utils/hopp-fetch.ts
import axios, { Method } from "axios"; import type { HoppFetchHook } from "@hoppscotch/js-sandbox"; import { wrapper as axiosCookieJarSupport } from "axios-cookiejar-support"; import { CookieJar } from "tough-cookie"; /** * Creates a hopp.fetch() hook implementation for CLI. * Uses axios directly for network request...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/utils/request.ts
packages/hoppscotch-cli/src/utils/request.ts
import { Environment, HoppCollection, HoppRESTRequest, RESTReqSchemaVersion, } from "@hoppscotch/data"; import axios, { Method } from "axios"; import * as A from "fp-ts/Array"; import * as E from "fp-ts/Either"; import * as T from "fp-ts/Task"; import * as TE from "fp-ts/TaskEither"; import { pipe } from "fp-ts...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/utils/pre-request.ts
packages/hoppscotch-cli/src/utils/pre-request.ts
import { Environment, EnvironmentVariable, HoppRESTRequest, parseBodyEnvVariablesE, parseRawKeyValueEntriesE, parseTemplateString, parseTemplateStringE, generateJWTToken, HoppCollectionVariable, calculateHawkHeader } from "@hoppscotch/data"; import { runPreRequestScript } from "@hoppscotch/js-sandbo...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/utils/auth/digest.ts
packages/hoppscotch-cli/src/utils/auth/digest.ts
import axios from "axios"; import { md5 } from "js-md5"; import { exceptionColors } from "../getters"; export interface DigestAuthParams { username: string; password: string; realm: string; nonce: string; endpoint: string; method: string; algorithm: string; qop: string; nc?: string; opaque?: strin...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/utils/reporters/junit.ts
packages/hoppscotch-cli/src/utils/reporters/junit.ts
import { info, log } from "console"; import fs from "fs"; import path from "path"; import { create } from "xmlbuilder2"; import { XMLBuilder } from "xmlbuilder2/lib/interfaces"; import { TestReport } from "../../interfaces/response"; import { error, HoppCLIError } from "../../types/errors"; import { RequestReport } fr...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/utils/functions/array.ts
packages/hoppscotch-cli/src/utils/functions/array.ts
import { clone } from "lodash-es"; /** * Sorts the array based on the sort func. * NOTE: Creates a new array, if you don't need ref * to original array, use `arrayUnsafeSort` for better perf * @param sortFunc Sort function to sort against */ export const arraySort = <T>(sortFunc: (a: T, b: T) => number) => (a...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/__tests__/utils.ts
packages/hoppscotch-cli/src/__tests__/utils.ts
import { exec } from "child_process"; import { resolve } from "path"; import { ExecResponse } from "./types"; export const runCLI = (args: string, options = {}): Promise<ExecResponse> => { const CLI_PATH = resolve(__dirname, "../../bin/hopp.js"); const command = `node ${CLI_PATH} ${args}`; return new Promise((...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/__tests__/types.ts
packages/hoppscotch-cli/src/__tests__/types.ts
import { ExecException } from "child_process"; export type ExecResponse = { error: ExecException | null; stdout: string; stderr: string; };
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/__tests__/e2e/commands/test.spec.ts
packages/hoppscotch-cli/src/__tests__/e2e/commands/test.spec.ts
import { ExecException } from "child_process"; import fs from "fs"; import path from "path"; import { afterAll, beforeAll, describe, expect, test } from "vitest"; import { HoppErrorCode } from "../../../types/errors"; import { getErrorCode, getTestJsonFilePath, runCLI, runCLIWithNetworkRetry, } from "../../uti...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
true
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/__tests__/unit/workspace-access.spec.ts
packages/hoppscotch-cli/src/__tests__/unit/workspace-access.spec.ts
import { describe, expect, test } from "vitest"; import { transformWorkspaceCollections, transformWorkspaceEnvironment, } from "../../utils/workspace-access"; import { TRANSFORMED_COLLECTIONS_WITHOUT_AUTH_HEADERS_VARIABLES_AT_CERTAIN_LEVELS_MOCK, TRANSFORMED_DEEPLY_NESTED_COLLECTIONS_WITH_AUTH_HEADERS_VARIABLE...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/__tests__/unit/hopp-fetch.spec.ts
packages/hoppscotch-cli/src/__tests__/unit/hopp-fetch.spec.ts
import { describe, expect, it, vi, beforeEach } from "vitest" // Mock modules before imports - NO external variable references in factory vi.mock("axios", () => ({ default: { create: vi.fn(), isAxiosError: vi.fn(), }, })) vi.mock("axios-cookiejar-support", () => ({ wrapper: (instance: any) => instance, ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/__tests__/unit/getters.spec.ts
packages/hoppscotch-cli/src/__tests__/unit/getters.spec.ts
import axios, { AxiosError, AxiosResponse } from "axios"; import fs from "fs/promises"; import { describe, expect, test, vi } from "vitest"; import { CollectionSchemaVersion, HoppCollection, getDefaultRESTRequest, } from "@hoppscotch/data"; import { DEFAULT_DURATION_PRECISION } from "../../utils/constants"; imp...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/__tests__/unit/fixtures/workspace-access.mock.ts
packages/hoppscotch-cli/src/__tests__/unit/fixtures/workspace-access.mock.ts
import { CollectionSchemaVersion, Environment, EnvironmentSchemaVersion, HoppCollection, RESTReqSchemaVersion, } from "@hoppscotch/data"; import { WorkspaceCollection, WorkspaceEnvironment, } from "../../../utils/workspace-access"; export const WORKSPACE_DEEPLY_NESTED_COLLECTIONS_WITH_AUTH_HEADERS_VARIA...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
true
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/__tests__/functions/getters/getEffectiveFinalMetaData.spec.ts
packages/hoppscotch-cli/src/__tests__/functions/getters/getEffectiveFinalMetaData.spec.ts
import { Environment } from "@hoppscotch/data"; import { getEffectiveFinalMetaData } from "../../../utils/getters"; import "@relmify/jest-fp-ts"; const DEFAULT_ENV = <Environment>{ name: "name", variables: [{ key: "PARAM", value: "parsed_param" }], }; describe("getEffectiveFinalMetaData", () => { test("Empty l...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/__tests__/functions/getters/getDurationInSeconds.spec.ts
packages/hoppscotch-cli/src/__tests__/functions/getters/getDurationInSeconds.spec.ts
import { DEFAULT_DURATION_PRECISION } from "../../../utils/constants"; import { getDurationInSeconds } from "../../../utils/getters"; describe("getDurationInSeconds", () => { const testDurations = [ { end: [1, 111111111], precision: 1, expected: 1.1 }, { end: [2, 333333333], precision: 2, expected: 2.33 }, ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/__tests__/functions/test/testRunner.spec.ts
packages/hoppscotch-cli/src/__tests__/functions/test/testRunner.spec.ts
import { TestResponse } from "@hoppscotch/js-sandbox"; import * as E from "fp-ts/Either"; import { TestRunnerRes } from "../../../types/response"; import { HoppCLIError } from "../../../types/errors"; import { getTestMetrics, testRunner } from "../../../utils/test"; import { HoppEnvs } from "../../../types/request"; i...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/__tests__/functions/test/getTestMetrics.spec.ts
packages/hoppscotch-cli/src/__tests__/functions/test/getTestMetrics.spec.ts
import { TestMetrics } from "../../../types/response"; import { getTestMetrics } from "../../../utils/test"; describe("getTestMetrics", () => { test("With empty test-reports and errors.", () => { expect(getTestMetrics([], 1, [])).toMatchObject(<TestMetrics>{ tests: { passed: 0, failed: 0 }, testSuite...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/__tests__/functions/test/testDescriptorParser.spec.ts
packages/hoppscotch-cli/src/__tests__/functions/test/testDescriptorParser.spec.ts
import { TestDescriptor } from "@hoppscotch/js-sandbox"; import { testDescriptorParser, getTestMetrics } from "../../../utils/test"; import { TestReport } from "../../../interfaces/response"; import { TestMetrics } from "../../../types/response"; import "@relmify/jest-fp-ts"; const SAMPLE_TEST_DESCRIPTOR: TestDescrip...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/__tests__/functions/collection/collectionsRunnerResult.spec.ts
packages/hoppscotch-cli/src/__tests__/functions/collection/collectionsRunnerResult.spec.ts
import { collectionsRunnerResult } from "../../../utils/collections"; const FALSE_RESULT_REPORT = { path: "some_path", tests: [], errors: [], result: false, duration: { test: 1, request: 1, preRequest: 1 }, }; const TRUE_RESULT_REPORT = { path: "some_path", tests: [], errors: [], result: true, dur...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/__tests__/functions/collection/collectionsRunner.spec.ts
packages/hoppscotch-cli/src/__tests__/functions/collection/collectionsRunner.spec.ts
import { collectionsRunner } from "../../../utils/collections"; import { HoppRESTRequest } from "@hoppscotch/data"; import axios, { AxiosResponse } from "axios"; import "@relmify/jest-fp-ts"; jest.mock("axios"); const SAMPLE_HOPP_REQUEST = <HoppRESTRequest>{ v: "1", name: "request", method: "GET", endpoint: ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/__tests__/functions/mutators/parseCollectionData.spec.ts
packages/hoppscotch-cli/src/__tests__/functions/mutators/parseCollectionData.spec.ts
import { HoppCLIError } from "../../../types/errors"; import { parseCollectionData } from "../../../utils/mutators"; describe("parseCollectionData", () => { test("Reading non-existing file.", () => { return expect( parseCollectionData("./src/__tests__/samples/notexist.json") ).rejects.toMatchObject(<Ho...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/__tests__/functions/pre-request/preRequestScriptRunner.spec.ts
packages/hoppscotch-cli/src/__tests__/functions/pre-request/preRequestScriptRunner.spec.ts
import { HoppRESTRequest } from "@hoppscotch/data"; import { HoppEnvs } from "../../../types/request"; import * as E from "fp-ts/Either"; import { HoppCLIError } from "../../../types/errors"; import { EffectiveHoppRESTRequest } from "../../../interfaces/request"; import { preRequestScriptRunner } from "../../../utils/p...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/__tests__/functions/pre-request/getPreRequestMetrics.spec.ts
packages/hoppscotch-cli/src/__tests__/functions/pre-request/getPreRequestMetrics.spec.ts
import { PreRequestMetrics, RequestMetrics } from "../../../types/response"; import { getPreRequestMetrics } from "../../../utils/pre-request"; describe("getPreRequestMetrics", () => { test("With empty errors.", () => { expect(getPreRequestMetrics([], 1)).toMatchObject(<PreRequestMetrics>{ scripts: { faile...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/__tests__/functions/pre-request/getEffectiveRESTRequest.spec.ts
packages/hoppscotch-cli/src/__tests__/functions/pre-request/getEffectiveRESTRequest.spec.ts
import { Environment, HoppRESTRequest } from "@hoppscotch/data"; import { EffectiveHoppRESTRequest } from "../../../interfaces/request"; import { HoppCLIError } from "../../../types/errors"; import { getEffectiveRESTRequest } from "../../../utils/pre-request"; import "@relmify/jest-fp-ts"; const DEFAULT_ENV = <Enviro...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/__tests__/functions/request/getRequestMetrics.spec.ts
packages/hoppscotch-cli/src/__tests__/functions/request/getRequestMetrics.spec.ts
import { RequestMetrics } from "../../../types/response"; import { getRequestMetrics } from "../../../utils/request"; describe("getRequestMetrics", () => { test("With empty errors.", () => { expect(getRequestMetrics([], 1)).toMatchObject(<RequestMetrics>{ requests: { failed: 0, passed: 1 }, }); }); ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/__tests__/functions/request/delayPromiseFunction.spec.ts
packages/hoppscotch-cli/src/__tests__/functions/request/delayPromiseFunction.spec.ts
import { hrtime } from "process"; import { getDurationInSeconds } from "../../../utils/getters"; import { delayPromiseFunction } from "../../../utils/request"; describe("describePromiseFunction", () => { let promiseFunc = (): Promise<number> => new Promise((resolve) => resolve(2)); beforeEach(() => { promiseFu...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/__tests__/functions/request/processRequest.spec.ts
packages/hoppscotch-cli/src/__tests__/functions/request/processRequest.spec.ts
import { HoppRESTRequest } from "@hoppscotch/data"; import axios, { AxiosResponse } from "axios"; import { processRequest } from "../../../utils/request"; import { HoppEnvs } from "../../../types/request"; import "@relmify/jest-fp-ts"; jest.mock("axios"); const DEFAULT_REQUEST = <HoppRESTRequest>{ v: "1", name: ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/__tests__/functions/request/requestRunner.spec.ts
packages/hoppscotch-cli/src/__tests__/functions/request/requestRunner.spec.ts
import axios, { AxiosError, AxiosResponse } from "axios"; import { RequestConfig } from "../../../interfaces/request"; import { requestRunner } from "../../../utils/request"; import { RequestRunnerResponse } from "../../../interfaces/response"; import "@relmify/jest-fp-ts"; jest.mock("axios"); describe("requestRunne...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/__tests__/functions/checks/isHoppCLIError.spec.ts
packages/hoppscotch-cli/src/__tests__/functions/checks/isHoppCLIError.spec.ts
import { isHoppCLIError } from "../../../utils/checks"; describe("isHoppCLIError", () => { test("NULL error value.", () => { expect(isHoppCLIError(null)).toBeFalsy(); }); test("Non-existing code property.", () => { expect(isHoppCLIError({ name: "name" })).toBeFalsy(); }); test("Invalid code value."...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/__tests__/functions/checks/isHoppErrnoException.spec.ts
packages/hoppscotch-cli/src/__tests__/functions/checks/isHoppErrnoException.spec.ts
import { isHoppErrnoException } from "../../../utils/checks"; describe("isHoppErrnoException", () => { test("NULL exception value.", () => { expect(isHoppErrnoException(null)).toBeFalsy(); }); test("Non-existing name property.", () => { expect(isHoppErrnoException({ what: "what" })).toBeFalsy(); }); ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/types/collections.ts
packages/hoppscotch-cli/src/types/collections.ts
import { HoppCollection } from "@hoppscotch/data"; import { HoppEnvPair, HoppEnvs } from "./request"; export type CollectionRunnerParam = { collections: HoppCollection[]; envs: HoppEnvs; delay?: number; iterationData?: IterationDataItem[][]; iterationCount?: number; legacySandbox: boolean; }; export type ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/types/commands.ts
packages/hoppscotch-cli/src/types/commands.ts
export type TestCmdOptions = { env?: string; delay?: string; token?: string; server?: string; reporterJunit?: string; iterationCount?: number; iterationData?: string; legacySandbox?: boolean; }; // Consumed in the collection `file_path_or_id` argument action handler export type TestCmdCollectionOptions...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/types/errors.ts
packages/hoppscotch-cli/src/types/errors.ts
type HoppErrorPath = { path: string; }; type HoppErrorCmd = { command: string; }; type HoppErrorData = { data: any; }; type HoppErrors = { UNKNOWN_ERROR: HoppErrorData; FILE_NOT_FOUND: HoppErrorPath; UNKNOWN_COMMAND: HoppErrorCmd; MALFORMED_COLLECTION: HoppErrorPath & HoppErrorData; NO_FILE_PATH: {};...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/types/response.ts
packages/hoppscotch-cli/src/types/response.ts
import { TestReport } from "../interfaces/response"; import { HoppEnvs } from "./request"; /** * The expectation failed (fail) or errored (error) */ export type ExpectResult = { status: "pass" | "fail" | "error"; message: string; }; /** * Stats describing number of failed and passed for test-cases/test-suites/...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/types/request.ts
packages/hoppscotch-cli/src/types/request.ts
import { Environment, HoppCollection, HoppCollectionVariable, HoppRESTRequest, } from "@hoppscotch/data"; import { z } from "zod"; import { TestReport } from "../interfaces/response"; import { HoppCLIError } from "./errors"; export type FormDataEntry = { key: string; value: string | Blob; contentType?: ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-cli/src/handlers/error.ts
packages/hoppscotch-cli/src/handlers/error.ts
import * as S from "fp-ts/string"; import { HoppError, HoppErrorCode } from "../types/errors"; import { hasProperty, isSafeCommanderError } from "../utils/checks"; import { parseErrorMessage } from "../utils/mutators"; import { exceptionColors } from "../utils/getters"; const { BG_FAIL } = exceptionColors; /** * Pars...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-kernel/vite.config.d.ts
packages/hoppscotch-kernel/vite.config.d.ts
declare const _default: import("vite").UserConfig; export default _default;
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-kernel/vite.config.ts
packages/hoppscotch-kernel/vite.config.ts
import { resolve } from "path" import { defineConfig } from "vite" export default defineConfig({ build: { outDir: "./dist", emptyOutDir: true, lib: { entry: { 'hoppscotch-kernel': resolve(__dirname, 'src/index.ts'), }, formats: ['es', 'cjs'] }, rollupOptions: { ext...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false