Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@0xproject/json-schemas

Package Overview
Dependencies
Maintainers
5
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0xproject/json-schemas - npm Package Compare versions

Comparing version 0.6.8 to 0.6.9

2

lib/src/schema_validator.d.ts

@@ -1,2 +0,2 @@

import { ValidatorResult, Schema } from 'jsonschema';
import { Schema, ValidatorResult } from 'jsonschema';
export declare class SchemaValidator {

@@ -3,0 +3,0 @@ private validator;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var jsonschema_1 = require("jsonschema");
var values = require("lodash.values");
var jsonschema_1 = require("jsonschema");
var schemas_1 = require("./schemas");

@@ -6,0 +6,0 @@ var SchemaValidator = /** @class */ (function () {

@@ -11,14 +11,14 @@ "use strict";

var order_schemas_1 = require("../schemas/order_schemas");
var subscription_opts_schema_1 = require("../schemas/subscription_opts_schema");
var token_schema_1 = require("../schemas/token_schema");
var signed_orders_schema_1 = require("../schemas/signed_orders_schema");
var relayer_api_error_response_schema_1 = require("../schemas/relayer_api_error_response_schema");
var relayer_api_fees_payload_schema_1 = require("../schemas/relayer_api_fees_payload_schema");
var relayer_api_fees_response_schema_1 = require("../schemas/relayer_api_fees_response_schema");
var relayer_api_fees_payload_schema_1 = require("../schemas/relayer_api_fees_payload_schema");
var relayer_api_orberbook_channel_subscribe_schema_1 = require("../schemas/relayer_api_orberbook_channel_subscribe_schema");
var relayer_api_orderbook_channel_snapshot_schema_1 = require("../schemas/relayer_api_orderbook_channel_snapshot_schema");
var relayer_api_orderbook_channel_update_response_schema_1 = require("../schemas/relayer_api_orderbook_channel_update_response_schema");
var relayer_api_orderbook_response_schema_1 = require("../schemas/relayer_api_orderbook_response_schema");
var relayer_api_token_pairs_response_schema_1 = require("../schemas/relayer_api_token_pairs_response_schema");
var signed_orders_schema_1 = require("../schemas/signed_orders_schema");
var subscription_opts_schema_1 = require("../schemas/subscription_opts_schema");
var token_schema_1 = require("../schemas/token_schema");
var tx_data_schema_1 = require("../schemas/tx_data_schema");
var relayer_api_orberbook_channel_subscribe_schema_1 = require("../schemas/relayer_api_orberbook_channel_subscribe_schema");
var relayer_api_orderbook_channel_update_response_schema_1 = require("../schemas/relayer_api_orderbook_channel_update_response_schema");
var relayer_api_orderbook_channel_snapshot_schema_1 = require("../schemas/relayer_api_orderbook_channel_snapshot_schema");
exports.schemas = {

@@ -25,0 +25,0 @@ numberSchema: basic_type_schemas_1.numberSchema,

@@ -11,7 +11,7 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var bignumber_js_1 = require("bignumber.js");
var chai = require("chai");
var dirtyChai = require("dirty-chai");
var forEach = require("lodash.foreach");
require("mocha");
var forEach = require("lodash.foreach");
var dirtyChai = require("dirty-chai");
var chai = require("chai");
var bignumber_js_1 = require("bignumber.js");
var index_1 = require("../src/index");

@@ -924,3 +924,3 @@ chai.config.includeStack = true;

});
});
}); // tslint:disable:max-file-line-count
//# sourceMappingURL=schema_test.js.map
{
"name": "@0xproject/json-schemas",
"version": "0.6.8",
"version": "0.6.9",
"description": "0x-related json schemas",

@@ -8,3 +8,3 @@ "main": "lib/src/index.js",

"scripts": {
"lint": "tslint src/*.ts test/*.ts",
"lint": "tslint --project . src/*.ts test/*.ts",
"test": "run-s clean build run_mocha",

@@ -32,3 +32,3 @@ "test:circleci": "yarn test",

"devDependencies": {
"@0xproject/tslint-config": "^0.1.1",
"@0xproject/tslint-config": "^0.2.0",
"@types/lodash.foreach": "^4.5.3",

@@ -35,0 +35,0 @@ "@types/lodash.values": "^4.3.3",

@@ -0,3 +1,4 @@

import {Schema, Validator, ValidatorResult} from 'jsonschema';
import values = require('lodash.values');
import {Validator, ValidatorResult, Schema} from 'jsonschema';
import {schemas} from './schemas';

@@ -4,0 +5,0 @@

import {
addressSchema,
numberSchema,
addressSchema,
} from '../schemas/basic_type_schemas';
import {
ecSignatureParameterSchema,
ecSignatureSchema,
ecSignatureParameterSchema,
} from '../schemas/ec_signature_schema';

@@ -29,21 +29,22 @@ import {

import {
blockParamSchema,
subscriptionOptsSchema,
} from '../schemas/subscription_opts_schema';
import {
tokenSchema,
} from '../schemas/token_schema';
import {
signedOrdersSchema,
} from '../schemas/signed_orders_schema';
import {
relayerApiErrorResponseSchema,
} from '../schemas/relayer_api_error_response_schema';
import {
relayerApiFeesPayloadSchema,
} from '../schemas/relayer_api_fees_payload_schema';
import {
relayerApiFeesResponseSchema,
} from '../schemas/relayer_api_fees_response_schema';
import {
relayerApiFeesPayloadSchema,
} from '../schemas/relayer_api_fees_payload_schema';
relayerApiOrderbookChannelSubscribePayload,
relayerApiOrderbookChannelSubscribeSchema,
} from '../schemas/relayer_api_orberbook_channel_subscribe_schema';
import {
relayerApiOrderbookChannelSnapshotPayload,
relayerApiOrderbookChannelSnapshotSchema,
} from '../schemas/relayer_api_orderbook_channel_snapshot_schema';
import {
relayerApiOrderbookChannelUpdateSchema,
} from '../schemas/relayer_api_orderbook_channel_update_response_schema';
import {
relayerApiOrderBookResponseSchema,

@@ -56,16 +57,15 @@ } from '../schemas/relayer_api_orderbook_response_schema';

import {
signedOrdersSchema,
} from '../schemas/signed_orders_schema';
import {
blockParamSchema,
subscriptionOptsSchema,
} from '../schemas/subscription_opts_schema';
import {
tokenSchema,
} from '../schemas/token_schema';
import {
jsNumber,
txDataSchema,
} from '../schemas/tx_data_schema';
import {
relayerApiOrderbookChannelSubscribeSchema,
relayerApiOrderbookChannelSubscribePayload,
} from '../schemas/relayer_api_orberbook_channel_subscribe_schema';
import {
relayerApiOrderbookChannelUpdateSchema,
} from '../schemas/relayer_api_orderbook_channel_update_response_schema';
import {
relayerApiOrderbookChannelSnapshotSchema,
relayerApiOrderbookChannelSnapshotPayload,
} from '../schemas/relayer_api_orderbook_channel_snapshot_schema';

@@ -72,0 +72,0 @@ export const schemas = {

@@ -1,9 +0,10 @@

import 'mocha';
import forEach = require('lodash.foreach');
import BigNumber from 'bignumber.js';
import * as chai from 'chai';
import * as dirtyChai from 'dirty-chai';
import * as chai from 'chai';
import BigNumber from 'bignumber.js';
import promisify = require('es6-promisify');
import {SchemaValidator, schemas} from '../src/index';
import forEach = require('lodash.foreach');
import 'mocha';
import {schemas, SchemaValidator} from '../src/index';
chai.config.includeStack = true;

@@ -972,2 +973,2 @@ chai.use(dirtyChai);

});
});
}); // tslint:disable:max-file-line-count

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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