@engage_so/core 2.0.7 → 2.0.8
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/dist/index.js +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -1
package/dist/index.js
CHANGED
@@ -29,7 +29,7 @@ if (typeof btoa === 'undefined') {
|
|
29
29
|
// const rootURL = 'https://api.engage.so/v1'
|
30
30
|
let auth = '';
|
31
31
|
const notMeta = ['created_at', 'is_account', 'number', 'device_token', 'device_platform', 'email', 'first_name', 'last_name', 'tz', 'app_version', 'app_build', 'app_last_active'];
|
32
|
-
const apiRoot = 'https://api.engage.so/v1';
|
32
|
+
const apiRoot = 'https://api.engage.so/v1/';
|
33
33
|
function _request(url, params, method) {
|
34
34
|
return __awaiter(this, void 0, void 0, function* () {
|
35
35
|
try {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@engage_so/core",
|
3
|
-
"version": "2.0.
|
3
|
+
"version": "2.0.8",
|
4
4
|
"description": "Engage JS core.",
|
5
5
|
"main": "./dist/index.js",
|
6
6
|
"types": "./dist/index.d.ts",
|
@@ -26,5 +26,5 @@
|
|
26
26
|
"buffer": "^6.0.3",
|
27
27
|
"cross-fetch": "^4.0.0"
|
28
28
|
},
|
29
|
-
"gitHead": "
|
29
|
+
"gitHead": "f8a2fd94418dc873d1894994b0ebb3bb4bc1fd51"
|
30
30
|
}
|
package/src/index.ts
CHANGED
@@ -41,7 +41,7 @@ type Methods = 'POST' | 'PUT' | 'DELETE'
|
|
41
41
|
// const rootURL = 'https://api.engage.so/v1'
|
42
42
|
let auth: string = ''
|
43
43
|
const notMeta = ['created_at', 'is_account', 'number', 'device_token', 'device_platform', 'email', 'first_name', 'last_name', 'tz', 'app_version', 'app_build', 'app_last_active']
|
44
|
-
const apiRoot = 'https://api.engage.so/v1'
|
44
|
+
const apiRoot = 'https://api.engage.so/v1/'
|
45
45
|
|
46
46
|
async function _request (url: string, params: Record<string, any> | null, method: Methods) {
|
47
47
|
try {
|