forked from Kieran/void.cat
Fix package
This commit is contained in:
parent
22c238b704
commit
076e83626b
@ -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",
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
*/
|
||||
|
@ -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
|
||||
|
@ -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,
|
@ -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;
|
@ -1,4 +1,4 @@
|
||||
import {UploadState, VoidUploader} from "./Upload";
|
||||
import { UploadState, VoidUploader } from "./upload";
|
||||
import { VoidUploadResult } from "./index";
|
||||
|
||||
export class XHRUploader extends VoidUploader {
|
Loading…
Reference in New Issue
Block a user