zmp-sdk 2.34.1 → 2.35.0-beta.0
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/apis/apis/checkCameraPermission.js +1 -0
- package/apis/apis/fetchFile.js +1 -0
- package/apis/apis/getAccessToken.js +1 -1
- package/apis/apis/getAuthCode.js +1 -1
- package/apis/apis/getFileInfo.js +1 -1
- package/apis/apis/getSavedFileList.js +1 -1
- package/apis/apis/index.js +1 -1
- package/apis/apis/removeSavedFile.js +1 -1
- package/apis/apis/saveFile.js +1 -1
- package/apis/common/apis/general/checkCameraPermission.js +1 -0
- package/apis/common/apis/general/fetchFile.js +1 -0
- package/apis/common/apis/general/getSavedFileList.js +1 -1
- package/apis/common/apis/general/getUserInfo.js +1 -1
- package/apis/common/apis/general/lfsSaveFile.js +1 -1
- package/apis/common/token.js +1 -1
- package/apis/package.json.js +1 -1
- package/apis/utils/common.js +1 -1
- package/browser.min.js +2 -2
- package/index.es.js +2 -2
- package/index.js +2 -2
- package/index.umd.js +2 -2
- package/package.json +1 -1
- package/apis/apis/fetch.js +0 -1
- /package/apis/apis/{interactOA.js → interactOa.js} +0 -0
- /package/apis/common/apis/general/{interactOA.js → interactOa.js} +0 -0
package/package.json
CHANGED
package/apis/apis/fetch.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from'./../external/@swc/helpers/src/_async_to_generator.mjs.js';import t,{object as n,string as r}from'./../external/zod/lib/index.mjs.js';import o from"../appEnv/index.js";import s from"../common/notFound.js";import{functionHandler as a}from"../utils/decorator.js";import{__generator as c}from'./../external/tslib/tslib.es6.js';var i=[n({resource:r(),options:t.any().optional()})];function u(e){return p.apply(this,arguments)}function p(){return p=e((function(t){return c(this,(function(n){return[2,a("fetch",i,[t],(r=e((function(t){var n,r,a,i;return c(this,(function(u){switch(u.label){case 0:return n=t.resource,r=t.options,o.isMp?window.Worker?(a=new Worker(URL.createObjectURL(new Blob(["\n self.onmessage = function (event) {\n const { url, options } = event.data;\n \n // Call the wrapped fetch function to perform the actual fetch\n fetch(url, options)\n .then((response) => response.json())\n .then((data) => {\n // Send the result back to the main thread\n self.postMessage({ data });\n })\n .catch((error) => {\n // Send the error back to the main thread\n self.postMessage({ error: error.message });\n });\n };\n \n "],{type:"text/javascript"}))),i=function(t){return n=e((function(e){var n;return c(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,t(e)];case 1:return[2,r.sent()];case 2:throw n=r.sent(),console.error("Error while fetching:",n),n;case 3:return[2]}}))})),function(e){return n.apply(this,arguments)};var n}(a.postMessage.bind(a)),[4,i({url:n,options:r})]):[3,2]:[3,4];case 1:case 3:case 5:return[2,u.sent()];case 2:return[4,window.fetch(n,r)];case 4:return o.isMpWeb?[4,window.fetch(n,r)]:[3,6];case 6:return[2,Promise.reject(s("fetch",{}))]}}))})),function(e){return r.apply(this,arguments)}))];var r}))})),p.apply(this,arguments)}export{u as fetch};
|
|
File without changes
|
|
File without changes
|