@entur-partner/permission-client-node
Advanced tools
Comparing version 3.4.5 to 3.4.6
@@ -0,1 +1,4 @@ | ||
### Version 3.4.6 | ||
-- Fix: Wait for refresh complete when use websocket. | ||
### Version 3.4.5 | ||
@@ -2,0 +5,0 @@ - Fix: add typed Exceptions |
@@ -29,7 +29,7 @@ "use strict"; | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
client.onConnect = (_frame) => { | ||
this.cacheRefresh.refresh(); | ||
client.subscribe('/user/queue/application/' + applicationId + '/instance/' + this.permissionRepository.getInstanceId(), (message) => { | ||
client.onConnect = async (_frame) => { | ||
await this.cacheRefresh.refresh(); | ||
client.subscribe('/user/queue/application/' + applicationId + '/instance/' + this.permissionRepository.getInstanceId(), async (message) => { | ||
if (message.body === 'refresh-all') { | ||
this.cacheRefresh.refresh(); | ||
await this.cacheRefresh.refresh(); | ||
} | ||
@@ -36,0 +36,0 @@ }); |
@@ -348,3 +348,3 @@ declare module '@entur-partner/permission-client-node/ValueObjects' { | ||
declare module '@entur-partner/permission-client-node/version' { | ||
const _default: "3.4.5"; | ||
const _default: "3.4.6"; | ||
export default _default; | ||
@@ -351,0 +351,0 @@ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// This file is automatically generated by utils/UpdateVersionFile.cjs | ||
exports.default = '3.4.5'; | ||
exports.default = '3.4.6'; | ||
//# sourceMappingURL=version.js.map |
@@ -23,7 +23,7 @@ import websocket from 'websocket'; | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
client.onConnect = (_frame) => { | ||
this.cacheRefresh.refresh(); | ||
client.subscribe('/user/queue/application/' + applicationId + '/instance/' + this.permissionRepository.getInstanceId(), (message) => { | ||
client.onConnect = async (_frame) => { | ||
await this.cacheRefresh.refresh(); | ||
client.subscribe('/user/queue/application/' + applicationId + '/instance/' + this.permissionRepository.getInstanceId(), async (message) => { | ||
if (message.body === 'refresh-all') { | ||
this.cacheRefresh.refresh(); | ||
await this.cacheRefresh.refresh(); | ||
} | ||
@@ -30,0 +30,0 @@ }); |
// This file is automatically generated by utils/UpdateVersionFile.cjs | ||
export default '3.4.5'; | ||
export default '3.4.6'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@entur-partner/permission-client-node", | ||
"version": "3.4.5", | ||
"version": "3.4.6", | ||
"author": "Entur AS", | ||
@@ -44,3 +44,3 @@ "contributors": [ | ||
"type": "git", | ||
"url": "https://bitbucket.org/enturas/permission-client-node.git" | ||
"url": "https://github.com/entur/permission-client-node.git" | ||
}, | ||
@@ -69,3 +69,2 @@ "publishConfig": { | ||
"ts-jest": "^29.2.4", | ||
"ts-node-dev": "^2.0.0", | ||
"tsc-alias": "^1.8.10", | ||
@@ -72,0 +71,0 @@ "typescript": "^5.5.4", |
@@ -235,12 +235,13 @@ # Permission Client for Node | ||
### Publishing | ||
Create a NPM user account on [https://www.npmjs.com/signup](https://www.npmjs.com/signup). Send your user to tech-lead in Entur Partner and ask to be added to [Entur Partner organisation](https://www.npmjs.com/org/entur-partner). | ||
Publishing is done through GitHub Actions when a new release is published on the repository. | ||
Upgrade version with: | ||
``` | ||
yarn version [--major | --minor | --patch] | ||
``` | ||
#### GitHub Release | ||
Publishing a new release on GitHub is easy and is done with a few clicks. | ||
Publishing with: | ||
``` | ||
yarn publish | ||
``` | ||
1. Go to releases tab and click "Draft a new release" in top right corner | ||
2. Click on "Choose a tag" | ||
3. If a tag is already not made for the release version, create a new one. | ||
4. Press "Generate release notes" and change content if needed | ||
5. Select "Set as the latest release" checkbox if this is not a pre-release. | ||
6. Press Publish Release | ||
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
187538
16
247