rhine-var 0.10.4 → 0.10.5

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.
@@ -1 +1 @@
1
- {"version":3,"file":"load-react.d.ts","sourceRoot":"","sources":["../../src/react/load-react.ts"],"names":[],"mappings":"AAAA,KAAK,SAAS,GAAG,cAAc,OAAO,CAAC,GAAG,IAAI,CAAA;AAW9C,MAAM,CAAC,OAAO,UAAU,SAAS,IAAI,SAAS,CAoC7C"}
1
+ {"version":3,"file":"load-react.d.ts","sourceRoot":"","sources":["../../src/react/load-react.ts"],"names":[],"mappings":"AAAA,KAAK,SAAS,GAAG,cAAc,OAAO,CAAC,GAAG,IAAI,CAAA;AAW9C,MAAM,CAAC,OAAO,UAAU,SAAS,IAAI,SAAS,CAqC7C"}
@@ -60,11 +60,11 @@ function loadReact() {
60
60
  return Promise.resolve().then(() => __importStar(require('react'))).then(m => m.default || m).catch(() => null);
61
61
  }
62
62
  // 3. React Native 特殊处理
63
- if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {
64
- try {
65
- return require('react-native').require('react');
66
- }
67
- catch (_b) { }
68
- }
63
+ // TODO: React Native is not supported now
64
+ // if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {
65
+ // try {
66
+ // return require('react-native').require('react')
67
+ // } catch {}
68
+ // }
69
69
  return null;
70
70
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rhine-var",
3
- "version": "0.10.4",
3
+ "version": "0.10.5",
4
4
  "description": "Variables that support multi-user collaboration and persistence, making collaboration and variable operations as simple as possible, with strict and well-defined type hints.",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",