From 5c91940d7e35c03a5d13826b9f35496a4135e887 Mon Sep 17 00:00:00 2001 From: rsekijima <88676042+rsekijima@users.noreply.github.com> Date: Thu, 30 Nov 2023 00:24:41 +0900 Subject: [PATCH 1/2] fix: set globalObject to solve ReferenceError --- webpack.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/webpack.config.js b/webpack.config.js index 8c6a285..f8e3ed0 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -11,6 +11,7 @@ module.exports = function(env, argv) { name: '@moesol/inter-widget-communication', type: 'umd', }, + globalObject: 'this', }, resolve: { From d02df469e9b0ae2ba8a5c6cc5d1b4b9ca676c4a8 Mon Sep 17 00:00:00 2001 From: rsekijima <88676042+rsekijima@users.noreply.github.com> Date: Thu, 30 Nov 2023 00:25:45 +0900 Subject: [PATCH 2/2] fix: update references from moesol to gohypergiant to publish package --- README.md | 10 +++++----- package-lock.json | 2 +- package.json | 2 +- webpack.config.js | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index d641976..ead88c9 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ without having to wrap them in a `ready` call. Example usage: ```typescript -import { initialize } from '@moesol/inter-widget-communication' +import { initialize } from '@gohypergiant/inter-widget-communication' const myId = initialize({ provider: 'broadcast', @@ -95,8 +95,8 @@ The sample client built using these instructions is here: `inter-widget-communic Clients can use `ozp-iwc` by installing the required dependencies: ``` -npm install @moesol/inter-widget-communication -npm install @moesol/ozp-iwc +npm install @gohypergiant/inter-widget-communication +npm install @gohypergiant/ozp-iwc ``` Then in `package.json`, copying the `ozpIwc-client` files to where static assets will be served. @@ -104,7 +104,7 @@ Then in `package.json`, copying the `ozpIwc-client` files to where static assets ```json "scripts": { ... - "copy": "copyfiles --up 5 node_modules/@moesol/ozp-iwc/dist/js/* public/js/ozp-iwc-1.2.4", + "copy": "copyfiles --up 5 node_modules/@gohypergiant/ozp-iwc/dist/js/* public/js/ozp-iwc-1.2.4", ... } ``` @@ -128,7 +128,7 @@ Then adding in `index.html` Then in `index.tsx` or initial JavaScript/Typescript entry, adding ```typescript -import { initialize } from '@moesol/inter-widget-communication' +import { initialize } from '@gohypergiant/inter-widget-communication' const myId = initialize({ busUrl: 'http://localhost:9090/ozp-iwc-1.2.4' diff --git a/package-lock.json b/package-lock.json index 06d4e95..b0fb14f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "@moesol/inter-widget-communication", + "name": "@gohypergiant/inter-widget-communication", "version": "2.8.0-SNAPSHOT.0", "lockfileVersion": 1, "requires": true, diff --git a/package.json b/package.json index e0b8a56..d426771 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@moesol/inter-widget-communication", + "name": "@gohypergiant/inter-widget-communication", "version": "2.8.0-SNAPSHOT.0", "description": "NPM library to tranistion off OWF. Provides wrapped calls to OWF ready, subscribe and publishing functions and alternative implementations.", "main": "build/index.js", diff --git a/webpack.config.js b/webpack.config.js index f8e3ed0..c0b431c 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -8,7 +8,7 @@ module.exports = function(env, argv) { path: path.resolve(__dirname, 'build'), clean: true, library: { - name: '@moesol/inter-widget-communication', + name: '@gohypergiant/inter-widget-communication', type: 'umd', }, globalObject: 'this',