@livechat/accounts-sdk 2.0.5 → 2.0.6-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,46 +1,46 @@
1
1
  {
2
- "name": "@livechat/accounts-sdk",
3
- "version": "2.0.5",
4
- "description": "SDK for 'Sign in with LiveChat'.",
5
- "author": "LiveChat",
6
- "license": "MIT",
7
- "main": "./dist/index.cjs.js",
8
- "module": "./dist/index.esm.js",
9
- "unpkg": "./dist/accounts-sdk.min.js",
10
- "files": [
11
- "dist"
12
- ],
13
- "scripts": {
14
- "clean": "rm -rf dist && rm -rf build",
15
- "start": "npm run clean && rollup -c --watch",
16
- "prepare": "npm run build",
17
- "build": "npm run clean && rollup -c",
18
- "lint": "eslint ./src",
19
- "lint:fix": "eslint --fix ./src rollup.config.js .eslintrc.js",
20
- "test": "mocha --require @babel/register --require jsdom-global/register test/**/*.test.js --exit",
21
- "test:dev": "mocha --require @babel/register --require jsdom-global/register test/**/*.test.js --watch"
22
- },
23
- "devDependencies": {
24
- "@babel/core": "^7.11.6",
25
- "@babel/preset-env": "^7.11.5",
26
- "@babel/register": "^7.11.5",
27
- "@rollup/plugin-babel": "^5.2.1",
28
- "@rollup/plugin-commonjs": "^15.0.0",
29
- "@rollup/plugin-node-resolve": "^9.0.0",
30
- "browserslist": "^4.14.2",
31
- "eslint": "^7.9.0",
32
- "eslint-config-google": "^0.14.0",
33
- "expect.js": "^0.3.1",
34
- "jsdom": "^16.4.0",
35
- "jsdom-global": "^3.0.2",
36
- "mocha": "^8.1.3",
37
- "rollup": "^2.27.0",
38
- "rollup-plugin-serve": "^1.0.4",
39
- "rollup-plugin-terser": "^7.0.2"
40
- },
41
- "browserslist": "> 0.1%, not dead, not IE 11",
42
- "dependencies": {
43
- "js-cookie": "^2.2.1",
44
- "qs": "^6.9.4"
45
- }
2
+ "name": "@livechat/accounts-sdk",
3
+ "version": "2.0.6-beta.2",
4
+ "description": "SDK for 'Sign in with LiveChat'.",
5
+ "author": "LiveChat",
6
+ "license": "MIT",
7
+ "main": "./dist/index.cjs.js",
8
+ "module": "./dist/index.esm.js",
9
+ "unpkg": "./dist/accounts-sdk.min.js",
10
+ "files": [
11
+ "dist"
12
+ ],
13
+ "scripts": {
14
+ "clean": "rm -rf dist && rm -rf build",
15
+ "start": "npm run clean && rollup -c --watch",
16
+ "prepare": "npm run build",
17
+ "build": "npm run clean && rollup -c",
18
+ "lint": "eslint ./src",
19
+ "lint:fix": "eslint --fix ./src rollup.config.js .eslintrc.js",
20
+ "test": "mocha --require @babel/register --require jsdom-global/register test/**/*.test.js --exit",
21
+ "test:dev": "mocha --require @babel/register --require jsdom-global/register test/**/*.test.js --watch"
22
+ },
23
+ "devDependencies": {
24
+ "@babel/core": "^7.11.6",
25
+ "@babel/preset-env": "^7.11.5",
26
+ "@babel/register": "^7.11.5",
27
+ "@rollup/plugin-babel": "^5.2.1",
28
+ "@rollup/plugin-commonjs": "^15.0.0",
29
+ "@rollup/plugin-node-resolve": "^9.0.0",
30
+ "browserslist": "^4.14.2",
31
+ "eslint": "^7.9.0",
32
+ "eslint-config-google": "^0.14.0",
33
+ "expect.js": "^0.3.1",
34
+ "jsdom": "^16.4.0",
35
+ "jsdom-global": "^3.0.2",
36
+ "mocha": "^8.1.3",
37
+ "rollup": "^2.27.0",
38
+ "rollup-plugin-serve": "^1.0.4",
39
+ "rollup-plugin-terser": "^7.0.2"
40
+ },
41
+ "browserslist": "> 0.1%, not dead, not IE 11",
42
+ "dependencies": {
43
+ "js-cookie": "^2.2.1",
44
+ "qs": "^6.9.4"
45
+ }
46
46
  }
package/readme.md CHANGED
@@ -18,7 +18,7 @@ Example sign in with LiveChat button designs. Assets are available [here](https:
18
18
  ## Example popup
19
19
 
20
20
  ```
21
- import { AccountsSDK } from '@livechat/accounts-sdk';
21
+ import AccountsSDK from '@livechat/accounts-sdk';
22
22
 
23
23
  // create new SDK instance with it's options
24
24
  const sdk = new AccountsSDK({
@@ -64,7 +64,6 @@ Authorize using a full redirect. Authorize function performs full browser redire
64
64
  ```
65
65
  const sdk = new AccountsSDK(options)
66
66
 
67
- sdk.redirect().authorizeData().then((authorizeData)=>{
68
67
  sdk.redirect().authorizeData().then((authorizeData)=>{
69
68
  // authorize data found in URL
70
69
  const transaction = sdk.verify(authorizeData);