@wvb/remote-local 0.0.0-next.a1bf387 → 0.0.0-next.f941058
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/CHANGELOG.md +4 -3
- package/dist/api/index.cjs +2 -1
- package/dist/api/index.d.cts +6 -1
- package/dist/api/index.d.mts +6 -1
- package/dist/api/index.mjs +2 -2
- package/dist/{api-CGbxQBqw.cjs → api-BAHtiZKk.cjs} +10 -0
- package/dist/{api-BkFIwVQt.mjs → api-CHVFBPei.mjs} +5 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## local v0.0.0-next.
|
|
3
|
+
## local v0.0.0-next.f941058
|
|
4
4
|
|
|
5
|
-
This release includes packages: [`@wvb/remote-local`](https://www.npmjs.com/package/@wvb/remote-local/v/0.0.0-next.
|
|
5
|
+
This release includes packages: [`@wvb/remote-local`](https://www.npmjs.com/package/@wvb/remote-local/v/0.0.0-next.f941058)
|
|
6
6
|
|
|
7
|
+
- fix(remote-local): add missing `content-length` header (#162) (0c184ac)
|
|
7
8
|
- feat(ffi): add ffi package for Android/iOS bindings (#139) (c41b723)
|
|
8
9
|
- feat: redesgin cli commands, add local remote provider, oxc -> biome (#132) (af26b39)
|
|
9
|
-
- update dependencies: @wvb/config@0.1.0-next.
|
|
10
|
+
- update dependencies: @wvb/config@0.1.0-next.f941058
|
package/dist/api/index.cjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_api = require("../api-
|
|
2
|
+
const require_api = require("../api-BAHtiZKk.cjs");
|
|
3
3
|
exports.BundleMetadataFileSchema = require_api.BundleMetadataFileSchema;
|
|
4
4
|
exports.DeploymentFileSchema = require_api.DeploymentFileSchema;
|
|
5
|
+
exports.getBundleFileSize = require_api.getBundleFileSize;
|
|
5
6
|
exports.readAllDeployments = require_api.readAllDeployments;
|
|
6
7
|
exports.readBundleMetadata = require_api.readBundleMetadata;
|
|
7
8
|
exports.readBundleStream = require_api.readBundleStream;
|
package/dist/api/index.d.cts
CHANGED
|
@@ -13,6 +13,11 @@ declare function readBundleStream({
|
|
|
13
13
|
bundle,
|
|
14
14
|
version
|
|
15
15
|
}: ReadBundleStreamParams): ReadStream;
|
|
16
|
+
declare function getBundleFileSize({
|
|
17
|
+
baseDir,
|
|
18
|
+
bundle,
|
|
19
|
+
version
|
|
20
|
+
}: ReadBundleStreamParams): Promise<number>;
|
|
16
21
|
interface WriteBundleParams {
|
|
17
22
|
baseDir: string;
|
|
18
23
|
bundle: string;
|
|
@@ -87,4 +92,4 @@ declare function writeDeployment({
|
|
|
87
92
|
channel
|
|
88
93
|
}: WriteDeploymentParams): Promise<void>;
|
|
89
94
|
//#endregion
|
|
90
|
-
export { type BundleMetadataFile, BundleMetadataFileSchema, type DeploymentFile, DeploymentFileSchema, readAllDeployments, readBundleMetadata, readBundleStream, readDeployment, writeBundle, writeBundleMetadata, writeDeployment };
|
|
95
|
+
export { type BundleMetadataFile, BundleMetadataFileSchema, type DeploymentFile, DeploymentFileSchema, getBundleFileSize, readAllDeployments, readBundleMetadata, readBundleStream, readDeployment, writeBundle, writeBundleMetadata, writeDeployment };
|
package/dist/api/index.d.mts
CHANGED
|
@@ -13,6 +13,11 @@ declare function readBundleStream({
|
|
|
13
13
|
bundle,
|
|
14
14
|
version
|
|
15
15
|
}: ReadBundleStreamParams): ReadStream;
|
|
16
|
+
declare function getBundleFileSize({
|
|
17
|
+
baseDir,
|
|
18
|
+
bundle,
|
|
19
|
+
version
|
|
20
|
+
}: ReadBundleStreamParams): Promise<number>;
|
|
16
21
|
interface WriteBundleParams {
|
|
17
22
|
baseDir: string;
|
|
18
23
|
bundle: string;
|
|
@@ -87,4 +92,4 @@ declare function writeDeployment({
|
|
|
87
92
|
channel
|
|
88
93
|
}: WriteDeploymentParams): Promise<void>;
|
|
89
94
|
//#endregion
|
|
90
|
-
export { type BundleMetadataFile, BundleMetadataFileSchema, type DeploymentFile, DeploymentFileSchema, readAllDeployments, readBundleMetadata, readBundleStream, readDeployment, writeBundle, writeBundleMetadata, writeDeployment };
|
|
95
|
+
export { type BundleMetadataFile, BundleMetadataFileSchema, type DeploymentFile, DeploymentFileSchema, getBundleFileSize, readAllDeployments, readBundleMetadata, readBundleStream, readDeployment, writeBundle, writeBundleMetadata, writeDeployment };
|
package/dist/api/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as BundleMetadataFileSchema, c as
|
|
2
|
-
export { BundleMetadataFileSchema, DeploymentFileSchema, readAllDeployments, readBundleMetadata, readBundleStream, readDeployment, writeBundle, writeBundleMetadata, writeDeployment };
|
|
1
|
+
import { a as BundleMetadataFileSchema, c as readBundleStream, i as writeDeployment, l as writeBundle, n as readAllDeployments, o as getBundleFileSize, r as readDeployment, s as readBundleMetadata, t as DeploymentFileSchema, u as writeBundleMetadata } from "../api-CHVFBPei.mjs";
|
|
2
|
+
export { BundleMetadataFileSchema, DeploymentFileSchema, getBundleFileSize, readAllDeployments, readBundleMetadata, readBundleStream, readDeployment, writeBundle, writeBundleMetadata, writeDeployment };
|
|
@@ -36,6 +36,10 @@ function normalizeBundleName(file) {
|
|
|
36
36
|
function readBundleStream({ baseDir, bundle, version }) {
|
|
37
37
|
return (0, node_fs.createReadStream)(getBundleFilePath(baseDir, bundle, version));
|
|
38
38
|
}
|
|
39
|
+
async function getBundleFileSize({ baseDir, bundle, version }) {
|
|
40
|
+
const filePath = getBundleFilePath(baseDir, bundle, version);
|
|
41
|
+
return (await node_fs_promises.default.stat(filePath)).size;
|
|
42
|
+
}
|
|
39
43
|
async function writeBundle({ baseDir, bundle, version, data }) {
|
|
40
44
|
const filePath = getBundleFilePath(baseDir, bundle, version);
|
|
41
45
|
await node_fs_promises.default.mkdir(node_path.default.dirname(filePath), { recursive: true });
|
|
@@ -136,6 +140,12 @@ Object.defineProperty(exports, "__toESM", {
|
|
|
136
140
|
return __toESM;
|
|
137
141
|
}
|
|
138
142
|
});
|
|
143
|
+
Object.defineProperty(exports, "getBundleFileSize", {
|
|
144
|
+
enumerable: true,
|
|
145
|
+
get: function() {
|
|
146
|
+
return getBundleFileSize;
|
|
147
|
+
}
|
|
148
|
+
});
|
|
139
149
|
Object.defineProperty(exports, "readAllDeployments", {
|
|
140
150
|
enumerable: true,
|
|
141
151
|
get: function() {
|
|
@@ -12,6 +12,10 @@ function normalizeBundleName(file) {
|
|
|
12
12
|
function readBundleStream({ baseDir, bundle, version }) {
|
|
13
13
|
return createReadStream(getBundleFilePath(baseDir, bundle, version));
|
|
14
14
|
}
|
|
15
|
+
async function getBundleFileSize({ baseDir, bundle, version }) {
|
|
16
|
+
const filePath = getBundleFilePath(baseDir, bundle, version);
|
|
17
|
+
return (await fs.stat(filePath)).size;
|
|
18
|
+
}
|
|
15
19
|
async function writeBundle({ baseDir, bundle, version, data }) {
|
|
16
20
|
const filePath = getBundleFilePath(baseDir, bundle, version);
|
|
17
21
|
await fs.mkdir(path.dirname(filePath), { recursive: true });
|
|
@@ -94,4 +98,4 @@ function getDeploymentFilePath(baseDir, bundle) {
|
|
|
94
98
|
return path.join(baseDir, "bundles", `${normalizeBundleName(bundle)}`, "deployment.json");
|
|
95
99
|
}
|
|
96
100
|
//#endregion
|
|
97
|
-
export { BundleMetadataFileSchema as a,
|
|
101
|
+
export { BundleMetadataFileSchema as a, readBundleStream as c, writeDeployment as i, writeBundle as l, readAllDeployments as n, getBundleFileSize as o, readDeployment as r, readBundleMetadata as s, DeploymentFileSchema as t, writeBundleMetadata as u };
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_api = require("./api-
|
|
2
|
+
const require_api = require("./api-BAHtiZKk.cjs");
|
|
3
3
|
let node_os = require("node:os");
|
|
4
4
|
node_os = require_api.__toESM(node_os, 1);
|
|
5
5
|
let node_path = require("node:path");
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as writeDeployment, l as writeBundle, u as writeBundleMetadata } from "./api-CHVFBPei.mjs";
|
|
2
2
|
import * as os from "node:os";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
//#region src/deployer.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wvb/remote-local",
|
|
3
|
-
"version": "0.0.0-next.
|
|
3
|
+
"version": "0.0.0-next.f941058",
|
|
4
4
|
"description": "Webview Bundle remote config for local simulation",
|
|
5
5
|
"homepage": "https://github.com/webview-bundle/webview-bundle",
|
|
6
6
|
"bugs": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"typecheck": "tsc --noEmit"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@wvb/config": "^0.1.0-next.
|
|
45
|
+
"@wvb/config": "^0.1.0-next.f941058",
|
|
46
46
|
"tinyglobby": "^0.2.14",
|
|
47
47
|
"zod": "^4.0.5"
|
|
48
48
|
},
|