@devframes/plugin-assets 0.9.20 → 0.10.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/node/cli.mjs +1 -1
- package/dist/node/index.mjs +1 -1
- package/dist/node/rpc/index.mjs +1 -1
- package/dist/node/setup.mjs +2 -2
- package/dist/{node-VATytyUs.mjs → node-CNmPn-Up.mjs} +3 -3
- package/dist/{rpc-G5ynmiLP.mjs → rpc-f6T4yE2q.mjs} +1 -1
- package/dist/{setup-D6v6l0Ri.mjs → setup-C83m-OKB.mjs} +2 -2
- package/package.json +10 -12
package/dist/node/cli.mjs
CHANGED
package/dist/node/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as DEFAULT_ALLOWED_UPLOAD_EXTENSIONS, t as createAssetsDevframe } from "../node-
|
|
1
|
+
import { n as DEFAULT_ALLOWED_UPLOAD_EXTENSIONS, t as createAssetsDevframe } from "../node-CNmPn-Up.mjs";
|
|
2
2
|
export { DEFAULT_ALLOWED_UPLOAD_EXTENSIONS, createAssetsDevframe, createAssetsDevframe as default };
|
package/dist/node/rpc/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as readText, c as assetInfoSchema, f as deleteAssets, h as upload, i as rename, l as list, m as UPLOAD_CHANNEL, n as serverFunctions, o as readImageMeta, p as capabilities, r as writeFunctions, s as mkdir, t as readFunctions } from "../../rpc-
|
|
1
|
+
import { a as readText, c as assetInfoSchema, f as deleteAssets, h as upload, i as rename, l as list, m as UPLOAD_CHANNEL, n as serverFunctions, o as readImageMeta, p as capabilities, r as writeFunctions, s as mkdir, t as readFunctions } from "../../rpc-f6T4yE2q.mjs";
|
|
2
2
|
export { UPLOAD_CHANNEL, assetInfoSchema, capabilities, deleteAssets, list, mkdir, readFunctions, readImageMeta, readText, rename, serverFunctions, upload, writeFunctions };
|
package/dist/node/setup.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as setupAssets, t as disposeAssetsWatcher } from "../setup-
|
|
2
|
-
import { _ as getAssetsContext, d as scanAssets, g as configureAssets, u as guessAssetType, v as resolveAssetPath } from "../rpc-
|
|
1
|
+
import { n as setupAssets, t as disposeAssetsWatcher } from "../setup-C83m-OKB.mjs";
|
|
2
|
+
import { _ as getAssetsContext, d as scanAssets, g as configureAssets, u as guessAssetType, v as resolveAssetPath } from "../rpc-f6T4yE2q.mjs";
|
|
3
3
|
export { configureAssets, disposeAssetsWatcher, getAssetsContext, guessAssetType, resolveAssetPath, scanAssets, setupAssets };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as setupAssets } from "./setup-
|
|
1
|
+
import { n as setupAssets } from "./setup-C83m-OKB.mjs";
|
|
2
2
|
import process from "node:process";
|
|
3
3
|
import { defineDevframe } from "devframe";
|
|
4
4
|
import { resolve } from "pathe";
|
|
5
5
|
//#region package.json
|
|
6
6
|
var name = "@devframes/plugin-assets";
|
|
7
|
-
var version = "0.
|
|
7
|
+
var version = "0.10.1";
|
|
8
8
|
var description = "Devframe plugin for browsing, previewing, uploading, and managing static assets in a directory.";
|
|
9
9
|
var homepage = "https://github.com/devframes/devframe#readme";
|
|
10
10
|
//#endregion
|
|
@@ -64,10 +64,10 @@ function createAssetsDevframe(options = {}) {
|
|
|
64
64
|
icon: options.icon ?? "ph:image-square-duotone",
|
|
65
65
|
basePath: options.basePath,
|
|
66
66
|
capabilities: { build: options.build ?? false },
|
|
67
|
+
clientAssets: distDir,
|
|
67
68
|
cli: {
|
|
68
69
|
command: "devframe-assets",
|
|
69
70
|
port: options.port ?? 9015,
|
|
70
|
-
distDir,
|
|
71
71
|
auth: options.auth ?? true,
|
|
72
72
|
configure(cli) {
|
|
73
73
|
cli.option("--read-only", "Disable upload, rename, delete, and folder creation");
|
|
@@ -4,8 +4,8 @@ import { createWriteStream } from "node:fs";
|
|
|
4
4
|
import fsp from "node:fs/promises";
|
|
5
5
|
import { defineDiagnostics } from "devframe/utils/nostics";
|
|
6
6
|
import { s } from "devframe/utils/simple-schema";
|
|
7
|
+
import { joinURL } from "devframe/utils/url";
|
|
7
8
|
import { glob } from "tinyglobby";
|
|
8
|
-
import { joinURL } from "ufo";
|
|
9
9
|
import { imageMeta } from "image-meta";
|
|
10
10
|
//#region src/node/diagnostics.ts
|
|
11
11
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { g as configureAssets, m as UPLOAD_CHANNEL, r as writeFunctions, t as readFunctions } from "./rpc-
|
|
1
|
+
import { g as configureAssets, m as UPLOAD_CHANNEL, r as writeFunctions, t as readFunctions } from "./rpc-f6T4yE2q.mjs";
|
|
2
2
|
import process from "node:process";
|
|
3
3
|
import { existsSync } from "node:fs";
|
|
4
4
|
import fsp from "node:fs/promises";
|
|
5
5
|
import { watch } from "chokidar";
|
|
6
|
-
import { debounce } from "
|
|
6
|
+
import { debounce } from "devframe/utils/debounce";
|
|
7
7
|
//#region src/node/constants.ts
|
|
8
8
|
/** Broadcast whenever a file is added, removed, or changed under the managed directory. */
|
|
9
9
|
const CHANGED_EVENT = "devframes:plugin:assets:changed";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devframes/plugin-assets",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.10.1",
|
|
5
5
|
"description": "Devframe plugin for browsing, previewing, uploading, and managing static assets in a directory.",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"dist"
|
|
37
37
|
],
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@devframes/plugin-assets--assets": "0.
|
|
40
|
-
"@devframes/service-shiki": "0.
|
|
41
|
-
"devframe": "0.
|
|
39
|
+
"@devframes/plugin-assets--assets": "0.10.1",
|
|
40
|
+
"@devframes/service-shiki": "0.10.1",
|
|
41
|
+
"devframe": "0.10.1",
|
|
42
42
|
"vite": "^7.0.0 || ^8.0.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
@@ -53,20 +53,18 @@
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@devframes/service-open": "0.
|
|
56
|
+
"@devframes/service-open": "0.10.1",
|
|
57
57
|
"cac": "^7.0.0",
|
|
58
58
|
"chokidar": "^5.0.0",
|
|
59
59
|
"image-meta": "^0.2.2",
|
|
60
60
|
"pathe": "^2.0.3",
|
|
61
|
-
"
|
|
62
|
-
"tinyglobby": "^0.2.17",
|
|
63
|
-
"ufo": "^1.6.4"
|
|
61
|
+
"tinyglobby": "^0.2.17"
|
|
64
62
|
},
|
|
65
63
|
"devDependencies": {
|
|
66
64
|
"@antfu/design": "^0.4.0",
|
|
67
|
-
"@devframes/plugin-assets--assets": "0.
|
|
68
|
-
"@devframes/service-shiki": "0.
|
|
69
|
-
"@devframes/vite": "0.
|
|
65
|
+
"@devframes/plugin-assets--assets": "0.10.1",
|
|
66
|
+
"@devframes/service-shiki": "0.10.1",
|
|
67
|
+
"@devframes/vite": "0.10.1",
|
|
70
68
|
"@iconify-json/ph": "^1.2.2",
|
|
71
69
|
"@storybook/addon-a11y": "^10.6.0",
|
|
72
70
|
"@storybook/addon-docs": "^10.6.0",
|
|
@@ -74,7 +72,7 @@
|
|
|
74
72
|
"@types/node": "^26.5.1",
|
|
75
73
|
"@vitejs/plugin-vue": "^6.0.8",
|
|
76
74
|
"colorjs.io": "^0.7.1",
|
|
77
|
-
"devframe": "0.
|
|
75
|
+
"devframe": "0.10.1",
|
|
78
76
|
"floating-vue": "^5.4.0",
|
|
79
77
|
"h3": "^2.0.1-rc.31",
|
|
80
78
|
"reka-ui": "^2.10.4",
|