superapp-miniapp-invoke-native 1.0.21 → 1.0.22

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/lib/main.js CHANGED
@@ -1,10 +1,10 @@
1
- var e = (t, i) => () => (i || t((i = { exports: {} }).exports, i), i.exports);
2
- var s = e((c, o) => {
3
- const n = {
4
- init(t) {
5
- console.log("initNative", t);
1
+ var n = (i, t) => () => (t || i((t = { exports: {} }).exports, t), t.exports);
2
+ var c = n((r, e) => {
3
+ const o = {
4
+ init(i) {
5
+ return console.log("initNative", i), i;
6
6
  }
7
7
  };
8
- o.exports = n;
8
+ e.exports = o;
9
9
  });
10
- export default s();
10
+ export default c();
package/lib/main.umd.cjs CHANGED
@@ -1 +1 @@
1
- (function(i){typeof define=="function"&&define.amd?define(i):i()})(function(){"use strict";const i={init(e){console.log("initNative",e)}};module.exports=i});
1
+ (function(e){typeof define=="function"&&define.amd?define(e):e()})(function(){"use strict";const e={init(i){return console.log("initNative",i),i}};module.exports=e});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "superapp-miniapp-invoke-native",
3
3
  "type": "module",
4
- "version": "1.0.21",
4
+ "version": "1.0.22",
5
5
  "description": "Superapp中,小程序调用Native 接口的封装,如OSP项目中,需要调用Native的相机扫描,镭射扫描,获取RBAC的数据等",
6
6
  "scripts": {
7
7
  "dev": "vite",