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

@transmute/cose

Package Overview
Dependencies
Maintainers
3
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@transmute/cose - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

dist/diagnostic.js

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

[`1`]: 'alg',
[`3`]: 'ctyp',
[`3`]: 'content_type',
[`4`]: 'kid',

@@ -51,0 +51,0 @@ // new

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

kid: number;
content_type: number;
counter_signature: number;

@@ -30,0 +31,0 @@ inclusion_proof: number;

export type ProtectedHeader = {
alg: 'ES256' | 'ES384' | 'ES512' | string;
kid?: string;
content_type?: string;
};

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

kid: number;
content_type: number;
counter_signature: number;

@@ -8,0 +9,0 @@ inclusion_proof: number;

@@ -27,4 +27,6 @@ "use strict";

const cbor = __importStar(require("cbor-web"));
// https://github.com/erdtman/cose-js/blob/master/lib/common.js#L66
const unprotectedHeaderTags = {
kid: 4,
content_type: 3,
counter_signature: 7,

@@ -31,0 +33,0 @@ // will be registered in https://github.com/ietf-scitt/draft-steele-cose-merkle-tree-proofs

{
"name": "@transmute/cose",
"version": "0.0.1",
"version": "0.0.2",
"description": "COSE and related work.",

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

@@ -16,3 +16,3 @@ import * as cbor from 'cbor-web'

[`1`]: 'alg',
[`3`]: 'ctyp',
[`3`]: 'content_type',
[`4`]: 'kid',

@@ -19,0 +19,0 @@ // new

export type ProtectedHeader = {
alg: 'ES256' | 'ES384' | 'ES512' | string
kid?: string
content_type?: string
}
import * as cbor from 'cbor-web'
import { UnprotectedHeader } from './types'
// https://github.com/erdtman/cose-js/blob/master/lib/common.js#L66
const unprotectedHeaderTags = {
kid: 4,
content_type: 3,
counter_signature: 7,

@@ -7,0 +9,0 @@ // will be registered in https://github.com/ietf-scitt/draft-steele-cose-merkle-tree-proofs

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