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

json-schema-ts

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-schema-ts - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

2

index.js

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

s.items = items;
function ref(path, refType) {
function ref(path) {
return {

@@ -61,0 +61,0 @@ '$ref': path,

@@ -249,3 +249,3 @@ export namespace t {

export function ref<T extends t.Schema>(path: string, refType: T): t.RefType<T> {
export function ref<T extends t.Schema>(path: string): t.RefType<T> {
return {

@@ -252,0 +252,0 @@ '$ref': path,

{
"name": "json-schema-ts",
"version": "1.1.1",
"version": "1.1.2",
"description": "JSON schema types for TypeScript",

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

@@ -37,3 +37,3 @@ # JSON Schema for TypeScript

'friends': s.array({'items': s.string()}),
'sex': s.ref('#/definitions/sex', sex),
'sex': s.ref<typeof sex>('#/definitions/sex'),
'location': s.oneOf(

@@ -70,2 +70,2 @@ s.string(),

## License
MIT. See LICENSE.
MIT. See LICENSE.

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

{
var the_ref = index_1.s.ref('#/hello', index_1.s.number());
var the_ref = index_1.s.ref('#/hello');
(function (_X) { })(1);

@@ -166,3 +166,3 @@ }

// 'false': false,
'ref': index_1.s.ref('hello', refObject),
'ref': index_1.s.ref('hello'),
},

@@ -204,3 +204,3 @@ });

'friends': index_1.s.array({ 'items': index_1.s.string() }),
'sex': index_1.s.ref('#/definitions/sex', sex),
'sex': index_1.s.ref('#/definitions/sex'),
'location': index_1.s.oneOf(index_1.s.string(), index_1.s.tuple({ 'items': index_1.s.items(index_1.s.number(), index_1.s.number()) }))

@@ -207,0 +207,0 @@ }

@@ -172,3 +172,3 @@ import {t, s} from './index';

{
const the_ref = s.ref('#/hello', s.number());
const the_ref = s.ref<t.NumberType>('#/hello');
type T = t.TSType<typeof the_ref>;

@@ -218,3 +218,3 @@ ((_X: T) => {})(1);

// 'false': false,
'ref': s.ref('hello', refObject),
'ref': s.ref<typeof refObject>('hello'),
},

@@ -260,3 +260,3 @@ });

'friends': s.array({'items': s.string()}),
'sex': s.ref('#/definitions/sex', sex),
'sex': s.ref<typeof sex>('#/definitions/sex'),
'location': s.oneOf(

@@ -263,0 +263,0 @@ s.string(),

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