@imagekit/javascript 5.0.0-beta.3 → 5.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,43 +1,16 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
MANDATORY_INITIALIZATION_MISSING: {
|
|
3
|
-
message: string;
|
|
4
|
-
};
|
|
5
|
-
INVALID_TRANSFORMATION_POSITION: {
|
|
6
|
-
message: string;
|
|
7
|
-
};
|
|
8
|
-
PRIVATE_KEY_CLIENT_SIDE: {
|
|
9
|
-
message: string;
|
|
10
|
-
};
|
|
11
|
-
MISSING_UPLOAD_DATA: {
|
|
12
|
-
message: string;
|
|
13
|
-
};
|
|
14
2
|
MISSING_UPLOAD_FILE_PARAMETER: {
|
|
15
3
|
message: string;
|
|
16
4
|
};
|
|
17
5
|
MISSING_UPLOAD_FILENAME_PARAMETER: {
|
|
18
6
|
message: string;
|
|
19
7
|
};
|
|
20
|
-
MISSING_AUTHENTICATION_ENDPOINT: {
|
|
21
|
-
message: string;
|
|
22
|
-
};
|
|
23
8
|
MISSING_PUBLIC_KEY: {
|
|
24
9
|
message: string;
|
|
25
10
|
};
|
|
26
|
-
AUTH_ENDPOINT_TIMEOUT: {
|
|
27
|
-
message: string;
|
|
28
|
-
};
|
|
29
|
-
AUTH_ENDPOINT_NETWORK_ERROR: {
|
|
30
|
-
message: string;
|
|
31
|
-
};
|
|
32
|
-
AUTH_INVALID_RESPONSE: {
|
|
33
|
-
message: string;
|
|
34
|
-
};
|
|
35
11
|
UPLOAD_ENDPOINT_NETWORK_ERROR: {
|
|
36
12
|
message: string;
|
|
37
13
|
};
|
|
38
|
-
INVALID_UPLOAD_OPTIONS: {
|
|
39
|
-
message: string;
|
|
40
|
-
};
|
|
41
14
|
MISSING_SIGNATURE: {
|
|
42
15
|
message: string;
|
|
43
16
|
};
|
|
@@ -56,8 +29,5 @@ declare const _default: {
|
|
|
56
29
|
INVALID_POST_TRANSFORMATION: {
|
|
57
30
|
message: string;
|
|
58
31
|
};
|
|
59
|
-
UPLOAD_ABORTED: {
|
|
60
|
-
message: string;
|
|
61
|
-
};
|
|
62
32
|
};
|
|
63
33
|
export default _default;
|
package/dist/imagekit.cjs.js
CHANGED
|
@@ -3,45 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var errorMessages = {
|
|
6
|
-
MANDATORY_INITIALIZATION_MISSING: {
|
|
7
|
-
message: "Missing urlEndpoint during SDK initialization"
|
|
8
|
-
},
|
|
9
|
-
INVALID_TRANSFORMATION_POSITION: {
|
|
10
|
-
message: "Invalid transformationPosition parameter"
|
|
11
|
-
},
|
|
12
|
-
PRIVATE_KEY_CLIENT_SIDE: {
|
|
13
|
-
message: "privateKey should not be passed on the client side"
|
|
14
|
-
},
|
|
15
|
-
MISSING_UPLOAD_DATA: {
|
|
16
|
-
message: "Missing data for upload"
|
|
17
|
-
},
|
|
18
6
|
MISSING_UPLOAD_FILE_PARAMETER: {
|
|
19
7
|
message: "Missing file parameter for upload"
|
|
20
8
|
},
|
|
21
9
|
MISSING_UPLOAD_FILENAME_PARAMETER: {
|
|
22
10
|
message: "Missing fileName parameter for upload"
|
|
23
11
|
},
|
|
24
|
-
MISSING_AUTHENTICATION_ENDPOINT: {
|
|
25
|
-
message: "Missing authentication endpoint for upload"
|
|
26
|
-
},
|
|
27
12
|
MISSING_PUBLIC_KEY: {
|
|
28
13
|
message: "Missing public key for upload"
|
|
29
14
|
},
|
|
30
|
-
AUTH_ENDPOINT_TIMEOUT: {
|
|
31
|
-
message: "The authenticationEndpoint you provided timed out in 60 seconds"
|
|
32
|
-
},
|
|
33
|
-
AUTH_ENDPOINT_NETWORK_ERROR: {
|
|
34
|
-
message: "Request to authenticationEndpoint failed due to network error"
|
|
35
|
-
},
|
|
36
|
-
AUTH_INVALID_RESPONSE: {
|
|
37
|
-
message: "Invalid response from authenticationEndpoint. The SDK expects a JSON response with three fields i.e. signature, token and expire."
|
|
38
|
-
},
|
|
39
15
|
UPLOAD_ENDPOINT_NETWORK_ERROR: {
|
|
40
16
|
message: "Request to ImageKit upload endpoint failed due to network error"
|
|
41
17
|
},
|
|
42
|
-
INVALID_UPLOAD_OPTIONS: {
|
|
43
|
-
message: "Invalid uploadOptions parameter"
|
|
44
|
-
},
|
|
45
18
|
MISSING_SIGNATURE: {
|
|
46
19
|
message: "Missing signature for upload. The SDK expects token, signature and expire for authentication."
|
|
47
20
|
},
|
|
@@ -59,9 +32,6 @@ var errorMessages = {
|
|
|
59
32
|
},
|
|
60
33
|
INVALID_POST_TRANSFORMATION: {
|
|
61
34
|
message: "Invalid post transformation parameter."
|
|
62
|
-
},
|
|
63
|
-
UPLOAD_ABORTED: {
|
|
64
|
-
message: "Request aborted by the user"
|
|
65
35
|
}
|
|
66
36
|
};
|
|
67
37
|
|
package/dist/imagekit.esm.js
CHANGED
|
@@ -1,43 +1,16 @@
|
|
|
1
1
|
var errorMessages = {
|
|
2
|
-
MANDATORY_INITIALIZATION_MISSING: {
|
|
3
|
-
message: "Missing urlEndpoint during SDK initialization"
|
|
4
|
-
},
|
|
5
|
-
INVALID_TRANSFORMATION_POSITION: {
|
|
6
|
-
message: "Invalid transformationPosition parameter"
|
|
7
|
-
},
|
|
8
|
-
PRIVATE_KEY_CLIENT_SIDE: {
|
|
9
|
-
message: "privateKey should not be passed on the client side"
|
|
10
|
-
},
|
|
11
|
-
MISSING_UPLOAD_DATA: {
|
|
12
|
-
message: "Missing data for upload"
|
|
13
|
-
},
|
|
14
2
|
MISSING_UPLOAD_FILE_PARAMETER: {
|
|
15
3
|
message: "Missing file parameter for upload"
|
|
16
4
|
},
|
|
17
5
|
MISSING_UPLOAD_FILENAME_PARAMETER: {
|
|
18
6
|
message: "Missing fileName parameter for upload"
|
|
19
7
|
},
|
|
20
|
-
MISSING_AUTHENTICATION_ENDPOINT: {
|
|
21
|
-
message: "Missing authentication endpoint for upload"
|
|
22
|
-
},
|
|
23
8
|
MISSING_PUBLIC_KEY: {
|
|
24
9
|
message: "Missing public key for upload"
|
|
25
10
|
},
|
|
26
|
-
AUTH_ENDPOINT_TIMEOUT: {
|
|
27
|
-
message: "The authenticationEndpoint you provided timed out in 60 seconds"
|
|
28
|
-
},
|
|
29
|
-
AUTH_ENDPOINT_NETWORK_ERROR: {
|
|
30
|
-
message: "Request to authenticationEndpoint failed due to network error"
|
|
31
|
-
},
|
|
32
|
-
AUTH_INVALID_RESPONSE: {
|
|
33
|
-
message: "Invalid response from authenticationEndpoint. The SDK expects a JSON response with three fields i.e. signature, token and expire."
|
|
34
|
-
},
|
|
35
11
|
UPLOAD_ENDPOINT_NETWORK_ERROR: {
|
|
36
12
|
message: "Request to ImageKit upload endpoint failed due to network error"
|
|
37
13
|
},
|
|
38
|
-
INVALID_UPLOAD_OPTIONS: {
|
|
39
|
-
message: "Invalid uploadOptions parameter"
|
|
40
|
-
},
|
|
41
14
|
MISSING_SIGNATURE: {
|
|
42
15
|
message: "Missing signature for upload. The SDK expects token, signature and expire for authentication."
|
|
43
16
|
},
|
|
@@ -55,9 +28,6 @@ var errorMessages = {
|
|
|
55
28
|
},
|
|
56
29
|
INVALID_POST_TRANSFORMATION: {
|
|
57
30
|
message: "Invalid post transformation parameter."
|
|
58
|
-
},
|
|
59
|
-
UPLOAD_ABORTED: {
|
|
60
|
-
message: "Request aborted by the user"
|
|
61
31
|
}
|
|
62
32
|
};
|
|
63
33
|
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imagekit/javascript",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.5",
|
|
4
4
|
"description": "ImageKit Javascript SDK",
|
|
5
5
|
"main": "dist/imagekit.cjs.js",
|
|
6
6
|
"module": "dist/imagekit.esm.js",
|
|
7
7
|
"browser": "dist/imagekit.min.js",
|
|
8
8
|
"unpkg": "dist/imagekit.min.js",
|
|
9
|
-
"types": "dist/
|
|
9
|
+
"types": "dist/index.d.ts",
|
|
10
10
|
"files": [
|
|
11
11
|
"dist",
|
|
12
12
|
"src"
|
|
@@ -1,24 +1,14 @@
|
|
|
1
1
|
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" },
|
|
6
2
|
MISSING_UPLOAD_FILE_PARAMETER: { message: "Missing file parameter for upload" },
|
|
7
3
|
MISSING_UPLOAD_FILENAME_PARAMETER: { message: "Missing fileName parameter for upload" },
|
|
8
|
-
MISSING_AUTHENTICATION_ENDPOINT: { message: "Missing authentication endpoint for upload" },
|
|
9
4
|
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." },
|
|
13
5
|
UPLOAD_ENDPOINT_NETWORK_ERROR: {
|
|
14
6
|
message: "Request to ImageKit upload endpoint failed due to network error"
|
|
15
7
|
},
|
|
16
|
-
INVALID_UPLOAD_OPTIONS: { message: "Invalid uploadOptions parameter" },
|
|
17
8
|
MISSING_SIGNATURE: { message: "Missing signature for upload. The SDK expects token, signature and expire for authentication." },
|
|
18
9
|
MISSING_TOKEN: { message: "Missing token for upload. The SDK expects token, signature and expire for authentication." },
|
|
19
10
|
MISSING_EXPIRE: { message: "Missing expire for upload. The SDK expects token, signature and expire for authentication." },
|
|
20
11
|
INVALID_TRANSFORMATION: { message: "Invalid transformation parameter. Please include at least pre, post, or both." },
|
|
21
12
|
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." }
|
|
24
14
|
};
|