@wavemaker/angular-app 11.8.0-next.141688 → 11.8.0-next.141689

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.
package/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@wavemaker/angular-app",
3
- "version": "11.8.0-next.141688",
3
+ "version": "11.8.0-next.141689",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@wavemaker/angular-app",
9
- "version": "11.8.0-next.141688",
9
+ "version": "11.8.0-next.141689",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@angular/animations": "17.3.11",
@@ -35,10 +35,10 @@
35
35
  "@awesome-cordova-plugins/vibration": "5.39.1",
36
36
  "@babel/runtime": "7.14.8",
37
37
  "@metrichor/jmespath": "0.3.1",
38
- "@wavemaker/app-ng-runtime": "11.8.0-next.141688",
38
+ "@wavemaker/app-ng-runtime": "11.8.0-next.141689",
39
39
  "@wavemaker/focus-trap": "1.0.1",
40
40
  "@wavemaker/nvd3": "1.8.11",
41
- "@wavemaker/variables": "11.8.0-next.141688",
41
+ "@wavemaker/variables": "11.8.0-next.141689",
42
42
  "@ztree/ztree_v3": "3.5.48",
43
43
  "angular-imask": "^7.6.1",
44
44
  "angular2-websocket": "0.9.7",
@@ -90,6 +90,7 @@
90
90
  "fs": "0.0.1-security",
91
91
  "fs-extra": "7.0.1",
92
92
  "jest": "^29.7.0",
93
+ "jest-canvas-mock": "^2.5.2",
93
94
  "jest-preset-angular": "^14.1.0",
94
95
  "moment": "2.29.4",
95
96
  "moment-timezone": "^0.5.34",
@@ -6436,9 +6437,9 @@
6436
6437
  }
6437
6438
  },
6438
6439
  "node_modules/@wavemaker/app-ng-runtime": {
6439
- "version": "11.8.0-next.141688",
6440
- "resolved": "https://registry.npmjs.org/@wavemaker/app-ng-runtime/-/app-ng-runtime-11.8.0-next.141688.tgz",
6441
- "integrity": "sha512-yxba6jLFKkRLOAbOB+KVKkaULT+Lbjap/BbA/0rYJKlNbrIvWvfnq4U/s76ZNk488sowH6idGPTFZckioeXrRw==",
6440
+ "version": "11.8.0-next.141689",
6441
+ "resolved": "https://registry.npmjs.org/@wavemaker/app-ng-runtime/-/app-ng-runtime-11.8.0-next.141689.tgz",
6442
+ "integrity": "sha512-oH93mevJfx8iIXFzlK1MFJ2iRWou8VKHeJUHMvbZcTRu6HA6jCuPC3au7sIJB95yvgqaHAzfAW7AYE0t2CemHw==",
6442
6443
  "engines": {
6443
6444
  "node": ">=18.16.1",
6444
6445
  "npm": ">=9.5.1"
@@ -6462,9 +6463,9 @@
6462
6463
  }
6463
6464
  },
6464
6465
  "node_modules/@wavemaker/variables": {
6465
- "version": "11.8.0-next.141688",
6466
- "resolved": "https://registry.npmjs.org/@wavemaker/variables/-/variables-11.8.0-next.141688.tgz",
6467
- "integrity": "sha512-d9RI2eo9y2BemihVsEOFuPMm5ewmgYzIbYY7gTbdhXBMCYpMblk4WKXKA2mb8ucHUd93SF3SPpLQOncegRPFkg==",
6466
+ "version": "11.8.0-next.141689",
6467
+ "resolved": "https://registry.npmjs.org/@wavemaker/variables/-/variables-11.8.0-next.141689.tgz",
6468
+ "integrity": "sha512-qUfz/QsgxrFRfjBOd3XHQKYxdSVOD/KhbYZMWtjHg9KpbbKF+QhAPqF6NNU2U22OKYaZ82E4k+mt36sfg3665w==",
6468
6469
  "dependencies": {
6469
6470
  "@metrichor/jmespath": "^0.3.1",
6470
6471
  "he": "^1.2.0",
@@ -9827,6 +9828,12 @@
9827
9828
  "node": ">=4"
9828
9829
  }
9829
9830
  },
9831
+ "node_modules/cssfontparser": {
9832
+ "version": "1.2.1",
9833
+ "resolved": "https://registry.npmjs.org/cssfontparser/-/cssfontparser-1.2.1.tgz",
9834
+ "integrity": "sha512-6tun4LoZnj7VN6YeegOVb67KBX/7JJsqvj+pv3ZA7F878/eN33AbGa5b/S/wXxS/tcp8nc40xRUrsPlxIyNUPg==",
9835
+ "dev": true
9836
+ },
9830
9837
  "node_modules/cssstyle": {
9831
9838
  "version": "2.3.0",
9832
9839
  "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz",
@@ -14250,6 +14257,16 @@
14250
14257
  }
14251
14258
  }
14252
14259
  },
