@wevu/web-apis 1.3.2 → 1.3.4

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-BwG-RbCg.mjs";
1
+ import { t as RequestGlobalsEventTarget } from "./shared-85INNxXV.mjs";
2
2
  //#region src/abort.ts
3
3
  function createAbortError(reason) {
4
4
  if (reason instanceof Error) return reason;
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-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";
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-85INNxXV.mjs";
2
+ import { a as encodeMultipartFormData, i as consumeBodyValue, n as RequestPolyfill, o as HeadersPolyfill, t as ResponsePolyfill } from "./http-mcdF3N9S.mjs";
3
+ import { t as FormDataPolyfill } from "./web-uZ-hezcd.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-BwG-RbCg.mjs";
2
- import { r as BlobPolyfill, t as FormDataPolyfill } from "./web-BcrJWfwR.mjs";
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-85INNxXV.mjs";
2
+ import { r as BlobPolyfill, t as FormDataPolyfill } from "./web-uZ-hezcd.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-kp0q332i.mjs";
1
+ import { n as RequestPolyfill, o as HeadersPolyfill, r as getRequestBodyValue, s as headersToObject, t as ResponsePolyfill } from "./http-mcdF3N9S.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-BwG-RbCg.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-85INNxXV.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-kp0q332i.mjs";
5
- import { n as FilePolyfill, r as BlobPolyfill, t as FormDataPolyfill } from "./web-BcrJWfwR.mjs";
4
+ import { n as RequestPolyfill, o as HeadersPolyfill, t as ResponsePolyfill } from "./http-mcdF3N9S.mjs";
5
+ import { n as FilePolyfill, r as BlobPolyfill, t as FormDataPolyfill } from "./web-uZ-hezcd.mjs";
6
6
  import { getMiniProgramNetworkDefaults, resetMiniProgramNetworkDefaults, setMiniProgramNetworkDefaults } from "./networkDefaults.mjs";
7
7
  import { fetch } from "./fetch.mjs";
8
8
  import { WebSocketPolyfill } from "./websocket.mjs";
@@ -1,6 +1,6 @@
1
1
  import { URLPolyfill, URLSearchParamsPolyfill } from "./url.mjs";
2
- //#region ../../@weapp-core/shared/dist/platforms-DeV7WlYI.js
3
- const DEFAULT_PROJECT_CONFIG_ROOT_KEYS = ["miniprogramRoot", "srcMiniprogramRoot"];
2
+ //#region ../../@weapp-core/shared/dist/platforms/runtime/descriptors.js
3
+ const DEFAULT_RUNTIME_HOST_CONFIG_KEY = "__wxConfig";
4
4
  const DEFAULT_RUNTIME_CAPABILITIES = Object.freeze({
5
5
  globalPageStack: true,
6
6
  globalCreateSelectorQuery: true,
@@ -22,46 +22,18 @@ const DEFAULT_PAGE_IDENTITY_RULES = [{
22
22
  prefix: "route",
23
23
  source: "route"
24
24
  }];
25
- /**
26
- * @description 全仓库统一的小程序平台描述表。
27
- */
28
- const MINI_PROGRAM_PLATFORM_DESCRIPTORS = [
25
+ const MINI_PROGRAM_RUNTIME_DESCRIPTORS = [
29
26
  {
30
27
  id: "weapp",
31
- displayName: "WeChat Mini Program",
32
- family: "wechat",
33
28
  aliases: [
34
29
  "weapp",
35
30
  "wechat",
36
31
  "weixin",
37
32
  "wx"
38
33
  ],
39
- outputExtensions: {
40
- js: "js",
41
- json: "json",
42
- wxml: "wxml",
43
- wxss: "wxss",
44
- wxs: "wxs"
45
- },
46
- projectConfigFileName: "project.config.json",
47
- projectConfigRootKeys: DEFAULT_PROJECT_CONFIG_ROOT_KEYS,
48
- ide: {},
49
- build: {
50
- autoTouchAppStyle: true,
51
- defaultBuildTarget: "es2020"
52
- },
53
- resolvePreservedNpmDirNames: () => ["miniprogram_npm"],
54
- json: {},
55
- npm: { distDirName: () => "miniprogram_npm" },
56
- wxml: {
57
- eventBindingStyle: "default",
58
- directivePrefix: "wx"
59
- },
60
- compiler: { templatePreset: "wechat" },
61
- typescript: { appTypesPackage: "miniprogram-api-typings" },
62
34
  runtime: {
63
35
  globalObjectKey: "wx",
64
- hostConfigKey: "__wxConfig",
36
+ hostConfigKey: DEFAULT_RUNTIME_HOST_CONFIG_KEY,
65
37
  globalResolvePriority: 1,
66
38
  routeGlobalResolvePriority: 0,
67
39
  capabilities: DEFAULT_RUNTIME_CAPABILITIES,
@@ -82,58 +54,14 @@ const MINI_PROGRAM_PLATFORM_DESCRIPTORS = [
82
54
  },
83
55
  {
84
56
  id: "alipay",
85
- displayName: "Alipay Mini Program",
86
- family: "alipay",
87
57
  aliases: [
88
58
  "alipay",
89
59
  "ali",
90
60
  "my"
91
61
  ],
92
- outputExtensions: {
93
- js: "js",
94
- json: "json",
95
- wxml: "axml",
96
- wxss: "acss",
97
- wxs: "sjs"
98
- },
99
- projectConfigFileName: "mini.project.json",
100
- projectConfigRootKeys: DEFAULT_PROJECT_CONFIG_ROOT_KEYS,
101
- scriptModuleTagByExtension: { sjs: "import-sjs" },
102
- usesProjectRootNpmDir: true,
103
- ide: {
104
- requiresOpenPlatformArg: true,
105
- defaultProjectRoot: "dist/alipay/dist"
106
- },
107
- build: {
108
- autoTouchAppStyle: false,
109
- defaultBuildTarget: "es2015"
110
- },
111
- resolvePreservedNpmDirNames: (options) => [options?.alipayNpmMode === "miniprogram_npm" ? "miniprogram_npm" : "node_modules"],
112
- json: {
113
- normalizeUsingComponents: true,
114
- fillComponentGenericsDefault: true,
115
- rewriteBundleNpmImports: true
116
- },
117
- npm: {
118
- distDirName: (options) => options?.alipayNpmMode === "miniprogram_npm" ? "miniprogram_npm" : "node_modules",
119
- normalizeImportPath: true,
120
- normalizeMiniprogramPackage: true,
121
- copyEsModuleDirectory: true,
122
- hoistNestedDependencies: true,
123
- shouldRebuildCachedPackage: true
124
- },
125
- wxml: {
126
- eventBindingStyle: "alipay",
127
- directivePrefix: "a",
128
- normalizeComponentTagName: true,
129
- normalizeVueTemplate: true,
130
- emitGenericPlaceholder: true
131
- },
132
- compiler: { templatePreset: "alipay" },
133
- typescript: { appTypesPackage: "@mini-types/alipay" },
134
62
  runtime: {
135
63
  globalObjectKey: "my",
136
- hostConfigKey: "__wxConfig",
64
+ hostConfigKey: DEFAULT_RUNTIME_HOST_CONFIG_KEY,
137
65
  globalResolvePriority: 0,
138
66
  routeGlobalResolvePriority: 2,
139
67
  capabilities: {
@@ -146,79 +74,29 @@ const MINI_PROGRAM_PLATFORM_DESCRIPTORS = [
146
74
  },
147
75
  {
148
76
  id: "swan",
149
- displayName: "Baidu Smart Program",
150
- family: "swan",
151
77
  aliases: [
152
78
  "swan",
153
79
  "baidu",
154
80
  "bd"
155
81
  ],
156
- outputExtensions: {
157
- js: "js",
158
- json: "json",
159
- wxml: "swan",
160
- wxss: "css",
161
- wxs: "sjs"
162
- },
163
- projectConfigFileName: "project.swan.json",
164
- projectConfigRootKeys: ["smartProgramRoot", ...DEFAULT_PROJECT_CONFIG_ROOT_KEYS],
165
- ide: {},
166
- build: { autoTouchAppStyle: false },
167
- resolvePreservedNpmDirNames: () => ["miniprogram_npm"],
168
- json: {},
169
- npm: { distDirName: () => "miniprogram_npm" },
170
- wxml: {
171
- eventBindingStyle: "default",
172
- directivePrefix: "s"
173
- },
174
- compiler: { templatePreset: "swan" },
175
- typescript: { appTypesPackage: "miniprogram-api-typings" },
176
82
  runtime: {
177
83
  globalObjectKey: "swan",
178
- hostConfigKey: "__wxConfig",
84
+ hostConfigKey: DEFAULT_RUNTIME_HOST_CONFIG_KEY,
179
85
  capabilities: DEFAULT_RUNTIME_CAPABILITIES,
180
86
  pageIdentityRules: DEFAULT_PAGE_IDENTITY_RULES
181
87
  }
182
88
  },
183
89
  {
184
90
  id: "tt",
185
- displayName: "ByteDance / Douyin Mini Program",
186
- family: "tt",
187
91
  aliases: [
188
92
  "tt",
189
93
  "toutiao",
190
94
  "bytedance",
191
95
  "douyin"
192
96
  ],
193
- outputExtensions: {
194
- js: "js",
195
- json: "json",
196
- wxml: "ttml",
197
- wxss: "ttss"
198
- },
199
- projectConfigFileName: "project.config.json",
200
- projectConfigRootKeys: DEFAULT_PROJECT_CONFIG_ROOT_KEYS,
201
- ide: {},
202
- build: { autoTouchAppStyle: false },
203
- resolvePreservedNpmDirNames: () => ["miniprogram_npm"],
204
- json: {
205
- normalizeUsingComponents: true,
206
- rewriteBundleNpmImports: true
207
- },
208
- npm: {
209
- distDirName: () => "miniprogram_npm",
210
- normalizeImportPath: true
211
- },
212
- wxml: {
213
- eventBindingStyle: "default",
214
- directivePrefix: "tt",
215
- normalizeComponentTagName: true
216
- },
217
- compiler: { templatePreset: "tt" },
218
- typescript: { appTypesPackage: "@douyin-microapp/typings" },
219
97
  runtime: {
220
98
  globalObjectKey: "tt",
221
- hostConfigKey: "__wxConfig",
99
+ hostConfigKey: DEFAULT_RUNTIME_HOST_CONFIG_KEY,
222
100
  globalResolvePriority: 2,
223
101
  routeGlobalResolvePriority: 1,
224
102
  capabilities: {
@@ -230,74 +108,32 @@ const MINI_PROGRAM_PLATFORM_DESCRIPTORS = [
230
108
  },
231
109
  {
232
110
  id: "jd",
233
- displayName: "JD Mini Program",
234
- family: "wechat",
235
111
  aliases: ["jd", "jingdong"],
236
- outputExtensions: {
237
- js: "js",
238
- json: "json",
239
- wxml: "jxml",
240
- wxss: "jxss",
241
- wxs: "wxs"
242
- },
243
- projectConfigFileName: "project.config.json",
244
- projectConfigRootKeys: DEFAULT_PROJECT_CONFIG_ROOT_KEYS,
245
- ide: {},
246
- build: { autoTouchAppStyle: false },
247
- resolvePreservedNpmDirNames: () => ["miniprogram_npm"],
248
- json: {},
249
- npm: { distDirName: () => "miniprogram_npm" },
250
- wxml: {
251
- eventBindingStyle: "default",
252
- directivePrefix: "wx"
253
- },
254
- compiler: { templatePreset: "wechat" },
255
- typescript: { appTypesPackage: "miniprogram-api-typings" },
256
112
  runtime: {
257
113
  globalObjectKey: "jd",
258
- hostConfigKey: "__wxConfig",
114
+ hostConfigKey: DEFAULT_RUNTIME_HOST_CONFIG_KEY,
259
115
  capabilities: DEFAULT_RUNTIME_CAPABILITIES,
260
116
  pageIdentityRules: DEFAULT_PAGE_IDENTITY_RULES
261
117
  }
262
118
  },
263
119
  {
264
120
  id: "xhs",
265
- displayName: "Xiaohongshu Mini Program",
266
- family: "wechat",
267
121
  aliases: [
268
122
  "xhs",
269
123
  "xiaohongshu",
270
124
  "little-red-book",
271
125
  "red"
272
126
  ],
273
- outputExtensions: {
274
- js: "js",
275
- json: "json",
276
- wxml: "xhsml",
277
- wxss: "css",
278
- wxs: "wxs"
279
- },
280
- projectConfigFileName: "project.config.json",
281
- projectConfigRootKeys: DEFAULT_PROJECT_CONFIG_ROOT_KEYS,
282
- ide: {},
283
- build: { autoTouchAppStyle: false },
284
- resolvePreservedNpmDirNames: () => ["miniprogram_npm"],
285
- json: {},
286
- npm: { distDirName: () => "miniprogram_npm" },
287
- wxml: {
288
- eventBindingStyle: "default",
289
- directivePrefix: "wx"
290
- },
291
- compiler: { templatePreset: "wechat" },
292
- typescript: { appTypesPackage: "miniprogram-api-typings" },
293
127
  runtime: {
294
128
  globalObjectKey: "xhs",
295
- hostConfigKey: "__wxConfig",
129
+ hostConfigKey: DEFAULT_RUNTIME_HOST_CONFIG_KEY,
296
130
  capabilities: DEFAULT_RUNTIME_CAPABILITIES,
297
131
  pageIdentityRules: DEFAULT_PAGE_IDENTITY_RULES
298
132
  }
299
133
  }
300
134
  ];
135
+ //#endregion
136
+ //#region ../../@weapp-core/shared/dist/platforms/runtime/helpers.js
301
137
  function createMiniProgramPlatformRegistry(descriptors) {
302
138
  const descriptorById = /* @__PURE__ */ new Map();
303
139
  const aliasToId = /* @__PURE__ */ new Map();
@@ -318,17 +154,16 @@ function createMiniProgramPlatformRegistry(descriptors) {
318
154
  runtimeGlobalKeyToId
319
155
  };
320
156
  }
321
- const { aliasToId: MINI_PROGRAM_PLATFORM_ALIAS_TO_ID, descriptorById: MINI_PROGRAM_PLATFORM_DESCRIPTOR_BY_ID, runtimeGlobalKeyToId: MINI_PROGRAM_RUNTIME_GLOBAL_KEY_TO_ID } = createMiniProgramPlatformRegistry(MINI_PROGRAM_PLATFORM_DESCRIPTORS);
322
- Object.freeze(MINI_PROGRAM_PLATFORM_DESCRIPTORS.map((descriptor) => descriptor.id));
323
- Object.freeze(Array.from(new Set(MINI_PROGRAM_PLATFORM_DESCRIPTORS.map((descriptor) => descriptor.wxml?.directivePrefix).filter((prefix) => Boolean(prefix)))));
324
- const ORDERED_RUNTIME_GLOBAL_KEYS = Object.freeze(Array.from(new Set(MINI_PROGRAM_PLATFORM_DESCRIPTORS.map((descriptor) => descriptor.runtime.globalObjectKey))));
157
+ const { aliasToId: MINI_PROGRAM_PLATFORM_ALIAS_TO_ID, descriptorById: MINI_PROGRAM_PLATFORM_DESCRIPTOR_BY_ID, runtimeGlobalKeyToId: MINI_PROGRAM_RUNTIME_GLOBAL_KEY_TO_ID } = createMiniProgramPlatformRegistry(MINI_PROGRAM_RUNTIME_DESCRIPTORS);
158
+ Object.freeze(MINI_PROGRAM_RUNTIME_DESCRIPTORS.map((descriptor) => descriptor.id));
159
+ const ORDERED_RUNTIME_GLOBAL_KEYS = Object.freeze(Array.from(new Set(MINI_PROGRAM_RUNTIME_DESCRIPTORS.map((descriptor) => descriptor.runtime.globalObjectKey))));
325
160
  const MAX_RUNTIME_RESOLVE_PRIORITY = Number.MAX_SAFE_INTEGER;
326
161
  function getOrderedRuntimeGlobalKeysByPriority(priorityKey) {
327
- const ordered = [...MINI_PROGRAM_PLATFORM_DESCRIPTORS].sort((left, right) => {
162
+ const ordered = [...MINI_PROGRAM_RUNTIME_DESCRIPTORS].sort((left, right) => {
328
163
  const leftPriority = left.runtime[priorityKey] ?? MAX_RUNTIME_RESOLVE_PRIORITY;
329
164
  const rightPriority = right.runtime[priorityKey] ?? MAX_RUNTIME_RESOLVE_PRIORITY;
330
165
  if (leftPriority !== rightPriority) return leftPriority - rightPriority;
331
- return MINI_PROGRAM_PLATFORM_DESCRIPTORS.indexOf(left) - MINI_PROGRAM_PLATFORM_DESCRIPTORS.indexOf(right);
166
+ return MINI_PROGRAM_RUNTIME_DESCRIPTORS.indexOf(left) - MINI_PROGRAM_RUNTIME_DESCRIPTORS.indexOf(right);
332
167
  });
333
168
  return Object.freeze(Array.from(new Set(ordered.map((descriptor) => descriptor.runtime.globalObjectKey))));
334
169
  }
@@ -343,7 +178,7 @@ Object.freeze(MINI_PROGRAM_PLATFORM_ALIAS_RECORD);
343
178
  /**
344
179
  * @description 获取平台描述。
345
180
  */
346
- function getMiniProgramPlatformDescriptor(platform) {
181
+ function getMiniProgramRuntimeDescriptor(platform) {
347
182
  const descriptor = MINI_PROGRAM_PLATFORM_DESCRIPTOR_BY_ID.get(platform);
348
183
  if (!descriptor) throw new Error(`不支持的小程序平台 "${platform}"。`);
349
184
  return descriptor;
@@ -352,7 +187,7 @@ function getMiniProgramPlatformDescriptor(platform) {
352
187
  * @description 获取宿主全局对象 key。
353
188
  */
354
189
  function getMiniProgramRuntimeGlobalKey(platform) {
355
- return getMiniProgramPlatformDescriptor(platform).runtime.globalObjectKey;
190
+ return getMiniProgramRuntimeDescriptor(platform).runtime.globalObjectKey;
356
191
  }
357
192
  /**
358
193
  * @description 返回 runtime 全局对象 key 的扫描优先级。
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-BwG-RbCg.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-85INNxXV.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-BwG-RbCg.mjs";
1
+ import { i as decodeText, l as isArrayBufferLike, n as cloneArrayBuffer, o as encodeText, r as cloneArrayBufferView, u as isBlobLike } from "./shared-85INNxXV.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-BcrJWfwR.mjs";
1
+ import { n as FilePolyfill, r as BlobPolyfill, t as FormDataPolyfill } from "./web-uZ-hezcd.mjs";
2
2
  export { BlobPolyfill, FilePolyfill, FormDataPolyfill };
@@ -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-BwG-RbCg.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-85INNxXV.mjs";
2
2
  import { URLPolyfill } from "./url.mjs";
3
- import { r as BlobPolyfill } from "./web-BcrJWfwR.mjs";
3
+ import { r as BlobPolyfill } from "./web-uZ-hezcd.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-BwG-RbCg.mjs";
1
+ import { f as resolveRequestGlobalsHost, t as RequestGlobalsEventTarget } from "./shared-85INNxXV.mjs";
2
2
  import { AbortControllerPolyfill } from "./abort.mjs";
3
- import { o as HeadersPolyfill, s as headersToObject } from "./http-kp0q332i.mjs";
3
+ import { o as HeadersPolyfill, s as headersToObject } from "./http-mcdF3N9S.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.2",
4
+ "version": "1.3.4",
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.6",
83
- "@wevu/api": "0.3.5"
82
+ "@weapp-core/constants": "0.3.0",
83
+ "@wevu/api": "0.3.7"
84
84
  },
85
85
  "publishConfig": {
86
86
  "access": "public",