Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lightningjs/renderer

Package Overview
Dependencies
Maintainers
7
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lightningjs/renderer - npm Package Compare versions

Comparing version 0.3.4 to 0.3.5

9

dist/src/core/text-rendering/renderers/CanvasTextRenderer.js

@@ -45,3 +45,10 @@ /*

}
const context = this.canvas.getContext('2d');
let context = this.canvas.getContext('2d');
if (!context) {
// A browser may appear to support OffscreenCanvas but not actually support the Canvas '2d' context
// Here we try getting the context again after falling back to an HTMLCanvasElement.
// See: https://github.com/lightning-js/renderer/issues/26#issuecomment-1750438486
this.canvas = document.createElement('canvas');
context = this.canvas.getContext('2d');
}
assertTruthy(context);

@@ -48,0 +55,0 @@ this.context = context;

2

package.json
{
"name": "@lightningjs/renderer",
"version": "0.3.4",
"version": "0.3.5",
"description": "Lightning 3 Renderer",

@@ -5,0 +5,0 @@ "type": "module",

@@ -100,3 +100,10 @@ /*

}
const context = this.canvas.getContext('2d');
let context = this.canvas.getContext('2d');
if (!context) {
// A browser may appear to support OffscreenCanvas but not actually support the Canvas '2d' context
// Here we try getting the context again after falling back to an HTMLCanvasElement.
// See: https://github.com/lightning-js/renderer/issues/26#issuecomment-1750438486
this.canvas = document.createElement('canvas');
context = this.canvas.getContext('2d');
}
assertTruthy(context);

@@ -103,0 +110,0 @@ this.context = context;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc