@wvb/remote-local 0.0.0-next.9a8f99e → 0.0.0-next.a1bf387
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
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## local v0.0.0-next.
|
|
3
|
+
## local v0.0.0-next.a1bf387
|
|
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.a1bf387)
|
|
6
6
|
|
|
7
7
|
- feat(ffi): add ffi package for Android/iOS bindings (#139) (c41b723)
|
|
8
8
|
- feat: redesgin cli commands, add local remote provider, oxc -> biome (#132) (af26b39)
|
|
9
|
-
- update dependencies: @wvb/config@0.1.0-next.
|
|
9
|
+
- update dependencies: @wvb/config@0.1.0-next.a1bf387
|
package/dist/api/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_api = require("../api-CGbxQBqw.cjs");
|
|
3
3
|
exports.BundleMetadataFileSchema = require_api.BundleMetadataFileSchema;
|
|
4
4
|
exports.DeploymentFileSchema = require_api.DeploymentFileSchema;
|
|
5
5
|
exports.readAllDeployments = require_api.readAllDeployments;
|
|
@@ -8,4 +8,4 @@ exports.readBundleStream = require_api.readBundleStream;
|
|
|
8
8
|
exports.readDeployment = require_api.readDeployment;
|
|
9
9
|
exports.writeBundle = require_api.writeBundle;
|
|
10
10
|
exports.writeBundleMetadata = require_api.writeBundleMetadata;
|
|
11
|
-
exports.writeDeployment = require_api.writeDeployment;
|
|
11
|
+
exports.writeDeployment = require_api.writeDeployment;
|
package/dist/api/index.mjs
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { a as BundleMetadataFileSchema, c as writeBundle, i as writeDeployment, l as writeBundleMetadata, n as readAllDeployments, o as readBundleMetadata, r as readDeployment, s as readBundleStream, t as DeploymentFileSchema } from "../api-
|
|
2
|
-
|
|
3
|
-
export { BundleMetadataFileSchema, DeploymentFileSchema, readAllDeployments, readBundleMetadata, readBundleStream, readDeployment, writeBundle, writeBundleMetadata, writeDeployment };
|
|
1
|
+
import { a as BundleMetadataFileSchema, c as writeBundle, i as writeDeployment, l as writeBundleMetadata, n as readAllDeployments, o as readBundleMetadata, r as readDeployment, s as readBundleStream, t as DeploymentFileSchema } from "../api-BkFIwVQt.mjs";
|
|
2
|
+
export { BundleMetadataFileSchema, DeploymentFileSchema, readAllDeployments, readBundleMetadata, readBundleStream, readDeployment, writeBundle, writeBundleMetadata, writeDeployment };
|
|
@@ -3,12 +3,10 @@ import { createReadStream } from "node:fs";
|
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { glob } from "tinyglobby";
|
|
6
|
-
|
|
7
6
|
//#region src/utils.ts
|
|
8
7
|
function normalizeBundleName(file) {
|
|
9
8
|
return file.replace(/([\\/\s])/g, "-").replace(/\.wvb$/, "");
|
|
10
9
|
}
|
|
11
|
-
|
|
12
10
|
//#endregion
|
|
13
11
|
//#region src/api/bundles.ts
|
|
14
12
|
function readBundleStream({ baseDir, bundle, version }) {
|
|
@@ -45,7 +43,6 @@ function getBundleMetadataFilePath(baseDir, bundle, version) {
|
|
|
45
43
|
const bundleName = normalizeBundleName(bundle);
|
|
46
44
|
return path.join(baseDir, "bundles", bundleName, `${bundleName}_${version}.json`);
|
|
47
45
|
}
|
|
48
|
-
|
|
49
46
|
//#endregion
|
|
50
47
|
//#region src/api/deployment.ts
|
|
51
48
|
const DeploymentFileSchema = z.object({
|
|
@@ -96,6 +93,5 @@ async function writeDeployment({ baseDir, bundle, version, channel }) {
|
|
|
96
93
|
function getDeploymentFilePath(baseDir, bundle) {
|
|
97
94
|
return path.join(baseDir, "bundles", `${normalizeBundleName(bundle)}`, "deployment.json");
|
|
98
95
|
}
|
|
99
|
-
|
|
100
96
|
//#endregion
|
|
101
|
-
export { BundleMetadataFileSchema as a, writeBundle as c, writeDeployment as i, writeBundleMetadata as l, readAllDeployments as n, readBundleMetadata as o, readDeployment as r, readBundleStream as s, DeploymentFileSchema as t };
|
|
97
|
+
export { BundleMetadataFileSchema as a, writeBundle as c, writeDeployment as i, writeBundleMetadata as l, readAllDeployments as n, readBundleMetadata as o, readDeployment as r, readBundleStream as s, DeploymentFileSchema as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -6,16 +6,12 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
8
|
var __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
}
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
10
|
+
key = keys[i];
|
|
11
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
12
|
+
get: ((k) => from[k]).bind(null, key),
|
|
13
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
14
|
+
});
|
|
19
15
|
}
|
|
20
16
|
return to;
|
|
21
17
|
};
|
|
@@ -23,21 +19,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
23
19
|
value: mod,
|
|
24
20
|
enumerable: true
|
|
25
21
|
}) : target, mod));
|
|
26
|
-
|
|
27
22
|
//#endregion
|
|
28
23
|
let node_path = require("node:path");
|
|
29
|
-
node_path = __toESM(node_path);
|
|
24
|
+
node_path = __toESM(node_path, 1);
|
|
30
25
|
let node_fs = require("node:fs");
|
|
31
26
|
let node_fs_promises = require("node:fs/promises");
|
|
32
|
-
node_fs_promises = __toESM(node_fs_promises);
|
|
27
|
+
node_fs_promises = __toESM(node_fs_promises, 1);
|
|
33
28
|
let zod = require("zod");
|
|
34
29
|
let tinyglobby = require("tinyglobby");
|
|
35
|
-
|
|
36
30
|
//#region src/utils.ts
|
|
37
31
|
function normalizeBundleName(file) {
|
|
38
32
|
return file.replace(/([\\/\s])/g, "-").replace(/\.wvb$/, "");
|
|
39
33
|
}
|
|
40
|
-
|
|
41
34
|
//#endregion
|
|
42
35
|
//#region src/api/bundles.ts
|
|
43
36
|
function readBundleStream({ baseDir, bundle, version }) {
|
|
@@ -74,7 +67,6 @@ function getBundleMetadataFilePath(baseDir, bundle, version) {
|
|
|
74
67
|
const bundleName = normalizeBundleName(bundle);
|
|
75
68
|
return node_path.default.join(baseDir, "bundles", bundleName, `${bundleName}_${version}.json`);
|
|
76
69
|
}
|
|
77
|
-
|
|
78
70
|
//#endregion
|
|
79
71
|
//#region src/api/deployment.ts
|
|
80
72
|
const DeploymentFileSchema = zod.z.object({
|
|
@@ -125,65 +117,64 @@ async function writeDeployment({ baseDir, bundle, version, channel }) {
|
|
|
125
117
|
function getDeploymentFilePath(baseDir, bundle) {
|
|
126
118
|
return node_path.default.join(baseDir, "bundles", `${normalizeBundleName(bundle)}`, "deployment.json");
|
|
127
119
|
}
|
|
128
|
-
|
|
129
120
|
//#endregion
|
|
130
|
-
Object.defineProperty(exports,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
121
|
+
Object.defineProperty(exports, "BundleMetadataFileSchema", {
|
|
122
|
+
enumerable: true,
|
|
123
|
+
get: function() {
|
|
124
|
+
return BundleMetadataFileSchema;
|
|
125
|
+
}
|
|
135
126
|
});
|
|
136
|
-
Object.defineProperty(exports,
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
127
|
+
Object.defineProperty(exports, "DeploymentFileSchema", {
|
|
128
|
+
enumerable: true,
|
|
129
|
+
get: function() {
|
|
130
|
+
return DeploymentFileSchema;
|
|
131
|
+
}
|
|
141
132
|
});
|
|
142
|
-
Object.defineProperty(exports,
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
133
|
+
Object.defineProperty(exports, "__toESM", {
|
|
134
|
+
enumerable: true,
|
|
135
|
+
get: function() {
|
|
136
|
+
return __toESM;
|
|
137
|
+
}
|
|
147
138
|
});
|
|
148
|
-
Object.defineProperty(exports,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
139
|
+
Object.defineProperty(exports, "readAllDeployments", {
|
|
140
|
+
enumerable: true,
|
|
141
|
+
get: function() {
|
|
142
|
+
return readAllDeployments;
|
|
143
|
+
}
|
|
153
144
|
});
|
|
154
|
-
Object.defineProperty(exports,
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
145
|
+
Object.defineProperty(exports, "readBundleMetadata", {
|
|
146
|
+
enumerable: true,
|
|
147
|
+
get: function() {
|
|
148
|
+
return readBundleMetadata;
|
|
149
|
+
}
|
|
159
150
|
});
|
|
160
|
-
Object.defineProperty(exports,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
151
|
+
Object.defineProperty(exports, "readBundleStream", {
|
|
152
|
+
enumerable: true,
|
|
153
|
+
get: function() {
|
|
154
|
+
return readBundleStream;
|
|
155
|
+
}
|
|
165
156
|
});
|
|
166
|
-
Object.defineProperty(exports,
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
157
|
+
Object.defineProperty(exports, "readDeployment", {
|
|
158
|
+
enumerable: true,
|
|
159
|
+
get: function() {
|
|
160
|
+
return readDeployment;
|
|
161
|
+
}
|
|
171
162
|
});
|
|
172
|
-
Object.defineProperty(exports,
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
163
|
+
Object.defineProperty(exports, "writeBundle", {
|
|
164
|
+
enumerable: true,
|
|
165
|
+
get: function() {
|
|
166
|
+
return writeBundle;
|
|
167
|
+
}
|
|
177
168
|
});
|
|
178
|
-
Object.defineProperty(exports,
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
169
|
+
Object.defineProperty(exports, "writeBundleMetadata", {
|
|
170
|
+
enumerable: true,
|
|
171
|
+
get: function() {
|
|
172
|
+
return writeBundleMetadata;
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
Object.defineProperty(exports, "writeDeployment", {
|
|
176
|
+
enumerable: true,
|
|
177
|
+
get: function() {
|
|
178
|
+
return writeDeployment;
|
|
179
|
+
}
|
|
183
180
|
});
|
|
184
|
-
Object.defineProperty(exports, 'writeDeployment', {
|
|
185
|
-
enumerable: true,
|
|
186
|
-
get: function () {
|
|
187
|
-
return writeDeployment;
|
|
188
|
-
}
|
|
189
|
-
});
|
package/dist/index.cjs
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_api = require("./api-CGbxQBqw.cjs");
|
|
2
3
|
let node_os = require("node:os");
|
|
3
|
-
node_os = require_api.__toESM(node_os);
|
|
4
|
+
node_os = require_api.__toESM(node_os, 1);
|
|
4
5
|
let node_path = require("node:path");
|
|
5
|
-
node_path = require_api.__toESM(node_path);
|
|
6
|
-
|
|
6
|
+
node_path = require_api.__toESM(node_path, 1);
|
|
7
7
|
//#region src/deployer.ts
|
|
8
8
|
var LocalRemoteDeployer = class {
|
|
9
|
+
config;
|
|
9
10
|
constructor(config) {
|
|
10
11
|
this.config = config;
|
|
11
12
|
}
|
|
@@ -23,10 +24,10 @@ var LocalRemoteDeployer = class {
|
|
|
23
24
|
function localRemoteDeployer(config) {
|
|
24
25
|
return new LocalRemoteDeployer(config);
|
|
25
26
|
}
|
|
26
|
-
|
|
27
27
|
//#endregion
|
|
28
28
|
//#region src/uploader.ts
|
|
29
29
|
var LocalUploaderImpl = class {
|
|
30
|
+
config;
|
|
30
31
|
constructor(config) {
|
|
31
32
|
this.config = config;
|
|
32
33
|
}
|
|
@@ -54,7 +55,6 @@ var LocalUploaderImpl = class {
|
|
|
54
55
|
function localRemoteUploader(config) {
|
|
55
56
|
return new LocalUploaderImpl(config);
|
|
56
57
|
}
|
|
57
|
-
|
|
58
58
|
//#endregion
|
|
59
59
|
//#region src/config.ts
|
|
60
60
|
function localRemote(config) {
|
|
@@ -64,6 +64,5 @@ function localRemote(config) {
|
|
|
64
64
|
deployer: localRemoteDeployer(resolvedConfig)
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
|
|
68
67
|
//#endregion
|
|
69
|
-
exports.localRemote = localRemote;
|
|
68
|
+
exports.localRemote = localRemote;
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as writeBundle, i as writeDeployment, l as writeBundleMetadata } from "./api-
|
|
1
|
+
import { c as writeBundle, i as writeDeployment, l as writeBundleMetadata } from "./api-BkFIwVQt.mjs";
|
|
2
2
|
import * as os from "node:os";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
|
|
5
4
|
//#region src/deployer.ts
|
|
6
5
|
var LocalRemoteDeployer = class {
|
|
6
|
+
config;
|
|
7
7
|
constructor(config) {
|
|
8
8
|
this.config = config;
|
|
9
9
|
}
|
|
@@ -21,10 +21,10 @@ var LocalRemoteDeployer = class {
|
|
|
21
21
|
function localRemoteDeployer(config) {
|
|
22
22
|
return new LocalRemoteDeployer(config);
|
|
23
23
|
}
|
|
24
|
-
|
|
25
24
|
//#endregion
|
|
26
25
|
//#region src/uploader.ts
|
|
27
26
|
var LocalUploaderImpl = class {
|
|
27
|
+
config;
|
|
28
28
|
constructor(config) {
|
|
29
29
|
this.config = config;
|
|
30
30
|
}
|
|
@@ -52,7 +52,6 @@ var LocalUploaderImpl = class {
|
|
|
52
52
|
function localRemoteUploader(config) {
|
|
53
53
|
return new LocalUploaderImpl(config);
|
|
54
54
|
}
|
|
55
|
-
|
|
56
55
|
//#endregion
|
|
57
56
|
//#region src/config.ts
|
|
58
57
|
function localRemote(config) {
|
|
@@ -62,6 +61,5 @@ function localRemote(config) {
|
|
|
62
61
|
deployer: localRemoteDeployer(resolvedConfig)
|
|
63
62
|
};
|
|
64
63
|
}
|
|
65
|
-
|
|
66
64
|
//#endregion
|
|
67
|
-
export { localRemote };
|
|
65
|
+
export { localRemote };
|
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.a1bf387",
|
|
4
4
|
"description": "Webview Bundle remote config for local simulation",
|
|
5
5
|
"homepage": "https://github.com/webview-bundle/webview-bundle",
|
|
6
6
|
"bugs": {
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
"typecheck": "tsc --noEmit"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@wvb/config": "^0.1.0-next.
|
|
45
|
+
"@wvb/config": "^0.1.0-next.a1bf387",
|
|
46
46
|
"tinyglobby": "^0.2.14",
|
|
47
47
|
"zod": "^4.0.5"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@types/node": "
|
|
51
|
-
"tsdown": "0.
|
|
52
|
-
"typescript": "
|
|
53
|
-
"vitest": "4.1.
|
|
50
|
+
"@types/node": "25.9.1",
|
|
51
|
+
"tsdown": "0.22.1",
|
|
52
|
+
"typescript": "6.0.3",
|
|
53
|
+
"vitest": "4.1.8"
|
|
54
54
|
}
|
|
55
55
|
}
|