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.9 to 0.6.10

3

lib/schemas/relayer_api_orberbook_channel_subscribe_schema.d.ts

@@ -11,2 +11,5 @@ export declare const relayerApiOrderbookChannelSubscribeSchema: {

};
requestId: {
type: string;
};
payload: {

@@ -13,0 +16,0 @@ $ref: string;

3

lib/schemas/relayer_api_orberbook_channel_subscribe_schema.js

@@ -9,5 +9,6 @@ "use strict";

channel: { enum: ['orderbook'] },
requestId: { type: 'number' },
payload: { $ref: '/RelayerApiOrderbookChannelSubscribePayload' },
},
required: ['type', 'channel', 'payload'],
required: ['type', 'channel', 'requestId', 'payload'],
};

@@ -14,0 +15,0 @@ exports.relayerApiOrderbookChannelSubscribePayload = {

@@ -11,3 +11,3 @@ export declare const relayerApiOrderbookChannelSnapshotSchema: {

};
channelId: {
requestId: {
type: string;

@@ -14,0 +14,0 @@ };

@@ -9,6 +9,6 @@ "use strict";

channel: { enum: ['orderbook'] },
channelId: { type: 'number' },
requestId: { type: 'number' },
payload: { $ref: '/RelayerApiOrderbookChannelSnapshotPayload' },
},
required: ['type', 'channel', 'channelId', 'payload'],
required: ['type', 'channel', 'requestId', 'payload'],
};

@@ -15,0 +15,0 @@ exports.relayerApiOrderbookChannelSnapshotPayload = {

@@ -11,3 +11,3 @@ export declare const relayerApiOrderbookChannelUpdateSchema: {

};
channelId: {
requestId: {
type: string;

@@ -14,0 +14,0 @@ };

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

channel: { enum: ['orderbook'] },
channelId: { type: 'number' },
requestId: { type: 'number' },
payload: { $ref: '/SignedOrder' },
},
required: ['type', 'channel', 'channelId', 'payload'],
required: ['type', 'channel', 'requestId', 'payload'],
};
//# sourceMappingURL=relayer_api_orderbook_channel_update_response_schema.js.map

