@ollang-dev/sdk 0.3.3 → 0.3.4

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.
@@ -190,7 +190,7 @@ async function initTMS() {
190
190
  targetLanguages,
191
191
  ollang: {
192
192
  apiKey,
193
- baseUrl: 'http://localhost:8080',
193
+ baseUrl: 'https://api-integration.ollang.com',
194
194
  projectId,
195
195
  defaultLevel: 0,
196
196
  mockMode: process.env.TMS_MOCK_MODE === 'true',
@@ -288,6 +288,7 @@ app.post('/api/config/apikey', async (req, res) => {
288
288
  if (!baseUrl) {
289
289
  throw new Error('Base URL is not configured');
290
290
  }
291
+ console.warn('🔍 Validating API key with base URL:', baseUrl);
291
292
  const response = await fetch(`${baseUrl}/scans/folders`, {
292
293
  method: 'GET',
293
294
  headers: {
@@ -310,7 +311,7 @@ app.post('/api/config/apikey', async (req, res) => {
310
311
  });
311
312
  }
312
313
  catch (validationError) {
313
- console.error('❌ API key validation failed:', validationError.message);
314
+ console.error('❌ Test API key validation failed:', validationError.message);
314
315
  process.env.OLLANG_API_KEY = previousApiKey;
315
316
  tms = await initTMS();
316
317
  return res.status(401).json({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ollang-dev/sdk",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "Official TypeScript/Node.js SDK for Ollang API - Translation, Transcription, Dubbing, Closed Captioning, and Translation Management System",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",