@transmute/cose
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -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 |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
70397
1302
0