samvyo-js-sdk 2.0.8 → 2.0.9
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/dest/samvyo-js-sdk.js +12 -28
- package/index.js +1 -1
- package/package.json +17 -34
- package/vite.config.js +52 -0
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "samvyo-js-sdk",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.9",
|
|
4
4
|
"description": "This is the client js sdk for cutting-edge Samvyo real-time voice/video cloud.",
|
|
5
5
|
"repository": "git@github.com:sauravkp/VidScale-client-js.git",
|
|
6
6
|
"author": "sauravkp <saurav.codes@gmail.com>",
|
|
@@ -8,7 +8,9 @@
|
|
|
8
8
|
"main": "./index.js",
|
|
9
9
|
"build": "./build.js",
|
|
10
10
|
"scripts": {
|
|
11
|
-
"build": "
|
|
11
|
+
"build": "vite build",
|
|
12
|
+
"dev": "vite build --watch",
|
|
13
|
+
"preview": "vite preview"
|
|
12
14
|
},
|
|
13
15
|
"keywords": [
|
|
14
16
|
"Samvyo",
|
|
@@ -35,50 +37,31 @@
|
|
|
35
37
|
"axios": "^1.6.0",
|
|
36
38
|
"bowser": "^2.11.0",
|
|
37
39
|
"events": "^3.3.0",
|
|
38
|
-
"
|
|
39
|
-
"mediasoup-client": "^3.
|
|
40
|
+
"jose": "^6.1.0",
|
|
41
|
+
"mediasoup-client": "^3.7.6",
|
|
40
42
|
"pokemon": "^3.0.0",
|
|
41
43
|
"socket.io-client": "^4.7.5"
|
|
42
44
|
},
|
|
43
45
|
"devDependencies": {
|
|
44
|
-
"@babel/core": "^7.
|
|
45
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.
|
|
46
|
-
"@babel/plugin-transform-
|
|
47
|
-
"@babel/
|
|
48
|
-
"@babel/
|
|
49
|
-
"@
|
|
50
|
-
"@
|
|
51
|
-
"@
|
|
46
|
+
"@babel/core": "^7.8.4",
|
|
47
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.8.3",
|
|
48
|
+
"@babel/plugin-transform-runtime": "^7.8.3",
|
|
49
|
+
"@babel/preset-env": "^7.8.4",
|
|
50
|
+
"@babel/preset-react": "^7.8.3",
|
|
51
|
+
"@rollup/plugin-commonjs": "^28.0.6",
|
|
52
|
+
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
53
|
+
"@rollup/plugin-replace": "^6.0.2",
|
|
54
|
+
"@vitejs/plugin-legacy": "^7.2.1",
|
|
52
55
|
"babel-plugin-jsx-control-statements": "^4.0.0",
|
|
53
|
-
"babelify": "^10.0.0",
|
|
54
56
|
"browser-sync": "^2.26.7",
|
|
55
|
-
"browserify": "^17.0.1",
|
|
56
|
-
"del": "^5.1.0",
|
|
57
|
-
"envify": "^4.1.0",
|
|
58
57
|
"eslint": "^6.8.0",
|
|
59
58
|
"eslint-plugin-import": "^2.20.1",
|
|
60
59
|
"eslint-plugin-jsx-control-statements": "^2.2.1",
|
|
61
60
|
"eslint-plugin-react": "^7.18.3",
|
|
62
|
-
"gulp": "^4.0.2",
|
|
63
|
-
"gulp-css-base64": "^1.3.4",
|
|
64
|
-
"gulp-eslint": "^6.0.0",
|
|
65
|
-
"gulp-header": "^2.0.9",
|
|
66
|
-
"gulp-if": "^3.0.0",
|
|
67
|
-
"gulp-plumber": "^1.2.1",
|
|
68
|
-
"gulp-rename": "^1.4.0",
|
|
69
|
-
"gulp-sourcemaps": "^3.0.0",
|
|
70
|
-
"gulp-stylus": "^2.7.0",
|
|
71
|
-
"gulp-touch-cmd": "0.0.1",
|
|
72
|
-
"gulp-uglify-es": "^3.0.0",
|
|
73
|
-
"gulp-util": "^3.0.8",
|
|
74
|
-
"mkdirp": "^0.5.1",
|
|
75
|
-
"module-deps": "^6.2.3",
|
|
76
|
-
"ncp": "^2.0.0",
|
|
77
61
|
"nib": "^1.1.2",
|
|
62
|
+
"rollup-plugin-polyfill-node": "^0.13.0",
|
|
78
63
|
"supports-color": "^7.1.0",
|
|
79
|
-
"
|
|
80
|
-
"vinyl-source-stream": "^2.0.0",
|
|
81
|
-
"watchify": "^4.0.0"
|
|
64
|
+
"vite": "^7.1.4"
|
|
82
65
|
},
|
|
83
66
|
"dev-version": "null.null.2"
|
|
84
67
|
}
|
package/vite.config.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { defineConfig } from 'vite'
|
|
2
|
+
import { readFileSync } from 'fs'
|
|
3
|
+
|
|
4
|
+
const pkg = JSON.parse(readFileSync('./package.json', 'utf8'))
|
|
5
|
+
const banner = readFileSync('./banner.txt', 'utf8')
|
|
6
|
+
.replace('<%= pkg.name %>', pkg.name)
|
|
7
|
+
.replace('<%= pkg.version %>', pkg.version)
|
|
8
|
+
.replace('<%= pkg.description %>', pkg.description)
|
|
9
|
+
.replace('<%= pkg.author %>', pkg.author)
|
|
10
|
+
.replace('<%= pkg.license %>', pkg.license)
|
|
11
|
+
.replace('<%= currentYear %>', new Date().getFullYear())
|
|
12
|
+
|
|
13
|
+
export default defineConfig({
|
|
14
|
+
build: {
|
|
15
|
+
lib: {
|
|
16
|
+
entry: './build.js',
|
|
17
|
+
name: 'samvyo',
|
|
18
|
+
fileName: () => 'samvyo-js-sdk.js',
|
|
19
|
+
formats: ['umd']
|
|
20
|
+
},
|
|
21
|
+
rollupOptions: {
|
|
22
|
+
output: {
|
|
23
|
+
banner: banner,
|
|
24
|
+
format: 'umd',
|
|
25
|
+
name: 'samvyo'
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
commonjsOptions: {
|
|
29
|
+
include: [/node_modules/],
|
|
30
|
+
transformMixedEsModules: true,
|
|
31
|
+
requireReturnsDefault: 'auto'
|
|
32
|
+
},
|
|
33
|
+
outDir: 'dest',
|
|
34
|
+
emptyOutDir: true,
|
|
35
|
+
sourcemap: process.env.NODE_ENV === 'development',
|
|
36
|
+
minify: process.env.NODE_ENV === 'production' ? 'terser' : false,
|
|
37
|
+
terserOptions: process.env.NODE_ENV === 'production' ? {
|
|
38
|
+
compress: {
|
|
39
|
+
drop_console: true,
|
|
40
|
+
drop_debugger: true
|
|
41
|
+
}
|
|
42
|
+
} : undefined
|
|
43
|
+
},
|
|
44
|
+
define: {
|
|
45
|
+
global: 'globalThis',
|
|
46
|
+
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'production')
|
|
47
|
+
},
|
|
48
|
+
optimizeDeps: {
|
|
49
|
+
include: ['debug', 'events']
|
|
50
|
+
},
|
|
51
|
+
mode: process.env.NODE_ENV || 'production'
|
|
52
|
+
})
|