New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

io-ts-from-json-schema

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

io-ts-from-json-schema - npm Package Compare versions

Comparing version 0.0.16 to 0.0.17

lib/types/def.d.ts

15

lib/iotsfjs.js

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

var printc_1 = require("./codegen/printc");
var hyper_1 = require("./vocab/hyper");
/* eslint-disable @typescript-eslint/no-use-before-define */

@@ -270,3 +271,3 @@ function iotsfjs(inputSchema, args, stderr) {

}
return withoutSuffix;
return './'.concat(withoutSuffix);
}

@@ -722,3 +723,12 @@ function importBaseName(filePath) {

var rootDef = fromRoot(schema);
return namedDefs.concat(rootDef);
var hyperDef = hyper_1.fromHyper({
defaultExport: defaultExport,
extractExamples: extractExamples,
extractDefaultValue: extractDefaultValue,
imps: imps,
exps: exps,
fromSchema: fromSchema,
generateChecks: generateChecks,
})(schema);
return namedDefs.concat(rootDef).concat(hyperDef);
}

@@ -839,2 +849,3 @@ function constructDefs(defInputs) {

'examples',
'links',
];

@@ -841,0 +852,0 @@ supportedOutsideRoot = ['$ref'];

4

package.json
{
"name": "io-ts-from-json-schema",
"version": "0.0.16",
"version": "0.0.17",
"description": "Iotsfjs is a static code generation utility used for converting json schema files into static TypeScript types and io-ts runtime validators.",

@@ -26,2 +26,3 @@ "main": "lib/cli.js",

"io-ts-codegen": "^0.4.5",
"uri-template": "^1.0.1",
"yargs": "^15.3.1"

@@ -31,2 +32,3 @@ },

"@types/glob": "^7.1.3",
"@types/json-schema": "^7.0.7",
"@types/node": "^14.0.1",

@@ -33,0 +35,0 @@ "@types/yargs": "^15.0.5",

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