Fix package

This commit is contained in:
Kieran 2023-07-20 12:31:07 +01:00
parent 22c238b704
commit 076e83626b
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
9 changed files with 30 additions and 30 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@void-cat/api",
"version": "1.0.5",
"version": "1.0.7",
"description": "void.cat API package",
"main": "dist/index.js",
"types": "dist/index.d.ts",

View File

@ -9,9 +9,9 @@ import {
SiteInfoResponse,
VoidFileResponse
} from "./index";
import {ProgressHandler, ProxyChallengeHandler, StateChangeHandler, VoidUploader} from "./Upload";
import {StreamUploader} from "./StreamUploader";
import {XHRUploader} from "./XHRUploader";
import { ProgressHandler, ProxyChallengeHandler, StateChangeHandler, VoidUploader } from "./upload";
import { StreamUploader } from "./stream-uploader";
import { XHRUploader } from "./xhr-uploader";
export class VoidApi {
readonly #uri: string

View File

@ -1,7 +1,7 @@
import { VoidUploadResult } from "./index";
import sjcl from "sjcl";
import { sjclcodec } from "./codecBytes";
import {buf2hex} from "./Util";
import { buf2hex } from "./utils";
/**
* Generic upload state
*/

View File

@ -1,6 +1,6 @@
export {VoidApi} from "./Api"
export {UploadState} from "./Upload";
export {StreamEncryption} from "./StreamEncryption";
export { VoidApi } from "./api"
export { UploadState } from "./upload";
export { StreamEncryption } from "./stream-encryption";
export class ApiError extends Error {
readonly statusCode: number

View File

@ -1,7 +1,7 @@
import { sjclcodec } from "./codecBytes";
import sjcl, { SjclCipher } from "sjcl";
import {buf2hex} from "Util";
import { buf2hex } from "./utils";
interface EncryptionParams {
ts: number,

View File

@ -1,6 +1,6 @@
import {UploadState, VoidUploader} from "./Upload";
import { UploadState, VoidUploader } from "./upload";
import { VoidUploadResult } from "./index";
import {StreamEncryption} from "./StreamEncryption";
import { StreamEncryption } from "./stream-encryption";
export class StreamUploader extends VoidUploader {
#encrypt?: StreamEncryption;

View File

@ -1,4 +1,4 @@
import {UploadState, VoidUploader} from "./Upload";
import { UploadState, VoidUploader } from "./upload";
import { VoidUploadResult } from "./index";
export class XHRUploader extends VoidUploader {