Socket
Socket
Sign inDemoInstall

@keystonejs/app-version

Package Overview
Dependencies
Maintainers
6
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@keystonejs/app-version - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

6

CHANGELOG.md
# @keystonejs/app-version
## 1.0.1
### Patch Changes
- [`c08c28d2`](https://github.com/keystonejs/keystone/commit/c08c28d22f2c6a2bfa73ab0ea347c9e0da8a9063) [#2593](https://github.com/keystonejs/keystone/pull/2593) Thanks [@jossmac](https://github.com/jossmac)! - Applied a more consistent voice throughout documentation.
## 1.0.0

@@ -4,0 +10,0 @@

2

package.json
{
"name": "@keystonejs/app-version",
"description": "KeystoneJS App Version Plugin",
"version": "1.0.0",
"version": "1.0.1",
"author": "The KeystoneJS Development Team",

@@ -6,0 +6,0 @@ "license": "MIT",

<!--[meta]
section: api
subSection: utilities
title: App Version Plugin
title: App version plugin
[meta]-->
# App Version Plugin
# App version plugin
[![View changelog](https://img.shields.io/badge/changelogs.xyz-Explore%20Changelog-brightgreen)](https://changelogs.xyz/@keystonejs/app-version)
This package provides support for including a version string both as an HTTP response header and as a graphQL query.

@@ -17,8 +19,18 @@

### Indirectly
This package is designed to be used indirectly via the conveniance API on the `Keystone` class:
```javascript
const keystone = new Keystone({ ..., appVersion: { version: '1.0.0', addVersionToHttpHeaders: true, access: true } });
const keystone = new Keystone({
appVersion: {
version: '1.0.0',
addVersionToHttpHeaders: true,
access: true,
},
});
```
### Directly
It can also be used directly if you would like to manually manage your middleware stack of graphQL providers.

@@ -29,8 +41,13 @@

...
const version = '1.0.0';
const version = '1.0.0';
app.use(appVersionMiddleware(version));
keystone._providers.push(new AppVersionProvider({ version, access: true, schemaNames: ['public'] }));
keystone._providers.push(
new AppVersionProvider({
version,
access: true,
schemaNames: ['public'],
})
);
```
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