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

@relaycorp/relaynet-core

Package Overview
Dependencies
Maintainers
2
Versions
293
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@relaycorp/relaynet-core - npm Package Compare versions

Comparing version 1.21.0 to 1.22.0

build/main/lib/messages/payloads/CargoMessageSet.d.ts

6

build/main/index.d.ts

@@ -10,3 +10,3 @@ export { default as RelaynetError } from './lib/RelaynetError';

export { SignatureOptions } from './lib/crypto_wrappers/cms/signedData';
export { default as Payload } from './lib/messages/PayloadPlaintext';
export { default as Payload } from './lib/messages/payloads/PayloadPlaintext';
export { default as RAMFError } from './lib/ramf/RAMFError';

@@ -16,7 +16,7 @@ export { default as RAMFSyntaxError } from './lib/ramf/RAMFSyntaxError';

export { default as Parcel } from './lib/messages/Parcel';
export { default as ServiceMessage } from './lib/messages/ServiceMessage';
export { default as ServiceMessage } from './lib/messages/payloads/ServiceMessage';
export { default as Cargo } from './lib/messages/Cargo';
export { CargoCollectionAuthorization } from './lib/messages/CargoCollectionAuthorization';
export { default as CargoMessageSet } from './lib/messages/CargoMessageSet';
export { default as CargoMessageSet } from './lib/messages/payloads/CargoMessageSet';
export { default as InvalidMessageError } from './lib/messages/InvalidMessageError';
export { default as RAMFValidationError } from './lib/ramf/RAMFValidationError';

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

exports.Parcel = Parcel_1.default;
var ServiceMessage_1 = require("./lib/messages/ServiceMessage");
var ServiceMessage_1 = require("./lib/messages/payloads/ServiceMessage");
exports.ServiceMessage = ServiceMessage_1.default;

@@ -58,3 +58,3 @@ var Cargo_1 = require("./lib/messages/Cargo");

exports.CargoCollectionAuthorization = CargoCollectionAuthorization_1.CargoCollectionAuthorization;
var CargoMessageSet_1 = require("./lib/messages/CargoMessageSet");
var CargoMessageSet_1 = require("./lib/messages/payloads/CargoMessageSet");
exports.CargoMessageSet = CargoMessageSet_1.default;

@@ -61,0 +61,0 @@ var InvalidMessageError_1 = require("./lib/messages/InvalidMessageError");

