@stacksjs/api 0.75.518 → 0.75.520

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.
@@ -18,4 +18,4 @@ ${methods.join(`
18
18
  }
19
19
  }
20
20
  export type Client = ReturnType<typeof createClient>
21
- `}if(require.main==require.module){const apiRoot=resolve(import.meta.dir,"../../../api");const input=resolve(process.argv[2]||resolve(apiRoot,"openapi.json"));const output=resolve(process.argv[3]||resolve(apiRoot,"client.ts"));const document=JSON.parse(readFileSync(input,"utf8"));writeFileSync(output,renderApiClient(document));console.log(`Generated ${output}`)}
21
+ `}if(import.meta.main){const apiRoot=resolve(import.meta.dir,"../../../api");const input=resolve(process.argv[2]||resolve(apiRoot,"openapi.json"));const output=resolve(process.argv[3]||resolve(apiRoot,"client.ts"));const document=JSON.parse(readFileSync(input,"utf8"));writeFileSync(output,renderApiClient(document));console.log(`Generated ${output}`)}
@@ -28,4 +28,4 @@ ${paths.join(`
28
28
  }
29
29
 
30
30
  ${renderSchemaComponents(document)}
31
- `}if(require.main==require.module){const apiRoot=resolve(import.meta.dir,"../../../api");const input=resolve(process.argv[2]||resolve(apiRoot,"openapi.json"));const output=resolve(process.argv[3]||resolve(apiRoot,"api-types.ts"));const document=JSON.parse(readFileSync(input,"utf8"));writeFileSync(output,renderOpenApiTypes(document));console.log(`Generated ${output}`)}
31
+ `}if(import.meta.main){const apiRoot=resolve(import.meta.dir,"../../../api");const input=resolve(process.argv[2]||resolve(apiRoot,"openapi.json"));const output=resolve(process.argv[3]||resolve(apiRoot,"api-types.ts"));const document=JSON.parse(readFileSync(input,"utf8"));writeFileSync(output,renderOpenApiTypes(document));console.log(`Generated ${output}`)}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/api",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.75.518",
5
+ "version": "0.75.520",
6
6
  "description": "The Stacks API utilities.",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [
@@ -61,17 +61,17 @@
61
61
  "prepublishOnly": "bun run build"
62
62
  },
63
63
  "dependencies": {
64
- "@stacksjs/config": "0.75.518",
65
- "@stacksjs/path": "0.75.518",
66
- "@stacksjs/pagination": "0.75.518",
64
+ "@stacksjs/config": "0.75.520",
65
+ "@stacksjs/path": "0.75.520",
66
+ "@stacksjs/pagination": "0.75.520",
67
67
  "hash-wasm": "^4.12.0"
68
68
  },
69
69
  "devDependencies": {
70
- "@stacksjs/utils": "0.75.518",
70
+ "@stacksjs/utils": "0.75.520",
71
71
  "better-dx": "^0.2.24"
72
72
  },
73
73
  "peerDependencies": {
74
- "@stacksjs/router": "0.75.518"
74
+ "@stacksjs/router": "0.75.520"
75
75
  },
76
76
  "peerDependenciesMeta": {
77
77
  "@stacksjs/router": {