@ai0x0/utils 0.0.4 → 0.0.6

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.
@@ -75,20 +75,27 @@ export var createGetOperation = function createGetOperation(_ref) {
75
75
  table: table
76
76
  })(Object.assign(Object.fromEntries(new URL(req.url).searchParams), params));
77
77
  case 17:
78
- result = _context.sent;
78
+ _context.t2 = _context.sent;
79
+ if (_context.t2) {
80
+ _context.next = 20;
81
+ break;
82
+ }
83
+ _context.t2 = {};
84
+ case 20:
85
+ result = _context.t2;
79
86
  if (!onSuccess) {
80
- _context.next = 22;
87
+ _context.next = 25;
81
88
  break;
82
89
  }
83
- _context.next = 21;
90
+ _context.next = 24;
84
91
  return onSuccess(result);
85
- case 21:
92
+ case 24:
86
93
  result = _context.sent;
87
- case 22:
94
+ case 25:
88
95
  return _context.abrupt("return", TypedNextResponse.json(result, {
89
96
  status: 200
90
97
  }));
91
- case 23:
98
+ case 26:
92
99
  case "end":
93
100
  return _context.stop();
94
101
  }
@@ -79,7 +79,7 @@ var createGetOperation = ({
79
79
  Object.fromEntries(new URL(req.url).searchParams),
80
80
  params
81
81
  )
82
- );
82
+ ) || {};
83
83
  if (onSuccess) {
84
84
  result = await onSuccess(result);
85
85
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai0x0/utils",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "AI0x0 utils",
5
5
  "keywords": [
6
6
  "ai0x0"
@@ -42,14 +42,6 @@
42
42
  "tsc-files --noEmit"
43
43
  ]
44
44
  },
45
- "dependencies": {
46
- "dayjs": "^1.11.13",
47
- "drizzle-orm": "^0.38.3",
48
- "drizzle-zod": "^0.7.1",
49
- "next": "^15.3.2",
50
- "next-rest-framework": "npm:@infoxchange/next-rest-framework-patch@^6.0.6",
51
- "zod": "^3.24.4"
52
- },
53
45
  "devDependencies": {
54
46
  "@commitlint/cli": "^19.8.0",
55
47
  "@testing-library/react": "^16.2.0",
@@ -61,8 +53,11 @@
61
53
  "clean-package": "^2.2.0",
62
54
  "commitlint": "^19.8.0",
63
55
  "cross-env": "^7.0.3",
56
+ "dayjs": "^1.11.13",
57
+ "drizzle-orm": "^0.38.3",
58
+ "drizzle-zod": "^0.7.1",
64
59
  "dumi": "^2.4.18",
65
- "dumi-theme-lobehub": "^2.0.0",
60
+ "dumi-theme-lobehub": "^2.0.1",
66
61
  "eslint": "^8.57.1",
67
62
  "eslint-config-next": "^15.3.2",
68
63
  "eslint-config-prettier": "^10.1.5",
@@ -70,6 +65,8 @@
70
65
  "father": "^4.5.2",
71
66
  "husky": "^9.1.7",
72
67
  "lint-staged": "^15.5.0",
68
+ "next": "^15.3.2",
69
+ "next-rest-framework": "^6.0.7",
73
70
  "prettier": "^3.5.3",
74
71
  "pretty-quick": "^4.1.1",
75
72
  "react": "^19.0.0",
@@ -77,7 +74,8 @@
77
74
  "remark-cli": "^11",
78
75
  "tsc-files": "^1.1.4",
79
76
  "tsx": "^4.19.3",
80
- "typescript": "^5.8.2"
77
+ "typescript": "^5.8.2",
78
+ "zod": "^3.24.4"
81
79
  },
82
80
  "publishConfig": {
83
81
  "access": "public",