vona-module-a-static 5.0.24 → 5.0.26

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/index.js CHANGED
@@ -169,6 +169,10 @@ class BeanStaticBase extends BeanBase {
169
169
  get(path) {
170
170
  return this.app.util.combineStaticPath(path, this[SymbolModuleBelong]);
171
171
  }
172
+ getURL(path) {
173
+ const path2 = this.get(path);
174
+ return this.app.util.getAbsoluteUrl(path2);
175
+ }
172
176
  }
173
177
 
174
178
  export { BeanAssetBase, BeanStaticBase, EventResolvePath, MiddlewareSystemStatic, ScopeModuleAStatic, SymbolStaticGetFullPathInner };
@@ -1,4 +1,5 @@
1
1
  import { BeanBase } from 'vona';
2
2
  export declare class BeanStaticBase<TypeStaticGetPath> extends BeanBase {
3
3
  get(path: TypeStaticGetPath): string;
4
+ getURL(path: TypeStaticGetPath): string;
4
5
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-module-a-static",
3
3
  "type": "module",
4
- "version": "5.0.24",
4
+ "version": "5.0.26",
5
5
  "title": "a-static",
6
6
  "vonaModule": {
7
7
  "dependencies": {},