14260
+ "node_modules/jest-canvas-mock": {
14261
+ "version": "2.5.2",
14262
+ "resolved": "https://registry.npmjs.org/jest-canvas-mock/-/jest-canvas-mock-2.5.2.tgz",
14263
+ "integrity": "sha512-vgnpPupjOL6+L5oJXzxTxFrlGEIbHdZqFU+LFNdtLxZ3lRDCl17FlTMM7IatoRQkrcyOTMlDinjUguqmQ6bR2A==",
14264
+ "dev": true,
14265
+ "dependencies": {
14266
+ "cssfontparser": "^1.2.1",
14267
+ "moo-color": "^1.0.2"
14268
+ }
14269
+ },
14253
14270
  "node_modules/jest-changed-files": {
14254
14271
  "version": "29.7.0",
14255
14272
  "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz",
@@ -17481,6 +17498,21 @@
17481
17498
  "node": "*"
17482
17499
  }
17483
17500
  },
17501
+ "node_modules/moo-color": {
17502
+ "version": "1.0.3",
17503
+ "resolved": "https://registry.npmjs.org/moo-color/-/moo-color-1.0.3.tgz",
17504
+ "integrity": "sha512-i/+ZKXMDf6aqYtBhuOcej71YSlbjT3wCO/4H1j8rPvxDJEifdwgg5MaFyu6iYAT8GBZJg2z0dkgK4YMzvURALQ==",
17505
+ "dev": true,
17506
+ "dependencies": {
17507
+ "color-name": "^1.1.4"
17508
+ }
17509
+ },
17510
+ "node_modules/moo-color/node_modules/color-name": {
17511
+ "version": "1.1.4",
17512
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
17513
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
17514
+ "dev": true
17515
+ },
17484
17516
  "node_modules/morgan": {
17485
17517
  "version": "1.10.0",
17486
17518
  "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.10.0.tgz",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/angular-app",
3
- "version": "11.8.0-next.141688",
3
+ "version": "11.8.0-next.141689",
4
4
  "scripts": {
5
5
  "ng": "ng",
6
6
  "start": "./node_modules/.bin/ng serve",
@@ -46,7 +46,7 @@
46
46
  "@metrichor/jmespath": "0.3.1",
47
47
  "@wavemaker/focus-trap": "1.0.1",
48
48
  "@wavemaker/nvd3": "1.8.11",
49
- "@wavemaker/variables": "11.8.0-next.141688",
49
+ "@wavemaker/variables": "11.8.0-next.141689",
50
50
  "@ztree/ztree_v3": "3.5.48",
51
51
  "angular-imask": "^7.6.1",
52
52
  "angular2-websocket": "0.9.7",
@@ -71,7 +71,7 @@
71
71
  "tslib": "2.4.1",
72
72
  "x2js": "3.4.4",
73
73
  "zone.js": "0.14.7",
74
- "@wavemaker/app-ng-runtime": "11.8.0-next.141688"
74
+ "@wavemaker/app-ng-runtime": "11.8.0-next.141689"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@ampproject/rollup-plugin-closure-compiler": "^0.27.0",
@@ -99,6 +99,7 @@
99
99
  "fs": "0.0.1-security",
100
100
  "fs-extra": "7.0.1",
101
101
  "jest": "^29.7.0",
102
+ "jest-canvas-mock": "^2.5.2",
102
103
  "jest-preset-angular": "^14.1.0",
103
104
  "moment": "2.29.4",
104
105
  "moment-timezone": "^0.5.34",
package/src/setup-jest.js CHANGED
@@ -2,6 +2,7 @@ import "jest-preset-angular/setup-jest";
2
2
  import { ToastrModule } from 'ngx-toastr';
3
3
  import { TestBed } from '@angular/core/testing';
4
4
  import _ from 'lodash-es';
5
+ import 'jest-canvas-mock';
5
6
 
6
7
  // Mock global objects if necessary
7
8
  global.jQuery = require("jquery");
@@ -10,6 +11,7 @@ global._ = _;
10
11
 
11
12
 
12
13
  global.moment = require("moment");
14
+
13
15
  class IntersectionObserver {
14
16
  constructor(callback, options) {
15
17
 
@@ -87,3 +89,32 @@ beforeEach(() => {
87
89
  },
88
90
  });
89
91
  });
92
+
93
+ // jest.setup.js
94
+ Object.defineProperty(global.HTMLMediaElement.prototype, 'load', {
95
+ configurable: true,
96
+ enumerable: true,
97
+ writable: true,
98
+ value: jest.fn(),
99
+ });
100
+
101
+ Object.defineProperty(global.HTMLMediaElement.prototype, 'play', {
102
+ configurable: true,
103
+ enumerable: true,
104
+ writable: true,
105
+ value: jest.fn().mockResolvedValue(),
106
+ });
107
+
108
+ Object.defineProperty(global.HTMLMediaElement.prototype, 'pause', {
109
+ configurable: true,
110
+ enumerable: true,
111
+ writable: true,
112
+ value: jest.fn(),
113
+ });
114
+
115
+ Object.defineProperty(global.HTMLMediaElement.prototype, 'addTextTrack', {
116
+ configurable: true,
117
+ enumerable: true,
118
+ writable: true,
119
+ value: jest.fn(),
120
+ });