@hot-updater/azure 1.1.4 → 1.1.6
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/functions/index.mjs +2 -3
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +6 -6
package/dist/functions/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
2
|
import { EventEmitter } from "events";
|
|
3
|
+
import Stream, { Duplex, Readable, Transform } from "node:stream";
|
|
3
4
|
import { createCipheriv, createDecipheriv, createHash, createHmac, randomBytes } from "node:crypto";
|
|
4
5
|
import process$1 from "node:process";
|
|
5
6
|
import os, { EOL } from "node:os";
|
|
@@ -7,7 +8,6 @@ import util, { inspect } from "node:util";
|
|
|
7
8
|
import http from "node:http";
|
|
8
9
|
import https from "node:https";
|
|
9
10
|
import zlib from "node:zlib";
|
|
10
|
-
import Stream, { Duplex, Readable, Transform } from "node:stream";
|
|
11
11
|
import { Readable as Readable$1 } from "stream";
|
|
12
12
|
import buffer from "node:buffer";
|
|
13
13
|
import { Buffer as Buffer$1 } from "buffer";
|
|
@@ -7998,7 +7998,7 @@ const createKvAdapter = ({ store, tablePrefix = "" }) => {
|
|
|
7998
7998
|
};
|
|
7999
7999
|
//#endregion
|
|
8000
8000
|
//#region ../../packages/server/dist/version.mjs
|
|
8001
|
-
const HOT_UPDATER_SERVER_VERSION = "1.1.
|
|
8001
|
+
const HOT_UPDATER_SERVER_VERSION = "1.1.6";
|
|
8002
8002
|
//#endregion
|
|
8003
8003
|
//#region ../../packages/server/dist/handlerVersionRoutes.mjs
|
|
8004
8004
|
const createVersionRouteHandlers = (plugins = []) => {
|
|
@@ -57089,7 +57089,6 @@ function azureBlobStorage(config) {
|
|
|
57089
57089
|
const headers = new Headers();
|
|
57090
57090
|
if (download.contentType) headers.set("content-type", download.contentType);
|
|
57091
57091
|
if (download.contentLength !== void 0) headers.set("content-length", String(download.contentLength));
|
|
57092
|
-
const { Readable } = await import("node:stream");
|
|
57093
57092
|
return { response: new Response(Readable.toWeb(body), { headers }) };
|
|
57094
57093
|
} catch (error) {
|
|
57095
57094
|
if (isNotFound(error)) return { response: null };
|
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let node_stream = require("node:stream");
|
|
2
3
|
let _azure_core_auth = require("@azure/core-auth");
|
|
3
4
|
let _azure_storage_blob = require("@azure/storage-blob");
|
|
4
5
|
let _hot_updater_plugin_core = require("@hot-updater/plugin-core");
|
|
@@ -129,8 +130,7 @@ function azureBlobStorage(config) {
|
|
|
129
130
|
const headers = new Headers();
|
|
130
131
|
if (download.contentType) headers.set("content-type", download.contentType);
|
|
131
132
|
if (download.contentLength !== void 0) headers.set("content-length", String(download.contentLength));
|
|
132
|
-
|
|
133
|
-
return { response: new Response(Readable.toWeb(body), { headers }) };
|
|
133
|
+
return { response: new Response(node_stream.Readable.toWeb(body), { headers }) };
|
|
134
134
|
} catch (error) {
|
|
135
135
|
if (isNotFound(error)) return { response: null };
|
|
136
136
|
throw error;
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Readable } from "node:stream";
|
|
1
2
|
import { isTokenCredential } from "@azure/core-auth";
|
|
2
3
|
import { BlobSASPermissions, BlobServiceClient, RestError, StorageSharedKeyCredential, generateBlobSASQueryParameters } from "@azure/storage-blob";
|
|
3
4
|
import { SETTINGS_TABLE, createEngineDatabase, createKvAdapter, createStorageAdapter, createStorageKeyBuilder, createStorageUri, encodeKvKey, migrateCoreSchema, parseStorageUri, toolingTargetOf } from "@hot-updater/plugin-core";
|
|
@@ -128,7 +129,6 @@ function azureBlobStorage(config) {
|
|
|
128
129
|
const headers = new Headers();
|
|
129
130
|
if (download.contentType) headers.set("content-type", download.contentType);
|
|
130
131
|
if (download.contentLength !== void 0) headers.set("content-length", String(download.contentLength));
|
|
131
|
-
const { Readable } = await import("node:stream");
|
|
132
132
|
return { response: new Response(Readable.toWeb(body), { headers }) };
|
|
133
133
|
} catch (error) {
|
|
134
134
|
if (isNotFound(error)) return { response: null };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/azure",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.6",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": "^22.23.4 || ^24.22.1 || >=26.12.1"
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"@azure/core-auth": "1.11.0",
|
|
43
43
|
"@azure/cosmos": "4.10.1",
|
|
44
44
|
"@azure/storage-blob": "12.34.0",
|
|
45
|
-
"@hot-updater/
|
|
46
|
-
"@hot-updater/
|
|
47
|
-
"@hot-updater/
|
|
48
|
-
"@hot-updater/
|
|
45
|
+
"@hot-updater/cli-tools": "1.1.6",
|
|
46
|
+
"@hot-updater/plugin-core": "1.1.6",
|
|
47
|
+
"@hot-updater/protocol": "1.1.6",
|
|
48
|
+
"@hot-updater/server": "1.1.6"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@azure/functions": "4.16.5",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"execa": "9.5.2",
|
|
54
54
|
"jszip": "^3.10.1",
|
|
55
55
|
"vitest": "4.1.4",
|
|
56
|
-
"@hot-updater/test-utils": "1.1.
|
|
56
|
+
"@hot-updater/test-utils": "1.1.6"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "tsdown",
|