@contentful/node-apps-toolkit
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -0,1 +1,17 @@ | ||
## [2.0.4](https://github.com/contentful/node-apps-toolkit/compare/v2.0.3...v2.0.4) (2023-01-23) | ||
### Bug Fixes | ||
* enforce compatible node versions (v14.15+) ([#132](https://github.com/contentful/node-apps-toolkit/issues/132)) ([566a17e](https://github.com/contentful/node-apps-toolkit/commit/566a17e668df669dc955e739fcaa251abfec127a)) | ||
* update jsonwebtoken ([#133](https://github.com/contentful/node-apps-toolkit/issues/133)) ([fc24220](https://github.com/contentful/node-apps-toolkit/commit/fc24220b60fa382c85a6bb62fb5de62e4de75a17)) | ||
## [2.0.4-next.1](https://github.com/contentful/node-apps-toolkit/compare/v2.0.3...v2.0.4-next.1) (2023-01-23) | ||
### Bug Fixes | ||
* enforce compatible node versions (v14.15+) ([#132](https://github.com/contentful/node-apps-toolkit/issues/132)) ([566a17e](https://github.com/contentful/node-apps-toolkit/commit/566a17e668df669dc955e739fcaa251abfec127a)) | ||
* update jsonwebtoken ([#133](https://github.com/contentful/node-apps-toolkit/issues/133)) ([fc24220](https://github.com/contentful/node-apps-toolkit/commit/fc24220b60fa382c85a6bb62fb5de62e4de75a17)) | ||
## [2.0.3](https://github.com/contentful/node-apps-toolkit/compare/v2.0.2...v2.0.3) (2022-06-10) | ||
@@ -2,0 +18,0 @@ |
@@ -20,7 +20,7 @@ import * as runtypes from 'runtypes'; | ||
}, false>>; | ||
export declare type CanonicalRequest = runtypes.Static<typeof CanonicalRequestValidator>; | ||
export type CanonicalRequest = runtypes.Static<typeof CanonicalRequestValidator>; | ||
export declare const SecretValidator: runtypes.Constraint<runtypes.String, string, unknown>; | ||
export declare type Secret = runtypes.Static<typeof SecretValidator>; | ||
export type Secret = runtypes.Static<typeof SecretValidator>; | ||
export declare const TimestampValidator: runtypes.Constraint<runtypes.Number, number, unknown>; | ||
export declare type Timestamp = runtypes.Static<typeof TimestampValidator>; | ||
export type Timestamp = runtypes.Static<typeof TimestampValidator>; | ||
export declare const RequestMetadataValidator: runtypes.Record<{ | ||
@@ -31,6 +31,6 @@ signature: runtypes.Constraint<runtypes.String, string, unknown>; | ||
}, false>; | ||
export declare type RequestMetadata = runtypes.Static<typeof RequestMetadataValidator>; | ||
export type RequestMetadata = runtypes.Static<typeof RequestMetadataValidator>; | ||
export declare const TimeToLiveValidator: runtypes.Constraint<runtypes.Number, number, unknown>; | ||
export declare type TimeToLive = runtypes.Static<typeof TimeToLiveValidator>; | ||
export declare type NormalizedCanonicalRequest = { | ||
export type TimeToLive = runtypes.Static<typeof TimeToLiveValidator>; | ||
export type NormalizedCanonicalRequest = { | ||
method: CanonicalRequest['method']; | ||
@@ -41,29 +41,29 @@ path: CanonicalRequest['path']; | ||
}; | ||
export declare type SubjectHeadersApp = { | ||
export type SubjectHeadersApp = { | ||
appId: string; | ||
}; | ||
export declare type AppContextSignedHeaders = { | ||
export type AppContextSignedHeaders = { | ||
[ContentfulContextHeader.AppId]: string; | ||
}; | ||
export declare type SubjectHeadersUser = { | ||
export type SubjectHeadersUser = { | ||
userId: string; | ||
}; | ||
export declare type UserContextSignedHeaders = { | ||
export type UserContextSignedHeaders = { | ||
[ContentfulContextHeader.UserId]: string; | ||
}; | ||
export declare type Context<SubjectContext> = { | ||
export type Context<SubjectContext> = { | ||
spaceId: string; | ||
envId: string; | ||
} & SubjectContext; | ||
declare type SignedHeadersWithoutSubject = { | ||
type SignedHeadersWithoutSubject = { | ||
[ContentfulContextHeader.SpaceId]: string; | ||
[ContentfulContextHeader.EnvironmentId]: string; | ||
}; | ||
export declare type SignedContextHeaders<SubjectSignedHeaders> = SignedHeadersWithoutSubject & SubjectSignedHeaders; | ||
export declare type SignedRequestWithoutContextHeaders = { | ||
export type SignedContextHeaders<SubjectSignedHeaders> = SignedHeadersWithoutSubject & SubjectSignedHeaders; | ||
export type SignedRequestWithoutContextHeaders = { | ||
[key in ContentfulHeader]: string; | ||
}; | ||
export declare type SignedRequestWithContextHeadersWithUser = SignedRequestWithoutContextHeaders & SignedContextHeaders<UserContextSignedHeaders>; | ||
export declare type SignedRequestWithContextHeadersWithApp = SignedRequestWithoutContextHeaders & SignedContextHeaders<AppContextSignedHeaders>; | ||
export declare type SignedRequestHeaders = SignedRequestWithContextHeadersWithUser | SignedRequestWithContextHeadersWithApp | SignedRequestWithoutContextHeaders; | ||
export type SignedRequestWithContextHeadersWithUser = SignedRequestWithoutContextHeaders & SignedContextHeaders<UserContextSignedHeaders>; | ||
export type SignedRequestWithContextHeadersWithApp = SignedRequestWithoutContextHeaders & SignedContextHeaders<AppContextSignedHeaders>; | ||
export type SignedRequestHeaders = SignedRequestWithContextHeadersWithUser | SignedRequestWithContextHeadersWithApp | SignedRequestWithoutContextHeaders; | ||
export {}; |
@@ -7,3 +7,3 @@ import { AppContextSignedHeaders, Context, SignedContextHeaders, SubjectHeadersApp, SubjectHeadersUser, UserContextSignedHeaders } from './typings'; | ||
}; | ||
export declare const pickHeaders: (headers?: Record<string, string> | undefined, keys?: string[] | undefined) => { | ||
export declare const pickHeaders: (headers?: Record<string, string>, keys?: string[]) => { | ||
[k: string]: any; | ||
@@ -10,0 +10,0 @@ }; |
@@ -5,3 +5,3 @@ import { ExtendOptions, Got, HTTPError, Response as GotResponse } from 'got'; | ||
export { HTTPError as HttpError }; | ||
export declare type HttpClient = Got; | ||
export declare type Response = GotResponse; | ||
export type HttpClient = Got; | ||
export type Response = GotResponse; |
@@ -10,2 +10,2 @@ /// <reference types="debug" /> | ||
}) => import("debug").Debugger; | ||
export declare type Logger = debug.Debugger; | ||
export type Logger = debug.Debugger; |
{ | ||
"name": "@contentful/node-apps-toolkit", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "A collection of helpers and utilities for creating NodeJS Contentful Apps", | ||
"main": "lib/index.js", | ||
"engines": { | ||
"node": ">=14.15.0" | ||
}, | ||
"scripts": { | ||
@@ -26,3 +29,3 @@ "lint": "eslint --ext .ts ./src", | ||
"got": "^11.7.0", | ||
"jsonwebtoken": "^8.5.1", | ||
"jsonwebtoken": "^9.0.0", | ||
"node-cache": "^5.1.2", | ||
@@ -32,27 +35,27 @@ "runtypes": "^5.0.1" | ||
"devDependencies": { | ||
"@commitlint/cli": "^11.0.0", | ||
"@commitlint/config-conventional": "^11.0.0", | ||
"@semantic-release/changelog": "6.0.0", | ||
"@semantic-release/git": "10.0.0", | ||
"@types/jsonwebtoken": "^8.5.0", | ||
"@types/mocha": "^8.0.3", | ||
"@types/node": "^14.11.2", | ||
"@types/sinon": "^9.0.7", | ||
"@typescript-eslint/eslint-plugin": "^4.3.0", | ||
"@typescript-eslint/parser": "^4.3.0", | ||
"base64url": "^3.0.1", | ||
"dotenv": "^8.2.0", | ||
"eslint": "^7.32.0", | ||
"eslint-config-prettier": "^6.12.0", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"husky": "^4.3.0", | ||
"lint-staged": "^10.4.0", | ||
"mocha": "^8.1.3", | ||
"prettier": "^2.1.2", | ||
"semantic-release": "19.0.3", | ||
"serve": "^13.0.2", | ||
"sinon": "^9.1.0", | ||
"ts-node": "^9.0.0", | ||
"typedoc": "^0.22.10", | ||
"typescript": "^4.3.5" | ||
"@commitlint/cli": "17.4.2", | ||
"@commitlint/config-conventional": "17.4.2", | ||
"@semantic-release/changelog": "6.0.2", | ||
"@semantic-release/git": "10.0.1", | ||
"@types/jsonwebtoken": "8.5.9", | ||
"@types/mocha": "10.0.1", | ||
"@types/node": "18.11.18", | ||
"@types/sinon": "10.0.13", | ||
"@typescript-eslint/eslint-plugin": "4.33.0", | ||
"@typescript-eslint/parser": "4.33.0", | ||
"base64url": "3.0.1", | ||
"dotenv": "16.0.3", | ||
"eslint": "7.32.0", | ||
"eslint-config-prettier": "8.6.0", | ||
"eslint-plugin-prettier": "4.2.1", | ||
"husky": "4.3.8", | ||
"lint-staged": "13.1.0", | ||
"mocha": "10.2.0", | ||
"prettier": "2.8.3", | ||
"semantic-release": "20.0.2", | ||
"serve": "14.1.2", | ||
"sinon": "15.0.1", | ||
"ts-node": "10.9.1", | ||
"typedoc": "0.23.24", | ||
"typescript": "4.9.4" | ||
}, | ||
@@ -59,0 +62,0 @@ "husky": { |
@@ -5,2 +5,6 @@ # Node Toolkit for Contentful Apps | ||
## Compatibiltiy | ||
Requires an [Node.js LTS version](https://github.com/nodejs/Release). Odd-numbered and not-yet LTS major versions are not supported. | ||
## Installation | ||
@@ -7,0 +11,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
41715
41
44
+ Addedjsonwebtoken@9.0.2(transitive)
+ Addedsemver@7.6.3(transitive)
- Removedjsonwebtoken@8.5.1(transitive)
- Removedsemver@5.7.2(transitive)
Updatedjsonwebtoken@^9.0.0