oxc-transform
Advanced tools
Comparing version 0.27.0 to 0.28.0
@@ -116,11 +116,31 @@ /* auto-generated by NAPI-RS */ | ||
useSpread?: boolean | ||
/** Enable react fast refresh transform */ | ||
refresh?: ReactRefreshBindingOptions | ||
} | ||
export interface ReactRefreshBindingOptions { | ||
/** | ||
* Specify the identifier of the refresh registration variable. | ||
* | ||
* @default `$RefreshReg$`. | ||
*/ | ||
refreshReg?: string | ||
/** | ||
* Specify the identifier of the refresh signature variable. | ||
* | ||
* @default `$RefreshSig$`. | ||
*/ | ||
refreshSig?: string | ||
emitFullSignatures?: boolean | ||
} | ||
export interface SourceMap { | ||
file?: string | ||
mappings?: string | ||
names?: Array<string> | ||
sourceRoot?: string | ||
sources?: Array<string | undefined | null> | ||
sourcesContent?: Array<string | undefined | null> | ||
names?: Array<string> | ||
version: number | ||
x_google_ignoreList?: Array<number> | ||
} | ||
@@ -127,0 +147,0 @@ |
{ | ||
"name": "oxc-transform", | ||
"version": "0.27.0", | ||
"version": "0.28.0", | ||
"description": "Oxc transform Node API", | ||
@@ -26,11 +26,11 @@ "keywords": [ | ||
"optionalDependencies": { | ||
"@oxc-transform/binding-win32-x64-msvc": "0.27.0", | ||
"@oxc-transform/binding-win32-arm64-msvc": "0.27.0", | ||
"@oxc-transform/binding-linux-x64-gnu": "0.27.0", | ||
"@oxc-transform/binding-linux-arm64-gnu": "0.27.0", | ||
"@oxc-transform/binding-linux-x64-musl": "0.27.0", | ||
"@oxc-transform/binding-linux-arm64-musl": "0.27.0", | ||
"@oxc-transform/binding-darwin-x64": "0.27.0", | ||
"@oxc-transform/binding-darwin-arm64": "0.27.0" | ||
"@oxc-transform/binding-win32-x64-msvc": "0.28.0", | ||
"@oxc-transform/binding-win32-arm64-msvc": "0.28.0", | ||
"@oxc-transform/binding-linux-x64-gnu": "0.28.0", | ||
"@oxc-transform/binding-linux-arm64-gnu": "0.28.0", | ||
"@oxc-transform/binding-linux-x64-musl": "0.28.0", | ||
"@oxc-transform/binding-linux-arm64-musl": "0.28.0", | ||
"@oxc-transform/binding-darwin-x64": "0.28.0", | ||
"@oxc-transform/binding-darwin-arm64": "0.28.0" | ||
} | ||
} |
@@ -15,10 +15,10 @@ # Oxc Transform | ||
const { sourceMap, sourceText, errors } = oxc.isolatedDeclaration("test.ts", "class A {}", { sourcemap: true }); | ||
const { sourceMap, sourceText, errors } = oxc.isolatedDeclaration('test.ts', 'class A {}', { sourcemap: true }); | ||
assert.equal(sourceText, "declare class A {}\n"); | ||
assert.equal(sourceText, 'declare class A {}\n'); | ||
assert.deepEqual(ret.sourceMap, { | ||
mappings: "AAAA,cAAM,EAAE,CAAE", | ||
mappings: 'AAAA,cAAM,EAAE,CAAE', | ||
names: [], | ||
sources: ["test.ts"], | ||
sourcesContent: ["class A {}"], | ||
sources: ['test.ts'], | ||
sourcesContent: ['class A {}'], | ||
}); | ||
@@ -31,12 +31,16 @@ assert(errors.length == 0); | ||
```typescript | ||
export function isolatedDeclaration(filename: string, sourceText: string, options: IsolatedDeclarationsOptions): IsolatedDeclarationsResult | ||
export function isolatedDeclaration( | ||
filename: string, | ||
sourceText: string, | ||
options: IsolatedDeclarationsOptions, | ||
): IsolatedDeclarationsResult; | ||
export interface IsolatedDeclarationsOptions { | ||
sourcemap: boolean | ||
sourcemap: boolean; | ||
} | ||
export interface IsolatedDeclarationsResult { | ||
sourceText: string | ||
errors: Array<string> | ||
sourceText: string; | ||
errors: Array<string>; | ||
} | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20360
5
586
45