@hey-api/openapi-ts 0.97.0 → 0.97.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.
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { a as clientDefaultConfig, c as TypeScriptRenderer, d as reserved, f as keywords, l as TsDslContext, m as TsDsl, n as defaultPlugins, o as clientDefaultMeta, p as regexp, r as clientPluginHandler, s as $, u as ctx } from "./init-EigcXVTH.mjs";
2
- import { a as defineConfig, c as createClient, i as defaultPaginationKeywords, n as OperationPath, o as definePluginConfig, r as OperationStrategy, s as utils, t as Logger } from "./src-ErSC87Z1.mjs";
1
+ import { a as clientDefaultConfig, c as TypeScriptRenderer, d as reserved, f as keywords, l as TsDslContext, m as TsDsl, n as defaultPlugins, o as clientDefaultMeta, p as regexp, r as clientPluginHandler, s as $, u as ctx } from "./init-Bi6_Uyy_.mjs";
2
+ import { a as defineConfig, c as createClient, i as defaultPaginationKeywords, n as OperationPath, o as definePluginConfig, r as OperationStrategy, s as utils, t as Logger } from "./src-CSz9FXkH.mjs";
3
3
  export { $, Logger, OperationPath, OperationStrategy, TsDsl, TsDslContext, TypeScriptRenderer, clientDefaultConfig, clientDefaultMeta, clientPluginHandler, createClient, ctx, defaultPaginationKeywords, defaultPlugins, defineConfig, definePluginConfig, keywords, regexp, reserved, utils };
@@ -3178,8 +3178,8 @@ var ImplForTsDsl = class extends Mixed$20 {
3178
3178
  analyze(ctx) {
3179
3179
  ctx.analyze(this._condition);
3180
3180
  ctx.analyze(this._iterableOrUpdate);
3181
- ctx.analyze(this._variableOrInit);
3182
3181
  ctx.pushScope();
3182
+ ctx.analyze(this._variableOrInit);
3183
3183
  try {
3184
3184
  super.analyze(ctx);
3185
3185
  } finally {
@@ -6451,14 +6451,15 @@ function processSchemaType({ dataExpression, plugin, schema }) {
6451
6451
  else nodes.push($.if(propertyAccessExpression).do(...propertyNodes));
6452
6452
  }
6453
6453
  if (schema.additionalProperties && dataExpression) {
6454
+ const key = plugin.symbol("key");
6454
6455
  const entryValueNodes = processSchemaType({
6455
- dataExpression: $(dataExpression).attr("key").computed(),
6456
+ dataExpression: $(dataExpression).attr(key).computed(),
6456
6457
  plugin,
6457
6458
  schema: schema.additionalProperties
6458
6459
  });
6459
6460
  if (entryValueNodes.length) {
6460
6461
  const properties = Object.keys(schema.properties ?? {});
6461
- nodes.push($.for($.const("key")).of($("Object").attr("keys").call(dataExpression)).$if(properties.length, (f) => f.do($.if($.not($.array(...properties).attr("includes").call("key"))).do(...entryValueNodes)), (f) => f.do(...entryValueNodes)));
6462
+ nodes.push($.for($.const(key)).of($("Object").attr("keys").call(dataExpression)).$if(properties.length, (f) => f.do($.if($.not($.array(...properties).attr("includes").call(key))).do(...entryValueNodes)), (f) => f.do(...entryValueNodes)));
6462
6463
  }
6463
6464
  }
6464
6465
  return nodes;
@@ -17529,4 +17530,4 @@ async function resolveJobs({ logger, userConfigs }) {
17529
17530
  //#endregion
17530
17531
  export { postProcessors as _, clientDefaultConfig as a, TypeScriptRenderer as c, reserved as d, keywords as f, getTypedConfig as g, getClientPlugin as h, generateClientBundle as i, TsDslContext as l, TsDsl as m, defaultPlugins as n, clientDefaultMeta as o, regexp as p, clientPluginHandler as r, $ as s, resolveJobs as t, ctx as u };
17531
17532
 
17532
- //# sourceMappingURL=init-EigcXVTH.mjs.map
17533
+ //# sourceMappingURL=init-Bi6_Uyy_.mjs.map