surflion-service 1.5.1 → 1.5.3

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 CHANGED
@@ -19,7 +19,13 @@ npm install surflion-service
19
19
 
20
20
  ## 🔧 Usage
21
21
 
22
- ### Node.js Environment (Main Entry)
22
+ ### ES6 Module (Recommended)
23
+ ```javascript
24
+ import SurfLion from 'surflion-service';
25
+ console.log(SurfLion);
26
+ ```
27
+
28
+ ### CommonJS
23
29
  ```javascript
24
30
  const SurfLion = require('surflion-service');
25
31
  console.log(SurfLion);
@@ -27,17 +33,23 @@ console.log(SurfLion);
27
33
 
28
34
  ### Browser Environment (Script Tag)
29
35
  ```html
30
- <script src="node_modules/surflion-service/surflion.min.js"></script>
36
+ <script src="node_modules/surflion-service/dist/surflion.min.js"></script>
31
37
  <script>
32
38
  // SurfLion is now available globally
33
39
  console.log(SurfLion);
34
40
  </script>
35
41
  ```
36
42
 
37
- ### ES6 Module
38
- ```javascript
43
+ ### TypeScript Support
44
+ ```typescript
39
45
  import SurfLion from 'surflion-service';
40
- console.log(SurfLion);
46
+
47
+ // Full TypeScript support with intellisense
48
+ SurfLion.sipRegister({
49
+ uri: 'sip:user@domain.com',
50
+ password: 'password',
51
+ ws_servers: 'wss://server.com'
52
+ });
41
53
  ```
42
54
 
43
55
  ## 📚 Documentation