@saasquatch/squatch-js 2.4.1 → 2.4.2-1
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/CHANGELOG.md +285 -267
- package/README.md +1 -0
- package/dist/api/WidgetApi.d.ts +4 -2
- package/dist/squatch.esm.js +7 -2
- package/dist/squatch.esm.js.map +1 -1
- package/dist/squatch.js +7 -2
- package/dist/squatch.js.map +1 -1
- package/dist/squatch.min.js +3 -3
- package/dist/stats.html +1 -1
- package/dist/types.d.ts +9 -0
- package/dist/utils/io.d.ts +1 -1
- package/package.json +104 -104
package/dist/types.d.ts
CHANGED
|
@@ -94,3 +94,12 @@ export declare type WidgetType =
|
|
|
94
94
|
| "CONVERSION_WIDGET" | string;
|
|
95
95
|
export declare type ShareMedium = string;
|
|
96
96
|
export declare type JWT = string;
|
|
97
|
+
/**
|
|
98
|
+
* Looks up the referral code of the current user, if there is any.
|
|
99
|
+
*
|
|
100
|
+
* @param {Object} options Parameters for request
|
|
101
|
+
* @param {boolean} options.returnEncodedCookie Return the encoded cookie as a string
|
|
102
|
+
**/
|
|
103
|
+
export declare type ReferralCookieOptions = {
|
|
104
|
+
returnEncodedCookie: boolean;
|
|
105
|
+
};
|
package/dist/utils/io.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,104 +1,104 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@saasquatch/squatch-js",
|
|
3
|
-
"version": "2.4.1",
|
|
4
|
-
"description": "The official Referral SaaSquatch Javascript Web/Browser SDK https://docs.referralsaasquatch.com/developer/squatchjs/",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"types": "dist/squatch.d.ts",
|
|
7
|
-
"source": "src/squatch.ts",
|
|
8
|
-
"main": "dist/squatch.js",
|
|
9
|
-
"module": "dist/squatch.esm.js",
|
|
10
|
-
"umd:main": "dist/squatch.min.js",
|
|
11
|
-
"browser": "dist/squatch.min.js",
|
|
12
|
-
"bugs": {
|
|
13
|
-
"url": "https://github.com/saasquatch/squatch-js/issues",
|
|
14
|
-
"email": "support@referralsaasquatch.com"
|
|
15
|
-
},
|
|
16
|
-
"engines": {
|
|
17
|
-
"node": ">=12.16.0"
|
|
18
|
-
},
|
|
19
|
-
"repository": {
|
|
20
|
-
"type": "git",
|
|
21
|
-
"url": "https://github.com/saasquatch/squatch-js.git"
|
|
22
|
-
},
|
|
23
|
-
"tsd": {
|
|
24
|
-
"directory": "test/tsd"
|
|
25
|
-
},
|
|
26
|
-
"sideEffects": false,
|
|
27
|
-
"scripts": {
|
|
28
|
-
"build:es": "microbundle --target node --format cjs,es",
|
|
29
|
-
"build:umd": "webpack",
|
|
30
|
-
"build": "run-s build:es build:umd",
|
|
31
|
-
"watch": "microbundle watch",
|
|
32
|
-
"declaration": "tsc --emitDeclarationOnly",
|
|
33
|
-
"test:browser": "cucumber-js",
|
|
34
|
-
"test:webkit": "cross-env BROWSER=webkit cucumber-js",
|
|
35
|
-
"test:firefox": "cross-env BROWSER=firefox cucumber-js",
|
|
36
|
-
"test:types": "tsd",
|
|
37
|
-
"test": "run-s test:types test:browser",
|
|
38
|
-
"build:docs": "typedoc --out docs/ src/ ",
|
|
39
|
-
"deploy": "np --no-cleanup",
|
|
40
|
-
"deploy:docs": "surge ./ -d squathjsv2.surge.sh",
|
|
41
|
-
"preversion": "run-s build",
|
|
42
|
-
"demo": "msw init demo/dist/ --save && run-p static parcel",
|
|
43
|
-
"demo:deploy": "run-s parcel:build parcel:deploy",
|
|
44
|
-
"static": "serve dist",
|
|
45
|
-
"parcel": "cd demo && parcel index.html",
|
|
46
|
-
"parcel:build": "cd demo && parcel build index.html",
|
|
47
|
-
"parcel:deploy": "surge demo/dist -d squathjs-demo.surge.sh"
|
|
48
|
-
},
|
|
49
|
-
"devDependencies": {
|
|
50
|
-
"@babel/core": "^7.14.3",
|
|
51
|
-
"@babel/plugin-proposal-class-properties": "^7.13.0",
|
|
52
|
-
"@babel/plugin-transform-runtime": "^7.14.3",
|
|
53
|
-
"@babel/preset-env": "^7.14.2",
|
|
54
|
-
"@babel/preset-typescript": "^7.13.0",
|
|
55
|
-
"@babel/register": "^7.13.16",
|
|
56
|
-
"@babel/runtime-corejs2": "^7.14.0",
|
|
57
|
-
"@types/chai": "^4.2.11",
|
|
58
|
-
"@types/cucumber": "^6.0.1",
|
|
59
|
-
"@types/debug": "4.1.5",
|
|
60
|
-
"@types/express": "^4.17.6",
|
|
61
|
-
"@types/js-cookie": "^2.2.6",
|
|
62
|
-
"@types/jsdom-global": "^3.0.2",
|
|
63
|
-
"@types/react": "^16.9.35",
|
|
64
|
-
"@types/superagent": "^4.1.7",
|
|
65
|
-
"@ungap/url-search-params": "^0.2.0",
|
|
66
|
-
"babel-loader": "^8.2.2",
|
|
67
|
-
"base64-url": "^2.3.3",
|
|
68
|
-
"chai": "^4.2.0",
|
|
69
|
-
"cross-env": "^7.0.2",
|
|
70
|
-
"cucumber": "^6.0.5",
|
|
71
|
-
"express": "^4.17.1",
|
|
72
|
-
"microbundle": "^0.13.0",
|
|
73
|
-
"msw": "^0.36.0",
|
|
74
|
-
"np": "^6.2.3",
|
|
75
|
-
"npm-run-all": "^4.1.5",
|
|
76
|
-
"parcel": "^1.12.3",
|
|
77
|
-
"parcel-bundler": "^1.12.4",
|
|
78
|
-
"playwright": "^1.0.2",
|
|
79
|
-
"react": "^16.13.1",
|
|
80
|
-
"react-bootstrap": "^1.0.1",
|
|
81
|
-
"react-dom": "^16.13.1",
|
|
82
|
-
"react-url-query": "^1.5.0",
|
|
83
|
-
"serve": "^11.3.0",
|
|
84
|
-
"ts-loader": "^7.0.4",
|
|
85
|
-
"ts-node": "^8.10.2",
|
|
86
|
-
"tsd": "^0.13.1",
|
|
87
|
-
"typedoc": "^0.17.7",
|
|
88
|
-
"typescript": "^3.9.3",
|
|
89
|
-
"webpack": "^4.46.0",
|
|
90
|
-
"webpack-cli": "^3.3.12",
|
|
91
|
-
"webpack-visualizer-plugin": "^0.1.11"
|
|
92
|
-
},
|
|
93
|
-
"prettier": {},
|
|
94
|
-
"dependencies": {
|
|
95
|
-
"debug": "^3.2.6",
|
|
96
|
-
"eventbusjs": "^0.2.0",
|
|
97
|
-
"js-cookie": "^2.2.1",
|
|
98
|
-
"superagent": "^5.2.2"
|
|
99
|
-
},
|
|
100
|
-
"browserslist": "> 0.25%, not dead",
|
|
101
|
-
"msw": {
|
|
102
|
-
"workerDirectory": "demo\\dist"
|
|
103
|
-
}
|
|
104
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@saasquatch/squatch-js",
|
|
3
|
+
"version": "2.4.2-1",
|
|
4
|
+
"description": "The official Referral SaaSquatch Javascript Web/Browser SDK https://docs.referralsaasquatch.com/developer/squatchjs/",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"types": "dist/squatch.d.ts",
|
|
7
|
+
"source": "src/squatch.ts",
|
|
8
|
+
"main": "dist/squatch.js",
|
|
9
|
+
"module": "dist/squatch.esm.js",
|
|
10
|
+
"umd:main": "dist/squatch.min.js",
|
|
11
|
+
"browser": "dist/squatch.min.js",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/saasquatch/squatch-js/issues",
|
|
14
|
+
"email": "support@referralsaasquatch.com"
|
|
15
|
+
},
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": ">=12.16.0"
|
|
18
|
+
},
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "https://github.com/saasquatch/squatch-js.git"
|
|
22
|
+
},
|
|
23
|
+
"tsd": {
|
|
24
|
+
"directory": "test/tsd"
|
|
25
|
+
},
|
|
26
|
+
"sideEffects": false,
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build:es": "microbundle --target node --format cjs,es",
|
|
29
|
+
"build:umd": "webpack",
|
|
30
|
+
"build": "run-s build:es build:umd",
|
|
31
|
+
"watch": "microbundle watch",
|
|
32
|
+
"declaration": "tsc --emitDeclarationOnly",
|
|
33
|
+
"test:browser": "cucumber-js",
|
|
34
|
+
"test:webkit": "cross-env BROWSER=webkit cucumber-js",
|
|
35
|
+
"test:firefox": "cross-env BROWSER=firefox cucumber-js",
|
|
36
|
+
"test:types": "tsd",
|
|
37
|
+
"test": "run-s test:types test:browser",
|
|
38
|
+
"build:docs": "typedoc --out docs/ src/ ",
|
|
39
|
+
"deploy": "np --no-cleanup",
|
|
40
|
+
"deploy:docs": "surge ./ -d squathjsv2.surge.sh",
|
|
41
|
+
"preversion": "run-s build",
|
|
42
|
+
"demo": "msw init demo/dist/ --save && run-p static parcel",
|
|
43
|
+
"demo:deploy": "run-s parcel:build parcel:deploy",
|
|
44
|
+
"static": "serve dist",
|
|
45
|
+
"parcel": "cd demo && parcel index.html",
|
|
46
|
+
"parcel:build": "cd demo && parcel build index.html",
|
|
47
|
+
"parcel:deploy": "surge demo/dist -d squathjs-demo.surge.sh"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@babel/core": "^7.14.3",
|
|
51
|
+
"@babel/plugin-proposal-class-properties": "^7.13.0",
|
|
52
|
+
"@babel/plugin-transform-runtime": "^7.14.3",
|
|
53
|
+
"@babel/preset-env": "^7.14.2",
|
|
54
|
+
"@babel/preset-typescript": "^7.13.0",
|
|
55
|
+
"@babel/register": "^7.13.16",
|
|
56
|
+
"@babel/runtime-corejs2": "^7.14.0",
|
|
57
|
+
"@types/chai": "^4.2.11",
|
|
58
|
+
"@types/cucumber": "^6.0.1",
|
|
59
|
+
"@types/debug": "4.1.5",
|
|
60
|
+
"@types/express": "^4.17.6",
|
|
61
|
+
"@types/js-cookie": "^2.2.6",
|
|
62
|
+
"@types/jsdom-global": "^3.0.2",
|
|
63
|
+
"@types/react": "^16.9.35",
|
|
64
|
+
"@types/superagent": "^4.1.7",
|
|
65
|
+
"@ungap/url-search-params": "^0.2.0",
|
|
66
|
+
"babel-loader": "^8.2.2",
|
|
67
|
+
"base64-url": "^2.3.3",
|
|
68
|
+
"chai": "^4.2.0",
|
|
69
|
+
"cross-env": "^7.0.2",
|
|
70
|
+
"cucumber": "^6.0.5",
|
|
71
|
+
"express": "^4.17.1",
|
|
72
|
+
"microbundle": "^0.13.0",
|
|
73
|
+
"msw": "^0.36.0",
|
|
74
|
+
"np": "^6.2.3",
|
|
75
|
+
"npm-run-all": "^4.1.5",
|
|
76
|
+
"parcel": "^1.12.3",
|
|
77
|
+
"parcel-bundler": "^1.12.4",
|
|
78
|
+
"playwright": "^1.0.2",
|
|
79
|
+
"react": "^16.13.1",
|
|
80
|
+
"react-bootstrap": "^1.0.1",
|
|
81
|
+
"react-dom": "^16.13.1",
|
|
82
|
+
"react-url-query": "^1.5.0",
|
|
83
|
+
"serve": "^11.3.0",
|
|
84
|
+
"ts-loader": "^7.0.4",
|
|
85
|
+
"ts-node": "^8.10.2",
|
|
86
|
+
"tsd": "^0.13.1",
|
|
87
|
+
"typedoc": "^0.17.7",
|
|
88
|
+
"typescript": "^3.9.3",
|
|
89
|
+
"webpack": "^4.46.0",
|
|
90
|
+
"webpack-cli": "^3.3.12",
|
|
91
|
+
"webpack-visualizer-plugin": "^0.1.11"
|
|
92
|
+
},
|
|
93
|
+
"prettier": {},
|
|
94
|
+
"dependencies": {
|
|
95
|
+
"debug": "^3.2.6",
|
|
96
|
+
"eventbusjs": "^0.2.0",
|
|
97
|
+
"js-cookie": "^2.2.1",
|
|
98
|
+
"superagent": "^5.2.2"
|
|
99
|
+
},
|
|
100
|
+
"browserslist": "> 0.25%, not dead",
|
|
101
|
+
"msw": {
|
|
102
|
+
"workerDirectory": "demo\\dist"
|
|
103
|
+
}
|
|
104
|
+
}
|