Socket
Socket
Sign inDemoInstall

@pixi/unsafe-eval

Package Overview
Dependencies
29
Maintainers
3
Versions
108
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @pixi/unsafe-eval

Adds support for environments that disallow support of new Function


Version published
Weekly downloads
6.3K
decreased by-17.75%
Maintainers
3
Created
Weekly downloads
 

Readme

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

Last updated on 09 Sep 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc