Skip to content

Commit

Permalink
Update repository references
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Piatek committed Sep 4, 2023
1 parent a16eef3 commit afe7a08
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = {
'no-undef': 'off',
'no-dupe-class-members': 'off',
// see:
// https://github.com/ably-labs/spaces/issues/76
// https://github.com/ably/spaces/issues/76
// https://github.com/microsoft/TypeScript/issues/16577#issuecomment-703190339
'import/extensions': [
'error',
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<img src="https://badgen.net/badge/development-status/alpha/yellow?icon=github" alt="Development status" />
</a>
<a href="">
<img src="https://github.com/ably-labs/spaces/actions/workflows/dev-ci.yml/badge.svg?branch=main" alt="CI status" />
<img src="https://github.com/ably/spaces/actions/workflows/dev-ci.yml/badge.svg?branch=main" alt="CI status" />
</a>
<a href="">
<img src="https://badgen.net/github/license/3scale/saas-operator" alt="License" />
Expand Down Expand Up @@ -65,13 +65,13 @@ To start using this SDK, you will need the following:
Install the Ably JavaScript SDK and the Spaces SDK:

```sh
npm install ably @ably-labs/spaces
npm install ably @ably/spaces
```

To instantiate the Spaces SDK, create an [Ably client](https://ably.com/docs/getting-started/setup) and pass it into the Spaces constructor:

```ts
import Spaces from '@ably-labs/spaces';
import Spaces from '@ably/spaces';
import { Realtime } from 'ably';

const client = new Realtime.Promise({ key: "<API-key>", clientId: "<client-ID>" });
Expand Down
2 changes: 1 addition & 1 deletion demo/src/utils/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type SpaceMember } from '@ably-labs/spaces';
import { type SpaceMember } from '@ably/spaces';

interface ProfileData {
name: string;
Expand Down
2 changes: 1 addition & 1 deletion docs/class-definitions.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Create a new instance of the Space SDK by passing an instance of the realtime, p

```ts
import { Realtime } from 'ably/promise';
import Spaces from '@ably-labs/spaces';
import Spaces from '@ably/spaces';

const client = new Realtime.Promise({ key: "<API-key>", clientId: "<client-ID>" });
const spaces = new Spaces(client);
Expand Down
6 changes: 3 additions & 3 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Spaces is built on top of the [Ably JavaScript SDK](https://github.com/ably/ably
You'll need to install both the ably client and the spaces client:

```sh
npm install ably @ably-labs/spaces
npm install ably @ably/spaces
```

### CDN
Expand All @@ -34,7 +34,7 @@ You can also use Spaces with a CDN like [unpkg](https://www.unpkg.com/):

```html
<script src="https://cdn.ably.com/lib/ably.min-1.js"></script>
<script src="https://unpkg.com/@ably-labs/spaces@0.0.10/dist/iife/index.bundle.js"></script>
<script src="https://unpkg.com/@ably/spaces@0.0.10/dist/iife/index.bundle.js"></script>
```

## Authentication and instantiation
Expand All @@ -45,7 +45,7 @@ The Ably client instantiation accepts client options. You will need at minimum a

```ts
import { Realtime } from 'ably/promise';
import Spaces from '@ably-labs/spaces';
import Spaces from '@ably/spaces';

const client = new Realtime.Promise({ key: "<API-key>", clientId: "<client-ID>" });
const spaces = new Spaces(client);
Expand Down
2 changes: 1 addition & 1 deletion examples/avatar-stack.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Spaces from '@ably-labs/spaces';
import Spaces from '@ably/spaces';
import { Realtime } from 'ably';

import { renderAvatars, renderNotification } from './my-application';
Expand Down
2 changes: 1 addition & 1 deletion examples/live-cursors.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Spaces from '@ably-labs/spaces';
import Spaces from '@ably/spaces';
import { Realtime } from 'ably';

import renderCursor from './my-application';
Expand Down
2 changes: 1 addition & 1 deletion examples/locking.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Spaces, { LockStatus } from '@ably-labs/spaces';
import Spaces, { LockStatus } from '@ably/spaces';
import { Realtime } from 'ably';

import { enableLocationEditing, lockId } from './my-application';
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@ably-labs/spaces",
"name": "@ably/spaces",
"version": "0.0.13",
"description": "",
"main": "dist/cjs/index.js",
Expand Down Expand Up @@ -27,14 +27,14 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/ably-labs/spaces.git"
"url": "git+https://github.com/ably/spaces.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": ""
},
"homepage": "https://github.com/ably-labs/spaces",
"homepage": "https://github.com/ably/spaces",
"publishConfig": {
"access": "public"
},
Expand Down

0 comments on commit afe7a08

Please sign in to comment.