@@ -380,2 +380,5 @@ export declare const schemas: {

};
requestId: {
type: string;
};
payload: {

@@ -416,3 +419,3 @@ $ref: string;

};
channelId: {
requestId: {
type: string;

@@ -436,3 +439,3 @@ };

};
channelId: {
requestId: {
type: string;

@@ -439,0 +442,0 @@ };

@@ -385,2 +385,3 @@ "use strict";

channel: 'orderbook',
requestId: 1,
payload: {

@@ -396,2 +397,3 @@ baseTokenAddress: '0x323b5d4c32345ced77393b3530b1eed0f346429d',

channel: 'orderbook',
requestId: 1,
payload: {

@@ -409,4 +411,15 @@ baseTokenAddress: '0x323b5d4c32345ced77393b3530b1eed0f346429d',

{
type: 'subscribe',
channel: 'orderbook',
payload: {
baseTokenAddress: '0x323b5d4c32345ced77393b3530b1eed0f346429d',
quoteTokenAddress: '0x323b5d4c32345ced77393b3530b1eed0f346429d',
snapshot: true,
limit: 100,
},
},
{
type: 'foo',
channel: 'orderbook',
requestId: 1,
payload: {

@@ -420,2 +433,3 @@ baseTokenAddress: '0x323b5d4c32345ced77393b3530b1eed0f346429d',

channel: 'bar',
requestId: 1,
payload: {

@@ -429,2 +443,3 @@ baseTokenAddress: '0x323b5d4c32345ced77393b3530b1eed0f346429d',

channel: 'orderbook',
requestId: 1,
payload: {

@@ -438,2 +453,3 @@ baseTokenAddress: checksummedAddress,

channel: 'orderbook',
requestId: 1,
payload: {

@@ -447,2 +463,3 @@ baseTokenAddress: '0x323b5d4c32345ced77393b3530b1eed0f346429d',

channel: 'orderbook',
requestId: 1,
payload: {

@@ -455,2 +472,3 @@ quoteTokenAddress: '0x323b5d4c32345ced77393b3530b1eed0f346429d',

channel: 'orderbook',
requestId: 1,
payload: {

@@ -463,2 +481,3 @@ baseTokenAddress: '0x323b5d4c32345ced77393b3530b1eed0f346429d',

channel: 'orderbook',
requestId: 1,
payload: {

@@ -474,2 +493,3 @@ baseTokenAddress: '0x323b5d4c32345ced77393b3530b1eed0f346429d',

channel: 'orderbook',
requestId: 1,
payload: {

@@ -493,3 +513,3 @@ baseTokenAddress: '0x323b5d4c32345ced77393b3530b1eed0f346429d',

channel: 'orderbook',
channelId: 2,
requestId: 2,
payload: {

@@ -503,3 +523,3 @@ bids: [],

channel: 'orderbook',
channelId: 2,
requestId: 2,
payload: {

@@ -522,3 +542,3 @@ bids: [

channel: 'orderbook',
channelId: 2,
requestId: 2,
payload: {

@@ -536,3 +556,3 @@ bids: [

channel: 'bar',
channelId: 2,
requestId: 2,
payload: {

@@ -562,3 +582,3 @@ bids: [

channel: 'orderbook',
channelId: '2',
requestId: '2',
payload: {

@@ -576,3 +596,3 @@ bids: [

channel: 'orderbook',
channelId: 2,
requestId: 2,
payload: {

@@ -587,3 +607,3 @@ bids: [

channel: 'orderbook',
channelId: 2,
requestId: 2,
payload: {

@@ -598,3 +618,3 @@ asks: [

channel: 'orderbook',
channelId: 2,
requestId: 2,
payload: {

@@ -612,3 +632,3 @@ bids: [

channel: 'orderbook',
channelId: 2,
requestId: 2,
payload: {

@@ -634,3 +654,3 @@ bids: [

channel: 'orderbook',
channelId: 2,
requestId: 2,
payload: signedOrder,

@@ -646,2 +666,3 @@ },

channel: 'orderbook',
requestId: 2,
payload: signedOrder,

@@ -652,2 +673,3 @@ },

channel: 'bar',
requestId: 2,
payload: signedOrder,

@@ -658,2 +680,3 @@ },

channel: 'orderbook',
requestId: 2,
payload: {},

@@ -660,0 +683,0 @@ },

{
"name": "@0xproject/json-schemas",
"version": "0.6.9",
"version": "0.6.10",
"description": "0x-related json schemas",

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

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

@@ -27,3 +27,2 @@ "test:circleci": "yarn test",

"dependencies": {
"es6-promisify": "^5.0.0",
"jsonschema": "^1.2.0",

@@ -33,8 +32,9 @@ "lodash.values": "^4.3.0"

"devDependencies": {
"@0xproject/tslint-config": "^0.2.0",
"@0xproject/tslint-config": "^0.2.1",
"@0xproject/utils": "^0.1.0",
"@types/lodash.foreach": "^4.5.3",
"@types/lodash.values": "^4.3.3",
"@types/mocha": "^2.2.42",
"bignumber.js": "^4.0.2",
"chai": "^4.1.1",
"bignumber.js": "~4.1.0",
"chai": "^4.0.1",
"chai-typescript-typings": "^0.0.1",

@@ -44,3 +44,3 @@ "dirty-chai": "^2.0.1",

"mocha": "^4.0.1",
"npm-run-all": "^4.1.1",
"npm-run-all": "^4.1.2",
"shx": "^0.2.2",

@@ -47,0 +47,0 @@ "tslint": "5.8.0",

@@ -7,5 +7,6 @@ export const relayerApiOrderbookChannelSubscribeSchema = {

channel: {enum: ['orderbook']},
requestId: {type: 'number'},
payload: {$ref: '/RelayerApiOrderbookChannelSubscribePayload'},
},
required: ['type', 'channel', 'payload'],
required: ['type', 'channel', 'requestId', 'payload'],
};

@@ -12,0 +13,0 @@

@@ -7,6 +7,6 @@ export const relayerApiOrderbookChannelSnapshotSchema = {

channel: {enum: ['orderbook']},
channelId: {type: 'number'},
requestId: {type: 'number'},
payload: {$ref: '/RelayerApiOrderbookChannelSnapshotPayload'},
},
required: ['type', 'channel', 'channelId', 'payload'],
required: ['type', 'channel', 'requestId', 'payload'],
};

@@ -13,0 +13,0 @@

@@ -7,6 +7,6 @@ export const relayerApiOrderbookChannelUpdateSchema = {

channel: {enum: ['orderbook']},
channelId: {type: 'number'},
requestId: {type: 'number'},
payload: {$ref: '/SignedOrder'},
},
required: ['type', 'channel', 'channelId', 'payload'],
required: ['type', 'channel', 'requestId', 'payload'],
};
declare module 'dirty-chai';
// es6-promisify declarations
declare function promisify(original: any, settings?: any): ((...arg: any[]) => Promise<any>);
declare module 'es6-promisify' {
export = promisify;
}

@@ -0,5 +1,5 @@

import {promisify} from '@0xproject/utils';
import BigNumber from 'bignumber.js';
import * as chai from 'chai';
import * as dirtyChai from 'dirty-chai';
import promisify = require('es6-promisify');
import forEach = require('lodash.foreach');

@@ -435,2 +435,3 @@ import 'mocha';

channel: 'orderbook',
requestId: 1,
payload: {

@@ -446,2 +447,3 @@ baseTokenAddress: '0x323b5d4c32345ced77393b3530b1eed0f346429d',

channel: 'orderbook',
requestId: 1,
payload: {

@@ -459,4 +461,15 @@ baseTokenAddress: '0x323b5d4c32345ced77393b3530b1eed0f346429d',

{
type: 'subscribe',
channel: 'orderbook',
payload: {
baseTokenAddress: '0x323b5d4c32345ced77393b3530b1eed0f346429d',
quoteTokenAddress: '0x323b5d4c32345ced77393b3530b1eed0f346429d',
snapshot: true,
limit: 100,
},
},
{
type: 'foo',
channel: 'orderbook',
requestId: 1,
payload: {

@@ -470,2 +483,3 @@ baseTokenAddress: '0x323b5d4c32345ced77393b3530b1eed0f346429d',

channel: 'bar',
requestId: 1,
payload: {

@@ -479,2 +493,3 @@ baseTokenAddress: '0x323b5d4c32345ced77393b3530b1eed0f346429d',

channel: 'orderbook',
requestId: 1,
payload: {

@@ -488,2 +503,3 @@ baseTokenAddress: checksummedAddress,

channel: 'orderbook',
requestId: 1,
payload: {

@@ -497,2 +513,3 @@ baseTokenAddress: '0x323b5d4c32345ced77393b3530b1eed0f346429d',

channel: 'orderbook',
requestId: 1,
payload: {

@@ -505,2 +522,3 @@ quoteTokenAddress: '0x323b5d4c32345ced77393b3530b1eed0f346429d',

channel: 'orderbook',
requestId: 1,
payload: {

@@ -513,2 +531,3 @@ baseTokenAddress: '0x323b5d4c32345ced77393b3530b1eed0f346429d',

channel: 'orderbook',
requestId: 1,
payload: {

@@ -524,2 +543,3 @@ baseTokenAddress: '0x323b5d4c32345ced77393b3530b1eed0f346429d',

channel: 'orderbook',
requestId: 1,
payload: {

@@ -543,3 +563,3 @@ baseTokenAddress: '0x323b5d4c32345ced77393b3530b1eed0f346429d',

channel: 'orderbook',
channelId: 2,
requestId: 2,
payload: {

@@ -553,3 +573,3 @@ bids: [],

channel: 'orderbook',
channelId: 2,
requestId: 2,
payload: {

@@ -572,3 +592,3 @@ bids: [

channel: 'orderbook',
channelId: 2,
requestId: 2,
payload: {

@@ -586,3 +606,3 @@ bids: [

channel: 'bar',
channelId: 2,
requestId: 2,
payload: {

@@ -612,3 +632,3 @@ bids: [

channel: 'orderbook',
channelId: '2',
requestId: '2',
payload: {

@@ -626,3 +646,3 @@ bids: [

channel: 'orderbook',
channelId: 2,
requestId: 2,
payload: {

@@ -637,3 +657,3 @@ bids: [

channel: 'orderbook',
channelId: 2,
requestId: 2,
payload: {

@@ -648,3 +668,3 @@ asks: [

channel: 'orderbook',
channelId: 2,
requestId: 2,
payload: {

@@ -662,3 +682,3 @@ bids: [

channel: 'orderbook',
channelId: 2,
requestId: 2,
payload: {

@@ -684,3 +704,3 @@ bids: [

channel: 'orderbook',
channelId: 2,
requestId: 2,
payload: signedOrder,

@@ -696,2 +716,3 @@ },

channel: 'orderbook',
requestId: 2,
payload: signedOrder,

@@ -702,2 +723,3 @@ },

channel: 'bar',
requestId: 2,
payload: signedOrder,

@@ -708,2 +730,3 @@ },

channel: 'orderbook',
requestId: 2,
payload: {},

@@ -710,0 +733,0 @@ },

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