@superblocksteam/sdk-api 0.0.13 → 2.0.0-SNAPSHOT.31b1bac4ca71e2f7

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.
package/README.md CHANGED
@@ -629,8 +629,7 @@ export default api({
629
629
  }
630
630
 
631
631
  const department = ctx.user.customClaims["department"] as
632
- | string
633
- | undefined;
632
+ string | undefined;
634
633
 
635
634
  ctx.log.info("Fetching tenant data", {
636
635
  userId: ctx.user.userId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superblocksteam/sdk-api",
3
- "version": "0.0.13",
3
+ "version": "2.0.0-SNAPSHOT.31b1bac4ca71e2f7",
4
4
  "description": "Superblocks SDK for TypeScript-based API definitions",
5
5
  "license": "Superblocks Community Software License",
6
6
  "files": [
@@ -12,6 +12,9 @@
12
12
  "sideEffects": false,
13
13
  "main": "dist/index.js",
14
14
  "types": "dist/index.d.ts",
15
+ "publishConfig": {
16
+ "registry": "https://registry.npmjs.org"
17
+ },
15
18
  "dependencies": {
16
19
  "@superblocksteam/types": "1.351.0",
17
20
  "zod": "^3.23.8"
@@ -19,7 +22,7 @@
19
22
  "devDependencies": {
20
23
  "@bufbuild/protobuf": "1.3.0",
21
24
  "@eslint/js": "^9.39.1",
22
- "@superblocksteam/shared": "0.0.1",
25
+ "@superblocksteam/shared": "2.0.0-SNAPSHOT.fe3e10d22aff0c65",
23
26
  "@types/node": "^20",
24
27
  "dotenv": "^16.4.5",
25
28
  "eslint": "^9.39.1",
@@ -162,9 +162,7 @@ The `query()` method requires a Zod schema for runtime validation:
162
162
  // WRONG - Missing schema parameter
163
163
  const users = await ctx.integrations.db.query(
164
164
  "SELECT * FROM users",
165
- [
166
- /* params */
167
- ], // This is wrong - params are 3rd argument
165
+ [/* params */], // This is wrong - params are 3rd argument
168
166
  );
169
167
 
170
168
  // CORRECT - Schema is the second parameter
@@ -292,9 +292,7 @@ The `query()` method requires a Zod schema for runtime validation. This is by de
292
292
  // WRONG - Missing schema parameter
293
293
  const users = await ctx.integrations.db.query(
294
294
  "SELECT * FROM users",
295
- [
296
- /* params */
297
- ], // This is wrong - params are 3rd argument
295
+ [/* params */], // This is wrong - params are 3rd argument
298
296
  );
299
297
 
300
298
  // CORRECT - Schema is the second parameter
@@ -137,9 +137,7 @@ The `query()` method requires a Zod schema for runtime validation:
137
137
  // WRONG - Missing schema parameter
138
138
  const users = await ctx.integrations.db.query(
139
139
  "SELECT * FROM users",
140
- [
141
- /* params */
142
- ], // This is wrong - params are 3rd argument
140
+ [/* params */], // This is wrong - params are 3rd argument
143
141
  );
144
142
 
145
143
  // CORRECT - Schema is the second parameter