Skip to content

Commit

Permalink
Prepare version
Browse files Browse the repository at this point in the history
  • Loading branch information
oanguenot committed Jul 7, 2021
1 parent 059e448 commit 830fae6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,12 @@ import JSONGle from "jsongle";

const jsongle = new JSONGle({
transport: transportCfg,
logLevel: 'debug'
});
```

Property `logLevel` allows to set the log level. Possible values are: `none`, `debug`, `info`, `warning`, `error`.

If you are using **Vanilla** JavaScript without bundling your application (This is the case for example if you are not using a transpiler such as using React/Babel or Angular/TypeScript), you have to load the library differently:

- Copy **JSONgle.js** from **node_modules/jsongle/dist/** to your **public** directory or a directory served.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jsongle",
"version": "2.5.1",
"version": "2.6.0",
"description": "JavaScript library for handling WebRTC signaling protocol based on JSON and Jingle",
"main": "dist/JSONgle.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { v4 as uuidv4 } from "uuid";

export const getLibName = () => "JSONgle";

export const getVersion = () => "2.5.1";
export const getVersion = () => "2.6.0";

export const generateNewId = () => uuidv4();

0 comments on commit 830fae6

Please sign in to comment.