superapp-miniapp-invoke-native 1.0.8 → 1.0.10

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,11 +1,9 @@
1
- const t = {
2
- init(e) {
3
- console.log("initNative", e);
1
+ const o = {
2
+ init(i) {
3
+ console.log("initNative", i);
4
4
  }
5
- }, o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6
- __proto__: null,
7
- default: t
8
- }, Symbol.toStringTag, { value: "Module" }));
5
+ };
6
+ console.log("NativeApi===", o);
9
7
  export {
10
- o as NativeApi
8
+ o as default
11
9
  };
package/lib/main.umd.cjs CHANGED
@@ -1 +1 @@
1
- (function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.main={}))})(this,function(e){"use strict";const i=Object.freeze(Object.defineProperty({__proto__:null,default:{init(n){console.log("initNative",n)}}},Symbol.toStringTag,{value:"Module"}));e.NativeApi=i,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
1
+ (function(e,i){typeof exports=="object"&&typeof module<"u"?module.exports=i():typeof define=="function"&&define.amd?define(i):(e=typeof globalThis<"u"?globalThis:e||self,e.main=i())})(this,function(){"use strict";const e={init(i){console.log("initNative",i)}};return console.log("NativeApi===",e),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.8",
4
+ "version": "1.0.10",
5
5
  "description": "Superapp中,小程序调用Native 接口的封装,如OSP项目中,需要调用Native的相机扫描,镭射扫描,获取RBAC的数据等",
6
6
  "scripts": {
7
7
  "dev": "vite",