Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

oxc-transform

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oxc-transform - npm Package Compare versions

Comparing version 0.27.0 to 0.28.0

LICENSE

22

index.d.ts

@@ -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 @@

18

package.json
{
"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>;
}
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc