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

@pixi/unsafe-eval

Package Overview
Dependencies
Maintainers
2
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pixi/unsafe-eval

Adds support for environments that disallow support of new Function

  • 6.5.10
  • latest-6.x
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.9K
decreased by-27.84%
Maintainers
2
Weekly downloads
 
Created
Source

@pixi/unsafe-eval

Adds support for environments that disallow support of new Function, such as WeChat.

Installation

npm install @pixi/unsafe-eval

Usage

If you are using a bundler, you need to pass the core bundle into the install method. This function takes one arguments, either the global PIXI object, or the core.

import { ShaderSystem, Renderer } from '@pixi/core';
import { install } from '@pixi/unsafe-eval';

// Apply the patch to PIXI
install({ ShaderSystem });

// Create the renderer with patch applied
const renderer = new Renderer();

If you are including unsafe-eval.js direct, you do not need to do anything else:

<script src="pixi.min.js"></script>
<script src="unsafe-eval.min.js"></script>

FAQs

Package last updated on 06 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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