@quikturn/logos 0.4.1 → 0.5.0

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.
@@ -366,8 +366,8 @@ async function browserFetch(url, options) {
366
366
  throw new AuthenticationError("Authentication failed");
367
367
  }
368
368
  if (response.status === 403) {
369
- const body2 = await response.text();
370
- const reason = body2.slice(0, 256) || "unknown";
369
+ const body = await response.text();
370
+ const reason = body.slice(0, 256) || "unknown";
371
371
  throw new ForbiddenError("Access forbidden", reason);
372
372
  }
373
373
  if (response.status === 404) {
@@ -407,8 +407,8 @@ async function browserFetch(url, options) {
407
407
  );
408
408
  }
409
409
  if (response.status === 400) {
410
- const body2 = await response.text();
411
- throw new BadRequestError(body2.slice(0, 256) || "Bad request");
410
+ const body = await response.text();
411
+ throw new BadRequestError(body.slice(0, 256) || "Bad request");
412
412
  }
413
413
  if (response.status === 500) {
414
414
  if (!serverErrorRetried) {
@@ -416,9 +416,9 @@ async function browserFetch(url, options) {
416
416
  await delay(SERVER_ERROR_RETRY_DELAY_MS);
417
417
  continue;
418
418
  }
419
- const body2 = await response.text();
419
+ const body = await response.text();
420
420
  throw new LogoError(
421
- body2.slice(0, 256) || "Internal server error",
421
+ body.slice(0, 256) || "Internal server error",
422
422
  "SERVER_ERROR",
423
423
  500
424
424
  );
@@ -364,8 +364,8 @@ async function browserFetch(url, options) {
364
364
  throw new AuthenticationError("Authentication failed");
365
365
  }
366
366
  if (response.status === 403) {
367
- const body2 = await response.text();
368
- const reason = body2.slice(0, 256) || "unknown";
367
+ const body = await response.text();
368
+ const reason = body.slice(0, 256) || "unknown";
369
369
  throw new ForbiddenError("Access forbidden", reason);
370
370
  }
371
371
  if (response.status === 404) {
@@ -405,8 +405,8 @@ async function browserFetch(url, options) {
405
405
  );
406
406
  }
407
407
  if (response.status === 400) {
408
- const body2 = await response.text();
409
- throw new BadRequestError(body2.slice(0, 256) || "Bad request");
408
+ const body = await response.text();
409
+ throw new BadRequestError(body.slice(0, 256) || "Bad request");
410
410
  }
411
411
  if (response.status === 500) {
412
412
  if (!serverErrorRetried) {
@@ -414,9 +414,9 @@ async function browserFetch(url, options) {
414
414
  await delay(SERVER_ERROR_RETRY_DELAY_MS);
415
415
  continue;
416
416
  }
417
- const body2 = await response.text();
417
+ const body = await response.text();
418
418
  throw new LogoError(
419
- body2.slice(0, 256) || "Internal server error",
419
+ body.slice(0, 256) || "Internal server error",
420
420
  "SERVER_ERROR",
421
421
  500
422
422
  );
@@ -369,8 +369,8 @@ async function serverFetch(url, options) {
369
369
  throw new AuthenticationError("Authentication failed");
370
370
  }
371
371
  if (response.status === 403) {
372
- const body2 = await response.text();
373
- const reason = body2.slice(0, 256) || "unknown";
372
+ const body = await response.text();
373
+ const reason = body.slice(0, 256) || "unknown";
374
374
  throw new ForbiddenError("Access forbidden", reason);
375
375
  }
376
376
  if (response.status === 404) {
@@ -410,8 +410,8 @@ async function serverFetch(url, options) {
410
410
  );
411
411
  }
412
412
  if (response.status === 400) {
413
- const body2 = await response.text();
414
- throw new BadRequestError(body2.slice(0, 256) || "Bad request");
413
+ const body = await response.text();
414
+ throw new BadRequestError(body.slice(0, 256) || "Bad request");
415
415
  }
416
416
  if (response.status === 500) {
417
417
  if (!serverErrorRetried) {
@@ -419,9 +419,9 @@ async function serverFetch(url, options) {
419
419
  await delay(SERVER_ERROR_RETRY_DELAY_MS);
420
420
  continue;
421
421
  }
422
- const body2 = await response.text();
422
+ const body = await response.text();
423
423
  throw new LogoError(
424
- body2.slice(0, 256) || "Internal server error",
424
+ body.slice(0, 256) || "Internal server error",
425
425
  "SERVER_ERROR",
426
426
  500
427
427
  );
@@ -367,8 +367,8 @@ async function serverFetch(url, options) {
367
367
  throw new AuthenticationError("Authentication failed");
368
368
  }
369
369
  if (response.status === 403) {
370
- const body2 = await response.text();
371
- const reason = body2.slice(0, 256) || "unknown";
370
+ const body = await response.text();
371
+ const reason = body.slice(0, 256) || "unknown";
372
372
  throw new ForbiddenError("Access forbidden", reason);
373
373
  }
374
374
  if (response.status === 404) {
@@ -408,8 +408,8 @@ async function serverFetch(url, options) {
408
408
  );
409
409
  }
410
410
  if (response.status === 400) {
411
- const body2 = await response.text();
412
- throw new BadRequestError(body2.slice(0, 256) || "Bad request");
411
+ const body = await response.text();
412
+ throw new BadRequestError(body.slice(0, 256) || "Bad request");
413
413
  }
414
414
  if (response.status === 500) {
415
415
  if (!serverErrorRetried) {
@@ -417,9 +417,9 @@ async function serverFetch(url, options) {
417
417
  await delay(SERVER_ERROR_RETRY_DELAY_MS);
418
418
  continue;
419
419
  }
420
- const body2 = await response.text();
420
+ const body = await response.text();
421
421
  throw new LogoError(
422
- body2.slice(0, 256) || "Internal server error",
422
+ body.slice(0, 256) || "Internal server error",
423
423
  "SERVER_ERROR",
424
424
  500
425
425
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quikturn/logos",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
4
4
  "description": "Quikturn Logo SDK — URL builder, browser client, and server client for the Quikturn Logos API",
5
5
  "license": "MIT",
6
6
  "author": "Quikturn",
@@ -30,7 +30,6 @@
30
30
  },
31
31
  "files": [
32
32
  "dist",
33
- "package.json",
34
33
  "LICENSE",
35
34
  "README.md"
36
35
  ],
@@ -81,20 +80,29 @@
81
80
  "test:watch": "vitest",
82
81
  "test:coverage": "vitest run --coverage",
83
82
  "typecheck": "tsc --noEmit",
84
- "lint": "tsc --noEmit",
85
- "check": "pnpm lint && pnpm typecheck",
83
+ "lint": "eslint .",
84
+ "lint:fix": "eslint . --fix",
85
+ "check": "pnpm typecheck && pnpm lint",
86
86
  "prepublishOnly": "pnpm run build"
87
87
  },
88
88
  "devDependencies": {
89
+ "@eslint/js": "^9.39.2",
89
90
  "@semantic-release/changelog": "^6.0.3",
90
91
  "@semantic-release/git": "^10.0.1",
91
92
  "@types/jsdom": "^27.0.0",
92
93
  "@types/node": "^25.2.2",
93
94
  "@vitest/coverage-v8": "^4.0.18",
95
+ "angular-eslint": "^21.2.0",
96
+ "eslint": "^9.39.2",
97
+ "eslint-plugin-react-hooks": "^7.0.1",
98
+ "eslint-plugin-svelte": "^3.15.0",
99
+ "eslint-plugin-vue": "^10.7.0",
100
+ "globals": "^17.3.0",
94
101
  "jsdom": "^28.0.0",
95
102
  "semantic-release": "^25.0.3",
96
103
  "tsup": "^8.5.1",
97
104
  "typescript": "^5.9.3",
105
+ "typescript-eslint": "^8.55.0",
98
106
  "vitest": "^4.0.18"
99
107
  }
100
108
  }