Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@contentful/node-apps-toolkit

Package Overview
Dependencies
Maintainers
8
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contentful/node-apps-toolkit - npm Package Compare versions

Comparing version 2.0.4 to 2.1.0

7

CHANGELOG.md

@@ -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 @@

1

lib/keys/get-management-token.d.ts

@@ -9,2 +9,3 @@ import * as NodeCache from 'node-cache';

reuseToken?: boolean;
host?: string;
}

@@ -11,0 +12,0 @@ /**

3

lib/keys/get-management-token.js

@@ -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

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