@twilio/mcs-client 0.5.3 → 0.6.0-canary.102
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/builds/browser.js +449 -484
- package/builds/browser.js.map +1 -1
- package/builds/lib.d.ts +16 -25
- package/builds/lib.js +449 -484
- package/builds/lib.js.map +1 -1
- package/builds/twilio-mcs-client.js +11240 -9472
- package/builds/twilio-mcs-client.min.js +37 -38
- package/dist/_virtual/rng-browser.js +34 -0
- package/dist/_virtual/rng-browser.js.map +1 -0
- package/dist/cancellable-promise.js +98 -0
- package/dist/cancellable-promise.js.map +1 -0
- package/dist/client.js +88 -23
- package/dist/client.js.map +1 -1
- package/dist/configuration.js.map +1 -1
- package/dist/index.js +8 -9
- package/dist/index.js.map +1 -1
- package/dist/logger.js +2 -4
- package/dist/logger.js.map +1 -1
- package/dist/media.js +15 -22
- package/dist/media.js.map +1 -1
- package/dist/node_modules/tslib/tslib.es6.js +1 -1
- package/dist/node_modules/tslib/tslib.es6.js.map +1 -1
- package/dist/node_modules/uuid/index.js +44 -0
- package/dist/node_modules/uuid/index.js.map +1 -0
- package/dist/node_modules/uuid/lib/bytesToUuid.js +60 -0
- package/dist/node_modules/uuid/lib/bytesToUuid.js.map +1 -0
- package/dist/node_modules/uuid/lib/rng-browser.js +65 -0
- package/dist/node_modules/uuid/lib/rng-browser.js.map +1 -0
- package/dist/node_modules/uuid/v1.js +146 -0
- package/dist/node_modules/uuid/v1.js.map +1 -0
- package/dist/node_modules/uuid/v4.js +66 -0
- package/dist/node_modules/uuid/v4.js.map +1 -0
- package/dist/packages/mcs-client/package.json.js +1 -1
- package/dist/services/network.js +54 -32
- package/dist/services/network.js.map +1 -1
- package/dist/services/transport.js +26 -11
- package/dist/services/transport.js.map +1 -1
- package/dist/services/transporterror.js.map +1 -1
- package/package.json +21 -16
- package/CHANGELOG.md +0 -210
|
@@ -29,6 +29,7 @@ var global =
|
|
|
29
29
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
30
30
|
|
|
31
31
|
var transporterror = require('./transporterror.js');
|
|
32
|
+
var shared = require('@twilio/shared');
|
|
32
33
|
|
|
33
34
|
// eslint-disable-next-line
|
|
34
35
|
const XHR = global["XMLHttpRequest"] || {};
|
|
@@ -63,32 +64,46 @@ function extractBody(xhr) {
|
|
|
63
64
|
* Provides generic network interface
|
|
64
65
|
*/
|
|
65
66
|
class Transport {
|
|
66
|
-
static
|
|
67
|
-
return new
|
|
67
|
+
static request(method, url, headers, body) {
|
|
68
|
+
return new shared.CancellablePromise((resolve, reject, onCancel) => {
|
|
68
69
|
const xhr = new XHR();
|
|
70
|
+
let isCancelled = false;
|
|
71
|
+
onCancel(() => {
|
|
72
|
+
xhr.abort();
|
|
73
|
+
isCancelled = true;
|
|
74
|
+
});
|
|
69
75
|
xhr.open(method, url, true);
|
|
70
76
|
xhr.onreadystatechange = function onreadystatechange() {
|
|
71
|
-
var _a;
|
|
72
|
-
if (xhr.readyState !== 4) {
|
|
77
|
+
var _a, _b;
|
|
78
|
+
if (xhr.readyState !== 4 || isCancelled) {
|
|
73
79
|
return;
|
|
74
80
|
}
|
|
75
|
-
const
|
|
81
|
+
const responseHeaders = parseResponseHeaders(xhr.getAllResponseHeaders());
|
|
76
82
|
const body = extractBody(xhr);
|
|
77
83
|
if (200 <= xhr.status && xhr.status < 300) {
|
|
78
|
-
resolve({ status: xhr.status, headers, body });
|
|
84
|
+
resolve({ status: xhr.status, headers: responseHeaders, body });
|
|
79
85
|
}
|
|
80
86
|
else {
|
|
81
87
|
const status = (_a = xhr.statusText) !== null && _a !== void 0 ? _a : "NONE";
|
|
82
88
|
let bodyRepresentation;
|
|
83
89
|
if (typeof body === "string") {
|
|
84
|
-
|
|
85
|
-
|
|
90
|
+
if (body && body.split("\n", 2).length === 1)
|
|
91
|
+
bodyRepresentation = body;
|
|
92
|
+
else {
|
|
93
|
+
// TODO: RTDSDK-3716: investigate why body is HTML string
|
|
94
|
+
const errorInfo = (_b = body
|
|
95
|
+
.replace(/<.*?>/g, "")
|
|
96
|
+
.split(/\r\n/g)
|
|
97
|
+
.filter((str) => str.length)[0]) === null || _b === void 0 ? void 0 : _b.split(" ");
|
|
98
|
+
bodyRepresentation =
|
|
99
|
+
(errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.length) > 2 ? errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.slice(1).join(" ") : "";
|
|
100
|
+
}
|
|
86
101
|
}
|
|
87
102
|
else {
|
|
88
103
|
bodyRepresentation = JSON.stringify(body);
|
|
89
104
|
}
|
|
90
105
|
const message = `${xhr.status}: [${status}] ${bodyRepresentation}`;
|
|
91
|
-
reject(new transporterror.TransportError(message, xhr.status, body, status,
|
|
106
|
+
reject(new transporterror.TransportError(message, xhr.status, body, status, responseHeaders));
|
|
92
107
|
}
|
|
93
108
|
};
|
|
94
109
|
for (const headerName in headers) {
|
|
@@ -104,13 +119,13 @@ class Transport {
|
|
|
104
119
|
/**
|
|
105
120
|
* Make a GET request by given URL
|
|
106
121
|
*/
|
|
107
|
-
|
|
122
|
+
get(url, headers) {
|
|
108
123
|
return Transport.request("GET", url, headers);
|
|
109
124
|
}
|
|
110
125
|
/**
|
|
111
126
|
* Make a POST request by given URL
|
|
112
127
|
*/
|
|
113
|
-
|
|
128
|
+
post(url, headers, body) {
|
|
114
129
|
return Transport.request("POST", url, headers, body);
|
|
115
130
|
}
|
|
116
131
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.js","sources":["../../src/services/transport.ts"],"sourcesContent":["import { TransportError } from \"./transporterror\";\n\n// eslint-disable-next-line\nconst XHR
|
|
1
|
+
{"version":3,"file":"transport.js","sources":["../../src/services/transport.ts"],"sourcesContent":["import { TransportError } from \"./transporterror\";\nimport { CancellablePromise } from \"@twilio/shared\";\n\n// eslint-disable-next-line\nconst XHR =\n global[\"XMLHttpRequest\"] || require(\"xmlhttprequest\").XMLHttpRequest;\n\ntype Headers = { [id: string]: string };\n\nfunction parseResponseHeaders(headerString: string): Headers {\n if (!headerString) {\n return {};\n }\n\n return headerString\n .split(\"\\u000d\\u000a\")\n .map((el) => el.split(\"\\u003a\\u0020\"))\n .filter((el) => el.length === 2 && el[1].length > 0)\n .reduce((prev, curr) => {\n prev[curr[0]] = curr[1];\n return prev;\n }, {});\n}\n\nfunction extractBody(xhr) {\n const contentType = xhr.getResponseHeader(\"Content-Type\");\n if (\n !contentType ||\n contentType.indexOf(\"application/json\") !== 0 ||\n xhr.responseText.length === 0\n ) {\n return xhr.responseText;\n }\n\n try {\n return JSON.parse(xhr.responseText);\n } catch (e) {\n return xhr.responseText;\n }\n}\n\nfunction adaptHttpResponse(response: Response) {\n try {\n response.body = JSON.parse(response.body);\n } catch (e) {} // eslint-disable-line no-empty\n return response;\n}\n\ninterface Response {\n status: any;\n headers: Headers;\n body: any;\n}\n\n/**\n * Provides generic network interface\n */\nclass Transport {\n private static request(\n method: string,\n url: string,\n headers: Headers,\n body?\n ): CancellablePromise<Response> {\n return new CancellablePromise<Response>((resolve, reject, onCancel) => {\n const xhr = new XHR();\n let isCancelled = false;\n\n onCancel(() => {\n xhr.abort();\n isCancelled = true;\n });\n\n xhr.open(method, url, true);\n\n xhr.onreadystatechange = function onreadystatechange() {\n if (xhr.readyState !== 4 || isCancelled) {\n return;\n }\n\n const responseHeaders = parseResponseHeaders(\n xhr.getAllResponseHeaders()\n );\n const body = extractBody(xhr);\n\n if (200 <= xhr.status && xhr.status < 300) {\n resolve({ status: xhr.status, headers: responseHeaders, body });\n } else {\n const status = xhr.statusText ?? \"NONE\";\n let bodyRepresentation;\n if (typeof body === \"string\") {\n if (body && body.split(\"\\n\", 2).length === 1)\n bodyRepresentation = body;\n else {\n // TODO: RTDSDK-3716: investigate why body is HTML string\n const errorInfo = body\n .replace(/<.*?>/g, \"\")\n .split(/\\r\\n/g)\n .filter((str) => str.length)[0]\n ?.split(\" \");\n bodyRepresentation =\n errorInfo?.length > 2 ? errorInfo?.slice(1).join(\" \") : \"\";\n }\n } else {\n bodyRepresentation = JSON.stringify(body);\n }\n const message = `${xhr.status}: [${status}] ${bodyRepresentation}`;\n reject(\n new TransportError(\n message,\n xhr.status,\n body,\n status,\n responseHeaders\n )\n );\n }\n };\n\n for (const headerName in headers) {\n xhr.setRequestHeader(headerName, headers[headerName]);\n if (\n headerName === \"Content-Type\" &&\n headers[headerName] === \"application/json\"\n ) {\n body = JSON.stringify(body);\n }\n }\n\n xhr.send(body);\n });\n }\n\n /**\n * Make a GET request by given URL\n */\n public get(url: string, headers: Headers): CancellablePromise<Response> {\n return Transport.request(\"GET\", url, headers);\n }\n\n /**\n * Make a POST request by given URL\n */\n public post(\n url: string,\n headers: Headers,\n body?\n ): CancellablePromise<Response> {\n return Transport.request(\"POST\", url, headers, body);\n }\n}\n\nexport { Headers, Response, Transport };\n"],"names":["CancellablePromise","TransportError"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA;AACA,MAAM,GAAG,GACP,MAAM,CAAC,gBAAgB,CAAC,IAAI,EAAwC,CAAC;AAIvE,SAAS,oBAAoB,CAAC,YAAoB,EAAA;IAChD,IAAI,CAAC,YAAY,EAAE;AACjB,QAAA,OAAO,EAAE,CAAC;AACX,KAAA;AAED,IAAA,OAAO,YAAY;SAChB,KAAK,CAAC,cAAc,CAAC;AACrB,SAAA,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;SACrC,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;AACnD,SAAA,MAAM,CAAC,CAAC,IAAI,EAAE,IAAI,KAAI;QACrB,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;AACxB,QAAA,OAAO,IAAI,CAAC;KACb,EAAE,EAAE,CAAC,CA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AAE,CAAC;AAC9D,yBAAA;AACF,qBAAA;AAAM,yBAAA;AACL,wBAAA,kBAAkB,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;AAC3C,qBAAA;oBACD,MAAM,OAAO,GAAG,CAAA,EAAG,GAAG,CAAC,MAAM,CAAA,GAAA,EAAM,MAAM,CAAA,EAAA,EAAK,kBAAkB,CAAA,CAAE,CAAC;AACnE,oBAAA,MAAM,CACJ,IAAIC,6BAAc,CAChB,OAAO,EACP,GAAG,CAAC,MAAM,EACV,IAAI,EACJ,MAAM,EACN,eAAe,CAChB,CACF,CAAC;AACH,iBAAA;AACH,aAAC,CAAC;AAEF,YAAA,KAAK,MAAM,UAAU,IAAI,OAAO,EAAE;gBAChC,GAAG,CAAC,gBAAgB,CAAC,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;gBACtD,IACE,UAAU,KAAK,cAAc;AAC7B,oBAAA,OAAO,CAAC,UAAU,CAAC,KAAK,kBAAkB,EAC1C;AACA,oBAAA,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;AAC7B,iBAAA;AACF,aAAA;AAED,YAAA,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACjB,SAAC,CAAC,CAAC;KACJ;AAED;;AAEG;IACI,GAAG,CAAC,GAAW,EAAE,OAAgB,EAAA;QACtC,OAAO,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;KAC/C;AAED;;AAEG;AACI,IAAA,IAAI,CACT,GAAW,EACX,OAAgB,EAChB,IAAK,EAAA;AAEL,QAAA,OAAO,SAAS,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;KACtD;AACF;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transporterror.js","sources":["../../src/services/transporterror.ts"],"sourcesContent":["class TransportError extends Error {\n public readonly code: number;\n public readonly body: any;\n public readonly status: string;\n public readonly headers: any;\n\n constructor(\n message: string,\n code: number,\n body: any,\n status: string,\n headers: any\n ) {\n super(message);\n this.code = code;\n this.body = body;\n this.status = status;\n this.headers = headers;\n }\n}\n\nexport { TransportError };\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAM,cAAe,SAAQ,KAAK;IAMhC,
|
|
1
|
+
{"version":3,"file":"transporterror.js","sources":["../../src/services/transporterror.ts"],"sourcesContent":["class TransportError extends Error {\n public readonly code: number;\n public readonly body: any;\n public readonly status: string;\n public readonly headers: any;\n\n constructor(\n message: string,\n code: number,\n body: any,\n status: string,\n headers: any\n ) {\n super(message);\n this.code = code;\n this.body = body;\n this.status = status;\n this.headers = headers;\n }\n}\n\nexport { TransportError };\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAM,cAAe,SAAQ,KAAK,CAAA;IAMhC,WACE,CAAA,OAAe,EACf,IAAY,EACZ,IAAS,EACT,MAAc,EACd,OAAY,EAAA;QAEZ,KAAK,CAAC,OAAO,CAAC,CAAC;AACf,QAAA,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;AACjB,QAAA,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;AACjB,QAAA,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;AACrB,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;KACxB;AACF;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twilio/mcs-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0-canary.102+ad40de7",
|
|
4
4
|
"description": "Twilio Media Content Service client library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Twilio",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"clean": "rm -rf ./coverage ./dist ./builds ./docs",
|
|
22
22
|
"lint": "npx eslint src/**/*.ts test/**/*.ts",
|
|
23
23
|
"lint:fix": "npx eslint src/**/*.ts test/**/*.ts --fix",
|
|
24
|
-
"test:unit": "env FORCE_COLOR=1 NODE_ENV=test npx jest test/unit",
|
|
25
|
-
"test:integration": "env FORCE_COLOR=1 NODE_ENV=test npx jest test/integration",
|
|
24
|
+
"test:unit": "env FORCE_COLOR=1 NODE_ENV=test npx jest test/unit --coverageDirectory='coverage/unit'",
|
|
25
|
+
"test:integration": "env FORCE_COLOR=1 NODE_ENV=test npx jest test/integration --coverageDirectory='coverage/integration'",
|
|
26
26
|
"build": "npx rollup -c",
|
|
27
27
|
"ssri": "yarn ssri:bundle && yarn ssri:min",
|
|
28
28
|
"ssri:bundle": "openssl dgst -sha256 -binary ./builds/twilio-mcs-client.js | openssl base64 -A | (printf \"sha256-\" && cat) | tee ./builds/twilio-mcs-client.sri",
|
|
@@ -33,20 +33,23 @@
|
|
|
33
33
|
"ci": "yarn clean && yarn lint && yarn build && yarn ssri"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@babel/runtime": "^7.
|
|
37
|
-
"@twilio/declarative-type-validator": "
|
|
38
|
-
"@twilio/operation-retrier": "
|
|
36
|
+
"@babel/runtime": "^7.17.0",
|
|
37
|
+
"@twilio/declarative-type-validator": "~0.2.1",
|
|
38
|
+
"@twilio/operation-retrier": "~4.0.9",
|
|
39
|
+
"@twilio/shared": "~0.0.2-canary.733+ad40de7",
|
|
39
40
|
"core-js": "^3.17.3",
|
|
40
|
-
"loglevel": "^1.
|
|
41
|
+
"loglevel": "^1.8.0",
|
|
42
|
+
"nanoid": "^3.3.4",
|
|
41
43
|
"xmlhttprequest": "^1.8.0"
|
|
42
44
|
},
|
|
43
45
|
"devDependencies": {
|
|
44
|
-
"@babel/core": "^7.
|
|
45
|
-
"@babel/
|
|
46
|
-
"@babel/preset-
|
|
46
|
+
"@babel/core": "^7.17.0",
|
|
47
|
+
"@babel/plugin-transform-runtime": "^7.17.0",
|
|
48
|
+
"@babel/preset-env": "^7.16.11",
|
|
49
|
+
"@babel/preset-typescript": "^7.16.7",
|
|
47
50
|
"@rollup/plugin-commonjs": "^19.0.0",
|
|
48
51
|
"@rollup/plugin-json": "^4.1.0",
|
|
49
|
-
"@rollup/plugin-node-resolve": "^13.
|
|
52
|
+
"@rollup/plugin-node-resolve": "^13.2.1",
|
|
50
53
|
"@rollup/plugin-replace": "^3.0.0",
|
|
51
54
|
"@types/express": "^4.17.7",
|
|
52
55
|
"@types/jest": "^26.0.23",
|
|
@@ -69,16 +72,18 @@
|
|
|
69
72
|
"jsdoc-strip-async-await": "^0.1.0",
|
|
70
73
|
"ngrok": "^3.2.5",
|
|
71
74
|
"prettier": "^2.3.0",
|
|
72
|
-
"rollup": "^2.
|
|
73
|
-
"rollup-plugin-polyfill-node": "^0.
|
|
75
|
+
"rollup": "^2.70.2",
|
|
76
|
+
"rollup-plugin-polyfill-node": "^0.9.0",
|
|
74
77
|
"rollup-plugin-terser": "^7.0.2",
|
|
75
|
-
"rollup-plugin-ts": "^
|
|
78
|
+
"rollup-plugin-ts": "^3.0.2",
|
|
76
79
|
"ts-jest": "^27.0.2",
|
|
77
80
|
"ts-node": "^8.3.0",
|
|
81
|
+
"tslib": "^2.4.0",
|
|
78
82
|
"twilio": "^3.55.0",
|
|
79
|
-
"typescript": "^4.
|
|
83
|
+
"typescript": "^4.8.4"
|
|
80
84
|
},
|
|
81
85
|
"engines": {
|
|
82
86
|
"node": ">=14"
|
|
83
|
-
}
|
|
87
|
+
},
|
|
88
|
+
"gitHead": "ad40de75d38e2391e823c9a934250b48ebfc9fc6"
|
|
84
89
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
### [0.5.3](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.3-rc.0...@twilio/mcs-client@0.5.3) (2022-03-03)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
### [0.5.3-rc.0](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.2...@twilio/mcs-client@0.5.3-rc.0) (2022-01-28)
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
### Bug Fixes
|
|
18
|
-
|
|
19
|
-
* Fix media SID attachment ([e260ea7](https://github.com/twilio/rtd-sdk-monorepo-js/commit/e260ea7963328450043cbd4ade76cb9f230e1240))
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
### [0.5.2](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.2-rc.4...@twilio/mcs-client@0.5.2) (2021-11-25)
|
|
24
|
-
|
|
25
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
### [0.5.2-rc.4](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.2-rc.3...@twilio/mcs-client@0.5.2-rc.4) (2021-11-12)
|
|
32
|
-
|
|
33
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
### [0.5.2-rc.3](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.2-rc.2...@twilio/mcs-client@0.5.2-rc.3) (2021-11-11)
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
### Bug Fixes
|
|
43
|
-
|
|
44
|
-
* Remove the post-install script in favour of the "react-native" option ([0fe352d](https://github.com/twilio/rtd-sdk-monorepo-js/commit/0fe352d45e50cec78e880affee589009055d5338))
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
### [0.5.2-rc.2](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.2-rc.1...@twilio/mcs-client@0.5.2-rc.2) (2021-11-10)
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
### Bug Fixes
|
|
52
|
-
|
|
53
|
-
* Fix the post-install script (yet again) ([c8cb1ee](https://github.com/twilio/rtd-sdk-monorepo-js/commit/c8cb1ee501d1c793497985592d2c1ae97162a219))
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
### [0.5.2-rc.1](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.2-rc.0...@twilio/mcs-client@0.5.2-rc.1) (2021-11-09)
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
### Bug Fixes
|
|
61
|
-
|
|
62
|
-
* Fix the post-install script to be runnable cross-platform ([a16eede](https://github.com/twilio/rtd-sdk-monorepo-js/commit/a16eede598dd3dbdda1997fbd2033fa2254f113f))
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
### [0.5.2-rc.0](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.1...@twilio/mcs-client@0.5.2-rc.0) (2021-10-26)
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
### Bug Fixes
|
|
70
|
-
|
|
71
|
-
* Bump Node required version to current LTS (14) ([ee272b3](https://github.com/twilio/rtd-sdk-monorepo-js/commit/ee272b350f4556a454a18a8aa192c37b54aaaeeb))
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
### [0.5.1](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.1-rc.12...@twilio/mcs-client@0.5.1) (2021-10-19)
|
|
76
|
-
|
|
77
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
### [0.5.1-rc.12](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.1-rc.11...@twilio/mcs-client@0.5.1-rc.12) (2021-09-23)
|
|
84
|
-
|
|
85
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
### [0.5.1-rc.11](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.1-rc.10...@twilio/mcs-client@0.5.1-rc.11) (2021-09-12)
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
### Bug Fixes
|
|
95
|
-
|
|
96
|
-
* Fix the removal of node-js libs from React Native bundles ([317a19a](https://github.com/twilio/rtd-sdk-monorepo-js/commit/317a19a013e3fe51b67864efab75459dafb312a8))
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
### [0.5.1-rc.10](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.1-rc.9...@twilio/mcs-client@0.5.1-rc.10) (2021-09-12)
|
|
101
|
-
|
|
102
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
### [0.5.1-rc.9](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.1-rc.8...@twilio/mcs-client@0.5.1-rc.9) (2021-09-12)
|
|
109
|
-
|
|
110
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
### [0.5.1-rc.8](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.1-rc.7...@twilio/mcs-client@0.5.1-rc.8) (2021-09-12)
|
|
117
|
-
|
|
118
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
### [0.5.1-rc.7](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.1-rc.6...@twilio/mcs-client@0.5.1-rc.7) (2021-09-12)
|
|
125
|
-
|
|
126
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
### [0.5.1-rc.6](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.1-rc.4...@twilio/mcs-client@0.5.1-rc.6) (2021-09-12)
|
|
133
|
-
|
|
134
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
### [0.5.1-rc.5](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.1-rc.4...@twilio/mcs-client@0.5.1-rc.5) (2021-09-12)
|
|
141
|
-
|
|
142
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
### [0.5.1-rc.4](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.1-rc.3...@twilio/mcs-client@0.5.1-rc.4) (2021-09-10)
|
|
149
|
-
|
|
150
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
### [0.5.1-rc.3](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.1-rc.2...@twilio/mcs-client@0.5.1-rc.3) (2021-09-10)
|
|
157
|
-
|
|
158
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
### [0.5.1-rc.2](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.1-rc.1...@twilio/mcs-client@0.5.1-rc.2) (2021-09-09)
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
### Bug Fixes
|
|
168
|
-
|
|
169
|
-
* Remove require('xmlhttprequest') from browser bundles ([0399152](https://github.com/twilio/rtd-sdk-monorepo-js/commit/03991522ec0abc8b2e456673aa4256a96af0f6b7))
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
### [0.5.1-rc.1](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.1-rc.0...@twilio/mcs-client@0.5.1-rc.1) (2021-09-09)
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
### Bug Fixes
|
|
177
|
-
|
|
178
|
-
* Add a browser shim for Node's global ([0de6b0e](https://github.com/twilio/rtd-sdk-monorepo-js/commit/0de6b0e5bab1270f894ba2c5cd00476f61dab498))
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
### [0.5.1-rc.0](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.0...@twilio/mcs-client@0.5.1-rc.0) (2021-09-07)
|
|
183
|
-
|
|
184
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
## [0.5.0](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.0-rc.1...@twilio/mcs-client@0.5.0) (2021-08-04)
|
|
191
|
-
|
|
192
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
## 0.5.0-rc.1 (2021-08-03)
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
### Bug Fixes
|
|
202
|
-
|
|
203
|
-
* Fix rollup config paths ([ec3f6f3](https://github.com/twilio/rtd-sdk-monorepo-js/commit/ec3f6f362d85eedb94d2ad8330ce66d14175d8e4))
|
|
204
|
-
* Update packages versions ([812ec45](https://github.com/twilio/rtd-sdk-monorepo-js/commit/812ec45459d680ca1d0bdccdbae0bfaf4b6639cc))
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
## 0.5.0-rc.0 (2021-07-30)
|
|
209
|
-
|
|
210
|
-
**Note:** Version bump only for package @twilio/mcs-client
|