-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3cffc8a
commit a00b0f2
Showing
9 changed files
with
558 additions
and
512 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
npm/package-lock.json | ||
npm/*.d.ts | ||
npm/snikket.js | ||
npm/snikket-enums.ts | ||
npm/snikket-enums.js | ||
npm/index.js | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ snikket.Push | |
-D js-es=6 | ||
-D hxtsdgen_enums_ts | ||
-D hxtsdgen_namespaced | ||
--js browser.haxe.js | ||
--js npm/snikket.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import browserp from "./browser"; | ||
import { snikket as enums } from "./snikket-enums"; | ||
import { snikket } from "./snikket"; | ||
|
||
// TODO: should we autogenerate this? | ||
export import AvailableChat = snikket.AvailableChat; | ||
export import Caps = snikket.Caps; | ||
export import Channel = snikket.Channel; | ||
export import Chat = snikket.Chat; | ||
export import ChatAttachment = snikket.ChatAttachment; | ||
export import ChatMessage = snikket.ChatMessage; | ||
export import Client = snikket.Client; | ||
export import DirectChat = snikket.DirectChat; | ||
export import Identicon = snikket.Identicon; | ||
export import Identity = snikket.Identity; | ||
export import Notification = snikket.Notification; | ||
export import SerializedChat = snikket.SerializedChat; | ||
export import jingle = snikket.jingle; | ||
|
||
export import UiState = enums.UiState; | ||
export import MessageStatus = enums.MessageStatus; | ||
export import MessageDirection = enums.MessageDirection; | ||
|
||
export namespace persistence { | ||
export import browser = browserp; | ||
export import Dummy = snikket.persistence.Dummy; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "snikket-sdk", | ||
"version": "0.0.0", | ||
"description": "Chat SDK", | ||
"main": "index.js", | ||
"files": [ | ||
"*.js", | ||
"*.ts" | ||
], | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "", | ||
"license": "Apache-2.0", | ||
"dependencies": { | ||
"sasl-scram-sha-1": "github:singpolyma/js-sasl-scram-sha-1" | ||
}, | ||
"devDependencies": { | ||
"typescript": "^5.4.5" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.