@sigx/lynx-network 0.1.2 → 0.4.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 CHANGED
@@ -8,14 +8,7 @@ Network connectivity status for sigx-lynx. `NWPathMonitor` on iOS, `Connectivity
8
8
  pnpm add @sigx/lynx-network
9
9
  ```
10
10
 
11
- ```ts
12
- // sigx.lynx.config.ts
13
- export default defineLynxConfig({
14
- modules: ['@sigx/lynx-network'],
15
- });
16
- ```
17
-
18
- No special permissions on either platform.
11
+ `sigx prebuild` auto-discovers and links the native module. No special permissions on either platform.
19
12
 
20
13
  ## Usage
21
14
 
package/dist/network.d.ts CHANGED
@@ -16,7 +16,7 @@ export interface NetworkState {
16
16
  * ```
17
17
  */
18
18
  export declare const Network: {
19
- readonly getState: () => Promise<NetworkState>;
20
- readonly isAvailable: () => boolean;
19
+ getState(): Promise<NetworkState>;
20
+ isAvailable(): boolean;
21
21
  };
22
22
  //# sourceMappingURL=network.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"network.d.ts","sourceRoot":"","sources":["../src/network.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,MAAM,GAAG,SAAS,CAAC;AAEjG,MAAM,WAAW,YAAY;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,cAAc,CAAC;IACrB,mBAAmB,EAAE,OAAO,GAAG,IAAI,CAAC;CACvC;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,OAAO;6BACJ,OAAO,CAAC,YAAY,CAAC;gCAIlB,OAAO;CAGhB,CAAC"}
1
+ {"version":3,"file":"network.d.ts","sourceRoot":"","sources":["../src/network.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,MAAM,GAAG,SAAS,CAAC;AAEjG,MAAM,WAAW,YAAY;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,cAAc,CAAC;IACrB,mBAAmB,EAAE,OAAO,GAAG,IAAI,CAAC;CACvC;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,OAAO;IAChB,QAAQ,IAAI,OAAO,CAAC,YAAY,CAAC;IAIjC,WAAW,IAAI,OAAO;CAGhB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sigx/lynx-network",
3
- "version": "0.1.2",
3
+ "version": "0.4.1",
4
4
  "description": "Network connectivity status for sigx-lynx",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -10,18 +10,19 @@
10
10
  "import": "./dist/index.js",
11
11
  "types": "./dist/index.d.ts"
12
12
  },
13
- "./sigx-module.json": "./sigx-module.json"
13
+ "./signalx-module.json": "./signalx-module.json"
14
14
  },
15
15
  "files": [
16
16
  "dist",
17
17
  "ios",
18
18
  "android",
19
- "sigx-module.json"
19
+ "signalx-module.json"
20
20
  ],
21
21
  "dependencies": {
22
- "@sigx/lynx-core": "^0.1.4"
22
+ "@sigx/lynx-core": "^0.4.1"
23
23
  },
24
24
  "devDependencies": {
25
+ "@typescript/native-preview": "7.0.0-dev.20260511.1",
25
26
  "typescript": "^6.0.3"
26
27
  },
27
28
  "author": "Andreas Ekdahl",
@@ -48,7 +49,8 @@
48
49
  "network"
49
50
  ],
50
51
  "scripts": {
51
- "build": "tsc",
52
- "dev": "tsc --watch"
52
+ "build": "node ../../scripts/clean.mjs dist && tsgo",
53
+ "dev": "tsgo --watch",
54
+ "clean": "node ../../scripts/clean.mjs dist .turbo"
53
55
  }
54
56
  }
File without changes