Skip to content

Commit 08a5744

Browse files
committed
feat: remove password field from ImageKit client initialization in tests and documentation
1 parent 454c722 commit 08a5744

File tree

6 files changed

+1
-9
lines changed

6 files changed

+1
-9
lines changed

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import ImageKit from '@imagekit/nodejs';
2525

2626
const client = new ImageKit({
2727
privateKey: process.env['IMAGEKIT_PRIVATE_KEY'], // This is the default and can be omitted
28-
password: process.env['OPTIONAL_IMAGEKIT_IGNORES_THIS'], // This is the default and can be omitted
2928
});
3029

3130
const response = await client.files.upload({
@@ -46,7 +45,6 @@ import ImageKit from '@imagekit/nodejs';
4645

4746
const client = new ImageKit({
4847
privateKey: process.env['IMAGEKIT_PRIVATE_KEY'], // This is the default and can be omitted
49-
password: process.env['OPTIONAL_IMAGEKIT_IGNORES_THIS'], // This is the default and can be omitted
5048
});
5149

5250
const params: ImageKit.FileUploadParams = {
@@ -99,8 +97,7 @@ Generate a simple URL without any transformations:
9997
import ImageKit from '@imagekit/nodejs';
10098

10199
const client = new ImageKit({
102-
privateKey: process.env['IMAGEKIT_PRIVATE_KEY'],
103-
password: process.env['ORG_MY_PASSWORD_TOKEN'],
100+
privateKey: process.env['IMAGEKIT_PRIVATE_KEY']
104101
});
105102

106103
// Basic URL without transformations

tests/custom-tests/helper-authentication.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import ImageKit from '@imagekit/nodejs';
22

33
const client = new ImageKit({
44
privateKey: 'private_key_test',
5-
password: 'My Password',
65
baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010',
76
});
87

tests/custom-tests/url-generation/basic.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import type { SrcOptions } from '../../../src/resources/shared';
33

44
const client = new ImageKit({
55
privateKey: 'My Private API Key',
6-
password: 'My Password',
76
baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010',
87
});
98

tests/custom-tests/url-generation/buildTransformationString.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import type { Transformation } from '../../../src/resources/shared';
33

44
const client = new ImageKit({
55
privateKey: 'My Private API Key',
6-
password: 'My Password',
76
baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010',
87
});
98

tests/custom-tests/url-generation/overlay.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { safeBtoa } from '../../../src/lib/transformation-utils';
33

44
const client = new ImageKit({
55
privateKey: 'My Private API Key',
6-
password: 'My Password',
76
baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010',
87
});
98

tests/custom-tests/url-generation/signing.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import ImageKit from '@imagekit/nodejs';
99
*/
1010
const client = new ImageKit({
1111
privateKey: 'dummy-key',
12-
password: 'My Password',
1312
baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010',
1413
});
1514

0 commit comments

Comments
 (0)