@fervid/napi 0.4.0 → 0.4.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.
Files changed (2) hide show
  1. package/index.d.ts +9 -1
  2. package/package.json +14 -14
package/index.d.ts CHANGED
@@ -34,7 +34,10 @@ export interface FervidJsCompilerOptions {
34
34
  */
35
35
  customElement?: undefined
36
36
  }
37
- export interface FervidJsCompilerOptionsTemplate {}
37
+ export interface FervidJsCompilerOptionsTemplate {
38
+ /** Options for transforming asset URLs in template */
39
+ transformAssetUrls?: boolean | FervidTransformAssetUrlsOptions
40
+ }
38
41
  export interface FervidJsCompilerOptionsScript {
39
42
  /**
40
43
  * Ignored
@@ -68,6 +71,11 @@ export interface FervidCompileOptions {
68
71
  /** Whether setup bindings need to be serialized */
69
72
  outputSetupBindings?: boolean
70
73
  }
74
+ export interface FervidTransformAssetUrlsOptions {
75
+ base?: string
76
+ includeAbsolute?: boolean
77
+ tags?: Record<string, Array<string>>
78
+ }
71
79
  export interface CompileResult {
72
80
  code: string
73
81
  styles: Array<Style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fervid/napi",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "All-in-One Vue compiler written in Rust",
5
5
  "main": "index.js",
6
6
  "repository": "git@github.com:phoenix-ru/fervid.git",
@@ -101,19 +101,19 @@
101
101
  "arrowParens": "always"
102
102
  },
103
103
  "optionalDependencies": {
104
- "@fervid/napi-win32-x64-msvc": "0.4.0",
105
- "@fervid/napi-darwin-x64": "0.4.0",
106
- "@fervid/napi-linux-x64-gnu": "0.4.0",
107
- "@fervid/napi-linux-x64-musl": "0.4.0",
108
- "@fervid/napi-linux-arm64-gnu": "0.4.0",
109
- "@fervid/napi-win32-ia32-msvc": "0.4.0",
110
- "@fervid/napi-linux-arm-gnueabihf": "0.4.0",
111
- "@fervid/napi-darwin-arm64": "0.4.0",
112
- "@fervid/napi-android-arm64": "0.4.0",
113
- "@fervid/napi-freebsd-x64": "0.4.0",
114
- "@fervid/napi-linux-arm64-musl": "0.4.0",
115
- "@fervid/napi-win32-arm64-msvc": "0.4.0",
116
- "@fervid/napi-android-arm-eabi": "0.4.0"
104
+ "@fervid/napi-win32-x64-msvc": "0.4.1",
105
+ "@fervid/napi-darwin-x64": "0.4.1",
106
+ "@fervid/napi-linux-x64-gnu": "0.4.1",
107
+ "@fervid/napi-linux-x64-musl": "0.4.1",
108
+ "@fervid/napi-linux-arm64-gnu": "0.4.1",
109
+ "@fervid/napi-win32-ia32-msvc": "0.4.1",
110
+ "@fervid/napi-linux-arm-gnueabihf": "0.4.1",
111
+ "@fervid/napi-darwin-arm64": "0.4.1",
112
+ "@fervid/napi-android-arm64": "0.4.1",
113
+ "@fervid/napi-freebsd-x64": "0.4.1",
114
+ "@fervid/napi-linux-arm64-musl": "0.4.1",
115
+ "@fervid/napi-win32-arm64-msvc": "0.4.1",
116
+ "@fervid/napi-android-arm-eabi": "0.4.1"
117
117
  },
118
118
  "packageManager": "yarn@4.4.1",
119
119
  "workspaces": [