satoru-render 0.0.24 → 0.0.25

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/LICENSE CHANGED
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
21
+ SOFTWARE.
package/dist/core.js CHANGED
@@ -174,13 +174,13 @@ export class SatoruBase {
174
174
  const result = mod.merge_pdfs(instancePtr, pagePdfs);
175
175
  if (!result)
176
176
  return new Uint8Array();
177
- return new Uint8Array(result.slice());
177
+ return new Uint8Array(result);
178
178
  }
179
179
  finally {
180
180
  mod.destroy_instance(instancePtr);
181
181
  }
182
182
  }
183
- const mod = await this.getModule();
183
+ let mod = await this.getModule();
184
184
  const { width, height = 0, fonts, images, css, logLevel, onLog, } = options;
185
185
  if (!options.userAgent) {
186
186
  options.userAgent =
@@ -319,7 +319,7 @@ export class SatoruBase {
319
319
  if (format === "svg") {
320
320
  return new TextDecoder().decode(result);
321
321
  }
322
- return new Uint8Array(result.slice());
322
+ return new Uint8Array(result);
323
323
  }
324
324
  finally {
325
325
  mod.destroy_instance(instancePtr);
Binary file
package/dist/satoru.wasm CHANGED
Binary file