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

bun-types

Package Overview
Dependencies
Maintainers
3
Versions
687
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bun-types - npm Package Compare versions

Comparing version 1.1.28-canary.20240917T140517 to 1.1.28-canary.20240918T140535

48

ffi.d.ts

@@ -662,2 +662,50 @@ /**

symbols: Fns;
/**
* Map of symbols to define where the key is the symbol name and the value is the symbol value
*
* Equivalent to `-D` option in gcc/clang.
*
* @example
* ```js
* import { cc } from "bun:ffi";
* const {symbols: {hello}} = cc({
* source: hello,
* define: {
* "NDEBUG": "1",
* },
* symbols: {
* hello: {
* returns: "cstring",
* args: [],
* },
* },
* });
* ```
*/
define?: Record<string, string>;
/**
* Flags to pass to the compiler. Note: we do not make gurantees about which specific version of the compiler is used.
*
* @default "-std=c11 -Wl,--export-all-symbols -g -O2"
*
* This is useful for passing macOS frameworks to link against. Or if there are other options you want to pass to the compiler.
*
* @example
* ```js
* import { cc } from "bun:ffi";
* const {symbols: {hello}} = cc({
* source: hello,
* flags: ["-framework CoreFoundation", "-framework Security"],
* symbols: {
* hello: {
* returns: "cstring",
* args: [],
* },
* },
* });
* ```
*/
flags?: string | string[];
}): Library<Fns>;

@@ -664,0 +712,0 @@

2

package.json
{
"version": "1.1.28-canary.20240917T140517",
"version": "1.1.28-canary.20240918T140535",
"name": "bun-types",

@@ -4,0 +4,0 @@ "license": "MIT",

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