New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

oxc-transform

Package Overview
Dependencies
Maintainers
0
Versions
56
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.15.0 to 0.15.1

18

package.json
{
"name": "oxc-transform",
"version": "0.15.0",
"version": "0.15.1",
"description": "Oxc transform Node API",

@@ -26,11 +26,11 @@ "keywords": [

"optionalDependencies": {
"@oxc-transform/binding-win32-x64-msvc": "0.15.0",
"@oxc-transform/binding-win32-arm64-msvc": "0.15.0",
"@oxc-transform/binding-linux-x64-gnu": "0.15.0",
"@oxc-transform/binding-linux-arm64-gnu": "0.15.0",
"@oxc-transform/binding-linux-x64-musl": "0.15.0",
"@oxc-transform/binding-linux-arm64-musl": "0.15.0",
"@oxc-transform/binding-darwin-x64": "0.15.0",
"@oxc-transform/binding-darwin-arm64": "0.15.0"
"@oxc-transform/binding-win32-x64-msvc": "0.15.1",
"@oxc-transform/binding-win32-arm64-msvc": "0.15.1",
"@oxc-transform/binding-linux-x64-gnu": "0.15.1",
"@oxc-transform/binding-linux-arm64-gnu": "0.15.1",
"@oxc-transform/binding-linux-x64-musl": "0.15.1",
"@oxc-transform/binding-linux-arm64-musl": "0.15.1",
"@oxc-transform/binding-darwin-x64": "0.15.1",
"@oxc-transform/binding-darwin-arm64": "0.15.1"
}
}

@@ -1,17 +0,30 @@

# The JavaScript Oxidation Compiler
# Oxc Transform
See index.d.ts for `parseSync` and `parseAsync` API.
## [Isolated Declarations for Standalone DTS Emit](https://devblogs.microsoft.com/typescript/announcing-typescript-5-5-beta/#isolated-declarations)
## ESM
Based on Oxc and conforms to TypeScript Compiler's `--isolated-declaration` `.d.ts` emit.
This is still in alpha and may yield incorrect results, feel free to [submit a bug report](https://github.com/oxc-project/oxc/issues/new?assignees=&labels=C-bug&projects=&template=bug_report.md&title=isolated-declarations:).
### Usage
```javascript
import oxc from './index.js';
import assert from 'assert';
import oxc from 'oxc-transform';
test(oxc.isolatedDeclaration("test.ts", "class A {}"), "declare class A {}\n");
const { sourceText, errors } = oxc.isolatedDeclaration("test.ts", "class A {}");
function test(ret, expected) {
assert.equal(ret.sourceText, expected);
assert(ret.errors.length == 0);
assert.equal(sourceText, "declare class A {}\n");
assert(errors.length == 0);
```
### API
```typescript
export function isolatedDeclaration(filename: string, sourceText: string): IsolatedDeclarationsResult
export interface IsolatedDeclarationsResult {
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