Skip to content

Commit

Permalink
Merge pull request #2 from gohypergiant/fix/self-reference-error
Browse files Browse the repository at this point in the history
Fix ReferenceError
  • Loading branch information
rsekijima authored Nov 29, 2023
2 parents 6be4e44 + d02df46 commit 2aa23d3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -95,16 +95,16 @@ 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.

```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",
...
}
```
Expand All @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ 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',
},

resolve: {
Expand Down

0 comments on commit 2aa23d3

Please sign in to comment.