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.
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "0.13.0";
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/client" />`,
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.0";
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/client" />`,
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/client" />`,
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.0";
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.0";
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.0";
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
@@ -15,7 +15,7 @@ import {
15
15
  rebuild,
16
16
  resolvePerBrowserOption,
17
17
  version
18
- } from "./chunk-GNIOSZT6.js";
18
+ } from "./chunk-7UUH3573.js";
19
19
  import "./chunk-VBXJIVYU.js";
20
20
 
21
21
  // src/core/build.ts
package/dist/storage.cjs CHANGED
@@ -57,7 +57,9 @@ function createStorage() {
57
57
  return driver;
58
58
  };
59
59
  const resolveKey = (key) => {
60
- const [driverArea, driverKey] = key.split(":", 2);
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 [driverArea, driverKey] = key.split(":", 2);
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
@@ -5,7 +5,7 @@ import {
5
5
  tsconfigPaths,
6
6
  unimport,
7
7
  webextensionPolyfillMock
8
- } from "./chunk-GNIOSZT6.js";
8
+ } from "./chunk-7UUH3573.js";
9
9
  import "./chunk-VBXJIVYU.js";
10
10
 
11
11
  // src/testing/fake-browser.ts
@@ -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.0",
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": {