File tree Expand file tree Collapse file tree 6 files changed +1
-9
lines changed
Expand file tree Collapse file tree 6 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ import ImageKit from '@imagekit/nodejs';
2525
2626const 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
3130const response = await client .files .upload ({
@@ -46,7 +45,6 @@ import ImageKit from '@imagekit/nodejs';
4645
4746const 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
5250const params: ImageKit .FileUploadParams = {
@@ -99,8 +97,7 @@ Generate a simple URL without any transformations:
9997import ImageKit from ' @imagekit/nodejs' ;
10098
10199const 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
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import ImageKit from '@imagekit/nodejs';
22
33const 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
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import type { SrcOptions } from '../../../src/resources/shared';
33
44const 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
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import type { Transformation } from '../../../src/resources/shared';
33
44const 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
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import { safeBtoa } from '../../../src/lib/transformation-utils';
33
44const 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
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ import ImageKit from '@imagekit/nodejs';
99 */
1010const 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
You can’t perform that action at this time.
0 commit comments