New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-unity-webgl

Package Overview
Dependencies
Maintainers
1
Versions
119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-unity-webgl - npm Package Compare versions

Comparing version 8.0.4 to 8.0.6

distribution/declarations/global.d.ts

6

distribution/components/unity.d.ts

@@ -1,5 +0,5 @@

import "../declarations/unityInstance";
import "../declarations/window";
import "../declarations/unity-instance";
import "../declarations/global";
import { PureComponent } from "react";
import IUnityProps from "../interfaces/unityProps";
import IUnityProps from "../interfaces/unity-props";
export default class Unity extends PureComponent<IUnityProps, {}> {

@@ -6,0 +6,0 @@ /**

@@ -55,6 +55,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
require("../declarations/unityInstance");
require("../declarations/window");
require("../declarations/unity-instance");
require("../declarations/global");
var react_1 = require("react");
var unityLoaderService_1 = __importDefault(require("../services/unityLoaderService"));
var unity_loader_service_1 = __importDefault(require("../services/unity-loader-service"));
var Unity = /** @class */ (function (_super) {

@@ -73,3 +73,3 @@ __extends(Unity, _super);

*/
_this.unityLoaderService = new unityLoaderService_1.default();
_this.unityLoaderService = new unity_loader_service_1.default();
return _this;

@@ -109,3 +109,3 @@ }

return __awaiter(this, void 0, void 0, function () {
var _unityInstanceParamters, _unityInstance, error_1;
var _unityInstance, error_1;
return __generator(this, function (_a) {

@@ -118,12 +118,3 @@ switch (_a.label) {

_a.sent();
_unityInstanceParamters = {
dataUrl: this.unityContext.unityConfig.dataUrl,
frameworkUrl: this.unityContext.unityConfig.frameworkUrl,
codeUrl: this.unityContext.unityConfig.codeUrl,
streamingAssetsUrl: this.unityContext.unityConfig.streamingAssetsUrl,
companyName: this.unityContext.unityConfig.companyName,
productName: this.unityContext.unityConfig.productName,
productVersion: this.unityContext.unityConfig.productVersion,
};
return [4 /*yield*/, window.createUnityInstance(this.htmlCanvasElementReference, _unityInstanceParamters, this.onProgress.bind(this))];
return [4 /*yield*/, createUnityInstance(this.htmlCanvasElementReference, this.unityContext.unityConfig, this.onProgress.bind(this))];
case 2:

@@ -130,0 +121,0 @@ _unityInstance = _a.sent();

@@ -0,9 +1,10 @@

import IUnityInstanceParameters from "../interfaces/unity-instance-parameters";
/**
* Type declaration for global types.
*/
interface Window {
declare global {
/**
* Type declaration for the ReactUnityWebGL object.
*/
ReactUnityWebGL: Object;
var ReactUnityWebGL: Object;
/**

@@ -15,12 +16,4 @@ * Creates a new UnityInstance.

*/
createUnityInstance(canvasHtmlElement: HTMLCanvasElement, parameters: {
dataUrl: string;
frameworkUrl: string;
codeUrl: string;
companyName?: string;
productName?: string;
productVersion?: string;
streamingAssetsUrl?: string;
}, onProgress?: (progression: number) => void): Promise<UnityInstance>;
function createUnityInstance(canvasHtmlElement: HTMLCanvasElement, parameters: IUnityInstanceParameters, onProgress?: (progression: number) => void): Promise<UnityInstance>;
}
//# sourceMappingURL=window.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=window.js.map
import Unity from "./components/unity";
import UnityContext from "./models/unityContext";
import UnityContext from "./models/unity-context";
export default Unity;
export { UnityContext };
//# sourceMappingURL=exports.d.ts.map

@@ -8,5 +8,5 @@ "use strict";

var unity_1 = __importDefault(require("./components/unity"));
var unityContext_1 = __importDefault(require("./models/unityContext"));
exports.UnityContext = unityContext_1.default;
var unity_context_1 = __importDefault(require("./models/unity-context"));
exports.UnityContext = unity_context_1.default;
exports.default = unity_1.default;
//# sourceMappingURL=exports.js.map
{
"name": "react-unity-webgl",
"version": "8.0.4",
"version": "8.0.6",
"description": "React Unity WebGL provides an easy solution for embedding Unity WebGL builds in your React application, with two-way communication between your React and Unity application with advanced API's.",

@@ -5,0 +5,0 @@ "main": "./distribution/exports.js",

<div align="center">
<img src="https://raw.githubusercontent.com/elraccoone/react-unity-webgl/master/.github/WIKI/logo.png" height="100px">
# React Unity WebGL

@@ -4,0 +6,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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