@suss/packs 0.33.0 → 0.33.1

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/node.js +5 -5
  2. package/package.json +10 -10
package/dist/node.js CHANGED
@@ -127,12 +127,12 @@ function schemaEnvReads(call, resolution) {
127
127
  if (!readerCouldFire(call, reader, written) || !callMatches(call, reader, resolution)) {
128
128
  continue;
129
129
  }
130
- const environment = environmentArgument(call, reader, resolution);
131
- if (environment === null || !resolution.isEnvironmentValue(environment)) {
130
+ const reads = readsFromSchema(call, reader, resolution);
131
+ if (reads.length === 0) {
132
132
  continue;
133
133
  }
134
- const reads = readsFromSchema(call, reader, resolution);
135
- if (reads.length > 0) {
134
+ const environment = environmentArgument(call, reader, resolution);
135
+ if (environment !== null && resolution.isEnvironmentValue(environment)) {
136
136
  return reads;
137
137
  }
138
138
  }
@@ -508,7 +508,7 @@ function namesReadAtSites(fn, resolution) {
508
508
  if (resolution === void 0) {
509
509
  return () => null;
510
510
  }
511
- const namers = resolution.envNamers(fn.getSourceFile());
511
+ const namers = resolution.envNamers(fn.getProject());
512
512
  return (parameter) => namers.sitesNaming(parameter);
513
513
  }
514
514
  function directEnvReads(fn, parameter) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suss/packs",
3
- "version": "0.33.0",
3
+ "version": "0.33.1",
4
4
  "type": "module",
5
5
  "description": "Every pack suss ships in one install, so it can read Express, Hono, NestJS, FastAPI, Rails, Prisma, OpenAPI and the rest.",
6
6
  "keywords": [
@@ -238,15 +238,15 @@
238
238
  "ts-morph": "^23.0.0"
239
239
  },
240
240
  "dependencies": {
241
- "@suss/adapter-python": "0.33.0",
242
- "@suss/adapter-ruby": "0.33.0",
243
- "@suss/adapter-typescript": "0.33.0",
244
- "@suss/behavioral-ir": "0.33.0",
245
- "@suss/contract-graphql": "0.33.0",
246
- "@suss/extractor": "0.33.0",
247
- "@suss/manifest-aws": "0.33.0",
248
- "@suss/recognize": "0.33.0",
249
- "@suss/sql": "0.33.0",
241
+ "@suss/adapter-python": "0.33.1",
242
+ "@suss/adapter-ruby": "0.33.1",
243
+ "@suss/adapter-typescript": "0.33.1",
244
+ "@suss/behavioral-ir": "0.33.1",
245
+ "@suss/contract-graphql": "0.33.1",
246
+ "@suss/extractor": "0.33.1",
247
+ "@suss/manifest-aws": "0.33.1",
248
+ "@suss/recognize": "0.33.1",
249
+ "@suss/sql": "0.33.1",
250
250
  "zod": "^4.0.0"
251
251
  },
252
252
  "devDependencies": {