From a3f7269318029627f472843d8e26e2d2f857686d Mon Sep 17 00:00:00 2001 From: Daniel Holden Date: Wed, 22 Mar 2023 12:49:19 +1000 Subject: [PATCH] Fix for incorrectly named module import 'lib-spsfrontend', changed to 'libspsfrontend' --- examples/typescript/package-lock.json | 15 +-------------- examples/typescript/src/index.ts | 4 ++-- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/examples/typescript/package-lock.json b/examples/typescript/package-lock.json index 31a684e7..e4945e1c 100644 --- a/examples/typescript/package-lock.json +++ b/examples/typescript/package-lock.json @@ -9,7 +9,6 @@ "version": "1.0.0", "license": "MIT", "devDependencies": { - "@tensorworks/lib-spsfrontend": "^1.0.0", "@types/node": "^18.15.1", "@types/webpack": "^5.28.0", "@webpack-cli/generators": "^3.0.1", @@ -29,7 +28,7 @@ } }, "../..": { - "name": "@tensorworks/lib-spsfrontend", + "name": "@tensorworks/libspsfrontend", "version": "1.0.0", "extraneous": true, "license": "MIT", @@ -669,12 +668,6 @@ "@octokit/openapi-types": "^12.11.0" } }, - "node_modules/@tensorworks/spsfrontend": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/@tensorworks/spsfrontend/-/spsfrontend-0.2.5.tgz", - "integrity": "sha512-NtkVWXoRuK6m6is+9UPick+Iymp9gzqJwnqhRBpnN8yqJ3WSmP1Q4y30WJ349JePuWadRU2W70lX09xEyXQb/A==", - "dev": true - }, "node_modules/@tootallnate/once": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", @@ -8941,12 +8934,6 @@ "@octokit/openapi-types": "^12.11.0" } }, - "@tensorworks/spsfrontend": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/@tensorworks/spsfrontend/-/spsfrontend-0.2.5.tgz", - "integrity": "sha512-NtkVWXoRuK6m6is+9UPick+Iymp9gzqJwnqhRBpnN8yqJ3WSmP1Q4y30WJ349JePuWadRU2W70lX09xEyXQb/A==", - "dev": true - }, "@tootallnate/once": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", diff --git a/examples/typescript/src/index.ts b/examples/typescript/src/index.ts index ff229d7e..9215c092 100644 --- a/examples/typescript/src/index.ts +++ b/examples/typescript/src/index.ts @@ -1,4 +1,4 @@ -import * as spsFrontend from "@tensorworks/lib-spsfrontend"; +import * as spsFrontend from "@tensorworks/libspsfrontend"; // Apply default styling from Epic's frontend export const PixelStreamingApplicationStyles = new spsFrontend.PixelStreamingApplicationStyle(); @@ -12,7 +12,7 @@ document.body.onload = function () { // Create a Native DOM delegate instance that implements the Delegate interface class const stream = new spsFrontend.PixelStreaming(config); - const spsApplication = new spsFrontend.SPSApplication({ + const spsApplication = new spsFrontend.SPSApplication({ stream, onColorModeChanged: (isLightMode) => PixelStreamingApplicationStyles.setColorMode(isLightMode) /* Light/Dark mode support. */ });