@cpzxrobot/sdk 1.2.35 → 1.2.36

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/dist/index.js CHANGED
@@ -208,7 +208,9 @@ class Cpzxrobot {
208
208
  this.setTitle = function (title) {
209
209
  platform.callHandler("app.setTitle", title);
210
210
  };
211
- this.saveBlob = this._saveBlobAsBase64;
211
+ this.saveBlob = function (blob, filename) {
212
+ return platform.callHandler("app.saveBlob", blob, filename);
213
+ };
212
214
  this.saveBase64 = function (base64, filename) {
213
215
  return platform.callHandler("app.saveBase64", base64, filename);
214
216
  };
package/index.ts CHANGED
@@ -252,7 +252,9 @@ export class Cpzxrobot {
252
252
  this.setTitle = function (title: string) {
253
253
  platform.callHandler("app.setTitle", title);
254
254
  };
255
- this.saveBlob = this._saveBlobAsBase64;
255
+ this.saveBlob = function (blob: Blob, filename: string) {
256
+ return platform.callHandler("app.saveBlob", blob, filename);
257
+ };
256
258
  this.saveBase64 = function (base64: string, filename: string) {
257
259
  return platform.callHandler("app.saveBase64", base64, filename);
258
260
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.2.35",
3
+ "version": "1.2.36",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {