@vonage/client-sdk 1.2.1-alpha.0 → 1.2.1-beta.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/README.md +114 -117
- package/dist/client/VonageClient.d.ts +28 -23
- package/dist/client/index.cjs +8190 -8036
- package/dist/client/index.mjs +8189 -8037
- package/dist/coreExtend.d.ts +16 -6
- package/dist/kotlin/clientsdk-clientcore_js.d.ts +62 -19
- package/dist/utils/ClientConfig.d.ts +26 -1
- package/dist/utils/index.d.ts +2 -2
- package/dist/vonageClientSDK.js +8131 -7980
- package/dist/vonageClientSDK.min.js +1 -1
- package/dist/vonageClientSDK.min.mjs +1 -1
- package/dist/vonageClientSDK.mjs +8130 -7981
- package/package.json +2 -2
- package/snippet.js +9 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vonage/client-sdk",
|
|
3
|
-
"version": "1.2.1-
|
|
3
|
+
"version": "1.2.1-beta.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/client/index.mjs",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"snippets": "node snippet.js $PWD",
|
|
29
29
|
"start": "node dist/Client.js",
|
|
30
30
|
"build:watch": "tsc -w",
|
|
31
|
-
"check": "tsc ./examples
|
|
31
|
+
"check": "tsc --project ./examples/tsconfig.json --noEmit --skipLibCheck --strictNullChecks true",
|
|
32
32
|
"lint": "eslint . --ext .ts",
|
|
33
33
|
"lint:fix": "eslint . --ext .ts --fix",
|
|
34
34
|
"clean": "rm -Rf node_modules/*; rm -Rf dist/"
|
package/snippet.js
CHANGED
|
@@ -45,6 +45,14 @@ let current_example = 0;
|
|
|
45
45
|
const files = readdirSync(input_path);
|
|
46
46
|
console.log('Input files: ', files);
|
|
47
47
|
|
|
48
|
+
const camalize = (str) =>
|
|
49
|
+
str.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g, (m, chr) => chr.toUpperCase());
|
|
50
|
+
|
|
51
|
+
const getFileName = (str) =>
|
|
52
|
+
str.startsWith('snippet')
|
|
53
|
+
? `snippet_${camalize(str.replace('snippet', ''))}.txt`
|
|
54
|
+
: `${str.replace(/ /g, '_')}.txt`;
|
|
55
|
+
|
|
48
56
|
files.forEach((file) => {
|
|
49
57
|
const format = file.split('.').pop();
|
|
50
58
|
const comments = comments_by_format[format];
|
|
@@ -70,7 +78,7 @@ files.forEach((file) => {
|
|
|
70
78
|
examples[current_example] = {
|
|
71
79
|
title: title.trim(),
|
|
72
80
|
format: format,
|
|
73
|
-
file_name: title.trim().
|
|
81
|
+
file_name: getFileName(title.trim().toLowerCase()),
|
|
74
82
|
content: ``
|
|
75
83
|
};
|
|
76
84
|
indentationLevel = line.search(comment_prefix);
|