forge-fsql 1.0.0 → 1.0.2

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.
@@ -35,7 +35,7 @@ class ForgeClient {
35
35
  error: `HTTP ${response.status}: ${errorText}`,
36
36
  };
37
37
  }
38
- const data = await response.json();
38
+ const data = (await response.json());
39
39
  const elapsed = Date.now() - startTime;
40
40
  return {
41
41
  ...data,
package/dist/client.js CHANGED
@@ -29,7 +29,7 @@ export class ForgeClient {
29
29
  error: `HTTP ${response.status}: ${errorText}`,
30
30
  };
31
31
  }
32
- const data = await response.json();
32
+ const data = (await response.json());
33
33
  const elapsed = Date.now() - startTime;
34
34
  return {
35
35
  ...data,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forge-fsql",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "description": "Interactive SQL CLI for Atlassian Forge SQL via web triggers",
6
6
  "main": "dist/cjs/index.js",
@@ -22,19 +22,6 @@
22
22
  "bin",
23
23
  "README.md"
24
24
  ],
25
- "scripts": {
26
- "build": "tsc && tsc -p tsconfig.cjs.json && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json",
27
- "dev": "ts-node src/index.ts",
28
- "start": "node dist/index.js",
29
- "fsql": "node ./bin/fsql",
30
- "lint": "pnpm lint:eslint && pnpm lint:prettier",
31
- "lint:eslint": "eslint '**/*.{ts,tsx,js,jsx}' --ignore-pattern '**/eslint.config.js'",
32
- "lint:prettier": "prettier '**/*.{ts,tsx,js,jsx,json,md,yaml,yml}' --check || echo '⚠️ Warning: Prettier formatting issues found. Run \"pnpm fixstyle\" to fix them.'",
33
- "fixall": "pnpm fixstyle && pnpm fixsrc",
34
- "fixsrc": "eslint '**/*.{ts,tsx,js,jsx}' --ignore-pattern '**/eslint.config.js' --fix",
35
- "fixstyle": "prettier '**/*.{ts,tsx,js,jsx,json,md,yaml,yml}' --write",
36
- "prepare": "husky"
37
- },
38
25
  "lint-staged": {
39
26
  "**/*.{ts,tsx,js,jsx,json,md,yaml,yml}": [
40
27
  "pnpm fixstyle",
@@ -51,19 +38,16 @@
51
38
  "license": "MIT",
52
39
  "dependencies": {
53
40
  "@forge/sql": "^3.0.14",
54
- "chalk": "^4.1.2",
41
+ "chalk": "^5.4.1",
55
42
  "cli-table3": "^0.6.3",
56
43
  "dotenv": "^16.0.3",
57
- "js-yaml": "^4.1.1",
58
- "node-fetch": "^2.7.0",
59
- "readline": "^1.3.0"
44
+ "js-yaml": "^4.1.1"
60
45
  },
61
46
  "devDependencies": {
62
47
  "@eslint/eslintrc": "^3.3.3",
63
48
  "@eslint/js": "^9.39.1",
64
49
  "@types/js-yaml": "^4.0.9",
65
50
  "@types/node": "^22.19.1",
66
- "@types/node-fetch": "^2.6.11",
67
51
  "@typescript-eslint/eslint-plugin": "^8.48.0",
68
52
  "@typescript-eslint/parser": "^8.48.0",
69
53
  "eslint": "9.39.1",
@@ -76,5 +60,17 @@
76
60
  "ts-node": "^10.9.1",
77
61
  "typescript": "^5.9.3",
78
62
  "typescript-eslint": "^8.48.0"
63
+ },
64
+ "scripts": {
65
+ "build": "tsc && tsc -p tsconfig.cjs.json && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json",
66
+ "dev": "ts-node src/index.ts",
67
+ "start": "node dist/index.js",
68
+ "fsql": "node ./bin/fsql",
69
+ "lint": "pnpm lint:eslint && pnpm lint:prettier",
70
+ "lint:eslint": "eslint '**/*.{ts,tsx,js,jsx}' --ignore-pattern '**/eslint.config.js'",
71
+ "lint:prettier": "prettier '**/*.{ts,tsx,js,jsx,json,md,yaml,yml}' --check || echo '⚠️ Warning: Prettier formatting issues found. Run \"pnpm fixstyle\" to fix them.'",
72
+ "fixall": "pnpm fixstyle && pnpm fixsrc",
73
+ "fixsrc": "eslint '**/*.{ts,tsx,js,jsx}' --ignore-pattern '**/eslint.config.js' --fix",
74
+ "fixstyle": "prettier '**/*.{ts,tsx,js,jsx,json,md,yaml,yml}' --write"
79
75
  }
80
- }
76
+ }