@shotstack/shotstack-canvas 2.1.9 → 2.1.10

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.
@@ -668,7 +668,7 @@ function bufferToArrayBuffer(buffer) {
668
668
  }
669
669
  return arrayBuffer;
670
670
  }
671
- var DEFAULT_WASM_URL = "https://shotstack-ingest-api-dev-sources.s3.ap-southeast-2.amazonaws.com/euo5r93oyr/zzz01k9h-yycyx-2x2y6-qx9bj-7n567b/source.wasm";
671
+ var DEFAULT_WASM_URL = "https://js.shotstack.io/canvas/hb.wasm";
672
672
  async function fetchWasmFromUrl(url) {
673
673
  try {
674
674
  const response = await fetch(url);
@@ -1019,7 +1019,7 @@ var FontRegistry = class _FontRegistry {
1019
1019
  async _doInit() {
1020
1020
  try {
1021
1021
  this.hb = await initHB(
1022
- "https://shotstack-ingest-api-dev-sources.s3.ap-southeast-2.amazonaws.com/euo5r93oyr/zzz01k9h-yycyx-2x2y6-qx9bj-7n567b/source.wasm"
1022
+ "https://js.shotstack.io/canvas/hb.wasm"
1023
1023
  );
1024
1024
  } catch (error) {
1025
1025
  this.initPromise = void 0;
@@ -264,7 +264,7 @@ function bufferToArrayBuffer(buffer) {
264
264
  }
265
265
  return arrayBuffer;
266
266
  }
267
- var DEFAULT_WASM_URL = "https://shotstack-ingest-api-dev-sources.s3.ap-southeast-2.amazonaws.com/euo5r93oyr/zzz01k9h-yycyx-2x2y6-qx9bj-7n567b/source.wasm";
267
+ var DEFAULT_WASM_URL = "https://js.shotstack.io/canvas/hb.wasm";
268
268
  async function fetchWasmFromUrl(url) {
269
269
  try {
270
270
  const response = await fetch(url);
@@ -615,7 +615,7 @@ var FontRegistry = class _FontRegistry {
615
615
  async _doInit() {
616
616
  try {
617
617
  this.hb = await initHB(
618
- "https://shotstack-ingest-api-dev-sources.s3.ap-southeast-2.amazonaws.com/euo5r93oyr/zzz01k9h-yycyx-2x2y6-qx9bj-7n567b/source.wasm"
618
+ "https://js.shotstack.io/canvas/hb.wasm"
619
619
  );
620
620
  } catch (error) {
621
621
  this.initPromise = void 0;
package/dist/entry.web.js CHANGED
@@ -18142,7 +18142,7 @@ function bufferToArrayBuffer(buffer) {
18142
18142
  }
18143
18143
  return arrayBuffer;
18144
18144
  }
18145
- var DEFAULT_WASM_URL = "https://shotstack-ingest-api-dev-sources.s3.ap-southeast-2.amazonaws.com/euo5r93oyr/zzz01k9h-yycyx-2x2y6-qx9bj-7n567b/source.wasm";
18145
+ var DEFAULT_WASM_URL = "https://js.shotstack.io/canvas/hb.wasm";
18146
18146
  async function fetchWasmFromUrl(url2) {
18147
18147
  try {
18148
18148
  const response = await fetch(url2);
@@ -31883,7 +31883,7 @@ var _FontRegistry = class _FontRegistry {
31883
31883
  async _doInit() {
31884
31884
  try {
31885
31885
  this.hb = await initHB(
31886
- "https://shotstack-ingest-api-dev-sources.s3.ap-southeast-2.amazonaws.com/euo5r93oyr/zzz01k9h-yycyx-2x2y6-qx9bj-7n567b/source.wasm"
31886
+ "https://js.shotstack.io/canvas/hb.wasm"
31887
31887
  );
31888
31888
  } catch (error48) {
31889
31889
  this.initPromise = void 0;
@@ -37943,7 +37943,7 @@ async function createTextEngine(opts = {}) {
37943
37943
  const width = opts.width ?? CANVAS_CONFIG.DEFAULTS.width;
37944
37944
  const height = opts.height ?? CANVAS_CONFIG.DEFAULTS.height;
37945
37945
  const pixelRatio = opts.pixelRatio ?? CANVAS_CONFIG.DEFAULTS.pixelRatio;
37946
- const wasmBaseURL = "https://shotstack-ingest-api-dev-sources.s3.ap-southeast-2.amazonaws.com/euo5r93oyr/zzz01k9h-yycyx-2x2y6-qx9bj-7n567b/source.wasm";
37946
+ const wasmBaseURL = "https://js.shotstack.io/canvas/hb.wasm";
37947
37947
  let fonts;
37948
37948
  try {
37949
37949
  fonts = await FontRegistry.getSharedInstance(wasmBaseURL);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shotstack/shotstack-canvas",
3
- "version": "2.1.9",
3
+ "version": "2.1.10",
4
4
  "description": "Text layout & animation engine (HarfBuzz) for Node & Web - fully self-contained.",
5
5
  "type": "module",
6
6
  "main": "./dist/entry.node.cjs",