@wevu/web-apis 1.2.32 → 1.2.34

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 CHANGED
@@ -1,4 +1,4 @@
1
- import { t as RequestGlobalsEventTarget } from "./shared-L1rGUbe0.mjs";
1
+ import { t as RequestGlobalsEventTarget } from "./shared-Boj9gvKq.mjs";
2
2
  //#region src/abort.ts
3
3
  function createAbortError(reason) {
4
4
  if (reason instanceof Error) return reason;
@@ -1,4 +1,4 @@
1
- import { d as normalizeHeaderName, h as isUrlSearchParamsInstance, l as isArrayBufferLike, m as isUrlInstance, n as cloneArrayBuffer, o as encodeText, r as cloneArrayBufferView, u as isBlobLike } from "./shared-L1rGUbe0.mjs";
1
+ import { d as normalizeHeaderName, h as isUrlSearchParamsInstance, l as isArrayBufferLike, m as isUrlInstance, n as cloneArrayBuffer, o as encodeText, r as cloneArrayBufferView, u as isBlobLike } from "./shared-Boj9gvKq.mjs";
2
2
  import { FormDataPolyfill } from "./web.mjs";
3
3
  import { HeadersPolyfill, RequestPolyfill, ResponsePolyfill, getRequestBodyValue } from "./http.mjs";
4
4
  import { resolveRequestMiniProgramOptions } from "./networkDefaults.mjs";
package/dist/fetch.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  import "./http.mjs";
2
- import { t as fetch } from "./fetch-D1YS7Mx-.mjs";
2
+ import { t as fetch } from "./fetch-CeiB6wK4.mjs";
3
3
  export { fetch };
package/dist/http.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { d as normalizeHeaderName, i as decodeText, l as isArrayBufferLike, m as isUrlInstance, n as cloneArrayBuffer, o as encodeText, r as cloneArrayBufferView, u as isBlobLike } from "./shared-L1rGUbe0.mjs";
1
+ import { d as normalizeHeaderName, i as decodeText, l as isArrayBufferLike, m as isUrlInstance, n as cloneArrayBuffer, o as encodeText, r as cloneArrayBufferView, u as isBlobLike } from "./shared-Boj9gvKq.mjs";
2
2
  import { FormDataPolyfill } from "./web.mjs";
3
3
  //#region src/http.ts
4
4
  const SET_COOKIE_HEADER_NAME = "set-cookie";
package/dist/index.mjs CHANGED
@@ -1,9 +1,9 @@
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-L1rGUbe0.mjs";
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-Boj9gvKq.mjs";
2
2
  import { URLPolyfill, URLSearchParamsPolyfill } from "./url.mjs";
3
3
  import { AbortControllerPolyfill, AbortSignalPolyfill } from "./abort.mjs";
4
4
  import { BlobPolyfill, FilePolyfill, FormDataPolyfill } from "./web.mjs";
5
5
  import { HeadersPolyfill, RequestPolyfill, ResponsePolyfill } from "./http.mjs";
6
- import { t as fetch } from "./fetch-D1YS7Mx-.mjs";
6
+ import { t as fetch } from "./fetch-CeiB6wK4.mjs";
7
7
  import { getMiniProgramNetworkDefaults, resetMiniProgramNetworkDefaults, setMiniProgramNetworkDefaults } from "./networkDefaults.mjs";
8
8
  import { WebSocketPolyfill } from "./websocket.mjs";
9
9
  import { XMLHttpRequestPolyfill } from "./xhr.mjs";
@@ -1,5 +1,5 @@
1
1
  import { URLPolyfill, URLSearchParamsPolyfill } from "./url.mjs";
2
- //#region ../../@weapp-core/shared/dist/platforms-CoAy6Y88.js
2
+ //#region ../../@weapp-core/shared/dist/platforms-anvkpsCw.js
3
3
  const DEFAULT_PROJECT_CONFIG_ROOT_KEYS = ["miniprogramRoot", "srcMiniprogramRoot"];
4
4
  const DEFAULT_RUNTIME_CAPABILITIES = Object.freeze({
5
5
  globalPageStack: true,
@@ -201,8 +201,14 @@ const MINI_PROGRAM_PLATFORM_DESCRIPTORS = [
201
201
  ide: {},
202
202
  build: { autoTouchAppStyle: false },
203
203
  resolvePreservedNpmDirNames: () => ["miniprogram_npm"],
204
- json: {},
205
- npm: { distDirName: () => "miniprogram_npm" },
204
+ json: {
205
+ normalizeUsingComponents: true,
206
+ rewriteBundleNpmImports: true
207
+ },
208
+ npm: {
209
+ distDirName: () => "miniprogram_npm",
210
+ normalizeImportPath: true
211
+ },
206
212
  wxml: {
207
213
  eventBindingStyle: "default",
208
214
  directivePrefix: "tt"
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-L1rGUbe0.mjs";
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-Boj9gvKq.mjs";
2
2
  export { RequestGlobalsEventTarget, cloneArrayBuffer, cloneArrayBufferView, decodeText, decodeTextFallback, encodeText, encodeTextFallback, installRequestGlobalBinding, isArrayBufferLike, isBlobLike, normalizeHeaderName, resolveRequestGlobalsHost, resolveRequestGlobalsHosts };
package/dist/web.mjs CHANGED
@@ -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-L1rGUbe0.mjs";
1
+ import { i as decodeText, l as isArrayBufferLike, n as cloneArrayBuffer, o as encodeText, r as cloneArrayBufferView, u as isBlobLike } from "./shared-Boj9gvKq.mjs";
2
2
  //#region src/web.ts
3
3
  function normalizeBlobPart(part) {
4
4
  if (typeof part === "string") return Promise.resolve(encodeText(part));
@@ -1,4 +1,4 @@
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-L1rGUbe0.mjs";
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-Boj9gvKq.mjs";
2
2
  import { URLPolyfill } from "./url.mjs";
3
3
  import { BlobPolyfill } from "./web.mjs";
4
4
  import { resolveWebSocketMiniProgramOptions } from "./networkDefaults.mjs";
package/dist/xhr.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import { f as resolveRequestGlobalsHost, t as RequestGlobalsEventTarget } from "./shared-L1rGUbe0.mjs";
1
+ import { f as resolveRequestGlobalsHost, t as RequestGlobalsEventTarget } from "./shared-Boj9gvKq.mjs";
2
2
  import { AbortControllerPolyfill } from "./abort.mjs";
3
3
  import { HeadersPolyfill, headersToObject } from "./http.mjs";
4
- import { t as fetch } from "./fetch-D1YS7Mx-.mjs";
4
+ import { t as fetch } from "./fetch-CeiB6wK4.mjs";
5
5
  //#region src/xhr.ts
6
6
  function createProgressEvent(type) {
7
7
  return {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wevu/web-apis",
3
3
  "type": "module",
4
- "version": "1.2.32",
4
+ "version": "1.2.34",
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",
@@ -74,8 +74,8 @@
74
74
  "node": "^20.19.0 || >=22.12.0"
75
75
  },
76
76
  "dependencies": {
77
- "@weapp-core/constants": "0.1.16",
78
- "@wevu/api": "0.2.15"
77
+ "@weapp-core/constants": "0.1.17",
78
+ "@wevu/api": "0.2.16"
79
79
  },
80
80
  "publishConfig": {
81
81
  "access": "public",