Skip to content

Commit

Permalink
refactor: use scoped name to avoid ambiguity
Browse files Browse the repository at this point in the history
  • Loading branch information
enisdenjo committed Aug 8, 2020
1 parent 024e6b7 commit ebcd43d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 27 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,16 @@ A client for GraphQL subscriptions over WebSocket. _Server implementation coming

### Install

_This package is undergoing a name change._

```shell
yarn add graphql-subscriptions-ws
yarn add @enisdenjo/graphql-transport-ws
# or
npm install graphql-subscriptions-ws
npm install @enisdenjo/graphql-transport-ws
```

### Relay

```ts
import { createClient } from 'graphql-subscriptions-ws';
import { createClient } from '@enisdenjo/graphql-transport-ws';
import { Network, Observable } from 'relay-runtime';

const subscriptionsClient = createClient({
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "graphql-transport-ws",
"version": "0.0.1",
"name": "@enisdenjo/graphql-transport-ws",
"version": "0.0.2",
"description": "A WebSocket client for GraphQL subscriptions",
"license": "MIT",
"homepage": "https://github.com/enisdenjo/graphql-transport-ws#readme",
Expand Down
40 changes: 20 additions & 20 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1222,6 +1222,26 @@ __metadata:
languageName: node
linkType: hard

"@enisdenjo/graphql-transport-ws@workspace:.":
version: 0.0.0-use.local
resolution: "@enisdenjo/graphql-transport-ws@workspace:."
dependencies:
"@babel/core": ^7.11.0
"@babel/plugin-proposal-class-properties": ^7.10.4
"@babel/plugin-proposal-nullish-coalescing-operator": ^7.10.4
"@babel/plugin-proposal-object-rest-spread": ^7.11.0
"@babel/plugin-proposal-optional-chaining": ^7.11.0
"@babel/preset-env": ^7.11.0
"@babel/preset-typescript": ^7.10.4
"@types/jest": ^26.0.8
babel-jest: ^26.2.2
jest: ^26.2.2
prettier: ^2.0.5
typescript: ^3.9.7
websocket-as-promised: ^1.0.1
languageName: unknown
linkType: soft

"@istanbuljs/load-nyc-config@npm:^1.0.0":
version: 1.1.0
resolution: "@istanbuljs/load-nyc-config@npm:1.1.0"
Expand Down Expand Up @@ -2999,26 +3019,6 @@ fsevents@^2.1.2:
languageName: node
linkType: hard

"graphql-transport-ws@workspace:.":
version: 0.0.0-use.local
resolution: "graphql-transport-ws@workspace:."
dependencies:
"@babel/core": ^7.11.0
"@babel/plugin-proposal-class-properties": ^7.10.4
"@babel/plugin-proposal-nullish-coalescing-operator": ^7.10.4
"@babel/plugin-proposal-object-rest-spread": ^7.11.0
"@babel/plugin-proposal-optional-chaining": ^7.11.0
"@babel/preset-env": ^7.11.0
"@babel/preset-typescript": ^7.10.4
"@types/jest": ^26.0.8
babel-jest: ^26.2.2
jest: ^26.2.2
prettier: ^2.0.5
typescript: ^3.9.7
websocket-as-promised: ^1.0.1
languageName: unknown
linkType: soft

"growly@npm:^1.3.0":
version: 1.3.0
resolution: "growly@npm:1.3.0"
Expand Down

0 comments on commit ebcd43d

Please sign in to comment.