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

@parcel/rust

Package Overview
Dependencies
Maintainers
1
Versions
266
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parcel/rust - npm Package Compare versions

Comparing version 2.12.1-dev.3303 to 2.12.1-dev.3335

124

index.d.ts

@@ -10,4 +10,2 @@ /* tslint:disable */

}
export function initSentry(): void
export function closeSentry(): void
export function findAncestorFile(filenames: Array<string>, from: string, root: string): string | null

@@ -19,29 +17,6 @@ export function findFirstFile(names: Array<string>): string | null

export function optimizeImage(kind: string, buf: Buffer): Buffer
/**
* JavaScript provided options to configure the `tracing_subscriber` rust logs into a file or the
* console.
*/
export interface ParcelTracingOptions {
/** Enable tracing */
enabled: boolean
/**
* If set to some, will trace to a file with the given options, otherwise the console will be
* used.
*/
outputFileOptions?: ParcelTracingOutputFileOptions
}
/**
* Output file configuration.
* Tracing log files will be rotated hourly on the provided directory.
*/
export interface ParcelTracingOutputFileOptions {
/** The directory where the log files will be written. */
directory: string
/** A prefix for the log file names. */
prefix: string
/** The maximum number of rotated files to keep. */
maxFiles: number
}
export function initializeMonitoring(): void
export function closeMonitoring(): void
export interface ParcelNapiBuildOptions {
registerWorker: (...args: any[]) => any
}

@@ -52,8 +27,31 @@ export interface ParcelNapiBuildResult {

export interface ParcelNapiOptions {
fs?: object
nodeWorkers?: number
options: object
packageManager?: object
threads?: number
nodeWorkers?: number
fs?: object
tracingOptions?: ParcelTracingOptions
}
export function registerWorker(worker: object): void
/**
* This function is run in the Nodejs worker context upon initialization
* to notify the main thread that a Nodejs worker thread has started
*
* A Rust channel is transferred to the worker via JavaScript `worker.postMessage`.
* The worker then calls `register_worker`, supplying it with an object containing
* callbacks.
*
* The callbacks are later called from the main thread to send work to the worker.
*
* |-------------| --- Init channel ----> |-------------------|
* | Main Thread | | Worker Thread (n) |
* |-------------| <-- Worker wrapper --- |-------------------|
*
* **Later During Build**
*
* -- Resolver.resolve -->
* <- DependencyResult ---
*
* -- Transf.transform -->
* <--- Array<Asset> -----
*/
export function registerWorker(channel: JsTransferable, worker: object): void
export interface JsFileSystemOptions {

@@ -107,2 +105,50 @@ canonicalize: (...args: any[]) => any

}
export interface JsFileSystemOptionsOld {
canonicalize: (...args: any[]) => any
read: (...args: any[]) => any
isFile: (...args: any[]) => any
isDir: (...args: any[]) => any
includeNodeModules?: NapiSideEffectsVariants
}
export interface FileSystemOld {
fs?: JsFileSystemOptionsOld
includeNodeModules?: NapiSideEffectsVariants
conditions?: number
moduleDirResolver?: (...args: any[]) => any
mode: number
entries?: number
extensions?: Array<string>
packageExports: boolean
typescript?: boolean
}
export interface ResolveOptionsOld {
filename: string
specifierType: string
parent: string
packageConditions?: Array<string>
}
export interface FilePathCreateInvalidationOld {
filePath: string
}
export interface FileNameCreateInvalidationOld {
fileName: string
aboveFilePath: string
}
export interface GlobCreateInvalidationOld {
glob: string
}
export interface ResolveResultOld {
resolution: unknown
invalidateOnFileChange: Array<string>
invalidateOnFileCreate: Array<FilePathCreateInvalidationOld | FileNameCreateInvalidationOld | GlobCreateInvalidationOld>
query?: string
sideEffects: boolean
error: unknown
moduleType: number
}
export interface JsInvalidationsOld {
invalidateOnFileChange: Array<string>
invalidateOnFileCreate: Array<FilePathCreateInvalidationOld | FileNameCreateInvalidationOld | GlobCreateInvalidationOld>
invalidateOnStartup: boolean
}
export function testingRunParcelJsTransformerPlugin(targetPath: string): unknown

@@ -119,7 +165,5 @@ export function transform(opts: object): unknown

nodeWorkerCount: number
constructor(options: ParcelNapiOptions)
constructor(napiOptions: ParcelNapiOptions)
build(options: ParcelNapiBuildOptions): object
testingTempFsReadToString(path: string): Promise<string>
testingTempFsIsFile(path: string): Promise<boolean>
testingTempFsIsDir(path: string): Promise<boolean>
buildAssetGraph(options: ParcelNapiBuildOptions): object
}

@@ -134,1 +178,9 @@ export class Resolver {

}
export class ResolverOld {
constructor(projectRoot: string, options: FileSystemOld)
resolve(options: ResolveOptionsOld): ResolveResultOld
resolveAsync(): object
resolveAsync(options: ResolveOptionsOld): object
getInvalidations(path: string): JsInvalidationsOld
getInvalidations(path: string): JsInvalidationsOld
}

@@ -313,6 +313,4 @@ /* tslint:disable */

const { initSentry, closeSentry, findAncestorFile, findFirstFile, findNodeModule, hashString, hashBuffer, Hash, optimizeImage, ParcelNapi, registerWorker, Resolver, testingRunParcelJsTransformerPlugin, transform, transformAsync } = nativeBinding
const { findAncestorFile, findFirstFile, findNodeModule, hashString, hashBuffer, Hash, optimizeImage, initializeMonitoring, closeMonitoring, ParcelNapi, registerWorker, Resolver, ResolverOld, testingRunParcelJsTransformerPlugin, transform, transformAsync } = nativeBinding
module.exports.initSentry = initSentry
module.exports.closeSentry = closeSentry
module.exports.findAncestorFile = findAncestorFile

@@ -325,7 +323,10 @@ module.exports.findFirstFile = findFirstFile

module.exports.optimizeImage = optimizeImage
module.exports.initializeMonitoring = initializeMonitoring
module.exports.closeMonitoring = closeMonitoring
module.exports.ParcelNapi = ParcelNapi
module.exports.registerWorker = registerWorker
module.exports.Resolver = Resolver
module.exports.ResolverOld = ResolverOld
module.exports.testingRunParcelJsTransformerPlugin = testingRunParcelJsTransformerPlugin
module.exports.transform = transform
module.exports.transformAsync = transformAsync
{
"name": "@parcel/rust",
"version": "2.12.1-dev.3303+3edb0d741",
"version": "2.12.1-dev.3335+c6bc8e411",
"license": "MIT",

@@ -43,3 +43,3 @@ "publishConfig": {

},
"gitHead": "3edb0d7419831e49cfa7ea8c52b4f7127a16ae52"
"gitHead": "c6bc8e41105247c437089ec3cb91e53f12ac5519"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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