despia-native 1.0.2 → 1.0.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 +3 -3
- package/index.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ Despia provides native device capabilities to web applications through a simple
|
|
|
17
17
|
## Installation
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
npm install despia
|
|
20
|
+
npm install despia-native
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
## Usage
|
|
@@ -25,7 +25,7 @@ npm install despia
|
|
|
25
25
|
### Basic Despia Command Execution
|
|
26
26
|
|
|
27
27
|
```javascript
|
|
28
|
-
import despia from 'despia';
|
|
28
|
+
import despia from 'despia-native';
|
|
29
29
|
|
|
30
30
|
// Execute a Despia protocol command (no response needed)
|
|
31
31
|
despia('lighthaptic://');
|
|
@@ -403,7 +403,7 @@ Your app can access these native features:
|
|
|
403
403
|
Full TypeScript definitions are included:
|
|
404
404
|
|
|
405
405
|
```typescript
|
|
406
|
-
import despia from 'despia';
|
|
406
|
+
import despia from 'despia-native';
|
|
407
407
|
|
|
408
408
|
// Type-safe usage with Despia commands
|
|
409
409
|
const result: { versionNumber: string; bundleNumber: string } = await despia(
|
package/index.d.ts
CHANGED
|
@@ -103,7 +103,7 @@ interface DespiaFunction {
|
|
|
103
103
|
*
|
|
104
104
|
* @example
|
|
105
105
|
* ```typescript
|
|
106
|
-
* import despia from 'despia';
|
|
106
|
+
* import despia from 'despia-native';
|
|
107
107
|
*
|
|
108
108
|
* // Execute Despia protocol commands
|
|
109
109
|
* await despia('applinks://open?url=https://maps.apple.com');
|