From eebb6895a4a67657ff46e99ebfbb60b64670d99a Mon Sep 17 00:00:00 2001 From: Volker Schukai <volker.schukai@schukai.com> Date: Fri, 6 Jan 2023 15:44:01 +0100 Subject: [PATCH] fix: wrong class name --- .../source/data/datasource/websocket.mjs | 6 ++-- development/package.json | 3 ++ development/pnpm-lock.yaml | 36 +++++++++---------- .../test/cases/data/datasource/websocket.mjs | 10 ++++++ 4 files changed, 34 insertions(+), 21 deletions(-) diff --git a/application/source/data/datasource/websocket.mjs b/application/source/data/datasource/websocket.mjs index 28d60db79..099bf1363 100644 --- a/application/source/data/datasource/websocket.mjs +++ b/application/source/data/datasource/websocket.mjs @@ -16,14 +16,14 @@ export {WebSocketDatasource} /** * @private - * @type {symbol} + * @type {Symbol} */ const receiveQueueSymbol = Symbol("queue"); /** * @private - * @type {symbol} + * @type {Symbol} * * hint: this name is used in the tests. if you want to change it, please change it in the tests as well. */ @@ -330,7 +330,7 @@ class WebSocketDatasource extends Datasource { */ getClone() { const self = this; - return new Websocketdatasource(self[internalSymbol].getRealSubject()['options']); + return new WebSocketDatasource(self[internalSymbol].getRealSubject()['options']); } } diff --git a/development/package.json b/development/package.json index d26200101..d1496464f 100644 --- a/development/package.json +++ b/development/package.json @@ -6,6 +6,9 @@ "type": "git", "url": "https://gitlab.schukai.com/oss/libraries/javascript/monster.git" }, + "bugs": { + "url": "https://gitlab.schukai.com/oss/libraries/javascript/monster/-/issues" + }, "scripts": { "test": "npx mocha --recursive test/cases/", "web-test": "script/web-test.sh", diff --git a/development/pnpm-lock.yaml b/development/pnpm-lock.yaml index 291b62791..515b8545c 100644 --- a/development/pnpm-lock.yaml +++ b/development/pnpm-lock.yaml @@ -74,19 +74,19 @@ packages: engines: {node: '>=6.9.0'} dev: true - /@babel/core/7.20.7: - resolution: {integrity: sha512-t1ZjCluspe5DW24bn2Rr1CDb2v9rn/hROtg9a2tmd0+QYf4bsloYfLQzjG4qHPNMhWtKdGC33R5AxGR2Af2cBw==} + /@babel/core/7.20.12: + resolution: {integrity: sha512-XsMfHovsUYHFMdrIHkZphTN/2Hzzi78R08NuHfDBehym2VsPDL6Zn/JAD/JQdnRvbSsbQc4mVaU1m6JgtTEElg==} engines: {node: '>=6.9.0'} dependencies: '@ampproject/remapping': 2.2.0 '@babel/code-frame': 7.18.6 '@babel/generator': 7.20.7 - '@babel/helper-compilation-targets': 7.20.7_@babel+core@7.20.7 + '@babel/helper-compilation-targets': 7.20.7_@babel+core@7.20.12 '@babel/helper-module-transforms': 7.20.11 '@babel/helpers': 7.20.7 '@babel/parser': 7.20.7 '@babel/template': 7.20.7 - '@babel/traverse': 7.20.10 + '@babel/traverse': 7.20.12 '@babel/types': 7.20.7 convert-source-map: 1.9.0 debug: 4.3.4 @@ -106,14 +106,14 @@ packages: jsesc: 2.5.2 dev: true - /@babel/helper-compilation-targets/7.20.7_@babel+core@7.20.7: + /@babel/helper-compilation-targets/7.20.7_@babel+core@7.20.12: resolution: {integrity: sha512-4tGORmfQcrc+bvrjb5y3dG9Mx1IOZjsHqQVUz7XCNHO+iTmqxWnVg3KRygjGmpRLJGdQSKuvFinbIb0CnZwHAQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 dependencies: '@babel/compat-data': 7.20.10 - '@babel/core': 7.20.7 + '@babel/core': 7.20.12 '@babel/helper-validator-option': 7.18.6 browserslist: 4.21.4 lru-cache: 5.1.1 @@ -157,7 +157,7 @@ packages: '@babel/helper-split-export-declaration': 7.18.6 '@babel/helper-validator-identifier': 7.19.1 '@babel/template': 7.20.7 - '@babel/traverse': 7.20.10 + '@babel/traverse': 7.20.12 '@babel/types': 7.20.7 transitivePeerDependencies: - supports-color @@ -197,7 +197,7 @@ packages: engines: {node: '>=6.9.0'} dependencies: '@babel/template': 7.20.7 - '@babel/traverse': 7.20.10 + '@babel/traverse': 7.20.12 '@babel/types': 7.20.7 transitivePeerDependencies: - supports-color @@ -229,8 +229,8 @@ packages: '@babel/types': 7.20.7 dev: true - /@babel/traverse/7.20.10: - resolution: {integrity: sha512-oSf1juCgymrSez8NI4A2sr4+uB/mFd9MXplYGPEBnfAuWmmyeVcHa6xLPiaRBcXkcb/28bgxmQLTVwFKE1yfsg==} + /@babel/traverse/7.20.12: + resolution: {integrity: sha512-MsIbFN0u+raeja38qboyF8TIT7K0BFzz/Yd/77ta4MsUsmP2RAnidIlwq7d5HFQrH/OZJecGV6B71C4zAgpoSQ==} engines: {node: '>=6.9.0'} dependencies: '@babel/code-frame': 7.18.6 @@ -273,7 +273,7 @@ packages: resolution: {integrity: sha512-AouQ5I0a9TeRdHSN093WX5yz3ZlMbRyQ1xHn7K4OmXcbsRnS96Biy5Q2sTkqLwwTouAk/SNeWIjzrDZFQHp9Mw==} hasBin: true dependencies: - '@babel/core': 7.20.7 + '@babel/core': 7.20.12 globals: 11.12.0 yargs: 13.3.2 transitivePeerDependencies: @@ -586,7 +586,7 @@ packages: engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true dependencies: - caniuse-lite: 1.0.30001441 + caniuse-lite: 1.0.30001442 electron-to-chromium: 1.4.284 node-releases: 2.0.8 update-browserslist-db: 1.0.10_browserslist@4.21.4 @@ -641,8 +641,8 @@ packages: engines: {node: '>=10'} dev: true - /caniuse-lite/1.0.30001441: - resolution: {integrity: sha512-OyxRR4Vof59I3yGWXws6i908EtGbMzVUi3ganaZQHmydk1iwDhRnvaPG2WaR0KcqrDFKrxVZHULT396LEPhXfg==} + /caniuse-lite/1.0.30001442: + resolution: {integrity: sha512-239m03Pqy0hwxYPYR5JwOIxRJfLTWtle9FV8zosfV5pHg+/51uD4nxcUlM8+mWWGfwKtt8lJNHnD3cWw9VZ6ow==} dev: true /catharsis/0.9.0: @@ -816,13 +816,13 @@ packages: resolution: {integrity: sha512-uhipnEEH6SkC176Za0Rt3D7pTV60nTiS2Vn4wZBIQacUtfPBxuTG4dox/jy2yXDCEiFX62gYhehvCIYPudjzFA==} hasBin: true dependencies: - '@babel/core': 7.20.7 + '@babel/core': 7.20.12 '@financial-times/js-features-analyser': 0.0.4 browserslist: 4.21.4 execa: 4.1.0 polyfill-library: 3.111.0 semver: 7.3.8 - snyk: 1.1080.0 + snyk: 1.1081.0 yargs: 15.4.1 transitivePeerDependencies: - supports-color @@ -2454,8 +2454,8 @@ packages: supports-color: 7.2.0 dev: true - /snyk/1.1080.0: - resolution: {integrity: sha512-ELqdJ8hCM/oWyMGbclhRkqezvBtJBBjT99AtpqKgIZu8TNCa8NPYc2TlgqCDaxERr2QYtzeh/qXE56EziDt1LA==} + /snyk/1.1081.0: + resolution: {integrity: sha512-vezueoJQSmQM7iVhfHFgABigBzX4Y+KxIol6kLSK5FbyFYxerAKx5nXH0SjGLwqt06QAX6JzEhYXdEL0vG4cRg==} engines: {node: '>=12'} hasBin: true dev: true diff --git a/development/test/cases/data/datasource/websocket.mjs b/development/test/cases/data/datasource/websocket.mjs index 95a748286..15c90395a 100644 --- a/development/test/cases/data/datasource/websocket.mjs +++ b/development/test/cases/data/datasource/websocket.mjs @@ -37,6 +37,16 @@ describe('Websocket', function () { done() }); + it('should get clone', function () { + + ds = new WebSocketDatasource(testUrl) + const clone = ds.getClone() + + expect(clone).to.be.an.instanceof(WebSocketDatasource) + + + }) + it('should connect', function (done) { ds = new WebSocketDatasource({ url: testUrl, -- GitLab