@amritk/helpers 0.15.2 → 0.15.3

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.
@@ -159,8 +159,8 @@ const patternPropertiesRecordType = (patternProperties, options) => {
159
159
  const getTuplePositions = (schema) => {
160
160
  const record = schema;
161
161
  const prefixItems = record["prefixItems"];
162
- if (Array.isArray(prefixItems) && prefixItems.length > 0)
163
- return prefixItems;
162
+ if (Array.isArray(prefixItems))
163
+ return prefixItems.length > 0 ? prefixItems : void 0;
164
164
  if (Array.isArray(schema.items) && schema.items.length > 0)
165
165
  return schema.items;
166
166
  return void 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amritk/helpers",
3
- "version": "0.15.2",
3
+ "version": "0.15.3",
4
4
  "description": "Shared utilities for the mjst code generation ecosystem.",
5
5
  "type": "module",
6
6
  "sideEffects": false,