@contentful/node-apps-toolkit
Advanced tools
Comparing version 2.0.4 to 2.1.0
@@ -0,1 +1,8 @@ | ||
# [2.1.0](https://github.com/contentful/node-apps-toolkit/compare/v2.0.4...v2.1.0) (2023-02-13) | ||
### Features | ||
* set host from opt [] ([#139](https://github.com/contentful/node-apps-toolkit/issues/139)) ([4353c2b](https://github.com/contentful/node-apps-toolkit/commit/4353c2b66777e7d5f33da563a78f24f1ac3849c7)) | ||
## [2.0.4](https://github.com/contentful/node-apps-toolkit/compare/v2.0.3...v2.0.4) (2023-01-23) | ||
@@ -2,0 +9,0 @@ |
@@ -9,2 +9,3 @@ import * as NodeCache from 'node-cache'; | ||
reuseToken?: boolean; | ||
host?: string; | ||
} | ||
@@ -11,0 +12,0 @@ /** |
@@ -101,4 +101,5 @@ "use strict"; | ||
} | ||
return (0, exports.createGetManagementToken)((0, utils_1.createLogger)({ filename: __filename }), (0, utils_1.createHttpClient)(), defaultCache)(privateKey, opts); | ||
const httpClientOpts = typeof opts.host !== 'undefined' ? { prefixUrl: opts.host } : {}; | ||
return (0, exports.createGetManagementToken)((0, utils_1.createLogger)({ filename: __filename }), (0, utils_1.createHttpClient)(httpClientOpts), defaultCache)(privateKey, opts); | ||
}; | ||
exports.getManagementToken = getManagementToken; |
{ | ||
"name": "@contentful/node-apps-toolkit", | ||
"version": "2.0.4", | ||
"version": "2.1.0", | ||
"description": "A collection of helpers and utilities for creating NodeJS Contentful Apps", | ||
@@ -16,7 +16,6 @@ "main": "lib/index.js", | ||
"test": "npm run test:unit && npm run test:integration", | ||
"build": "npm run build:lib && npm run build:docs", | ||
"build:lib": "rm -rf lib && tsc", | ||
"build": "rm -rf lib && tsc", | ||
"build:docs": "typedoc --options .typedocrc.json src", | ||
"start:docs": "serve ./docs", | ||
"prepublish": "npm run build", | ||
"prepublish": "npm run build && npm run build:docs", | ||
"semantic-release": "semantic-release" | ||
@@ -39,5 +38,5 @@ }, | ||
"@semantic-release/git": "10.0.1", | ||
"@types/jsonwebtoken": "8.5.9", | ||
"@types/jsonwebtoken": "9.0.1", | ||
"@types/mocha": "10.0.1", | ||
"@types/node": "18.11.18", | ||
"@types/node": "18.11.19", | ||
"@types/sinon": "10.0.13", | ||
@@ -52,11 +51,11 @@ "@typescript-eslint/eslint-plugin": "4.33.0", | ||
"husky": "4.3.8", | ||
"lint-staged": "13.1.0", | ||
"lint-staged": "13.1.1", | ||
"mocha": "10.2.0", | ||
"prettier": "2.8.3", | ||
"semantic-release": "20.0.2", | ||
"serve": "14.1.2", | ||
"prettier": "2.8.4", | ||
"semantic-release": "20.1.0", | ||
"serve": "14.2.0", | ||
"sinon": "15.0.1", | ||
"ts-node": "10.9.1", | ||
"typedoc": "0.23.24", | ||
"typescript": "4.9.4" | ||
"typescript": "4.9.5" | ||
}, | ||
@@ -72,6 +71,5 @@ "husky": { | ||
"*.ts": [ | ||
"npm run lint:fix", | ||
"npm run build:docs" | ||
"npm run lint:fix" | ||
] | ||
} | ||
} |
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
42250
673