superapp-miniapp-invoke-native 1.0.2 → 1.0.4

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.d.ts ADDED
@@ -0,0 +1 @@
1
+ declare module 'superapp-miniapp-invoke-native';
package/lib/main.js ADDED
@@ -0,0 +1,11 @@
1
+ const t = {
2
+ init(e) {
3
+ console.log("initNative", e);
4
+ }
5
+ }, o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6
+ __proto__: null,
7
+ default: t
8
+ }, Symbol.toStringTag, { value: "Module" }));
9
+ export {
10
+ o as NativeApi
11
+ };
@@ -0,0 +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"})});
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.2",
4
+ "version": "1.0.4",
5
5
  "description": "Superapp中,小程序调用Native 接口的封装,如OSP项目中,需要调用Native的相机扫描,镭射扫描,获取RBAC的数据等",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -16,17 +16,17 @@
16
16
  "files": [
17
17
  "lib"
18
18
  ],
19
- "main": "./lib/index.umd.cjs",
20
- "module": "./lib/index.umd.cjs",
21
- "types": "./lib/index.d.ts",
19
+ "module": "./lib/main.js",
20
+ "main": "./lib/main.umd.cjs",
21
+ "types": "./lib/main.d.ts",
22
22
  "exports": {
23
- "types": "./lib/index.d.ts",
24
- "import": "./lib/index.umd.cjs",
25
- "require": "./lib/index.umd.cjs"
23
+ "import": "./lib/main.js",
24
+ "require": "./lib/main.umd.cjs",
25
+ "types": "./lib/main.d.ts"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^20.8.10",
29
- "superapp-miniapp-invoke-native": "^1.0.1",
29
+ "superapp-miniapp-invoke-native": "^1.0.2",
30
30
  "typescript": "^5.2.2",
31
31
  "vite": "^4.5.0",
32
32
  "vite-plugin-dts": "^3.6.3"
package/lib/index.d.ts DELETED
@@ -1 +0,0 @@
1
- declare module 'lodash-es';
package/lib/index.js DELETED
@@ -1,6 +0,0 @@
1
- const i = {
2
- initHandle() {
3
- console.log("init");
4
- }
5
- };
6
- i.initHandle();
package/lib/index.umd.cjs DELETED
@@ -1 +0,0 @@
1
- (function(n){typeof define=="function"&&define.amd?define(n):n()})(function(){"use strict";({initHandle(){console.log("init")}}).initHandle()});