@tpmjs/tools-sprites-sessions 0.1.2 → 0.1.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.
Files changed (2) hide show
  1. package/dist/index.js +8 -11
  2. package/package.json +9 -2
package/dist/index.js CHANGED
@@ -33,17 +33,14 @@ var spritesSessionsTool = tool({
33
33
  try {
34
34
  const controller = new AbortController();
35
35
  const timeoutId = setTimeout(() => controller.abort(), 3e4);
36
- response = await fetch(
37
- `${SPRITES_API_BASE}/sprites/${encodeURIComponent(name)}/exec/sessions`,
38
- {
39
- method: "GET",
40
- headers: {
41
- Authorization: `Bearer ${token}`,
42
- "User-Agent": "TPMJS/1.0"
43
- },
44
- signal: controller.signal
45
- }
46
- );
36
+ response = await fetch(`${SPRITES_API_BASE}/sprites/${encodeURIComponent(name)}/exec`, {
37
+ method: "GET",
38
+ headers: {
39
+ Authorization: `Bearer ${token}`,
40
+ "User-Agent": "TPMJS/1.0"
41
+ },
42
+ signal: controller.signal
43
+ });
47
44
  clearTimeout(timeoutId);
48
45
  } catch (error) {
49
46
  if (error instanceof Error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tpmjs/tools-sprites-sessions",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "List active execution sessions for a sprite",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -56,10 +56,17 @@
56
56
  "description": "Array of active execution sessions with count"
57
57
  }
58
58
  }
59
+ ],
60
+ "env": [
61
+ {
62
+ "name": "SPRITES_TOKEN",
63
+ "description": "API token from sprites.dev",
64
+ "required": true
65
+ }
59
66
  ]
60
67
  },
61
68
  "dependencies": {
62
- "ai": "6.0.23"
69
+ "ai": "6.0.49"
63
70
  },
64
71
  "scripts": {
65
72
  "build": "tsup",