samvyo-js-sdk 2.0.7 → 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/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import samvyo from "./dest/samvyo-js-sdk";
1
+ import samvyo from "./dest/samvyo-js-sdk.js";
2
2
 
3
3
  export default samvyo;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "samvyo-js-sdk",
3
- "version": "2.0.7",
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,15 +8,36 @@
8
8
  "main": "./index.js",
9
9
  "build": "./build.js",
10
10
  "scripts": {
11
- "build": "gulp dist"
11
+ "build": "vite build",
12
+ "dev": "vite build --watch",
13
+ "preview": "vite preview"
12
14
  },
13
- "keywords":["Samvyo", "SDK", "JavaScript", "WebRTC", "video", "voice", "real-time","video calling","Telemedicine","telehealth","video conferencing","video chat","WebRTC SDK","JavaScript SDK","real-time communication","RTC SDK","WebRTC client","JavaScript client"],
15
+ "keywords": [
16
+ "Samvyo",
17
+ "SDK",
18
+ "JavaScript",
19
+ "WebRTC",
20
+ "video",
21
+ "voice",
22
+ "real-time",
23
+ "video calling",
24
+ "Telemedicine",
25
+ "telehealth",
26
+ "video conferencing",
27
+ "video chat",
28
+ "WebRTC SDK",
29
+ "JavaScript SDK",
30
+ "real-time communication",
31
+ "RTC SDK",
32
+ "WebRTC client",
33
+ "JavaScript client"
34
+ ],
14
35
  "dependencies": {
15
36
  "@babel/runtime": "^7.24.4",
16
37
  "axios": "^1.6.0",
17
38
  "bowser": "^2.11.0",
18
39
  "events": "^3.3.0",
19
- "jsonwebtoken": "^8.5.1",
40
+ "jose": "^6.1.0",
20
41
  "mediasoup-client": "^3.7.6",
21
42
  "pokemon": "^3.0.0",
22
43
  "socket.io-client": "^4.7.5"
@@ -27,35 +48,20 @@
27
48
  "@babel/plugin-transform-runtime": "^7.8.3",
28
49
  "@babel/preset-env": "^7.8.4",
29
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",
30
55
  "babel-plugin-jsx-control-statements": "^4.0.0",
31
- "babelify": "^10.0.0",
32
56
  "browser-sync": "^2.26.7",
33
- "browserify": "^16.5.0",
34
- "del": "^5.1.0",
35
- "envify": "^4.1.0",
36
57
  "eslint": "^6.8.0",
37
58
  "eslint-plugin-import": "^2.20.1",
38
59
  "eslint-plugin-jsx-control-statements": "^2.2.1",
39
60
  "eslint-plugin-react": "^7.18.3",
40
- "gulp": "^4.0.2",
41
- "gulp-css-base64": "^1.3.4",
42
- "gulp-eslint": "^6.0.0",
43
- "gulp-header": "^2.0.9",
44
- "gulp-if": "^3.0.0",
45
- "gulp-plumber": "^1.2.1",
46
- "gulp-rename": "^1.4.0",
47
- "gulp-sourcemaps": "^3.0.0",
48
- "gulp-stylus": "^2.7.0",
49
- "gulp-touch-cmd": "0.0.1",
50
- "gulp-uglify-es": "^3.0.0",
51
- "gulp-util": "^3.0.8",
52
- "mkdirp": "^0.5.1",
53
- "ncp": "^2.0.0",
54
61
  "nib": "^1.1.2",
62
+ "rollup-plugin-polyfill-node": "^0.13.0",
55
63
  "supports-color": "^7.1.0",
56
- "vinyl-buffer": "^1.0.1",
57
- "vinyl-source-stream": "^2.0.0",
58
- "watchify": "^3.11.1"
64
+ "vite": "^7.1.4"
59
65
  },
60
66
  "dev-version": "null.null.2"
61
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
+ })