File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import type { POSTBinsBody , POSTBinsResponse } from '../types' ;
2- import { resolveLanguageId } from '../utils/languages' ;
1+ import type { POSTBinsBody , POSTBinsResponse } from '../types.ts ' ;
2+ import { resolveLanguageId } from '../utils/languages.ts ' ;
33import type { AxiosResponse } from 'axios' ;
4- import { fetch } from '../utils/fetch' ;
5- import { get } from './get' ;
4+ import { fetch } from '../utils/fetch.ts ' ;
5+ import { get } from './get.ts ' ;
66
77export interface FileOptions {
88 name ?: string ;
Original file line number Diff line number Diff line change 1- import type { BinData , FileData , GETBin } from '../types' ;
1+ import type { BinData , FileData , GETBin } from '../types.ts' ;
2+ import { resolveKey } from '../utils/url.ts' ;
23import type { AxiosResponse } from 'axios' ;
3- import { resolveKey } from '../utils/url' ;
4- import { Bin } from '../structures/Bin' ;
5- import { fetch } from '../utils/fetch' ;
4+ import { Bin } from '../structures/Bin.ts' ;
5+ import { fetch } from '../utils/fetch.ts' ;
66
77export interface GetOptions {
88 /**
Original file line number Diff line number Diff line change 1- import { resolveKey } from '../utils/url' ;
1+ import { resolveKey } from '../utils/url.ts ' ;
22
33export const url = ( keyOrUrl : string ) => {
44 const key = resolveKey ( keyOrUrl ) ;
Original file line number Diff line number Diff line change 1- import { File } from '../structures/File' ;
2- import { BinData } from '../types' ;
1+ import { File } from '../structures/File.ts ' ;
2+ import type { BinData } from '../types.ts ' ;
33
44export class Bin {
55 public readonly key : string ;
Original file line number Diff line number Diff line change 1- import type { FileData , SourcebinLinguistItem } from '../types' ;
1+ import type { FileData , SourcebinLinguistItem } from '../types.ts ' ;
22import { linguist } from '@sourcebin/linguist' ;
33
44export class File {
You can’t perform that action at this time.
0 commit comments