@gudhub/core 1.2.4-beta.0 → 1.2.4-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,9 +23,13 @@ export class IndexedDBAppService extends AppDataService {
23
23
 
24
24
 
25
25
  static [Symbol.hasInstance](instance) {
26
- if (instance instanceof IndexedDBService) return true;
27
- if (instance.chunkDataService instanceof IndexedDBAppService) return true;
26
+ try {
27
+ if (instance instanceof IndexedDBAppService) return true;
28
+ if (instance instanceof IndexedDBService) return true; //TODO requires multiple inheritance, thhink how to overcome it
29
+ return false;
30
+ } catch (error) {
28
31
  return false;
32
+ }
29
33
  }
30
34
 
31
35
  //TODO use IndexedDBFacade here
@@ -34,9 +34,13 @@ export class IndexedDBChunkService extends ChunkDataService {
34
34
 
35
35
 
36
36
  static [Symbol.hasInstance](instance) {
37
- if (instance instanceof IndexedDBService) return true;
38
- if (instance.chunkDataService instanceof IndexedDBChunkService) return true;
39
- return false;
37
+ try {
38
+ if (instance instanceof IndexedDBChunkService) return true;
39
+ if (instance instanceof IndexedDBService) return true; //TODO requires multiple inheritance, thhink how to overcome it
40
+ return false;
41
+ } catch (error) {
42
+ return false;
43
+ }
40
44
  }
41
45
 
42
46
 
@@ -24,8 +24,12 @@ export class AppHttpService extends AppDataService {
24
24
  }
25
25
 
26
26
  static [Symbol.hasInstance](instance) {
27
- if (instance instanceof AppHttpService) return true;
28
- if (instance.chunkDataService instanceof HttpService) return true;
29
- return false;
27
+ try {
28
+ if (instance instanceof AppHttpService) return true;
29
+ if (instance instanceof HttpService) return true; //TODO requires multiple inheritance, thhink how to overcome it
30
+ return false;
31
+ } catch (error) {
32
+ return false;
33
+ }
30
34
  }
31
35
  }
@@ -25,8 +25,12 @@ export class ChunkHttpService extends ChunkDataService {
25
25
 
26
26
 
27
27
  static [Symbol.hasInstance](instance) {
28
- if (instance instanceof ChunkHttpService) return true;
29
- if (instance.chunkDataService instanceof HttpService) return true;
30
- return false;
28
+ try {
29
+ if (instance instanceof ChunkHttpService) return true;
30
+ if (instance instanceof HttpService) return true; //TODO requires multiple inheritance, thhink how to overcome it
31
+ return false;
32
+ } catch (error) {
33
+ return false;
34
+ }
31
35
  }
32
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gudhub/core",
3
- "version": "1.2.4-beta.0",
3
+ "version": "1.2.4-beta.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -8,13 +8,13 @@
8
8
  "prepublishOnly": "parcel build ./indexUMD.js --target browser --bundle-node-modules --out-file library.min.js --global GudHubLibrary -d umd",
9
9
  "publishPublicly": "npm publish --access public"
10
10
  },
11
- "engines": {
12
- "node": "16.13.1"
11
+ "babel": {
12
+ "presets": [
13
+ [
14
+ "@babel/preset-env"
15
+ ]
16
+ ]
13
17
  },
14
- "browserslist": [
15
- "last 3 versions",
16
- "> 0.5%"
17
- ],
18
18
  "repository": {
19
19
  "type": "git",
20
20
  "url": "git+ssh://git@bitbucket.org/AAtlas/gudhub.git"
@@ -24,6 +24,7 @@
24
24
  "license": "ISC",
25
25
  "homepage": "https://bitbucket.org/AAtlas/gudhub#readme",
26
26
  "dependencies": {
27
+ "@babel/preset-env": "^7.24.7",
27
28
  "axios": "^0.21.0",
28
29
  "date-fns": "^2.16.1",
29
30
  "fuse.js": "^6.4.6",
@@ -33,6 +34,7 @@
33
34
  "ws": "^7.3.1"
34
35
  },
35
36
  "devDependencies": {
37
+ "@babel/core": "^7.24.7",
36
38
  "canvas": "^2.9.3",
37
39
  "express": "^4.17.1",
38
40
  "jsdom": "^20.0.0",