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.1.1 to 13.1.2

2

dist/src/parser.js

@@ -335,3 +335,3 @@ "use strict";

var ast = parse(value, options, key, processed, usedNames);
var comment = "This interface was referenced by `".concat(parentSchemaName, "`'s JSON-Schema definition\nvia the `patternProperty` \"").concat(key, "\".");
var comment = "This interface was referenced by `".concat(parentSchemaName, "`'s JSON-Schema definition\nvia the `patternProperty` \"").concat(key.replace('*/', '*\\/'), "\".");
ast.comment = ast.comment ? "".concat(ast.comment, "\n\n").concat(comment) : comment;

@@ -338,0 +338,0 @@ return {

{
"name": "json-schema-to-typescript",
"version": "13.1.1",
"version": "13.1.2",
"description": "compile json schema to typescript typings",

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

@@ -417,3 +417,3 @@ import {JSONSchema4Type, JSONSchema4TypeName} from 'json-schema'

const comment = `This interface was referenced by \`${parentSchemaName}\`'s JSON-Schema definition
via the \`patternProperty\` "${key}".`
via the \`patternProperty\` "${key.replace('*/', '*\\/')}".`
ast.comment = ast.comment ? `${ast.comment}\n\n${comment}` : comment

@@ -420,0 +420,0 @@ return {

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