@rapid-io/protocol
Advanced tools
Comparing version 0.0.70 to 0.0.71
@@ -9,2 +9,4 @@ 'use strict' | ||
const del = require('./del') | ||
const da = require('./da') | ||
const daCa = require('./da-ca') | ||
const ftc = require('./ftc') | ||
@@ -28,2 +30,4 @@ const sub = require('./sub') | ||
del, | ||
da, | ||
daCa, | ||
ftc, | ||
@@ -30,0 +34,0 @@ sub, |
@@ -7,9 +7,7 @@ 'use strict' | ||
* Creates cancel-channel event | ||
* @param {(String|Object)} chanId channel id | ||
* @param {String} subId subscription id | ||
*/ | ||
const caCh = ({ chanId, subId }) => ({ | ||
const caCh = ({ subId }) => ({ | ||
'ca-ch': { | ||
'evt-id': shortid(), | ||
'chan-id': chanId, | ||
'sub-id': subId, | ||
@@ -16,0 +14,0 @@ }, |
@@ -7,9 +7,7 @@ 'use strict' | ||
* Creates cancel event | ||
* @param {String} colId collection id | ||
* @param {String} subId subscription id | ||
*/ | ||
const ca = ({ colId, subId }) => ({ | ||
const ca = ({ subId }) => ({ | ||
ca: { | ||
'evt-id': shortid(), | ||
'col-id': colId, | ||
'sub-id': subId, | ||
@@ -16,0 +14,0 @@ }, |
@@ -9,2 +9,3 @@ 'use strict' | ||
const caCh = require('./ca-ch') | ||
const caDa = require('./ca-da') | ||
const mes = require('./mes') | ||
@@ -20,4 +21,5 @@ const ts = require('./ts') | ||
caCh, | ||
caDa, | ||
mes, | ||
ts, | ||
} |
@@ -37,3 +37,3 @@ 'use strict' | ||
}, | ||
required: ['evt-id', 'col-id', 'doc'], | ||
required: ['col-id', 'doc'], | ||
additionalProperties: false, | ||
@@ -40,0 +40,0 @@ }, |
@@ -38,3 +38,3 @@ 'use strict' | ||
}, | ||
required: ['evt-id', 'col-id', 'doc'], | ||
required: ['col-id', 'doc'], | ||
additionalProperties: false, | ||
@@ -41,0 +41,0 @@ }, |
@@ -38,3 +38,3 @@ 'use strict' | ||
}, | ||
required: ['evt-id', 'col-id', 'doc'], | ||
required: ['col-id', 'doc'], | ||
additionalProperties: false, | ||
@@ -41,0 +41,0 @@ }, |
@@ -22,2 +22,4 @@ 'use strict' | ||
const del = require('../schema/del') | ||
const da = require('../schema/da') | ||
const daCa = require('../schema/da-ca') | ||
const pub = require('../schema/pub') | ||
@@ -35,2 +37,3 @@ const ftc = require('../schema/ftc') | ||
const caCh = require('../schema/ca-ch') | ||
const caDa = require('../schema/ca-da') | ||
const mes = require('../schema/mes') | ||
@@ -55,2 +58,4 @@ const reqTs = require('../schema/req-ts') | ||
{ $ref: del.id }, | ||
{ $ref: da.id }, | ||
{ $ref: daCa.id }, | ||
{ $ref: pub.id }, | ||
@@ -68,2 +73,3 @@ { $ref: ftc.id }, | ||
{ $ref: caCh.id }, | ||
{ $ref: caDa.id }, | ||
{ $ref: mes.id }, | ||
@@ -119,2 +125,4 @@ { $ref: reqTs.id }, | ||
del, | ||
da, | ||
daCa, | ||
ftc, | ||
@@ -129,2 +137,3 @@ sub, | ||
caCh, | ||
caDa, | ||
batch, | ||
@@ -131,0 +140,0 @@ message, |
{ | ||
"name": "@rapid-io/protocol", | ||
"version": "0.0.70", | ||
"version": "0.0.71", | ||
"description": "Protocol and validation for Rapid.io", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
79788
73
1682
0