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 4.5.2 to 4.5.3

2

dist/src/cli.js

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

}
return fs_1.readFile(path_1.join(process.cwd(), argIn), 'utf-8');
return fs_1.readFile(path_1.resolve(process.cwd(), argIn), 'utf-8');
}

@@ -94,0 +94,0 @@ function writeOutput(ts, argOut) {

{
"name": "json-schema-to-typescript",
"version": "4.5.2",
"version": "4.5.3",
"description": "compile json schema to typescript typings",

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

#!/usr/bin/env node
import { readFile, writeFile } from 'mz/fs'
import { join } from 'path'
import { resolve } from 'path'
import stdin = require('stdin')

@@ -43,3 +43,3 @@ import { JSONSchema4 } from 'json-schema'

}
return readFile(join(process.cwd(), argIn), 'utf-8')
return readFile(resolve(process.cwd(), argIn), 'utf-8')
}

@@ -46,0 +46,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