@wevu/web-apis 1.3.0 → 1.3.2
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/abort.mjs +1 -1
- package/dist/fetch.mjs +3 -3
- package/dist/{http-C-VyEBss.mjs → http-kp0q332i.mjs} +2 -2
- package/dist/http.mjs +1 -1
- package/dist/index.mjs +4 -4
- package/dist/{shared-BsJRaiBh.mjs → shared-BwG-RbCg.mjs} +3 -2
- package/dist/shared.mjs +1 -1
- package/dist/{web-kSAO_PSD.mjs → web-BcrJWfwR.mjs} +1 -1
- package/dist/web.mjs +1 -1
- package/dist/websocket.mjs +2 -2
- package/dist/xhr.mjs +2 -2
- package/package.json +3 -3
package/dist/abort.mjs
CHANGED
package/dist/fetch.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as normalizeHeaderName, h as isUrlSearchParamsInstance, l as isArrayBufferLike, m as isUrlInstance, n as cloneArrayBuffer, r as cloneArrayBufferView, u as isBlobLike } from "./shared-
|
|
2
|
-
import { a as encodeMultipartFormData, i as consumeBodyValue, n as RequestPolyfill, o as HeadersPolyfill, t as ResponsePolyfill } from "./http-
|
|
3
|
-
import { t as FormDataPolyfill } from "./web-
|
|
1
|
+
import { d as normalizeHeaderName, h as isUrlSearchParamsInstance, l as isArrayBufferLike, m as isUrlInstance, n as cloneArrayBuffer, r as cloneArrayBufferView, u as isBlobLike } from "./shared-BwG-RbCg.mjs";
|
|
2
|
+
import { a as encodeMultipartFormData, i as consumeBodyValue, n as RequestPolyfill, o as HeadersPolyfill, t as ResponsePolyfill } from "./http-kp0q332i.mjs";
|
|
3
|
+
import { t as FormDataPolyfill } from "./web-BcrJWfwR.mjs";
|
|
4
4
|
import { resolveRequestMiniProgramOptions } from "./networkDefaults.mjs";
|
|
5
5
|
import { wpi } from "@wevu/api";
|
|
6
6
|
//#region src/fetch.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as normalizeHeaderName, h as isUrlSearchParamsInstance, i as decodeText, l as isArrayBufferLike, m as isUrlInstance, n as cloneArrayBuffer, o as encodeText, r as cloneArrayBufferView, u as isBlobLike } from "./shared-
|
|
2
|
-
import { r as BlobPolyfill, t as FormDataPolyfill } from "./web-
|
|
1
|
+
import { d as normalizeHeaderName, h as isUrlSearchParamsInstance, i as decodeText, l as isArrayBufferLike, m as isUrlInstance, n as cloneArrayBuffer, o as encodeText, r as cloneArrayBufferView, u as isBlobLike } from "./shared-BwG-RbCg.mjs";
|
|
2
|
+
import { r as BlobPolyfill, t as FormDataPolyfill } from "./web-BcrJWfwR.mjs";
|
|
3
3
|
//#region src/http/headers.ts
|
|
4
4
|
const SET_COOKIE_HEADER_NAME = "set-cookie";
|
|
5
5
|
function isIterableHeaders(input) {
|
package/dist/http.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as RequestPolyfill, o as HeadersPolyfill, r as getRequestBodyValue, s as headersToObject, t as ResponsePolyfill } from "./http-
|
|
1
|
+
import { n as RequestPolyfill, o as HeadersPolyfill, r as getRequestBodyValue, s as headersToObject, t as ResponsePolyfill } from "./http-kp0q332i.mjs";
|
|
2
2
|
export { HeadersPolyfill, RequestPolyfill, ResponsePolyfill, getRequestBodyValue, headersToObject };
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as decodeTextFallback, c as installRequestGlobalBinding, f as resolveRequestGlobalsHost, l as isArrayBufferLike, n as cloneArrayBuffer, p as resolveRequestGlobalsHosts, r as cloneArrayBufferView, s as encodeTextFallback, t as RequestGlobalsEventTarget, v as getMiniProgramRuntimeGlobalKeys } from "./shared-
|
|
1
|
+
import { a as decodeTextFallback, c as installRequestGlobalBinding, f as resolveRequestGlobalsHost, l as isArrayBufferLike, n as cloneArrayBuffer, p as resolveRequestGlobalsHosts, r as cloneArrayBufferView, s as encodeTextFallback, t as RequestGlobalsEventTarget, v as getMiniProgramRuntimeGlobalKeys } from "./shared-BwG-RbCg.mjs";
|
|
2
2
|
import { URLPolyfill, URLSearchParamsPolyfill } from "./url.mjs";
|
|
3
3
|
import { AbortControllerPolyfill, AbortSignalPolyfill } from "./abort.mjs";
|
|
4
|
-
import { n as RequestPolyfill, o as HeadersPolyfill, t as ResponsePolyfill } from "./http-
|
|
5
|
-
import { n as FilePolyfill, r as BlobPolyfill, t as FormDataPolyfill } from "./web-
|
|
4
|
+
import { n as RequestPolyfill, o as HeadersPolyfill, t as ResponsePolyfill } from "./http-kp0q332i.mjs";
|
|
5
|
+
import { n as FilePolyfill, r as BlobPolyfill, t as FormDataPolyfill } from "./web-BcrJWfwR.mjs";
|
|
6
6
|
import { getMiniProgramNetworkDefaults, resetMiniProgramNetworkDefaults, setMiniProgramNetworkDefaults } from "./networkDefaults.mjs";
|
|
7
7
|
import { fetch } from "./fetch.mjs";
|
|
8
8
|
import { WebSocketPolyfill } from "./websocket.mjs";
|
|
@@ -159,7 +159,7 @@ const performancePolyfill = {
|
|
|
159
159
|
//#region src/task.ts
|
|
160
160
|
function queueMicrotaskPolyfill(callback) {
|
|
161
161
|
if (typeof callback !== "function") throw new TypeError("Failed to execute 'queueMicrotask': callback must be a function");
|
|
162
|
-
const nativeQueueMicrotask = globalThis.queueMicrotask;
|
|
162
|
+
const nativeQueueMicrotask = typeof globalThis !== "undefined" ? globalThis.queueMicrotask : void 0;
|
|
163
163
|
if (typeof nativeQueueMicrotask === "function" && nativeQueueMicrotask !== queueMicrotaskPolyfill && nativeQueueMicrotask[REQUEST_GLOBAL_PLACEHOLDER_KEY] !== true) {
|
|
164
164
|
nativeQueueMicrotask(callback);
|
|
165
165
|
return;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { URLPolyfill, URLSearchParamsPolyfill } from "./url.mjs";
|
|
2
|
-
//#region ../../@weapp-core/shared/dist/platforms-
|
|
2
|
+
//#region ../../@weapp-core/shared/dist/platforms-DeV7WlYI.js
|
|
3
3
|
const DEFAULT_PROJECT_CONFIG_ROOT_KEYS = ["miniprogramRoot", "srcMiniprogramRoot"];
|
|
4
4
|
const DEFAULT_RUNTIME_CAPABILITIES = Object.freeze({
|
|
5
5
|
globalPageStack: true,
|
|
@@ -211,7 +211,8 @@ const MINI_PROGRAM_PLATFORM_DESCRIPTORS = [
|
|
|
211
211
|
},
|
|
212
212
|
wxml: {
|
|
213
213
|
eventBindingStyle: "default",
|
|
214
|
-
directivePrefix: "tt"
|
|
214
|
+
directivePrefix: "tt",
|
|
215
|
+
normalizeComponentTagName: true
|
|
215
216
|
},
|
|
216
217
|
compiler: { templatePreset: "tt" },
|
|
217
218
|
typescript: { appTypesPackage: "@douyin-microapp/typings" },
|
package/dist/shared.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as decodeTextFallback, c as installRequestGlobalBinding, d as normalizeHeaderName, f as resolveRequestGlobalsHost, i as decodeText, l as isArrayBufferLike, n as cloneArrayBuffer, o as encodeText, p as resolveRequestGlobalsHosts, r as cloneArrayBufferView, s as encodeTextFallback, t as RequestGlobalsEventTarget, u as isBlobLike } from "./shared-
|
|
1
|
+
import { a as decodeTextFallback, c as installRequestGlobalBinding, d as normalizeHeaderName, f as resolveRequestGlobalsHost, i as decodeText, l as isArrayBufferLike, n as cloneArrayBuffer, o as encodeText, p as resolveRequestGlobalsHosts, r as cloneArrayBufferView, s as encodeTextFallback, t as RequestGlobalsEventTarget, u as isBlobLike } from "./shared-BwG-RbCg.mjs";
|
|
2
2
|
export { RequestGlobalsEventTarget, cloneArrayBuffer, cloneArrayBufferView, decodeText, decodeTextFallback, encodeText, encodeTextFallback, installRequestGlobalBinding, isArrayBufferLike, isBlobLike, normalizeHeaderName, resolveRequestGlobalsHost, resolveRequestGlobalsHosts };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as decodeText, l as isArrayBufferLike, n as cloneArrayBuffer, o as encodeText, r as cloneArrayBufferView, u as isBlobLike } from "./shared-
|
|
1
|
+
import { i as decodeText, l as isArrayBufferLike, n as cloneArrayBuffer, o as encodeText, r as cloneArrayBufferView, u as isBlobLike } from "./shared-BwG-RbCg.mjs";
|
|
2
2
|
//#region src/web/blob.ts
|
|
3
3
|
const segments = /* @__PURE__ */ new WeakMap();
|
|
4
4
|
/** Blob 的 MIME 类型只接受可打印 ASCII,并按标准转换成小写。 */
|
package/dist/web.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as FilePolyfill, r as BlobPolyfill, t as FormDataPolyfill } from "./web-
|
|
1
|
+
import { n as FilePolyfill, r as BlobPolyfill, t as FormDataPolyfill } from "./web-BcrJWfwR.mjs";
|
|
2
2
|
export { BlobPolyfill, FilePolyfill, FormDataPolyfill };
|
package/dist/websocket.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as resolveUrlConstructor$1, g as resolveTextEncoderConstructor, l as isArrayBufferLike, n as cloneArrayBuffer, r as cloneArrayBufferView, t as RequestGlobalsEventTarget, u as isBlobLike } from "./shared-
|
|
1
|
+
import { _ as resolveUrlConstructor$1, g as resolveTextEncoderConstructor, l as isArrayBufferLike, n as cloneArrayBuffer, r as cloneArrayBufferView, t as RequestGlobalsEventTarget, u as isBlobLike } from "./shared-BwG-RbCg.mjs";
|
|
2
2
|
import { URLPolyfill } from "./url.mjs";
|
|
3
|
-
import { r as BlobPolyfill } from "./web-
|
|
3
|
+
import { r as BlobPolyfill } from "./web-BcrJWfwR.mjs";
|
|
4
4
|
import { resolveWebSocketMiniProgramOptions } from "./networkDefaults.mjs";
|
|
5
5
|
import { wpi } from "@wevu/api";
|
|
6
6
|
//#region src/websocket.ts
|
package/dist/xhr.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as resolveRequestGlobalsHost, t as RequestGlobalsEventTarget } from "./shared-
|
|
1
|
+
import { f as resolveRequestGlobalsHost, t as RequestGlobalsEventTarget } from "./shared-BwG-RbCg.mjs";
|
|
2
2
|
import { AbortControllerPolyfill } from "./abort.mjs";
|
|
3
|
-
import { o as HeadersPolyfill, s as headersToObject } from "./http-
|
|
3
|
+
import { o as HeadersPolyfill, s as headersToObject } from "./http-kp0q332i.mjs";
|
|
4
4
|
import { fetch } from "./fetch.mjs";
|
|
5
5
|
//#region src/xhr.ts
|
|
6
6
|
function createProgressEvent(type) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wevu/web-apis",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.2",
|
|
5
5
|
"description": "Web API polyfills and global installers for mini-program runtimes",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"node": "^20.19.0 || >=22.12.0"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@weapp-core/constants": "0.2.
|
|
83
|
-
"@wevu/api": "0.3.
|
|
82
|
+
"@weapp-core/constants": "0.2.6",
|
|
83
|
+
"@wevu/api": "0.3.5"
|
|
84
84
|
},
|
|
85
85
|
"publishConfig": {
|
|
86
86
|
"access": "public",
|