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
279
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.3238 to 2.12.1-dev.3260

parcel-node-bindings.win32-x64-msvc.node

37

index.d.ts

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

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

@@ -25,7 +24,7 @@ export function findFirstFile(names: Array<string>): string | null

isDir: (...args: any[]) => any
includeNodeModules?: boolean | Array<string> | Record<string, boolean>
includeNodeModules?: NapiSideEffectsVariants
}
export interface FileSystem {
fs?: JsFileSystemOptions
includeNodeModules?: boolean | Array<string> | Record<string, boolean>
includeNodeModules?: NapiSideEffectsVariants
conditions?: number

@@ -69,22 +68,4 @@ moduleDirResolver?: (...args: any[]) => any

}
export function transform(db: ParcelDb, opts: object): unknown
export function transformAsync(db: ParcelDb, opts: object): object
export type JsParcelDb = ParcelDb
export class ParcelDb {
constructor(options: object)
serialize(): SerializedParcelDb
static deserializeNative(value: SerializedParcelDb): JsParcelDb
getPage(page: number): Buffer
alloc(typeId: number): number
dealloc(typeId: number, addr: number): void
readString(addr: number): string
getStringId(s: string): number
extendVec(typeId: number, addr: number, count: number): void
createEnvironment(addr: number): number
createTarget(addr: number): number
write(filename: string): void
toBuffer(): Buffer
static _read(filename: string, options: object): JsParcelDb
static _fromBuffer(buf: Buffer, options: object): JsParcelDb
}
export function transform(opts: object): unknown
export function transformAsync(opts: object): object
export class Hash {

@@ -96,2 +77,8 @@ constructor()

}
export class ParcelNapi {
constructor(options: object)
testingTempFsReadToString(path: string): Promise<string>
testingTempFsIsFile(path: string): Promise<boolean>
testingTempFsIsDir(path: string): Promise<boolean>
}
export class Resolver {

@@ -98,0 +85,0 @@ constructor(projectRoot: string, options: FileSystem)

@@ -298,5 +298,6 @@ /* tslint:disable */

const { ParcelDb, findAncestorFile, findFirstFile, findNodeModule, hashString, hashBuffer, Hash, optimizeImage, Resolver, transform, transformAsync } = nativeBinding
const { initSentry, closeSentry, findAncestorFile, findFirstFile, findNodeModule, hashString, hashBuffer, Hash, optimizeImage, ParcelNapi, Resolver, transform, transformAsync } = nativeBinding
module.exports.ParcelDb = ParcelDb
module.exports.initSentry = initSentry
module.exports.closeSentry = closeSentry
module.exports.findAncestorFile = findAncestorFile

@@ -309,4 +310,5 @@ module.exports.findFirstFile = findFirstFile

module.exports.optimizeImage = optimizeImage
module.exports.ParcelNapi = ParcelNapi
module.exports.Resolver = Resolver
module.exports.transform = transform
module.exports.transformAsync = transformAsync
{
"name": "@parcel/rust",
"version": "2.12.1-dev.3238+7f6b4dbbc",
"version": "2.12.1-dev.3260+339350eb3",
"license": "MIT",

@@ -16,5 +16,4 @@ "publishConfig": {

},
"main": "lib/index.js",
"main": "index.js",
"browser": "browser.js",
"source": "src/index.js",
"napi": {

@@ -24,3 +23,3 @@ "name": "parcel-node-bindings"

"engines": {
"node": ">= 12.0.0"
"node": ">= 16.0.0"
},

@@ -40,9 +39,9 @@ "files": [

"scripts": {
"build": "napi build --platform --cargo-cwd ../../../crates/node-bindings && yarn build-db",
"build-release": "napi build --platform --release --cargo-cwd ../../../crates/node-bindings && yarn build-db",
"build-db": "cargo run -p parcel-db && prettier --write src/db.js",
"build": "napi build --platform --cargo-cwd ../../../crates/node-bindings",
"build-canary": "napi build --platform --profile canary --features canary --cargo-cwd ../../../crates/node-bindings",
"build-release": "napi build --platform --release --cargo-cwd ../../../crates/node-bindings",
"wasm:build": "cargo build -p parcel-node-bindings --target wasm32-unknown-unknown && cp ../../../target/wasm32-unknown-unknown/debug/parcel_node_bindings.wasm .",
"wasm:build-release": "CARGO_PROFILE_RELEASE_LTO=true cargo build -p parcel-node-bindings --target wasm32-unknown-unknown --release && wasm-opt --strip-debug -O ../../../target/wasm32-unknown-unknown/release/parcel_node_bindings.wasm -o parcel_node_bindings.wasm"
},
"gitHead": "7f6b4dbbc56a203e0fce8794856c03598c4f6708"
"gitHead": "339350eb31fd33849cb1efe5fd7ad2cb096319f0"
}

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