Skip to content

Commit 42345c3

Browse files
committed
refactor: remove unused error messages and delete test data file
1 parent 8d31d57 commit 42345c3

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

src/constants/errorMessages.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,14 @@
11
export default {
2-
MANDATORY_INITIALIZATION_MISSING: { message: "Missing urlEndpoint during SDK initialization" },
3-
INVALID_TRANSFORMATION_POSITION: { message: "Invalid transformationPosition parameter" },
4-
PRIVATE_KEY_CLIENT_SIDE: { message: "privateKey should not be passed on the client side" },
5-
MISSING_UPLOAD_DATA: { message: "Missing data for upload" },
62
MISSING_UPLOAD_FILE_PARAMETER: { message: "Missing file parameter for upload" },
73
MISSING_UPLOAD_FILENAME_PARAMETER: { message: "Missing fileName parameter for upload" },
8-
MISSING_AUTHENTICATION_ENDPOINT: { message: "Missing authentication endpoint for upload" },
94
MISSING_PUBLIC_KEY: { message: "Missing public key for upload" },
10-
AUTH_ENDPOINT_TIMEOUT: { message: "The authenticationEndpoint you provided timed out in 60 seconds" },
11-
AUTH_ENDPOINT_NETWORK_ERROR: { message: "Request to authenticationEndpoint failed due to network error" },
12-
AUTH_INVALID_RESPONSE: { message: "Invalid response from authenticationEndpoint. The SDK expects a JSON response with three fields i.e. signature, token and expire." },
135
UPLOAD_ENDPOINT_NETWORK_ERROR: {
146
message: "Request to ImageKit upload endpoint failed due to network error"
157
},
16-
INVALID_UPLOAD_OPTIONS: { message: "Invalid uploadOptions parameter" },
178
MISSING_SIGNATURE: { message: "Missing signature for upload. The SDK expects token, signature and expire for authentication." },
189
MISSING_TOKEN: { message: "Missing token for upload. The SDK expects token, signature and expire for authentication." },
1910
MISSING_EXPIRE: { message: "Missing expire for upload. The SDK expects token, signature and expire for authentication." },
2011
INVALID_TRANSFORMATION: { message: "Invalid transformation parameter. Please include at least pre, post, or both." },
2112
INVALID_PRE_TRANSFORMATION: { message: "Invalid pre transformation parameter." },
22-
INVALID_POST_TRANSFORMATION: { message: "Invalid post transformation parameter." },
23-
UPLOAD_ABORTED: { message: "Request aborted by the user" },
13+
INVALID_POST_TRANSFORMATION: { message: "Invalid post transformation parameter." }
2414
};

test/data/index.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)