Socket
Socket
Sign inDemoInstall

json-schema-to-typescript

Package Overview
Dependencies
Maintainers
1
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-schema-to-typescript - npm Package Compare versions

Comparing version 13.0.0 to 13.0.1

4

CHANGELOG.md

@@ -5,2 +5,6 @@ # Changelog

## 13.0.1
- b13a6f2 Bugfix: Boolean CLI flags were not respected (#524)
## 13.0.0

@@ -7,0 +11,0 @@

@@ -80,3 +80,15 @@ #!/usr/bin/env node

output: ['o']
}
},
boolean: [
'additionalProperties',
'declareExternallyReferenced',
'enableConstEnums',
'format',
'ignoreMinAndMaxItems',
'strictIndexSignatures',
'unknownAny',
'unreachableDefinitions'
],
default: index_1.DEFAULT_OPTIONS,
string: ['bannerComment', 'cwd']
}));

@@ -83,0 +95,0 @@ function main(argv) {

2

package.json
{
"name": "json-schema-to-typescript",
"version": "13.0.0",
"version": "13.0.1",
"description": "compile json schema to typescript typings",

@@ -5,0 +5,0 @@ "main": "dist/src/index.js",

@@ -94,6 +94,6 @@ # json-schema-to-typescript [![Build Status][build]](https://github.com/bcherny/json-schema-to-typescript/actions?query=branch%3Amaster+workflow%3ACI) [![npm]](https://www.npmjs.com/package/json-schema-to-typescript) [![mit]](https://opensource.org/licenses/MIT)

| maxItems | number | `20` | Maximum number of unioned tuples to emit when representing bounded-size array types, before falling back to emitting unbounded arrays. Increase this to improve precision of emitted types, decrease it to improve performance, or set it to `-1` to ignore `maxItems`.
| strictIndexSignatures | boolean | `false` | Append all index signatures with `\| undefined` so that they are strictly typed. |
| style | object | `{ bracketSpacing: false, printWidth: 120, semi: true, singleQuote: false, tabWidth: 2, trailingComma: 'none', useTabs: false }` | A [Prettier](https://prettier.io/docs/en/options.html) configuration |
| unknownAny | boolean | `true` | Use `unknown` instead of `any` where possible |
| unreachableDefinitions | boolean | `false` | Generates code for `$defs` that aren't referenced by the schema. |
| strictIndexSignatures | boolean | `false` | Append all index signatures with `\| undefined` so that they are strictly typed. |
| $refOptions | object | `{}` | [$RefParser](https://github.com/BigstickCarpet/json-schema-ref-parser) Options, used when resolving `$ref`s |

@@ -100,0 +100,0 @@ ## CLI

@@ -10,3 +10,3 @@ #!/usr/bin/env node

import {join, resolve, dirname, basename} from 'path'
import {compile, Options} from './index'
import {compile, DEFAULT_OPTIONS, Options} from './index'
import {pathTransform, error} from './utils'

@@ -20,3 +20,15 @@

output: ['o']
}
},
boolean: [
'additionalProperties',
'declareExternallyReferenced',
'enableConstEnums',
'format',
'ignoreMinAndMaxItems',
'strictIndexSignatures',
'unknownAny',
'unreachableDefinitions'
],
default: DEFAULT_OPTIONS,
string: ['bannerComment', 'cwd']
})

@@ -23,0 +35,0 @@ )

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc