@onekeyfe/react-native-zip-archive 3.0.9 → 3.0.11

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.
@@ -2,4 +2,5 @@
2
2
 
3
3
  import NativeZipArchive from "./NativeZipArchive.js";
4
4
  export const ZipArchive = NativeZipArchive;
5
+ export const zip = (source, target) => NativeZipArchive.zipFolder(source, target);
5
6
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,4 @@
1
1
  export declare const ZipArchive: import("./NativeZipArchive").Spec;
2
+ export declare const zip: (source: string, target: string) => Promise<string>;
2
3
  export type { Spec as ZipArchiveSpec } from './NativeZipArchive';
3
4
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/react-native-zip-archive",
3
- "version": "3.0.9",
3
+ "version": "3.0.11",
4
4
  "description": "react-native-zip-archive TurboModule for OneKey",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -22,7 +22,8 @@
22
22
  "!**/__fixtures__",
23
23
  "!**/__mocks__",
24
24
  "!**/.*",
25
- "android"
25
+ "android",
26
+ "!**/*.map"
26
27
  ],
27
28
  "scripts": {
28
29
  "prepare": "bob build",
package/src/index.tsx CHANGED
@@ -1,4 +1,6 @@
1
1
  import NativeZipArchive from './NativeZipArchive';
2
2
 
3
3
  export const ZipArchive = NativeZipArchive;
4
+ export const zip = (source: string, target: string): Promise<string> =>
5
+ NativeZipArchive.zipFolder(source, target);
4
6
  export type { Spec as ZipArchiveSpec } from './NativeZipArchive';
@@ -1 +0,0 @@
1
- {"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../src","sources":["NativeZipArchive.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAAQ,cAAc;AAYlD,eAAeA,mBAAmB,CAACC,YAAY,CAAO,cAAc,CAAC","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["NativeZipArchive","ZipArchive"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,OAAOA,gBAAgB,MAAM,uBAAoB;AAEjD,OAAO,MAAMC,UAAU,GAAGD,gBAAgB","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"NativeZipArchive.d.ts","sourceRoot":"","sources":["../../../src/NativeZipArchive.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACpD,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACjD,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/E,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACrD,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACvD,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACpD;;AAED,wBAAsE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,mCAAmB,CAAC;AAC3C,YAAY,EAAE,IAAI,IAAI,cAAc,EAAE,MAAM,oBAAoB,CAAC"}