@vonage/ml-transformers 4.3.1 → 4.3.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.
@@ -2,10 +2,12 @@ import { TextureSource } from "../../types";
2
2
  import { WebglTransformerPipeline } from "../webgl-transormer-pipeline";
3
3
  export declare class BackgroundBlur extends WebglTransformerPipeline {
4
4
  private readonly context;
5
+ private radius;
5
6
  inputImage?: ImageBitmap | TextureSource | WebGLTexture;
6
7
  inputMask?: ImageBitmap | TextureSource | WebGLTexture;
7
8
  private blur;
8
9
  constructor(context: WebGLRenderingContext, radius: number);
10
+ private getBlurTextureSize;
9
11
  setData(image?: ImageBitmap | TextureSource | WebGLTexture, mask?: ImageBitmap | TextureSource | WebGLTexture): void;
10
12
  resizeOutput(width: number, height: number): void;
11
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vonage/ml-transformers",
3
- "version": "4.3.1",
3
+ "version": "4.3.3",
4
4
  "author": "Guy Mininberg <guy.mininberg@vonage.com>",
5
5
  "contributors": [
6
6
  "Guy Mininberg <guy.mininberg@vonage.com>",
@@ -32,9 +32,9 @@
32
32
  "e2e:app": "vite ./tests/e2e/apps/vite",
33
33
  "e2e:app:run:vite": "vite ./tests/e2e/apps/vite",
34
34
  "e2e:app:run:webpack": "vite ./tests/e2e/apps/webpack/app",
35
- "e2e:app:install": "node ./tests/e2e/scripts/install-app.js",
36
- "e2e:app:build": "node ./tests/e2e/scripts/build-app.js",
37
- "test": "vitest --run --threads false",
35
+ "e2e:app:install": "node ./tests/e2e/scripts/install-app.js && node ./tests/e2e/scripts/build-app.js",
36
+ "test": "vitest --run",
37
+ "test:install": "npm install && npm run build && npm pack && npm run e2e:app:install",
38
38
  "version:local": "node -pe 'require(\"./package.json\").version'",
39
39
  "version:published": "npm show @vonage/ml-transformers version"
40
40
  },
@@ -79,8 +79,9 @@
79
79
  "@vitest/ui": "^0.24.3",
80
80
  "chai": "^4.3.6",
81
81
  "chai-image": "file:./lib/libs/chai-image-3.0.0.tgz",
82
- "mocha": "^10.1.0",
83
82
  "minify": "^9.1.0",
83
+ "mocha": "^10.1.0",
84
+ "node-fetch": "^3.3.0",
84
85
  "npm-run-all": "^4.1.5",
85
86
  "puppeteer": "^19.0.0",
86
87
  "rimraf": "^3.0.2",