import { SignatureOptions } from '../crypto_wrappers/cms/signedData';
import CargoMessageSet from './CargoMessageSet';
import Message from './Message';
import CargoMessageSet from './payloads/CargoMessageSet';
export default class Cargo extends Message<CargoMessageSet> {

@@ -5,0 +5,0 @@ static deserialize(cargoSerialized: ArrayBuffer): Promise<Cargo>;

@@ -15,4 +15,4 @@ "use strict";

const serialization = __importStar(require("../ramf/serialization"));
const CargoMessageSet_1 = __importDefault(require("./CargoMessageSet"));
const Message_1 = __importDefault(require("./Message"));
const CargoMessageSet_1 = __importDefault(require("./payloads/CargoMessageSet"));
const concreteMessageTypeOctet = 0x43;

@@ -19,0 +19,0 @@ const concreteMessageVersionOctet = 0;

@@ -6,3 +6,3 @@ /// <reference types="node" />

import { PrivateKeyStore } from '../privateKeyStore';
import PayloadPlaintext from './PayloadPlaintext';
import PayloadPlaintext from './payloads/PayloadPlaintext';
interface MessageOptions {

@@ -9,0 +9,0 @@ readonly id: string;

import { SignatureOptions } from '../crypto_wrappers/cms/signedData';
import Message from './Message';
import ServiceMessage from './ServiceMessage';
import ServiceMessage from './payloads/ServiceMessage';
export default class Parcel extends Message<ServiceMessage> {

@@ -5,0 +5,0 @@ static deserialize(parcelSerialized: ArrayBuffer): Promise<Parcel>;

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

const Message_1 = __importDefault(require("./Message"));
const ServiceMessage_1 = __importDefault(require("./ServiceMessage"));
const ServiceMessage_1 = __importDefault(require("./payloads/ServiceMessage"));
const concreteMessageTypeOctet = 0x50;

@@ -19,0 +19,0 @@ const concreteMessageVersionOctet = 0;

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

import PayloadPlaintext from '../PayloadPlaintext';
import PayloadPlaintext from './PayloadPlaintext';
export default class EmptyPayloadPlaintext implements PayloadPlaintext {

@@ -3,0 +3,0 @@ static deserialize(serialization: ArrayBuffer): EmptyPayloadPlaintext;

import * as cmsSignedData from '../crypto_wrappers/cms/signedData';
import Message from '../messages/Message';
/**
* Maximum length of any SDU to be encapsulated in a CMS EnvelopedData value, per the RAMF spec.
*/
export declare const MAX_SDU_PLAINTEXT_LENGTH = 8322048;
/**
* Sign and encode the current message.

@@ -5,0 +9,0 @@ *

@@ -24,2 +24,6 @@ "use strict";

const MAX_PAYLOAD_LENGTH = 2 ** 23 - 1; // 8 MiB
/**
* Maximum length of any SDU to be encapsulated in a CMS EnvelopedData value, per the RAMF spec.
*/
exports.MAX_SDU_PLAINTEXT_LENGTH = 8322048;
const FORMAT_SIGNATURE_PARSER = new binary_parser_1.Parser()

@@ -26,0 +30,0 @@ .endianess('little')

@@ -10,3 +10,3 @@ export { default as RelaynetError } from './lib/RelaynetError';

export { SignatureOptions } from './lib/crypto_wrappers/cms/signedData';
export { default as Payload } from './lib/messages/PayloadPlaintext';
export { default as Payload } from './lib/messages/payloads/PayloadPlaintext';
export { default as RAMFError } from './lib/ramf/RAMFError';

@@ -16,7 +16,7 @@ export { default as RAMFSyntaxError } from './lib/ramf/RAMFSyntaxError';

export { default as Parcel } from './lib/messages/Parcel';
export { default as ServiceMessage } from './lib/messages/ServiceMessage';
export { default as ServiceMessage } from './lib/messages/payloads/ServiceMessage';
export { default as Cargo } from './lib/messages/Cargo';
export { CargoCollectionAuthorization } from './lib/messages/CargoCollectionAuthorization';
export { default as CargoMessageSet } from './lib/messages/CargoMessageSet';
export { default as CargoMessageSet } from './lib/messages/payloads/CargoMessageSet';
export { default as InvalidMessageError } from './lib/messages/InvalidMessageError';
export { default as RAMFValidationError } from './lib/ramf/RAMFValidationError';

@@ -26,6 +26,6 @@ //region Configure PKI.js

export { default as Parcel } from './lib/messages/Parcel';
export { default as ServiceMessage } from './lib/messages/ServiceMessage';
export { default as ServiceMessage } from './lib/messages/payloads/ServiceMessage';
export { default as Cargo } from './lib/messages/Cargo';
export { CargoCollectionAuthorization } from './lib/messages/CargoCollectionAuthorization';
export { default as CargoMessageSet } from './lib/messages/CargoMessageSet';
export { default as CargoMessageSet } from './lib/messages/payloads/CargoMessageSet';
export { default as InvalidMessageError } from './lib/messages/InvalidMessageError';

@@ -32,0 +32,0 @@ export { default as RAMFValidationError } from './lib/ramf/RAMFValidationError';

import { SignatureOptions } from '../crypto_wrappers/cms/signedData';
import CargoMessageSet from './CargoMessageSet';
import Message from './Message';
import CargoMessageSet from './payloads/CargoMessageSet';
export default class Cargo extends Message<CargoMessageSet> {

@@ -5,0 +5,0 @@ static deserialize(cargoSerialized: ArrayBuffer): Promise<Cargo>;

// This module wouldn't duplicate Parcel.ts if TypeScript supported static+abstract members
import * as serialization from '../ramf/serialization';
import CargoMessageSet from './CargoMessageSet';
import Message from './Message';
import CargoMessageSet from './payloads/CargoMessageSet';
const concreteMessageTypeOctet = 0x43;

@@ -6,0 +6,0 @@ const concreteMessageVersionOctet = 0;

@@ -6,3 +6,3 @@ /// <reference types="node" />

import { PrivateKeyStore } from '../privateKeyStore';
import PayloadPlaintext from './PayloadPlaintext';
import PayloadPlaintext from './payloads/PayloadPlaintext';
interface MessageOptions {

@@ -9,0 +9,0 @@ readonly id: string;

import { SignatureOptions } from '../crypto_wrappers/cms/signedData';
import Message from './Message';
import ServiceMessage from './ServiceMessage';
import ServiceMessage from './payloads/ServiceMessage';
export default class Parcel extends Message<ServiceMessage> {

@@ -5,0 +5,0 @@ static deserialize(parcelSerialized: ArrayBuffer): Promise<Parcel>;

// This module wouldn't duplicate Cargo.ts if TypeScript supported static+abstract members
import * as serialization from '../ramf/serialization';
import Message from './Message';
import ServiceMessage from './ServiceMessage';
import ServiceMessage from './payloads/ServiceMessage';
const concreteMessageTypeOctet = 0x50;

@@ -6,0 +6,0 @@ const concreteMessageVersionOctet = 0;

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

import PayloadPlaintext from '../PayloadPlaintext';
import PayloadPlaintext from './PayloadPlaintext';
export default class EmptyPayloadPlaintext implements PayloadPlaintext {

@@ -3,0 +3,0 @@ static deserialize(serialization: ArrayBuffer): EmptyPayloadPlaintext;

import * as cmsSignedData from '../crypto_wrappers/cms/signedData';
import Message from '../messages/Message';
/**
* Maximum length of any SDU to be encapsulated in a CMS EnvelopedData value, per the RAMF spec.
*/
export declare const MAX_SDU_PLAINTEXT_LENGTH = 8322048;
/**
* Sign and encode the current message.

@@ -5,0 +9,0 @@ *

@@ -12,2 +12,6 @@ import * as asn1js from 'asn1js';

const MAX_PAYLOAD_LENGTH = 2 ** 23 - 1; // 8 MiB
/**
* Maximum length of any SDU to be encapsulated in a CMS EnvelopedData value, per the RAMF spec.
*/
export const MAX_SDU_PLAINTEXT_LENGTH = 8322048;
const FORMAT_SIGNATURE_PARSER = new Parser()

@@ -14,0 +18,0 @@ .endianess('little')

{
"name": "@relaycorp/relaynet-core",
"version": "1.21.0",
"version": "1.22.0",
"author": {

@@ -5,0 +5,0 @@ "email": "no-reply@relaycorp.tech",

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

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

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