@olenbetong/appframe-vite 5.1.32 → 5.1.34

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/lib/build.js CHANGED
@@ -28,6 +28,7 @@ export async function addAppframeBuildConfig(config) {
28
28
  }
29
29
  config.build.rollupOptions = {
30
30
  input: entry,
31
+ // Cast visualizer plugin to any to avoid Rollup type version clashes
31
32
  plugins: [visualizer({ filename: "./dist/stats.html", gzipSize: true })],
32
33
  output: {
33
34
  globals: appframe.build.externals !== false
package/lib/devServer.js CHANGED
@@ -128,7 +128,7 @@ async function getArticleHtml() {
128
128
  let { hostname, username, password } = await getLoginInfo();
129
129
  let article = appframe.article?.id;
130
130
  let client = new Client(hostname);
131
- let re = await client.login(username, password);
131
+ await client.login(username, password);
132
132
  let response = await client.fetch(`/${article}`, {
133
133
  timeout: 30_000,
134
134
  method: "GET",
@@ -3,4 +3,4 @@
3
3
  * function that reads a JSON file from disk and returns the parsed
4
4
  * content.
5
5
  */
6
- export declare function importJson(url: any, useCwd?: boolean): Promise<any>;
6
+ export declare function importJson(url: string, useCwd?: boolean): Promise<any>;
package/lib/proxy.d.ts CHANGED
@@ -3,6 +3,6 @@ type LoginCacheEntry = {
3
3
  timestamp: number;
4
4
  authCookies: CookieObject;
5
5
  };
6
- export declare function getLastSession(hostname: any): LoginCacheEntry | undefined;
6
+ export declare function getLastSession(hostname: string): LoginCacheEntry | undefined;
7
7
  export declare function login(hostname: string, username: string, password: string): Promise<CookieObject>;
8
8
  export {};
package/package.json CHANGED
@@ -1,16 +1,24 @@
1
1
  {
2
2
  "name": "@olenbetong/appframe-vite",
3
- "version": "5.1.32",
3
+ "version": "5.1.34",
4
4
  "description": "Tools to use and deploy Vite applications to Appframe",
5
5
  "main": "./lib/index.js",
6
6
  "type": "module",
7
7
  "types": "./lib/index.d.ts",
8
8
  "exports": {
9
- "default": "./lib/index.js"
9
+ "default": "./lib/index.js",
10
+ "./proxy": {
11
+ "import": "./lib/proxy.js",
12
+ "types": "./lib/proxy.d.ts"
13
+ }
10
14
  },
11
15
  "files": [
12
16
  "lib"
13
17
  ],
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/olenbetong/SynergiWeb.git"
21
+ },
14
22
  "author": "Bjørnar Vister Hansen <bvh@olenbetong.no>",
15
23
  "license": "MIT",
16
24
  "dependencies": {
@@ -21,7 +29,7 @@
21
29
  "jsdom": "^26.1.0",
22
30
  "rollup-plugin-visualizer": "^5.14.0",
23
31
  "vite-plugin-externals": "^0.6.2",
24
- "@olenbetong/appframe-data": "1.0.13"
32
+ "@olenbetong/appframe-data": "1.1.0"
25
33
  },
26
34
  "devDependencies": {
27
35
  "@types/jsdom": "^21.1.7",
@@ -38,5 +46,8 @@
38
46
  "tcp-port-used": "^1.0.2"
39
47
  },
40
48
  "gitHead": "ef3839cfde6097aa12488f72913680b3ce22706e",
41
- "scripts": {}
49
+ "scripts": {
50
+ "build": "pnpm run build:tsc",
51
+ "build:tsc": "rm -rf ./lib tsconfig.build.tsbuildinfo && tsc -p tsconfig.build.json"
52
+ }
42
53
  }