wxt 0.13.0 → 0.13.1
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/{chunk-GNIOSZT6.js → chunk-7UUH3573.js} +2 -2
- package/dist/cli.js +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/storage.cjs +3 -1
- package/dist/storage.js +3 -1
- package/dist/testing.js +1 -1
- package/dist/vite-builder-env.d.ts +1 -0
- package/package.json +4 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// package.json
|
|
2
|
-
var version = "0.13.
|
|
2
|
+
var version = "0.13.1";
|
|
3
3
|
|
|
4
4
|
// src/core/utils/arrays.ts
|
|
5
5
|
function every(array, predicate) {
|
|
@@ -435,7 +435,7 @@ async function writeMainDeclarationFile(references, config) {
|
|
|
435
435
|
filePath,
|
|
436
436
|
[
|
|
437
437
|
"// Generated by wxt",
|
|
438
|
-
`/// <reference types="vite
|
|
438
|
+
`/// <reference types="wxt/vite-builder-env" />`,
|
|
439
439
|
...references.map(
|
|
440
440
|
(ref) => `/// <reference types="./${normalizePath(relative2(dir, ref))}" />`
|
|
441
441
|
)
|
package/dist/cli.js
CHANGED
|
@@ -4,7 +4,7 @@ import "./chunk-VBXJIVYU.js";
|
|
|
4
4
|
import cac from "cac";
|
|
5
5
|
|
|
6
6
|
// package.json
|
|
7
|
-
var version = "0.13.
|
|
7
|
+
var version = "0.13.1";
|
|
8
8
|
|
|
9
9
|
// src/core/utils/fs.ts
|
|
10
10
|
import fs from "fs-extra";
|
|
@@ -756,7 +756,7 @@ async function writeMainDeclarationFile(references, config) {
|
|
|
756
756
|
filePath,
|
|
757
757
|
[
|
|
758
758
|
"// Generated by wxt",
|
|
759
|
-
`/// <reference types="vite
|
|
759
|
+
`/// <reference types="wxt/vite-builder-env" />`,
|
|
760
760
|
...references.map(
|
|
761
761
|
(ref) => `/// <reference types="./${normalizePath(relative3(dir, ref))}" />`
|
|
762
762
|
)
|
package/dist/index.cjs
CHANGED
|
@@ -3177,7 +3177,7 @@ async function writeMainDeclarationFile(references, config) {
|
|
|
3177
3177
|
filePath,
|
|
3178
3178
|
[
|
|
3179
3179
|
"// Generated by wxt",
|
|
3180
|
-
`/// <reference types="vite
|
|
3180
|
+
`/// <reference types="wxt/vite-builder-env" />`,
|
|
3181
3181
|
...references.map(
|
|
3182
3182
|
(ref) => `/// <reference types="./${normalizePath((0, import_path3.relative)(dir, ref))}" />`
|
|
3183
3183
|
)
|
|
@@ -4334,7 +4334,7 @@ function getChunkSortWeight(filename) {
|
|
|
4334
4334
|
var import_picocolors3 = __toESM(require("picocolors"), 1);
|
|
4335
4335
|
|
|
4336
4336
|
// package.json
|
|
4337
|
-
var version = "0.13.
|
|
4337
|
+
var version = "0.13.1";
|
|
4338
4338
|
|
|
4339
4339
|
// src/core/utils/log/printHeader.ts
|
|
4340
4340
|
var import_consola2 = require("consola");
|
package/dist/index.d.cts
CHANGED
|
@@ -62,6 +62,6 @@ declare function prepare(config: InlineConfig): Promise<void>;
|
|
|
62
62
|
*/
|
|
63
63
|
declare function zip(config?: InlineConfig): Promise<string[]>;
|
|
64
64
|
|
|
65
|
-
var version = "0.13.
|
|
65
|
+
var version = "0.13.1";
|
|
66
66
|
|
|
67
67
|
export { BuildOutput, ExtensionRunnerConfig, InlineConfig, UserConfig, WxtDevServer, build, clean, createServer, defineConfig, defineRunnerConfig, initialize, prepare, version, zip };
|
package/dist/index.d.ts
CHANGED
|
@@ -62,6 +62,6 @@ declare function prepare(config: InlineConfig): Promise<void>;
|
|
|
62
62
|
*/
|
|
63
63
|
declare function zip(config?: InlineConfig): Promise<string[]>;
|
|
64
64
|
|
|
65
|
-
var version = "0.13.
|
|
65
|
+
var version = "0.13.1";
|
|
66
66
|
|
|
67
67
|
export { BuildOutput, ExtensionRunnerConfig, InlineConfig, UserConfig, WxtDevServer, build, clean, createServer, defineConfig, defineRunnerConfig, initialize, prepare, version, zip };
|
package/dist/index.js
CHANGED
package/dist/storage.cjs
CHANGED
|
@@ -57,7 +57,9 @@ function createStorage() {
|
|
|
57
57
|
return driver;
|
|
58
58
|
};
|
|
59
59
|
const resolveKey = (key) => {
|
|
60
|
-
const
|
|
60
|
+
const deliminatorIndex = key.indexOf(":");
|
|
61
|
+
const driverArea = key.substring(0, deliminatorIndex);
|
|
62
|
+
const driverKey = key.substring(deliminatorIndex + 1);
|
|
61
63
|
if (driverKey == null)
|
|
62
64
|
throw Error(
|
|
63
65
|
`Storage key should be in the form of "area:key", but recieved "${key}"`
|
package/dist/storage.js
CHANGED
|
@@ -23,7 +23,9 @@ function createStorage() {
|
|
|
23
23
|
return driver;
|
|
24
24
|
};
|
|
25
25
|
const resolveKey = (key) => {
|
|
26
|
-
const
|
|
26
|
+
const deliminatorIndex = key.indexOf(":");
|
|
27
|
+
const driverArea = key.substring(0, deliminatorIndex);
|
|
28
|
+
const driverKey = key.substring(deliminatorIndex + 1);
|
|
27
29
|
if (driverKey == null)
|
|
28
30
|
throw Error(
|
|
29
31
|
`Storage key should be in the form of "area:key", but recieved "${key}"`
|
package/dist/testing.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.13.
|
|
4
|
+
"version": "0.13.1",
|
|
5
5
|
"description": "Next gen framework for developing web extensions",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=18",
|
|
@@ -76,6 +76,9 @@
|
|
|
76
76
|
"types": "./dist/storage.d.cts",
|
|
77
77
|
"default": "./dist/storage.cjs"
|
|
78
78
|
}
|
|
79
|
+
},
|
|
80
|
+
"./vite-builder-env": {
|
|
81
|
+
"types": "./dist/vite-builder-env.d.ts"
|
|
79
82
|
}
|
|
80
83
|
},
|
|
81
84
|
"dependencies": {
|