Comparing version 5.2.0 to 5.2.1
@@ -1,7 +0,7 @@ | ||
export * from './error'; | ||
export * from './jwe'; | ||
export * from './jwk'; | ||
export * from './jwks'; | ||
export * from './jws'; | ||
export * from './jwt'; | ||
export * from './types'; | ||
export * from './error.js'; | ||
export * from './jwe.js'; | ||
export * from './jwk.js'; | ||
export * from './jwks.js'; | ||
export * from './jws.js'; | ||
export * from './jwt.js'; | ||
export * from './types.js'; |
@@ -1,4 +0,4 @@ | ||
import { JWK } from './jwk'; | ||
import { JWKS } from './jwks'; | ||
import { JWEDecryptOptions, JWEEncryptOptions, KidOptions } from './types'; | ||
import { JWK } from './jwk.js'; | ||
import { JWKS } from './jwks.js'; | ||
import { JWEDecryptOptions, JWEEncryptOptions, KidOptions } from './types.js'; | ||
export declare class JWE { | ||
@@ -5,0 +5,0 @@ static decrypt(cypher: string, key: JWK | JWKS, options?: JWEDecryptOptions): Promise<string>; |
@@ -1,2 +0,2 @@ | ||
import { JWKAlgorithms, JWKey, JWKGenerateOptions, JWKObject, KeyOptions, KeyTypes, KeyUsages, thumbprintConfig } from './types'; | ||
import { JWKAlgorithms, JWKey, JWKGenerateOptions, JWKObject, KeyOptions, KeyTypes, KeyUsages, thumbprintConfig } from './types.js'; | ||
export declare class JWK { | ||
@@ -3,0 +3,0 @@ readonly key: JWKey; |
@@ -1,3 +0,3 @@ | ||
import { JWK } from './jwk'; | ||
import { JWKAlgorithms, JWKSObject, KeyOptions, KeyUsages } from './types'; | ||
import { JWK } from './jwk.js'; | ||
import { JWKAlgorithms, JWKSObject, KeyOptions, KeyUsages } from './types.js'; | ||
export declare class JWKS { | ||
@@ -4,0 +4,0 @@ readonly keys: JWK[]; |
import { CompactVerifyGetKey } from 'jose'; | ||
import { JWSCompleteResult } from './'; | ||
import { JWK } from './jwk'; | ||
import { JWKS } from './jwks'; | ||
import { JWKey, JWSSignOptions, JWSVerifyOptions, KidOptions } from './types'; | ||
import { JWK } from './jwk.js'; | ||
import { JWKS } from './jwks.js'; | ||
import { JWKey, JWSCompleteResult, JWSSignOptions, JWSVerifyOptions, KidOptions } from './types.js'; | ||
export declare class JWS { | ||
@@ -7,0 +6,0 @@ static verify(token: string, key?: JWK | JWKS, options?: JWSVerifyOptions<false>): Promise<string>; |
import { JWTClaimVerificationOptions, ProduceJWT } from 'jose'; | ||
import { JWK } from './jwk'; | ||
import { JWKS } from './jwks'; | ||
import { FromJWTOptions, JWTCompleteResult, JWTDecryptOptions, JWTEncryptOptions, JWTPayload, JWTSignOptions, JWTVerifyOptions, ToJWTOptions } from './types'; | ||
import { JWK } from './jwk.js'; | ||
import { JWKS } from './jwks.js'; | ||
import { FromJWTOptions, JWTCompleteResult, JWTDecryptOptions, JWTEncryptOptions, JWTPayload, JWTSignOptions, JWTVerifyOptions, ToJWTOptions } from './types.js'; | ||
export declare class JWT { | ||
@@ -6,0 +6,0 @@ static verify(token: string, key?: JWK | JWKS, options?: JWTVerifyOptions<false>): Promise<JWTPayload>; |
{ | ||
"name": "ts-jose", | ||
"version": "5.2.0", | ||
"version": "5.2.1", | ||
"description": "Wrap functions of JOSE in steady interface", | ||
@@ -23,8 +23,17 @@ "keywords": [ | ||
"author": "Shueh Chou Lu <evan.lu@104.com.tw>", | ||
"main": "./dist/index.js", | ||
"type": "module", | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/mjs/index.js", | ||
"types": "./dist/index.d.ts", | ||
"exports": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/mjs/index.js", | ||
"require": "./dist/cjs/index.js" | ||
}, | ||
"scripts": { | ||
"clean": "rm -rf dist/**/*.js dist/**/*.js.map dist/**/*.ts coverage", | ||
"prebuild": "npm run clean", | ||
"build": "tsc --project tsconfig.production.json", | ||
"build": "npm run build:mjs && npm run build:cjs", | ||
"build:mjs": "tsc --project tsconfig.mjs.json", | ||
"build:cjs": "tsc --project tsconfig.cjs.json", | ||
"build:dev": "tsc -w", | ||
@@ -40,3 +49,3 @@ "format": "prettier --write **/*.ts", | ||
"dependencies": { | ||
"jose": "5.2.0" | ||
"jose": "5.2.1" | ||
}, | ||
@@ -47,7 +56,7 @@ "devDependencies": { | ||
"@types/node": "^20", | ||
"@types/sinon": "^10", | ||
"@types/sinon": "^17", | ||
"@typescript-eslint/eslint-plugin": "^6", | ||
"@typescript-eslint/parser": "^6", | ||
"c8": "^8", | ||
"chai": "^4.3", | ||
"c8": "^9", | ||
"chai": "^5.0", | ||
"eslint": "^8", | ||
@@ -60,3 +69,2 @@ "eslint-config-prettier": "^9", | ||
"sinon": "^17.0", | ||
"source-map-support": "^0.5", | ||
"ts-node": "^10", | ||
@@ -63,0 +71,0 @@ "typescript": "^5" |
@@ -16,18 +16,19 @@ # TS JOSE | ||
> **⚠ NOTE** | ||
> [!Note] | ||
> | ||
> This package's version will FOLLOW the version of JOSE | ||
- [JWT](#jwt) | ||
- [verify](#verify) | ||
- [sign](#sign) | ||
- [decrypt](#decrypt) | ||
- [encrypt](#encrypt) | ||
- [JWS](#jws) | ||
- [verify](#verify-1) | ||
- [sign](#sign-1) | ||
- [JWE](#jwe) | ||
- [decrypt](#decrypt-1) | ||
- [encrypt](#encrypt-1) | ||
- [JWK](#jwk) | ||
- [JWKS](#jwks) | ||
- [JWT](#jwt) | ||
- [verify](#verify) | ||
- [sign](#sign) | ||
- [decrypt](#decrypt) | ||
- [encrypt](#encrypt) | ||
- [JWS](#jws) | ||
- [verify](#verify-1) | ||
- [sign](#sign-1) | ||
- [JWE](#jwe) | ||
- [decrypt](#decrypt-1) | ||
- [encrypt](#encrypt-1) | ||
- [JWK](#jwk) | ||
- [JWKS](#jwks) | ||
@@ -40,3 +41,3 @@ ## JWT | ||
**Additional options** | ||
Additional options | ||
@@ -57,6 +58,6 @@ | name | Description | | ||
- [JOSE ref for payload](https://github.com/panva/jose/blob/main/docs/classes/jwt_sign.SignJWT.md) | ||
- [JOSE ref for header](https://github.com/panva/jose/blob/main/docs/interfaces/types.JWSHeaderParameters.md) | ||
- [JOSE ref for payload](https://github.com/panva/jose/blob/main/docs/classes/jwt_sign.SignJWT.md) | ||
- [JOSE ref for header](https://github.com/panva/jose/blob/main/docs/interfaces/types.JWSHeaderParameters.md) | ||
**Using JOSE options** | ||
Using JOSE options | ||
@@ -76,3 +77,3 @@ | name | Referrer | | ||
**Additional options** | ||
Additional options | ||
@@ -91,3 +92,3 @@ | name | type | default | description | | ||
**Additional options** | ||
Additional options | ||
@@ -108,3 +109,3 @@ | name | Description | | ||
**Using JOSE options** | ||
Using JOSE options | ||
@@ -147,6 +148,6 @@ | name | Referrer | | ||
- `typ` | ||
- `kid` | ||
- `alg` | ||
- `jwk` | ||
- `typ` | ||
- `kid` | ||
- `alg` | ||
- `jwk` | ||
@@ -165,3 +166,3 @@ ```ts | ||
**Additional options** | ||
Additional options | ||
@@ -180,5 +181,5 @@ Same as [JWT.decrypt](#decrypt) | ||
- `kid` | ||
- `alg` | ||
- `enc` | ||
- `kid` | ||
- `alg` | ||
- `enc` | ||
@@ -185,0 +186,0 @@ ```ts |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71106
17
43
900
248
Yes
1
+ Addedjose@5.2.1(transitive)
- Removedjose@5.2.0(transitive)
Updatedjose@5.2.1