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

@atlaspack/rust

Package Overview
Dependencies
Maintainers
0
Versions
296
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaspack/rust - npm Package Compare versions

Comparing version 2.12.1-dev.3401 to 2.12.1-dev.3443

122

index.d.ts

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

}
export interface LmdbOptions {
/** The database directory path */
path: string
/**
* If enabled, the database writer will set the following flags:
*
* * MAP_ASYNC - "use asynchronous msync when MDB_WRITEMAP is used"
* * NO_SYNC - "don't fsync after commit"
* * NO_META_SYNC - "don't fsync metapage after commit"
*
* `MDB_WRITEMAP` is on by default.
*/
asyncWrites: boolean
/**
* The mmap size, this corresponds to [`mdb_env_set_mapsize`](http://www.lmdb.tech/doc/group__mdb.html#gaa2506ec8dab3d969b0e609cd82e619e5)
* if this isn't set it'll default to around 10MB.
*/
mapSize?: number
}
export function initTracingSubscriber(): void
export interface Entry {
key: string
value: Buffer
}
export function findAncestorFile(filenames: Array<string>, from: string, root: string): string | null

@@ -17,2 +41,3 @@ export function findFirstFile(names: Array<string>): string | null

export function optimizeImage(kind: string, buf: Buffer): Buffer
export function createAssetId(params: unknown): string
export interface AtlaspackNapiBuildOptions {

@@ -31,2 +56,4 @@ registerWorker: (...args: any[]) => any

}
export function createDependencyId(params: unknown): string
export function createEnvironmentId(params: unknown): string
export function initializeMonitoring(): void

@@ -57,2 +84,13 @@ export function closeMonitoring(): void

export function registerWorker(channel: JsTransferable, worker: object): void
export interface InlineRequiresOptimizerInput {
code: string
sourceMaps: boolean
ignoreModuleIds: Array<string>
}
export interface InlineRequiresOptimizerResult {
code: string
sourceMap?: string
}
export function runInlineRequiresOptimizer(input: InlineRequiresOptimizerInput): InlineRequiresOptimizerResult
export function replaceHashReferences(input: Buffer, hashRefToNameHash: Record<string, string>): Buffer
export interface JsFileSystemOptions {

@@ -106,52 +144,31 @@ 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 transform(opts: object): unknown
export function transformAsync(opts: object): object
export type LMDB = Lmdb
export class Lmdb {
constructor(options: LmdbOptions)
get(key: string): Promise<Buffer | null | undefined>
getSync(key: string): Buffer | null
getManySync(keys: Array<string>): Array<Buffer | undefined | null>
putMany(entries: Array<Entry>): Promise<void>
put(key: string, data: Buffer): Promise<void>
putNoConfirm(key: string, data: Buffer): void
startReadTransaction(): void
commitReadTransaction(): void
startWriteTransaction(): Promise<void>
commitWriteTransaction(): Promise<void>
close(): void
constructor(options: LMDBOptions)
get(key: string): Promise<Buffer | null | undefined>
getSync(key: string): Buffer | null
getManySync(keys: Array<string>): Array<Buffer | undefined | null>
putMany(entries: Array<Entry>): Promise<void>
put(key: string, data: Buffer): Promise<void>
putNoConfirm(key: string, data: Buffer): void
startReadTransaction(): void
commitReadTransaction(): void
startWriteTransaction(): Promise<void>
commitWriteTransaction(): Promise<void>
close(): void
}
export class Hash {

@@ -166,3 +183,2 @@ constructor()

constructor(napiOptions: AtlaspackNapiOptions)
build(options: AtlaspackNapiBuildOptions): object
buildAssetGraph(options: AtlaspackNapiBuildOptions): object

@@ -178,9 +194,1 @@ }

}
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,4 +313,6 @@ /* tslint:disable */

const { findAncestorFile, findFirstFile, findNodeModule, hashString, hashBuffer, Hash, optimizeImage, AtlaspackNapi, initializeMonitoring, closeMonitoring, registerWorker, Resolver, ResolverOld, transform, transformAsync } = nativeBinding
const { initTracingSubscriber, Lmdb, findAncestorFile, findFirstFile, findNodeModule, hashString, hashBuffer, Hash, optimizeImage, createAssetId, AtlaspackNapi, createDependencyId, createEnvironmentId, initializeMonitoring, closeMonitoring, registerWorker, runInlineRequiresOptimizer, replaceHashReferences, Resolver, transform, transformAsync } = nativeBinding
module.exports.initTracingSubscriber = initTracingSubscriber
module.exports.Lmdb = Lmdb
module.exports.findAncestorFile = findAncestorFile

@@ -323,9 +325,13 @@ module.exports.findFirstFile = findFirstFile

module.exports.optimizeImage = optimizeImage
module.exports.createAssetId = createAssetId
module.exports.AtlaspackNapi = AtlaspackNapi
module.exports.createDependencyId = createDependencyId
module.exports.createEnvironmentId = createEnvironmentId
module.exports.initializeMonitoring = initializeMonitoring
module.exports.closeMonitoring = closeMonitoring
module.exports.registerWorker = registerWorker
module.exports.runInlineRequiresOptimizer = runInlineRequiresOptimizer
module.exports.replaceHashReferences = replaceHashReferences
module.exports.Resolver = Resolver
module.exports.ResolverOld = ResolverOld
module.exports.transform = transform
module.exports.transformAsync = transformAsync
{
"name": "@atlaspack/rust",
"version": "2.12.1-dev.3401+b483af77f",
"license": "MIT",
"version": "2.12.1-dev.3443+d1170cfc7",
"license": "(MIT OR Apache-2.0)",
"publishConfig": {

@@ -36,6 +36,7 @@ "access": "public"

"build-release": "napi build --platform --release --cargo-cwd ../../../crates/node-bindings",
"test": "mocha",
"wasm:build": "cargo build -p atlaspack-node-bindings --target wasm32-unknown-unknown && cp ../../../target/wasm32-unknown-unknown/debug/atlaspack_node_bindings.wasm .",
"wasm:build-release": "CARGO_PROFILE_RELEASE_LTO=true cargo build -p atlaspack-node-bindings --target wasm32-unknown-unknown --release && wasm-opt --strip-debug -O ../../../target/wasm32-unknown-unknown/release/atlaspack_node_bindings.wasm -o atlaspack_node_bindings.wasm"
},
"gitHead": "b483af77f02d1258c8dad156e097b94f83671d8e"
"gitHead": "d1170cfc79beb290b2a066f472f68f71f7d7cb23"
}

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